modelBaseProperties

Base properties (p, d, T, h, u, R, MM and X and Xi) of a medium

Information

Model with basic thermodynamic properties.

This model provides equation for the following thermodynamic properties:

Variable Unit Description
T K temperature
p Pa absolute pressure
d kg/m3 density
h J/kg specific enthalpy
u J/kg specific internal energy
Xi[nXi] kg/kg independent mass fractions m_i/m
R J/kg.K gas constant
M kg/mol molar mass

Parameters

TypeNameDefaultDescription
BooleanstandardOrderComponentstrueIf true, and reducedX = true, the last element of X will be computed from the other ones
Advanced
BooleanpreferredMediumStatesfalse= true if StateSelect.prefer shall be used for the independent property variables of the medium

Connectors

TypeNameDefaultDescription
InputAbsolutePressurepAbsolute pressure of medium
InputMassFractionXiStructurally independent mass fractions
InputSpecificEnthalpyhSpecific enthalpy of medium

Components

TypeNameDefaultDescription
Modelica.Media.Interfaces.Types.DensitydDensity of medium
Modelica.Media.Interfaces.Types.TemperatureTTemperature of medium
Modelica.Media.Interfaces.Types.MassFractionXMass fractions (= (component mass)/total mass m_i/m)
Modelica.Media.Interfaces.Types.SpecificInternalEnergyuSpecific internal energy of medium
Modelica.Media.Interfaces.Types.SpecificHeatCapacityR_sGas constant (of mixture if applicable)
Modelica.Media.Interfaces.Types.MolarMassMMMolar mass (of mixture or single fluid)
ThermodynamicStatestateThermodynamic state record for optional functions
Modelica.Units.NonSI.Temperature_degCT_degCModelica.Units.Conversions.to_degC(T)Temperature of medium in [degC]
Modelica.Units.NonSI.Pressure_barp_barModelica.Units.Conversions.to_bar(p)Absolute pressure of medium in [bar]

Contents

NameDescription
InputAbsolutePressurePressure as input signal connector
InputSpecificEnthalpySpecific enthalpy as input signal connector
InputMassFractionMass fraction as input signal connector

Revisions

  • September 22, 2020, by Michael Wetter:
    First implementation based on Modelica Standard Library, but with noEvent added to check of bounds.