modelFluidProperties

Model that tests the implementation of the fluid properties

Information

This example checks thermophysical properties of the medium.

Parameters

TypeNameDefaultDescription
Modelica.SIunits.TemperatureTMinMinimum temperature for the simulation
Modelica.SIunits.TemperatureTMaxMaximum temperature for the simulation
Modelica.SIunits.PressurepMedium.p_defaultPressure
Modelica.SIunits.MassFraction[Medium.nX]XMedium.X_defaultMass fraction

Components

TypeNameDefaultDescription
Medium.TemperatureTTemperature
Modelica.SIunits.Conversions.NonSIunits.Temperature_degCT_degCCelsius temperature
Medium.ThermodynamicStatestate_pTXMedium state
Medium.ThermodynamicStatestate_phXMedium state
Medium.ThermodynamicStatestate_psXMedium state
Modelica.SIunits.DensitydDensity
Modelica.SIunits.DynamicViscosityetaDynamic viscosity
Modelica.SIunits.SpecificEnthalpyhSpecific enthalpy
Modelica.SIunits.SpecificInternalEnergyuSpecific internal energy
Modelica.SIunits.SpecificEntropysSpecific entropy
Modelica.SIunits.SpecificEnergygSpecific Gibbs energy
Modelica.SIunits.SpecificEnergyfSpecific Helmholtz energy
Modelica.SIunits.SpecificEnthalpyhIseIsentropic enthalpy
Modelica.Media.Interfaces.Types.IsobaricExpansionCoefficientbetaIsobaric expansion coefficient
Modelica.SIunits.IsothermalCompressibilitykappaIsothermal compressibility
Modelica.Media.Interfaces.Types.DerDensityByPressureddpTDensity derivative w.r.t. pressure
Modelica.Media.Interfaces.Types.DerDensityByTemperatureddTpDensity derivative w.r.t. temperature
Modelica.SIunits.DensitydddXDensity derivative w.r.t. mass fraction
Modelica.SIunits.SpecificHeatCapacitycpSpecific heat capacity
Modelica.SIunits.SpecificHeatCapacitycvSpecific heat capacity
Modelica.SIunits.ThermalConductivitylambdaThermal conductivity
Modelica.SIunits.AbsolutePressurepMedPressure
Medium.TemperatureTMedTemperature
Modelica.SIunits.MolarMassMMMixture molar mass
Medium.BasePropertiesbasProMedium base properties

Contents

NameDescription
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.