modelCO2
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model compares different AdiabaticThermodynamicModels using an exemplary compression of an ideal gas with temperature-dependent specific heat capacity and isentropic exponent (IdealGases.SingleGases.CO2).
Simulation time serves as a proxy for the pressure ratio, which starts at one and increases linearly
to pRatio = 2 at time = 1.
The following figure displays the resulting power, which is directly linked to the temperature difference:
The fullMedium model serves as the reference. Among the approximations, the constant isentropic
exponent (idealGasConstGamma) is the least restrictive, followed by constant isobaric heat
capacity (perfectGas) and constant density (incompressibleFluid).
Note that the second incompressible version, isothermalReference, is not suitable for
ideal gases. For pressure ratios close to pRatio=1, all models are valid and consistent, except for isothermalReference.
For further information regarding the underlying assumptions, please refer to:
ThermofluidStream.Idealized.UsersGuide.AdiabaticThermodynamicModels.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | p_in | 100000 | Fixed inlet pressure |
| SI.Temperature | T_in | 293.15 | Fixed inlet temperature |
| SI.Efficiency | eta | 0.8 | Isentropic efficiency |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.Boundaries.Source | source | ||
| .ThermofluidStream.Boundaries.Sink_m | sink | ||
| ThermofluidStream.DropOfCommons | dropOfCommons | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | idealGasConstGamma | ||
| Modelica.Blocks.Sources.Ramp | pressureRatio | ||
| ThermofluidStream.Boundaries.Source | source1 | ||
| ThermofluidStream.Boundaries.Sink_m | sink1 | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | perfectGas | ||
| ThermofluidStream.Boundaries.Source | source2 | ||
| ThermofluidStream.Boundaries.Sink_m | sink2 | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | incompressibleFluid | ||
| ThermofluidStream.Boundaries.Source | source3 | ||
| ThermofluidStream.Boundaries.Sink_m | sink3 | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | isothermalReference | ||
| ThermofluidStream.Boundaries.Source | source4 | ||
| .ThermofluidStream.Boundaries.Sink_m | sink4 | ||
| Processes.Adiabatic | fullMedium |
Contents
| Name | Description |
|---|---|
Revisions
-
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.