modelPartialProperties

Partial model that contains common parameters of the fluid properties

Information

This example checks thermophysical properties of the medium.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureTMinMinimum temperature for the simulation
Modelica.Units.SI.TemperatureTMaxMaximum temperature for the simulation
Modelica.Units.SI.PressurepMedium.p_defaultPressure
Modelica.Units.SI.MassFraction[Medium.nX]XMedium.X_defaultMass fraction
RealerrAbs1E-8Absolute error used in the check of the state calculations

Components

TypeNameDefaultDescription
Medium.TemperatureTTemperature
Modelica.Units.NonSI.Temperature_degCT_degCCelsius temperature
Medium.ThermodynamicStatestate_pTXMedium state
Modelica.Units.SI.DensitydDensity
Modelica.Units.SI.DynamicViscosityetaDynamic viscosity
Modelica.Units.SI.SpecificEnthalpyhSpecific enthalpy
Modelica.Units.SI.SpecificInternalEnergyuSpecific internal energy
Modelica.Units.SI.SpecificEntropysSpecific entropy
Modelica.Units.SI.SpecificEnergygSpecific Gibbs energy
Modelica.Units.SI.SpecificEnergyfSpecific Helmholtz energy
Modelica.Units.SI.SpecificEnthalpyhIseIsentropic enthalpy
Modelica.Media.Interfaces.Types.IsobaricExpansionCoefficientbetaIsobaric expansion coefficient
Modelica.Units.SI.IsothermalCompressibilitykappaIsothermal compressibility
Modelica.Units.SI.SpecificHeatCapacitycpSpecific heat capacity
Modelica.Units.SI.SpecificHeatCapacitycvSpecific heat capacity
Modelica.Units.SI.ThermalConductivitylambdaThermal conductivity
Modelica.Units.SI.AbsolutePressurepMedPressure
Medium.TemperatureTMedTemperature
Modelica.Units.SI.MolarMassMMMixture molar mass
Medium.BasePropertiesbasProMedium base properties

Contents

NameDescription
Medium
checkStateprotectedThis 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 Buildings.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.