modelOttoCycleIdealClosed

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowAbnormalOperationfalse= true to allow compressor to operate as 'turbine' where PR<=1, false to restrict 1<PR
BooleanallowFlowReversalfalse= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Initialization › fluid_1
Modelica.SIunits.MassFlowRatem_flow1_init1.0
Modelica.SIunits.Pressurep1_init101.3*1000
Modelica.SIunits.TemperatureT1_init288.15
Modelica.SIunits.SpecificEnthalpyh1_initT1_init*1.004*1000
Initialization › fluid_2
Modelica.SIunits.MassFlowRatem_flow2_init-1.0*m_flow1_init
Modelica.SIunits.Pressurep2_init20*101.3*1000
Modelica.SIunits.TemperatureT2_init500
Modelica.SIunits.SpecificEnthalpyh2_initT2_init*1.004*1000
Initialization › fluidState_1
Modelica.SIunits.Pressurep_state1_init101.3*1000
Modelica.SIunits.TemperatureT_state1_init288.15
Modelica.SIunits.SpecificEnthalpyh_state1_initT_state1_init*1.004*1000
Initialization › fluidState_2
Modelica.SIunits.Pressurep_state2_init101.3*1000
Modelica.SIunits.TemperatureT_state2_init288.15
Modelica.SIunits.SpecificEnthalpyh_state2_initT_state1_init*1.004*1000
Initialization › fluidState_3
Modelica.SIunits.Pressurep_state3_init101.3*1000
Modelica.SIunits.TemperatureT_state3_init288.15
Modelica.SIunits.SpecificEnthalpyh_state3_initT_state1_init*1.004*1000
Initialization › fluidState_4
Modelica.SIunits.Pressurep_state4_init101.3*1000
Modelica.SIunits.TemperatureT_state4_init288.15
Modelica.SIunits.SpecificEnthalpyh_state4_initT_state1_init*1.004*1000
Initialization › flange_1
Modelica.SIunits.Torquetau1_init0.1
Modelica.SIunits.Anglephi1_initphi_init
Initialization › flange_2
Modelica.SIunits.Torquetau2_initpwr_init/(Nmech_init*2.0*Modelica.Constants.pi/60.0)
Modelica.SIunits.Anglephi2_initphi_init
Initialization › others
Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpmNmech_init3000.0
Modelica.SIunits.Powerpwr_init-5.0*10.0^5
Modelica.SIunits.Torquetrq_initpwr_init/(Nmech_init*2.0*Modelica.Constants.pi/60.0)
Modelica.SIunits.Anglephi_init0.0
Modelica.SIunits.SpecificEntropys_state_1_init7000.0
Modelica.SIunits.SpecificEntropys_state_2_init7000.0
Modelica.SIunits.SpecificEntropys_state_3_init8000.0
Modelica.SIunits.SpecificEntropys_state_4_init8000.0

Components

TypeNameDefaultDescription
Modelica.SIunits.Powerpwrpower via shaft, positive if fluid generates power
Modelica.SIunits.Torquetrqtrq via shaft
Modelica.SIunits.AngularVelocityomegamechanical rotation speed, rad/sec
Modelica.SIunits.Anglephimechanical rotation displacement, rad
Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpmNmechmechanical rotation speed, rpm
Modelica.SIunits.VolumeVolDispdisplacement
Modelica.SIunits.VolumeVol1volume, state 1
Modelica.SIunits.VolumeVol2volume, state 2
Modelica.SIunits.VolumeVol3volume, state 3
Modelica.SIunits.VolumeVol4volume, state 4
Modelica.SIunits.SpecificEntropys_state_1specific entropy, state 1
Modelica.SIunits.SpecificEntropys_state_2specific entropy, state 2
Modelica.SIunits.SpecificEntropys_state_3specific entropy, state 3
Modelica.SIunits.SpecificEntropys_state_4specific entropy, state 4
Modelica.SIunits.VolumeFlowRateV_flowvolume flow rate through piston-cylinder
Modelica.SIunits.MassFlowRatem_flowmass flow rate through piston-cylinder
Modelica.SIunits.MassmassFluidCyclemass of fluid in single cycle in cylinder
Modelica.SIunits.MassmassFuelCyclemass of fuel in single cycle in cylinder
Modelica.SIunits.HeatQ_2_3heat injected into fluid by combustion
Modelica.SIunits.HeatQ_4_1heat rejected from fluid by exhaust
Modelica.SIunits.SpecificEnthalpyLHV_fuel
Modelica.SIunits.WorkWoutCyclework output, single cycle
Modelica.SIunits.WorkW_1_2work, compression, state 1 -> 2
Modelica.SIunits.WorkW_3_4work, expansion, state 3 -> 4
RealCRCompression Ratio
RealfracFuelFraction of fuel in fluid
Medium.BasePropertiesfluidState_1fluid state 1
Medium.BasePropertiesfluidState_2fluid state 2
Medium.BasePropertiesfluidState_3fluid state 3
Medium.BasePropertiesfluidState_4fluid state 4
Modelica.Blocks.Sources.RealExpressionu_fracFuel
Modelica.Blocks.Sources.RealExpressionu_Nmech
Modelica.Blocks.Sources.RealExpressionu_p_state1
Modelica.Blocks.Sources.RealExpressionu_T_state1
Modelica.Blocks.Sources.RealExpressionparam_CR
Modelica.Blocks.Sources.RealExpressionparam_VolDisp
Modelica.Blocks.Sources.RealExpressionparam_LHV_fuel

Contents

NameDescription
engineAir
Medium