modelOttoCycleIdealClosed
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Assumptions | |||
| Boolean | allowAbnormalOperation | false | = true to allow compressor to operate as 'turbine' where PR<=1, false to restrict 1<PR |
| Boolean | allowFlowReversal | false | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Initialization › fluid_1 | |||
| Modelica.SIunits.MassFlowRate | m_flow1_init | 1.0 | |
| Modelica.SIunits.Pressure | p1_init | 101.3*1000 | |
| Modelica.SIunits.Temperature | T1_init | 288.15 | |
| Modelica.SIunits.SpecificEnthalpy | h1_init | T1_init*1.004*1000 | |
| Initialization › fluid_2 | |||
| Modelica.SIunits.MassFlowRate | m_flow2_init | -1.0*m_flow1_init | |
| Modelica.SIunits.Pressure | p2_init | 20*101.3*1000 | |
| Modelica.SIunits.Temperature | T2_init | 500 | |
| Modelica.SIunits.SpecificEnthalpy | h2_init | T2_init*1.004*1000 | |
| Initialization › fluidState_1 | |||
| Modelica.SIunits.Pressure | p_state1_init | 101.3*1000 | |
| Modelica.SIunits.Temperature | T_state1_init | 288.15 | |
| Modelica.SIunits.SpecificEnthalpy | h_state1_init | T_state1_init*1.004*1000 | |
| Initialization › fluidState_2 | |||
| Modelica.SIunits.Pressure | p_state2_init | 101.3*1000 | |
| Modelica.SIunits.Temperature | T_state2_init | 288.15 | |
| Modelica.SIunits.SpecificEnthalpy | h_state2_init | T_state1_init*1.004*1000 | |
| Initialization › fluidState_3 | |||
| Modelica.SIunits.Pressure | p_state3_init | 101.3*1000 | |
| Modelica.SIunits.Temperature | T_state3_init | 288.15 | |
| Modelica.SIunits.SpecificEnthalpy | h_state3_init | T_state1_init*1.004*1000 | |
| Initialization › fluidState_4 | |||
| Modelica.SIunits.Pressure | p_state4_init | 101.3*1000 | |
| Modelica.SIunits.Temperature | T_state4_init | 288.15 | |
| Modelica.SIunits.SpecificEnthalpy | h_state4_init | T_state1_init*1.004*1000 | |
| Initialization › flange_1 | |||
| Modelica.SIunits.Torque | tau1_init | 0.1 | |
| Modelica.SIunits.Angle | phi1_init | phi_init | |
| Initialization › flange_2 | |||
| Modelica.SIunits.Torque | tau2_init | pwr_init/(Nmech_init*2.0*Modelica.Constants.pi/60.0) | |
| Modelica.SIunits.Angle | phi2_init | phi_init | |
| Initialization › others | |||
| Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpm | Nmech_init | 3000.0 | |
| Modelica.SIunits.Power | pwr_init | -5.0*10.0^5 | |
| Modelica.SIunits.Torque | trq_init | pwr_init/(Nmech_init*2.0*Modelica.Constants.pi/60.0) | |
| Modelica.SIunits.Angle | phi_init | 0.0 | |
| Modelica.SIunits.SpecificEntropy | s_state_1_init | 7000.0 | |
| Modelica.SIunits.SpecificEntropy | s_state_2_init | 7000.0 | |
| Modelica.SIunits.SpecificEntropy | s_state_3_init | 8000.0 | |
| Modelica.SIunits.SpecificEntropy | s_state_4_init | 8000.0 | |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Power | pwr | power via shaft, positive if fluid generates power | |
| Modelica.SIunits.Torque | trq | trq via shaft | |
| Modelica.SIunits.AngularVelocity | omega | mechanical rotation speed, rad/sec | |
| Modelica.SIunits.Angle | phi | mechanical rotation displacement, rad | |
| Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpm | Nmech | mechanical rotation speed, rpm | |
| Modelica.SIunits.Volume | VolDisp | displacement | |
| Modelica.SIunits.Volume | Vol1 | volume, state 1 | |
| Modelica.SIunits.Volume | Vol2 | volume, state 2 | |
| Modelica.SIunits.Volume | Vol3 | volume, state 3 | |
| Modelica.SIunits.Volume | Vol4 | volume, state 4 | |
| Modelica.SIunits.SpecificEntropy | s_state_1 | specific entropy, state 1 | |
| Modelica.SIunits.SpecificEntropy | s_state_2 | specific entropy, state 2 | |
| Modelica.SIunits.SpecificEntropy | s_state_3 | specific entropy, state 3 | |
| Modelica.SIunits.SpecificEntropy | s_state_4 | specific entropy, state 4 | |
| Modelica.SIunits.VolumeFlowRate | V_flow | volume flow rate through piston-cylinder | |
| Modelica.SIunits.MassFlowRate | m_flow | mass flow rate through piston-cylinder | |
| Modelica.SIunits.Mass | massFluidCycle | mass of fluid in single cycle in cylinder | |
| Modelica.SIunits.Mass | massFuelCycle | mass of fuel in single cycle in cylinder | |
| Modelica.SIunits.Heat | Q_2_3 | heat injected into fluid by combustion | |
| Modelica.SIunits.Heat | Q_4_1 | heat rejected from fluid by exhaust | |
| Modelica.SIunits.SpecificEnthalpy | LHV_fuel | ||
| Modelica.SIunits.Work | WoutCycle | work output, single cycle | |
| Modelica.SIunits.Work | W_1_2 | work, compression, state 1 -> 2 | |
| Modelica.SIunits.Work | W_3_4 | work, expansion, state 3 -> 4 | |
| Real | CR | Compression Ratio | |
| Real | fracFuel | Fraction of fuel in fluid | |
| Medium.BaseProperties | fluidState_1 | fluid state 1 | |
| Medium.BaseProperties | fluidState_2 | fluid state 2 | |
| Medium.BaseProperties | fluidState_3 | fluid state 3 | |
| Medium.BaseProperties | fluidState_4 | fluid state 4 | |
| Modelica.Blocks.Sources.RealExpression | u_fracFuel | ||
| Modelica.Blocks.Sources.RealExpression | u_Nmech | ||
| Modelica.Blocks.Sources.RealExpression | u_p_state1 | ||
| Modelica.Blocks.Sources.RealExpression | u_T_state1 | ||
| Modelica.Blocks.Sources.RealExpression | param_CR | ||
| Modelica.Blocks.Sources.RealExpression | param_VolDisp | ||
| Modelica.Blocks.Sources.RealExpression | param_LHV_fuel |
Contents
| Name | Description |
|---|---|