modelTableBased
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model evaluates different AdiabaticThermodynamicModels based on an exemplary pressurization of a table based incompressible fluid (Glycol47).
Simulation time represents the applied pressure difference, which increases linearly
from zero to dp = 100 bar at time = 1.
The figure below shows the resulting power:
The isothermalReference (h_out_is = h(p_out, T_in)) and
fullMedium (h_out_is = h(p_out, s_in)) formulations
yield zero power because without modification, in the TableBased medium model,
enthalpy is defined as a function of temperature only (Medium.enthalpyOfT = true),
thereby neglecting the pressure-dependent flow work term dp/rho.
Setting Medium.enthalpyOfT = false, the pressure dependence of enthalpy is accounted for, and the flow work contribution is included, yielding the following results:
In this case, isothermalReference and incompressibleFluid yield identical results, while fullMedium differs by only 0.3%.
For more details regarding the underlying assumptions, refer to:
ThermofluidStream.Idealized.UsersGuide.AdiabaticThermodynamicModels
.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| 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 | fullMedium | ||
| Modelica.Blocks.Sources.Ramp | pressureDifference | ||
| ThermofluidStream.Boundaries.Source | source1 | ||
| .ThermofluidStream.Boundaries.Sink_m | sink1 | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | incompressibleFluid | ||
| ThermofluidStream.Boundaries.Source | source2 | ||
| .ThermofluidStream.Boundaries.Sink_m | sink2 | ||
| ThermofluidStream.Idealized.Processes.Adiabatic | isothermalReference |
Contents
| Name | Description |
|---|---|
Revisions
-
2026, by Raphael Gebhart (raphael.gebhart@dlr.de):
Initial version.