modelAdiabaticPerfectGas
Extends from ThermofluidStream.Idealized.Examples.TUMExercisesThermodynamicCycles.Exercise4DieselEngine.BaseModel (Defines the parameters).
Information
Example of an Diesel engine cycle. See TUMExercisesThermodynamicCycles.Exercise4DieselEngine for the problem description.
This example makes use of the following components and settings:
-
SimpleAir medium model
(ideal gas with
R = 287 J/(kg·K)andgamma = 1.40) -
Adiabatic process model (which is only available for
systemSpec = Flow)
The Adiabatic model defines isentropic efficiency based on shaft work (i.e., changes in specific enthalpy), whereas for a closed-cycle process the isentropic efficiency is commonly defined based on the net expansion work (i.e., changes in specific internal energy). In general both definitions are not equivalent and discrepancies can arise. The results will however be identical when the isentropic efficiency is equal to unity, or when the working fluid is an ideal gas with constant isentropic exponent.
This setup is based on the fact that the specific work of a thermodynamic cycle is given by the closed integral in the p–v diagram (pressure - specific volume).
Therefore, integrating with respect to volume, p*dv (boundary work as typically transferred in a piston–cylinder system),
and integrating with respect to pressure, v*dp (“artificial” shaft work of a dual stationary-flow process),
yield the same net cycle work, even though the individual contributions of each process step differ.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.AbsolutePressure | p1 (from BaseModel) | 100000 | Pressure before compression |
| Medium.Temperature | T1 (from BaseModel) | 300 | Temperature before compression |
| Real | compressionRatio (from BaseModel) | 23 | Compression ratio |
| SI.Temperature | T3 (from BaseModel) | 1700 | Temperature after combustion |
| SI.MassFlowRate | m_flow (from BaseModel) | 1 | Mass flow rate |
| Medium.Density | rho1 (from BaseModel) | Medium.density_pT(p1, T1) | Density before compression |
| Medium.Density | rho2 | rho1*compressionRatio | Density after compression |
| SI.SpecificVolume | v1 | 1/rho1 | Specific volume before compression |
| SI.SpecificVolume | v2 | 1/rho2 | Specific volume after compression |
| Medium.IsentropicExponent | gamma | 1.4 | Isentropic exponent |
| Medium.AbsolutePressure | p2 | p1*(1/compressionRatio)^(-gamma) | Pressure after compression |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.DropOfCommons | dropOfCommons (from BaseModel) | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | compression | ||
| ThermofluidStream.Idealized.Processes.Isobaric | combustion | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | expansion | ||
| ThermofluidStream.Idealized.Processes.Isochoric | gasExchange | ||
| ThermofluidStream.Idealized.Boundaries.LoopBreaker_m | loopBreaker | ||
| ThermofluidStream.Idealized.EnergyFlow.Components.Sum | shaftPower | ||
| ThermofluidStream.Utilities.showRealValue | maximumPressure | ||
| ThermofluidStream.Utilities.showRealValue | netWork | ||
| ThermofluidStream.Utilities.showRealValue | efficiency | ||
| ThermofluidStream.Utilities.showRealValue | exhaustTemperature | ||
| Modelica.Blocks.Sources.RealExpression | density1 | ||
| Sensors.SingleSensorSelect | sensorDensity1 | ||
| Modelica.Blocks.Math.InverseBlockConstraints | inverseBlockConstraints |
Revisions
-
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.