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) and gamma = 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

TypeNameDefaultDescription
Medium.AbsolutePressurep1 (from BaseModel)100000Pressure before compression
Medium.TemperatureT1 (from BaseModel)300Temperature before compression
RealcompressionRatio (from BaseModel)23Compression ratio
SI.TemperatureT3 (from BaseModel)1700Temperature after combustion
SI.MassFlowRatem_flow (from BaseModel)1Mass flow rate
Medium.Densityrho1 (from BaseModel)Medium.density_pT(p1, T1)Density before compression
Medium.Densityrho2rho1*compressionRatioDensity after compression
SI.SpecificVolumev11/rho1Specific volume before compression
SI.SpecificVolumev21/rho2Specific volume after compression
Medium.IsentropicExponentgamma1.4Isentropic exponent
Medium.AbsolutePressurep2p1*(1/compressionRatio)^(-gamma)Pressure after compression

Components

TypeNameDefaultDescription
ThermofluidStream.DropOfCommonsdropOfCommons (from BaseModel)
ThermofluidStream.Idealized.Processes.Adiabaticcompression
ThermofluidStream.Idealized.Processes.Isobariccombustion
ThermofluidStream.Idealized.Processes.Adiabaticexpansion
ThermofluidStream.Idealized.Processes.IsochoricgasExchange
ThermofluidStream.Idealized.Boundaries.LoopBreaker_mloopBreaker
ThermofluidStream.Idealized.EnergyFlow.Components.SumshaftPower
ThermofluidStream.Utilities.showRealValuemaximumPressure
ThermofluidStream.Utilities.showRealValuenetWork
ThermofluidStream.Utilities.showRealValueefficiency
ThermofluidStream.Utilities.showRealValueexhaustTemperature
Modelica.Blocks.Sources.RealExpressiondensity1
Sensors.SingleSensorSelectsensorDensity1
Modelica.Blocks.Math.InverseBlockConstraintsinverseBlockConstraints

Revisions

  • 2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
    Initial version.