modelSimpleAir
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model demonstrates a comparison of different AdiabaticThermodynamicModels through an example compression using SimpleAir.
Simulation time acts as a proxy for the pressure ratio, which starts at one and increases linearly
to pRatio = 2 at time = 1.
The figure below illustrates the resulting power, which directly correlates with the temperature difference:
The SimpleAir model extends PartialSimpleIdealGasMedium, representing a perfect gas
(p*v = R*T, cp = const). Therefore, fullMedium, idealGasConstGamma,
and perfectGas produce identical results.
Note that a bugfix in SimpleAir was required for fullMedium to work, see
https://github.com/DLR-SR/ThermofluidStream/pull/294
.
As also shown in
Examples.AdiabaticProcess.CO2,
incompressibleFluid approaches the same limit as the pressure ratio tends to zero, while
isothermalReference is not suitable for ideal gases.
For more details about the underlying assumptions, see:
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 |
|---|---|---|---|
| SI.Power | absP | abs(fullMedium.P) | |
| 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.