modelFluidProperties
Model that tests the implementation of the fluid properties
Information
This example checks thermophysical properties of the medium.
Parameters
| Type | Name | Default | Description |
| Modelica.SIunits.Temperature | TMin | | Minimum temperature for the simulation |
| Modelica.SIunits.Temperature | TMax | | Maximum temperature for the simulation |
| Modelica.SIunits.Pressure | p | Medium.p_default | Pressure |
| Modelica.SIunits.MassFraction[Medium.nX] | X | Medium.X_default | Mass fraction |
Components
| Type | Name | Default | Description |
| Medium.Temperature | T | | Temperature |
| Modelica.SIunits.Conversions.NonSIunits.Temperature_degC | T_degC | | Celsius temperature |
| Medium.ThermodynamicState | state_pTX | | Medium state |
| Medium.ThermodynamicState | state_phX | | Medium state |
| Medium.ThermodynamicState | state_psX | | Medium state |
| Modelica.SIunits.Density | d | | Density |
| Modelica.SIunits.DynamicViscosity | eta | | Dynamic viscosity |
| Modelica.SIunits.SpecificEnthalpy | h | | Specific enthalpy |
| Modelica.SIunits.SpecificInternalEnergy | u | | Specific internal energy |
| Modelica.SIunits.SpecificEntropy | s | | Specific entropy |
| Modelica.SIunits.SpecificEnergy | g | | Specific Gibbs energy |
| Modelica.SIunits.SpecificEnergy | f | | Specific Helmholtz energy |
| Modelica.SIunits.SpecificEnthalpy | hIse | | Isentropic enthalpy |
| Modelica.Media.Interfaces.Types.IsobaricExpansionCoefficient | beta | | Isobaric expansion coefficient |
| Modelica.SIunits.IsothermalCompressibility | kappa | | Isothermal compressibility |
| Modelica.Media.Interfaces.Types.DerDensityByPressure | ddpT | | Density derivative w.r.t. pressure |
| Modelica.Media.Interfaces.Types.DerDensityByTemperature | ddTp | | Density derivative w.r.t. temperature |
| Modelica.SIunits.Density | dddX | | Density derivative w.r.t. mass fraction |
| Modelica.SIunits.SpecificHeatCapacity | cp | | Specific heat capacity |
| Modelica.SIunits.SpecificHeatCapacity | cv | | Specific heat capacity |
| Modelica.SIunits.ThermalConductivity | lambda | | Thermal conductivity |
| Modelica.SIunits.AbsolutePressure | pMed | | Pressure |
| Medium.Temperature | TMed | | Temperature |
| Modelica.SIunits.MolarMass | MM | | Mixture molar mass |
| Medium.BaseProperties | basPro | | Medium base properties |
Contents
| Name | Description |
Medium | |
checkStateprotected | |
Revisions
-
June 6, 2015, by Michael Wetter:
Changed type of T from
Modelica.SIunits.Temperature to Medium.Temperature.
Otherwise, it has a different start value than BaseProperties.T, which
causes an error if
IBPSA.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.