modelPartialProperties
Partial model that contains common parameters of the fluid properties
Information
This example checks thermophysical properties of the medium.
Parameters
| Type | Name | Default | Description |
| Modelica.Units.SI.Temperature | TMin | | Minimum temperature for the simulation |
| Modelica.Units.SI.Temperature | TMax | | Maximum temperature for the simulation |
| Modelica.Units.SI.Pressure | p | Medium.p_default | Pressure |
| Modelica.Units.SI.MassFraction[Medium.nX] | X | Medium.X_default | Mass fraction |
| Real | errAbs | 1E-8 | Absolute error used in the check of the state calculations |
Components
| Type | Name | Default | Description |
| Medium.Temperature | T | | Temperature |
| Modelica.Units.NonSI.Temperature_degC | T_degC | | Celsius temperature |
| Medium.ThermodynamicState | state_pTX | | Medium state |
| Modelica.Units.SI.Density | d | | Density |
| Modelica.Units.SI.DynamicViscosity | eta | | Dynamic viscosity |
| Modelica.Units.SI.SpecificEnthalpy | h | | Specific enthalpy |
| Modelica.Units.SI.SpecificInternalEnergy | u | | Specific internal energy |
| Modelica.Units.SI.SpecificEntropy | s | | Specific entropy |
| Modelica.Units.SI.SpecificEnergy | g | | Specific Gibbs energy |
| Modelica.Units.SI.SpecificEnergy | f | | Specific Helmholtz energy |
| Modelica.Units.SI.SpecificEnthalpy | hIse | | Isentropic enthalpy |
| Modelica.Media.Interfaces.Types.IsobaricExpansionCoefficient | beta | | Isobaric expansion coefficient |
| Modelica.Units.SI.IsothermalCompressibility | kappa | | Isothermal compressibility |
| Modelica.Units.SI.SpecificHeatCapacity | cp | | Specific heat capacity |
| Modelica.Units.SI.SpecificHeatCapacity | cv | | Specific heat capacity |
| Modelica.Units.SI.ThermalConductivity | lambda | | Thermal conductivity |
| Modelica.Units.SI.AbsolutePressure | pMed | | Pressure |
| Medium.Temperature | TMed | | Temperature |
| Modelica.Units.SI.MolarMass | MM | | Mixture molar mass |
| Medium.BaseProperties | basPro | | Medium base properties |
Contents
| Name | Description |
| Medium | |
| checkStateprotected | This function checks the absolute error in the state calculations |
Revisions
-
May 5, 2023 by Hongxiang Fu:
Removed a self-dependent input binding in the function checkState.
This is for
#3384.
-
March 24, 2020, by Kathryn Hinkelman:
Expand error message for checkState and added absolute error as input.
-
September 16, 2019, by Yangyang Fu:
Reconstruct the implementation structure to avoid duplicated codes for different media.
This fixes #1206.
-
June 6, 2015, by Michael Wetter:
Changed type of T from
Modelica.Units.SI.Temperature to Medium.Temperature.
Otherwise, it has a different start value than BaseProperties.T, which
causes an error if
BuildingSystems.Media.Examples.WaterProperties
is translated in pedantic mode.
This fixes
#266.
-
October 16, 2014, by Michael Wetter:
Removed call to setState_dTX as this
function is physically not defined for incompressible media.
-
December 19, 2013, by Michael Wetter:
First implementation.