modelBaseProperties

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

Extends from BasePropertiesRecord (Variables contained in every instance of BaseProperties).

Information

Model BaseProperties is a model within package PartialMedium and contains the declarations of the minimum number of variables that every medium model is supposed to support. A specific medium inherits from model BaseProperties and provides the equations for the basic properties. Note, that in package PartialMedium the following constants are defined:

Type Name Description
StringmediumName Unique name of the medium (used to check whether two media in a model are the same)
StringsubstanceNames Names of the mixture substances that are treated as independent. If medium consists of a single substance, set substanceNames=fill("",0). If medium consists of n substances, provide either n-1 or n substance names, depending whether mass fractions PartialMedium.BaseProperties.X shall have dimension PartialMedium.nX = n-1 or PartialMedium.nX = n
Booleanincompressible = true, if density is constant; otherwise set it to false

In every medium 3+nX equations have to be defined that provide relations between the following 5+nX variables, declared in model BaseProperties, where nX is the number of independent mass fractions defined in package PartialMedium:

Variable Unit Description
T K temperature
p Pa absolute pressure
d kg/m^3 density
h J/kg specific enthalpy
u J/kg specific internal energy
X[nX] kg/kg independent mass fractions m_i/m

In some components, such as "Ambient", explicit equations for medium variables are provided as "boundary conditions". For example, the "Ambient" component may define a temperature T_ambient.

Parameters

TypeNameDefaultDescription
BooleanstandardOrderComponentstrueif true, last element in components is computed from 1-sum(Xi)
Advanced
BooleanpreferredMediumStatesfalse= true if StateSelect.prefer shall be used for the independent property variables of the medium

Components

TypeNameDefaultDescription
AbsolutePressurep (from BasePropertiesRecord)Absolute pressure of medium
Densityd (from BasePropertiesRecord)Density of medium
TemperatureT (from BasePropertiesRecord)Temperature of medium
MassFractionX (from BasePropertiesRecord)Mass fractions (= (component mass)/total mass m_i/m)
MassFractionXi (from BasePropertiesRecord)Structurally independent mass fractions
SpecificHeatCapacityR (from BasePropertiesRecord)Gas constant (of mixture if applicable)
MolarMassMM (from BasePropertiesRecord)Molar mass (of mixture or single fluid)
ThermodynamicStatestatethermodynamic state variables 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]