Package Modelica.​Media.​Air.​MoistAir
Air: Moist air model (190 ... 647 K)

Information

Thermodynamic Model

This package provides a full thermodynamic model of moist air including the fog region and temperatures below zero degC. The governing assumptions in this model are:

All extensive properties are expressed in terms of the total mass in order to comply with other media in this library. However, for moist air it is rather common to express the absolute humidity in terms of mass of dry air only, which has advantages when working with charts. In addition, care must be taken, when working with mass fractions with respect to total mass, that all properties refer to the same water content when being used in mathematical operations (which is always the case if based on dry air only). Therefore two absolute humidities are computed in the BaseProperties model: X denotes the absolute humidity in terms of the total mass while x denotes the absolute humidity per unit mass of dry air. In addition, the relative humidity phi is also computed.

At the triple point temperature of water of 0.01 °C or 273.16 K and a relative humidity greater than 1 fog may be present as liquid and as ice resulting in a specific enthalpy somewhere between those of the two isotherms for solid and liquid fog, respectively. For numerical reasons a coexisting mixture of 50% solid and 50% liquid fog is assumed in the fog region at the triple point in this model.

Range of validity

From the assumptions mentioned above it follows that the pressure should be in the region around atmospheric conditions or below (a few bars may still be fine though). Additionally a very high water content at low temperatures would yield incorrect densities, because the volume of the liquid or solid phase would not be negligible anymore. The model does not provide information on limits for water drop size in the fog region or transport information for the actual condensation or evaporation process in combination with surfaces. All excess water which is not in its vapour state is assumed to be still present in the air regarding its energy but not in terms of its spatial extent.

The thermodynamic model may be used for temperatures ranging from 190 ... 647 K. This holds for all functions unless otherwise stated in their description. However, although the model works at temperatures above the saturation temperature it is questionable to use the term "relative humidity" in this region. Please note, that although several functions compute pure water properties, they are designed to be used within the moist air medium model where properties are dominated by air and steam in their vapor states, and not for pure liquid water applications.

Transport Properties

Several additional functions that are not needed to describe the thermodynamic system, but are required to model transport processes, like heat and mass transfer, may be called. They usually neglect the moisture influence unless otherwise stated.

Application

The model's main area of application is all processes that involve moist air cooling under near atmospheric pressure with possible moisture condensation. This is the case in all domestic and industrial air conditioning applications. Another large domain of moist air applications covers all processes that deal with dehydration of bulk material using air as a transport medium. Engineering tasks involving moist air are often performed (or at least visualized) by using charts that contain all relevant thermodynamic data for a moist air system. These so called psychrometric charts can be generated from the medium properties in this package. The model PsychrometricData may be used for this purpose in order to obtain data for figures like those below (the plotting itself is not part of the model though).


Legend: blue - constant specific enthalpy, red - constant temperature, black - constant relative humidity

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases (Base class for mixtures of condensing and non-condensing gases).

Package Contents

NameDescription
AbsolutePressureType for absolute pressure with medium specific attributes
BasePropertiesMoist air base properties record
BasicThe most basic version of a record used in several degrees of detail
betaAlias for isobaricExpansionCoefficient for user convenience
Choices 
CumulativeExtraPropertyType for conserved integral of unspecified, mass specific property
DensityType for density with medium specific attributes
densityReturns density of ideal gas as a function of the thermodynamic state record
density_derh_p 
density_derp_h 
density_derp_T 
density_derT_p 
density_derX 
density_phXReturn density from p, h, and X or Xi
density_psXReturn density from p, s, and X or Xi
density_pTXReturn density from p, T, and X or Xi
DerDensityByEnthalpyType for partial derivative of density with respect to enthalpy with medium specific attributes
DerDensityByPressureType for partial derivative of density with respect to pressure with medium specific attributes
DerDensityByTemperatureType for partial derivative of density with respect to temperature with medium specific attributes
DerEnthalpyByPressureType for partial derivative of enthalpy with respect to pressure with medium specific attributes
DerTemperatureByPressureType for partial derivative of temperature with respect to pressure with medium specific attributes
DipoleMomentType for dipole moment with medium specific attributes
DynamicViscosityType for dynamic viscosity with medium specific attributes
dynamicViscosityReturn dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K
EnthalpyFlowRateType for enthalpy flow rate with medium specific attributes
enthalpyOfCondensingGasReturn specific enthalpy of steam as a function of temperature T
enthalpyOfGasReturn specific enthalpy of gas (air and steam) as a function of temperature T and composition X
enthalpyOfLiquidReturn enthalpy of liquid water as a function of temperature T(use enthalpyOfWater instead)
enthalpyOfNonCondensingGasReturn specific enthalpy of dry air as a function of temperature T
enthalpyOfVaporizationReturn enthalpy of vaporization of water as a function of temperature T, 273.16 to 647.096 K
enthalpyOfWaterComputes specific enthalpy of water (solid/liquid) near atmospheric pressure from temperature T
enthalpyOfWater_derDerivative function of enthalpyOfWater
ExtraPropertyType for unspecified, mass-specific property transported by flow
ExtraPropertyFlowRateType for flow rate of unspecified, mass-specific property
FixedPhasePhase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use
FluidConstants 
FluidLimitsValidity limits for fluid model
gasConstantReturn ideal gas constant as a function from thermodynamic state, only valid for phi<1
gasConstant_XReturn ideal gas constant as a function from composition X
h_pTXReturn specific enthalpy of moist air as a function of pressure p, temperature T and composition X
h_pTX_derDerivative function of h_pTX
heatCapacity_cpAlias for deprecated name
heatCapacity_cvAlias for deprecated name
HeatCapacityOfWaterReturn specific heat capacity of water (liquid only) as a function of temperature T
IdealGasThe ideal gas version of a record used in several degrees of detail
isentropicEnthalpyIsentropic enthalpy (only valid for phi<1)
isentropicEnthalpyApproximationApproximate calculation of h_is from upstream properties, downstream pressure, gas part only
IsentropicExponentType for isentropic exponent with medium specific attributes
isentropicExponentReturn isentropic exponent (only for gas fraction!)
IsobaricExpansionCoefficientType for isobaric expansion coefficient with medium specific attributes
isobaricExpansionCoefficient 
isothermalCompressibility 
kappaAlias of isothermalCompressibility for user convenience
MassFlowRateType for mass flow rate with medium specific attributes
MassFractionType for mass fraction with medium specific attributes
massFraction_pTphiReturn steam mass fraction as a function of relative humidity phi and temperature T
massToMoleFractionsReturn mole fractions from mass fractions X
MolarMassType for molar mass with medium specific attributes
molarMass 
MolarVolumeType for molar volume with medium specific attributes
MoleFractionType for mole fraction with medium specific attributes
moleToMassFractionsReturn mass fractions X from mole fractions
PrandtlNumberType for Prandtl number with medium specific attributes
prandtlNumberReturn the Prandtl number
pressureReturns pressure of ideal gas as a function of the thermodynamic state record
relativeHumidityReturn relative humidity as a function of the thermodynamic state record
relativeHumidity_pTXReturn relative humidity as a function of pressure p, temperature T and composition X
s_pTXReturn specific entropy of moist air as a function of pressure p, temperature T and composition X (only valid for phi<1)
s_pTX_derReturn specific entropy of moist air as a function of pressure p, temperature T and composition X (only valid for phi<1)
saturationPressureReturn saturation pressure of water as a function of temperature T between 190 and 647.096 K
saturationPressure_derDerivative function for 'saturationPressure'
saturationPressureLiquidReturn saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K
saturationPressureLiquid_derDerivative function for 'saturationPressureLiquid'
SaturationPropertiesSaturation properties of two phase medium
saturationTemperatureReturn saturation temperature of water as a function of (partial) pressure p
setSmoothStateReturn thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b
setState_dTXReturn thermodynamic state as function of density d, temperature T and composition X
setState_phXReturn thermodynamic state as function of pressure p, specific enthalpy h and composition X
setState_psX 
setState_pTXReturn thermodynamic state as function of pressure p, temperature T and composition X
SpecificEnergyType for specific energy with medium specific attributes
SpecificEnthalpyType for specific enthalpy with medium specific attributes
specificEnthalpyReturn specific enthalpy of moist air as a function of the thermodynamic state record
specificEnthalpy_psXReturn specific enthalpy from p, s, and X or Xi
specificEnthalpy_pTXReturn specific enthalpy from p, T, and X or Xi
SpecificEntropyType for specific entropy with medium specific attributes
specificEntropyReturn specific entropy from thermodynamic state record, only valid for phi<1
specificEntropy_pTXReturn specific enthalpy from p, T, and X or Xi
specificGibbsEnergyReturn specific Gibbs energy as a function of the thermodynamic state record, only valid for phi<1
SpecificHeatCapacityType for specific heat capacity with medium specific attributes
specificHeatCapacityCpReturn specific heat capacity at constant pressure as a function of the thermodynamic state record
specificHeatCapacityCvReturn specific heat capacity at constant volume as a function of the thermodynamic state record
specificHelmholtzEnergyReturn specific Helmholtz energy as a function of the thermodynamic state record, only valid for phi<1
SpecificInternalEnergyType for specific internal energy with medium specific attributes
specificInternalEnergyReturn specific internal energy of moist air as a function of the thermodynamic state record
specificInternalEnergy_pTXReturn specific internal energy of moist air as a function of pressure p, temperature T and composition X
specificInternalEnergy_pTX_derDerivative function for specificInternalEnergy_pTX
sublimationPressureIceReturn sublimation pressure of water as a function of temperature T between 190 and 273.16 K
sublimationPressureIce_derDerivative function for 'sublimationPressureIce'
SurfaceTensionType for surface tension with medium specific attributes
T_phXReturn temperature as a function of pressure p, specific enthalpy h and composition X
T_psXReturn temperature as a function of pressure p, specific entropy s and composition X
TemperatureType for temperature with medium specific attributes
temperatureReturn temperature of ideal gas as a function of the thermodynamic state record
temperature_phXReturn temperature from p, h, and X or Xi
temperature_psXReturn temperature from p,s, and X or Xi
ThermalConductivityType for thermal conductivity with medium specific attributes
thermalConductivityReturn thermal conductivity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K
ThermodynamicStateThermodynamicState record for moist air
TwoPhaseThe two phase fluid version of a record used in several degrees of detail
UtilitiesUtility functions
VelocityOfSoundType for velocity of sound with medium specific attributes
velocityOfSound 
XsaturationReturn absolute humidity per unit mass of moist air at saturation as a function of the thermodynamic state record
xsaturationReturn absolute humidity per unit mass of dry air at saturation as a function of the thermodynamic state record
xsaturation_pTReturn absolute humidity per unit mass of dry air at saturation as a function of pressure p and temperature T

Package Constants

TypeNameValueDescription
IntegerAir2Index of air (in substanceNames, massFractions X, etc.)
ExtraPropertyC_default[nC]fill(0, nC)Default value for trace substances of medium (for initialization)
RealC_nominal[nC]1e-6 * ones(nC)Default for the nominal values for the extra properties
DataRecorddryairIdealGases.​Common.​SingleGasesData.​Air 
StringextraPropertiesNames[:]fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
BooleanfixedXfalse= true if medium contains the equation X = reference_X
FluidConstantsfluidConstants[nS]{IdealGases.Common.FluidData.H2O, IdealGases.Common.FluidData.N2}Constant data for the fluid
SpecificEnthalpyh_defaultspecificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
Realk_mairsteam.MM / dryair.MMRatio of molar weights
StringmediumName"Moist air"Name of the medium
MolarMassMMX[2]{steam.MM, dryair.MM}Molar masses of components
final IntegernCsize(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
final IntegernSsize(substanceNames, 1)Number of substances
IntegernXnSNumber of mass fractions
IntegernXiif fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
AbsolutePressurep_default101325Default value for pressure of medium (for initialization)
final BooleanreducedXtrue= true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details)
AbsolutePressurereference_p101325Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T298.15Reference temperature of Medium: default 25 deg Celsius
MassFractionreference_X[nX]{0.01, 0.99}Default mass fractions of medium
final BooleansingleStatefalse= true, if u and d are not a function of pressure
DataRecordsteamIdealGases.​Common.​SingleGasesData.​H2O 
StringsubstanceNames[:]{"water", "air"}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
TemperatureT_defaultModelica.SIunits.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
IndependentVariablesThermoStatesModelica.​Media.​Interfaces.​Choices.​IndependentVariables.​pTXEnumeration type for independent variables
IntegerWater1Index of water (in substanceNames, massFractions X, etc.)
MassFractionX_default[nX]reference_XDefault value for mass fractions of medium (for initialization)

Type Modelica.​Media.​Air.​MoistAir.​AbsolutePressure
Type for absolute pressure with medium specific attributes

Extends from Modelica.​SIunits.​AbsolutePressure.

Attributes

NameValue
quantity"Pressure"
unit"Pa"
displayUnit"bar"
min0
max1e+8
start100000
nominal100000

Type Modelica.​Media.​Air.​MoistAir.​Density
Type for density with medium specific attributes

Extends from Modelica.​SIunits.​Density.

Attributes

NameValue
quantity"Density"
unit"kg/m3"
displayUnit"g/cm3"
min0
max100000
start1
nominal1

Type Modelica.​Media.​Air.​MoistAir.​DynamicViscosity
Type for dynamic viscosity with medium specific attributes

Extends from Modelica.​SIunits.​DynamicViscosity.

Attributes

NameValue
quantity"DynamicViscosity"
unit"Pa.s"
min0
max1e+8
start0.001
nominal0.001

Type Modelica.​Media.​Air.​MoistAir.​EnthalpyFlowRate
Type for enthalpy flow rate with medium specific attributes

Extends from Modelica.​SIunits.​EnthalpyFlowRate.

Attributes

NameValue
quantity"EnthalpyFlowRate"
unit"W"
min-1e+8
max1e+8
start0.
nominal1000

Type Modelica.​Media.​Air.​MoistAir.​MassFraction
Type for mass fraction with medium specific attributes

Extends from Real.

Attributes

NameValue
quantity"MassFraction"
unit"kg/kg"
min0
max1
start0.
nominal0.1

Type Modelica.​Media.​Air.​MoistAir.​MoleFraction
Type for mole fraction with medium specific attributes

Extends from Real.

Attributes

NameValue
quantity"MoleFraction"
unit"mol/mol"
min0
max1
start0.
nominal0.1

Type Modelica.​Media.​Air.​MoistAir.​MolarMass
Type for molar mass with medium specific attributes

Extends from Modelica.​SIunits.​MolarMass.

Attributes

NameValue
quantity"MolarMass"
unit"kg/mol"
min0.001
max0.25
start0.
nominal0.032

Type Modelica.​Media.​Air.​MoistAir.​MolarVolume
Type for molar volume with medium specific attributes

Extends from Modelica.​SIunits.​MolarVolume.

Attributes

NameValue
quantity"MolarVolume"
unit"m3/mol"
min1e-6
max1000000
start0.
nominal1

Type Modelica.​Media.​Air.​MoistAir.​IsentropicExponent
Type for isentropic exponent with medium specific attributes

Extends from Modelica.​SIunits.​RatioOfSpecificHeatCapacities.

Attributes

NameValue
quantity"RatioOfSpecificHeatCapacities"
unit"1"
min1
max500000
start1.2
nominal1.2

Type Modelica.​Media.​Air.​MoistAir.​SpecificEnergy
Type for specific energy with medium specific attributes

Extends from Modelica.​SIunits.​SpecificEnergy.

Attributes

NameValue
quantity"SpecificEnergy"
unit"J/kg"
min-1e+8
max1e+8
start0.
nominal1000000

Type Modelica.​Media.​Air.​MoistAir.​SpecificInternalEnergy
Type for specific internal energy with medium specific attributes

Extends from Modelica.​Media.​Air.​MoistAir.​SpecificEnergy (Type for specific energy with medium specific attributes).

Attributes

NameValue
quantity"SpecificEnergy"
unit"J/kg"
min-1e+8
max1e+8
start0.
nominal1000000

Type Modelica.​Media.​Air.​MoistAir.​SpecificEnthalpy
Type for specific enthalpy with medium specific attributes

Extends from Modelica.​SIunits.​SpecificEnthalpy.

Attributes

NameValue
quantity"SpecificEnergy"
unit"J/kg"
min-1e+10
max1e+10
start0.
nominal1000000

Type Modelica.​Media.​Air.​MoistAir.​SpecificEntropy
Type for specific entropy with medium specific attributes

Extends from Modelica.​SIunits.​SpecificEntropy.

Attributes

NameValue
quantity"SpecificEntropy"
unit"J/(kg.K)"
min-1e+7
max1e+7
start0.
nominal1000

Type Modelica.​Media.​Air.​MoistAir.​SpecificHeatCapacity
Type for specific heat capacity with medium specific attributes

Extends from Modelica.​SIunits.​SpecificHeatCapacity.

Attributes

NameValue
quantity"SpecificHeatCapacity"
unit"J/(kg.K)"
min0
max1e+7
start1000
nominal1000

Type Modelica.​Media.​Air.​MoistAir.​SurfaceTension
Type for surface tension with medium specific attributes

Extends from Modelica.​SIunits.​SurfaceTension.

Attributes

NameValue
quantity"SurfaceTension"
unit"N/m"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Air.​MoistAir.​Temperature
Type for temperature with medium specific attributes

Extends from Modelica.​SIunits.​Temperature.

Attributes

NameValue
quantity"ThermodynamicTemperature"
unit"K"
displayUnit"degC"
min190
max647
start288.15
nominal300

Type Modelica.​Media.​Air.​MoistAir.​ThermalConductivity
Type for thermal conductivity with medium specific attributes

Extends from Modelica.​SIunits.​ThermalConductivity.

Attributes

NameValue
quantity"ThermalConductivity"
unit"W/(m.K)"
min0
max500
start1
nominal1

Type Modelica.​Media.​Air.​MoistAir.​PrandtlNumber
Type for Prandtl number with medium specific attributes

Extends from Modelica.​SIunits.​PrandtlNumber.

Attributes

NameValue
quantity"PrandtlNumber"
unit"1"
min0.001
max100000
start0.
nominal1

Type Modelica.​Media.​Air.​MoistAir.​VelocityOfSound
Type for velocity of sound with medium specific attributes

Extends from Modelica.​SIunits.​Velocity.

Attributes

NameValue
quantity"Velocity"
unit"m/s"
min0
max100000
start1000
nominal1000

Type Modelica.​Media.​Air.​MoistAir.​ExtraProperty
Type for unspecified, mass-specific property transported by flow

Extends from Real.

Attributes

NameValue
min0
maxModelica.Constants.inf
start1

Type Modelica.​Media.​Air.​MoistAir.​CumulativeExtraProperty
Type for conserved integral of unspecified, mass specific property

Extends from Real.

Attributes

NameValue
min0
maxModelica.Constants.inf
start1

Type Modelica.​Media.​Air.​MoistAir.​ExtraPropertyFlowRate
Type for flow rate of unspecified, mass-specific property

Extends from Real.

Attributes

NameValue
unit"kg/s"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Air.​MoistAir.​IsobaricExpansionCoefficient
Type for isobaric expansion coefficient with medium specific attributes

Extends from Real.

Attributes

NameValue
unit"1/K"
min0
max1e+8
start0.

Type Modelica.​Media.​Air.​MoistAir.​DipoleMoment
Type for dipole moment with medium specific attributes

Extends from Real.

Attributes

NameValue
quantity"ElectricDipoleMoment"
unit"debye"
min0
max2
start0.

Type Modelica.​Media.​Air.​MoistAir.​DerDensityByPressure
Type for partial derivative of density with respect to pressure with medium specific attributes

Extends from Modelica.​SIunits.​DerDensityByPressure.

Attributes

NameValue
unit"s2/m2"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Air.​MoistAir.​DerDensityByEnthalpy
Type for partial derivative of density with respect to enthalpy with medium specific attributes

Extends from Modelica.​SIunits.​DerDensityByEnthalpy.

Attributes

NameValue
unit"kg.s2/m5"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Air.​MoistAir.​DerEnthalpyByPressure
Type for partial derivative of enthalpy with respect to pressure with medium specific attributes

Extends from Modelica.​SIunits.​DerEnthalpyByPressure.

Attributes

NameValue
unit"J.m.s2/kg2"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Air.​MoistAir.​DerDensityByTemperature
Type for partial derivative of density with respect to temperature with medium specific attributes

Extends from Modelica.​SIunits.​DerDensityByTemperature.

Attributes

NameValue
unit"kg/(m3.K)"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Air.​MoistAir.​DerTemperatureByPressure
Type for partial derivative of temperature with respect to pressure with medium specific attributes

Extends from Real.

Attributes

NameValue
unit"K/Pa"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Record Modelica.​Media.​Air.​MoistAir.​SaturationProperties
Saturation properties of two phase medium

Information

This icon is indicates a record.

Extends from Modelica.​Icons.​Record (Icon for records).

Fields

TypeNameDescription
AbsolutePressurepsatSaturation pressure
TemperatureTsatSaturation temperature

Record Modelica.​Media.​Air.​MoistAir.​FluidLimits
Validity limits for fluid model

Information

The minimum pressure mostly applies to the liquid state only. The minimum density is also arbitrary, but is reasonable for technical applications to limit iterations in non-linear systems. The limits in enthalpy and entropy are used as safeguards in inverse iterations.

Extends from Modelica.​Icons.​Record (Icon for records).

Fields

TypeNameDescription
TemperatureTMINMinimum temperature
TemperatureTMAXMaximum temperature
DensityDMINMinimum density
DensityDMAXMaximum density
AbsolutePressurePMINMinimum pressure
AbsolutePressurePMAXMaximum pressure
SpecificEnthalpyHMINMinimum enthalpy
SpecificEnthalpyHMAXMaximum enthalpy
SpecificEntropySMINMinimum entropy
SpecificEntropySMAXMaximum entropy

Type Modelica.​Media.​Air.​MoistAir.​FixedPhase
Phase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use

Extends from Integer.

Attributes

NameValue
min0
max2
start0

Record Modelica.​Media.​Air.​MoistAir.​FluidConstants
Extended fluid constants

Information

This icon is indicates a record.

Extends from Modelica.​Media.​Interfaces.​Types.​IdealGas.​FluidConstants (Extended fluid constants).

Fields

TypeNameDescription
StringiupacNameComplete IUPAC name (or common name, if non-existent)
StringcasRegistryNumberChemical abstracts sequencing number (if it exists)
StringchemicalFormulaChemical formula, (brutto, nomenclature according to Hill
StringstructureFormulaChemical structure formula
MolarMassmolarMassMolar mass
TemperaturecriticalTemperatureCritical temperature
AbsolutePressurecriticalPressureCritical pressure
MolarVolumecriticalMolarVolumeCritical molar Volume
RealacentricFactorPitzer acentric factor
TemperaturemeltingPointMelting point at 101325 Pa
TemperaturenormalBoilingPointNormal boiling point (at 101325 Pa)
DipoleMomentdipoleMomentDipole moment of molecule in Debye (1 debye = 3.33564e10-30 C.m)
BooleanhasIdealGasHeatCapacityTrue if ideal gas heat capacity is available
BooleanhasCriticalDataTrue if critical data are known
BooleanhasDipoleMomentTrue if a dipole moment known
BooleanhasFundamentalEquationTrue if a fundamental equation
BooleanhasLiquidHeatCapacityTrue if liquid heat capacity is available
BooleanhasSolidHeatCapacityTrue if solid heat capacity is available
BooleanhasAccurateViscosityDataTrue if accurate data for a viscosity function is available
BooleanhasAccurateConductivityDataTrue if accurate data for thermal conductivity is available
BooleanhasVapourPressureCurveTrue if vapour pressure data, e.g., Antoine coefficients are known
BooleanhasAcentricFactorTrue if Pitzer acentric factor is known
SpecificEnthalpyHCRIT0Critical specific enthalpy of the fundamental equation
SpecificEntropySCRIT0Critical specific entropy of the fundamental equation
SpecificEnthalpydeltahDifference between specific enthalpy model (h_m) and f.eq. (h_f) (h_m - h_f)
SpecificEntropydeltasDifference between specific enthalpy model (s_m) and f.eq. (s_f) (s_m - s_f)

Record Modelica.​Media.​Air.​MoistAir.​ThermodynamicState
ThermodynamicState record for moist air

Information

This icon is indicates a record.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​ThermodynamicState (Thermodynamic state variables).

Fields

TypeNameDescription
AbsolutePressurepAbsolute pressure of medium
TemperatureTTemperature of medium
MassFractionX[nX]Mass fractions (= (component mass)/total mass m_i/m)

Model Modelica.​Media.​Air.​MoistAir.​BaseProperties
Moist air base properties record

Information

This model computes thermodynamic properties of moist air from three independent (thermodynamic or/and numerical) state variables. Preferred numerical states are temperature T, pressure p and the reduced composition vector Xi, which contains the water mass fraction only. As an EOS the ideal gas law is used and associated restrictions apply. The model can also be used in the fog region, when moisture is present in its liquid state. However, it is assumed that the liquid water volume is negligible compared to that of the gas phase. Computation of thermal properties is based on property data of dry air and water (source: VDI-Wärmeatlas), respectively. Besides the standard thermodynamic variables absolute and relative humidity, x_water and phi, respectively, are given by the model. Upper case X denotes absolute humidity with respect to mass of moist air while absolute humidity with respect to mass of dry air only is denoted by a lower case x throughout the model. See package description for further information.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​BaseProperties (Base properties (p, d, T, h, u, R, MM and, if applicable, X and Xi) of a medium).

Parameters

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

Connectors

TypeNameDescription
input InputAbsolutePressurepAbsolute pressure of medium
input InputMassFractionXi[nXi]Structurally independent mass fractions
input InputSpecificEnthalpyhSpecific enthalpy of medium

Function Modelica.​Media.​Air.​MoistAir.​setState_pTX
Return thermodynamic state as function of pressure p, temperature T and composition X

Information

The thermodynamic state record is computed from pressure p, temperature T and composition X.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Function Modelica.​Media.​Air.​MoistAir.​setState_phX
Return thermodynamic state as function of pressure p, specific enthalpy h and composition X

Information

The thermodynamic state record is computed from pressure p, specific enthalpy h and composition X.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Function Modelica.​Media.​Air.​MoistAir.​setState_psX
Return thermodynamic state as function of p, s and composition X or Xi

Information

The thermodynamic state record is computed from pressure p, specific enthalpy h and composition X.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​setState_psX (Return thermodynamic state as function of p, s and composition X or Xi).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Function Modelica.​Media.​Air.​MoistAir.​setState_dTX
Return thermodynamic state as function of density d, temperature T and composition X

Information

The thermodynamic state record is computed from density d, temperature T and composition X.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
DensitydDensity
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Function Modelica.​Media.​Air.​MoistAir.​setSmoothState
Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b

Information

This function is used to approximate the equation

    state = if x > 0 then state_a else state_b;

by a smooth characteristic, so that the expression is continuous and differentiable:

   state := smooth(1, if x >  x_small then state_a else
                      if x < -x_small then state_b else f(state_a, state_b));

This is performed by applying function Media.Common.smoothStep(..) on every element of the thermodynamic state record.

If mass fractions X[:] are approximated with this function then this can be performed for all nX mass fractions, instead of applying it for nX-1 mass fractions and computing the last one by the mass fraction constraint sum(X)=1. The reason is that the approximating function has the property that sum(state.X) = 1, provided sum(state_a.X) = sum(state_b.X) = 1. This can be shown by evaluating the approximating function in the abs(x) < x_small region (otherwise state.X is either state_a.X or state_b.X):

    X[1]  = smoothStep(x, X_a[1] , X_b[1] , x_small);
    X[2]  = smoothStep(x, X_a[2] , X_b[2] , x_small);
       ...
    X[nX] = smoothStep(x, X_a[nX], X_b[nX], x_small);

or

    X[1]  = c*(X_a[1]  - X_b[1])  + (X_a[1]  + X_b[1])/2
    X[2]  = c*(X_a[2]  - X_b[2])  + (X_a[2]  + X_b[2])/2;
       ...
    X[nX] = c*(X_a[nX] - X_b[nX]) + (X_a[nX] + X_b[nX])/2;
    c     = (x/x_small)*((x/x_small)^2 - 3)/4

Summing all mass fractions together results in

    sum(X) = c*(sum(X_a) - sum(X_b)) + (sum(X_a) + sum(X_b))/2
           = c*(1 - 1) + (1 + 1)/2
           = 1

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​setSmoothState (Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b).

Inputs

TypeNameDescription
Realxm_flow or dp
ThermodynamicStatestate_aThermodynamic state if x > 0
ThermodynamicStatestate_bThermodynamic state if x < 0
Realx_smallSmooth transition in the region -x_small < x < x_small

Outputs

TypeNameDescription
ThermodynamicStatestateSmooth thermodynamic state for all x (continuous and differentiable)

Function Modelica.​Media.​Air.​MoistAir.​dynamicViscosity
Return dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K

Information

Dynamic viscosity is computed from temperature using a simple polynomial for dry air. Range of validity is from 123.15 K to 1273.15 K. The influence of pressure and moisture is neglected.

Source: VDI Waermeatlas, 8th edition.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​dynamicViscosity (Return dynamic viscosity).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DynamicViscosityetaDynamic viscosity

Function Modelica.​Media.​Air.​MoistAir.​thermalConductivity
Return thermal conductivity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K

Information

Thermal conductivity is computed from temperature using a simple polynomial for dry air. Range of validity is from 123.15 K to 1273.15 K. The influence of pressure and moisture is neglected.

Source: VDI Waermeatlas, 8th edition.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​thermalConductivity (Return thermal conductivity).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
ThermalConductivitylambdaThermal conductivity

Function Modelica.​Media.​Air.​MoistAir.​prandtlNumber
Return the Prandtl number

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
PrandtlNumberPrPrandtl number

Function Modelica.​Media.​Air.​MoistAir.​pressure
Returns pressure of ideal gas as a function of the thermodynamic state record

Information

Pressure is returned from the thermodynamic state record input as a simple assignment.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​pressure (Return pressure).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
AbsolutePressurepPressure

Function Modelica.​Media.​Air.​MoistAir.​temperature
Return temperature of ideal gas as a function of the thermodynamic state record

Information

Temperature is returned from the thermodynamic state record input as a simple assignment.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​temperature (Return temperature).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Air.​MoistAir.​density
Returns density of ideal gas as a function of the thermodynamic state record

Information

Density is computed from pressure, temperature and composition in the thermodynamic state record applying the ideal gas law.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​density (Return density).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Air.​MoistAir.​specificEnthalpy
Return specific enthalpy of moist air as a function of the thermodynamic state record

Information

Specific enthalpy of moist air is computed from the thermodynamic state record. The fog region is included for both, ice and liquid fog.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​specificEnthalpy (Return specific enthalpy).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​specificInternalEnergy
Return specific internal energy of moist air as a function of the thermodynamic state record

Information

Specific internal energy is determined from the thermodynamic state record, assuming that the liquid or solid water volume is negligible.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​specificInternalEnergy (Return specific internal energy) and Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnergyuSpecific internal energy

Function Modelica.​Media.​Air.​MoistAir.​specificEntropy
Return specific entropy from thermodynamic state record, only valid for phi<1

Information

Specific entropy is calculated from the thermodynamic state record, assuming ideal gas behavior and including entropy of mixing. Liquid or solid water is not taken into account, the entire water content X[1] is assumed to be in the vapor state (relative humidity below 1.0).

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​specificEntropy (Return specific entropy).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy

Function Modelica.​Media.​Air.​MoistAir.​specificGibbsEnergy
Return specific Gibbs energy as a function of the thermodynamic state record, only valid for phi<1

Information

The Gibbs Energy is computed from the thermodynamic state record for moist air with a water content below saturation.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​specificGibbsEnergy (Return specific Gibbs energy) and Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnergygSpecific Gibbs energy

Function Modelica.​Media.​Air.​MoistAir.​specificHelmholtzEnergy
Return specific Helmholtz energy as a function of the thermodynamic state record, only valid for phi<1

Information

The Specific Helmholtz Energy is computed from the thermodynamic state record for moist air with a water content below saturation.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​specificHelmholtzEnergy (Return specific Helmholtz energy) and Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnergyfSpecific Helmholtz energy

Function Modelica.​Media.​Air.​MoistAir.​specificHeatCapacityCp
Return specific heat capacity at constant pressure as a function of the thermodynamic state record

Information

The specific heat capacity at constant pressure cp is computed from temperature and composition for a mixture of steam (X[1]) and dry air. All water is assumed to be in the vapor state.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​specificHeatCapacityCp (Return specific heat capacity at constant pressure).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycpSpecific heat capacity at constant pressure

Function Modelica.​Media.​Air.​MoistAir.​heatCapacity_cp
Alias for deprecated name

Information

The specific heat capacity at constant pressure cp is computed from temperature and composition for a mixture of steam (X[1]) and dry air. All water is assumed to be in the vapor state.

Extends from Modelica.​Media.​Air.​MoistAir.​specificHeatCapacityCp (Return specific heat capacity at constant pressure as a function of the thermodynamic state record).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycpSpecific heat capacity at constant pressure

Function Modelica.​Media.​Air.​MoistAir.​specificHeatCapacityCv
Return specific heat capacity at constant volume as a function of the thermodynamic state record

Information

The specific heat capacity at constant density cv is computed from temperature and composition for a mixture of steam (X[1]) and dry air. All water is assumed to be in the vapor state.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​specificHeatCapacityCv (Return specific heat capacity at constant volume).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycvSpecific heat capacity at constant volume

Function Modelica.​Media.​Air.​MoistAir.​heatCapacity_cv
Alias for deprecated name

Information

The specific heat capacity at constant density cv is computed from temperature and composition for a mixture of steam (X[1]) and dry air. All water is assumed to be in the vapor state.

Extends from Modelica.​Media.​Air.​MoistAir.​specificHeatCapacityCv (Return specific heat capacity at constant volume as a function of the thermodynamic state record).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycvSpecific heat capacity at constant volume

Function Modelica.​Media.​Air.​MoistAir.​isentropicExponent
Return isentropic exponent (only for gas fraction!)

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​isentropicExponent (Return isentropic exponent).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsentropicExponentgammaIsentropic exponent

Function Modelica.​Media.​Air.​MoistAir.​isentropicEnthalpy
Isentropic enthalpy (only valid for phi<1)

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​isentropicEnthalpy (Return isentropic enthalpy) and Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurep_downstreamDownstream pressure
ThermodynamicStaterefStateReference state for entropy

Outputs

TypeNameDescription
SpecificEnthalpyh_isIsentropic enthalpy

Function Modelica.​Media.​Air.​MoistAir.​velocityOfSound
Return velocity of sound

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​velocityOfSound (Return velocity of sound).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
VelocityOfSoundaVelocity of sound

Function Modelica.​Media.​Air.​MoistAir.​isobaricExpansionCoefficient
Return overall the isobaric expansion coefficient beta

Information

beta is defined as  1/v * der(v,T), with v = 1/d, at constant pressure p.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​isobaricExpansionCoefficient (Return overall the isobaric expansion coefficient beta).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsobaricExpansionCoefficientbetaIsobaric expansion coefficient

Function Modelica.​Media.​Air.​MoistAir.​beta
Alias for isobaricExpansionCoefficient for user convenience

Information

beta is defined as  1/v * der(v,T), with v = 1/d, at constant pressure p.

Extends from Modelica.​Media.​Air.​MoistAir.​isobaricExpansionCoefficient.

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsobaricExpansionCoefficientbetaIsobaric expansion coefficient

Function Modelica.​Media.​Air.​MoistAir.​isothermalCompressibility
Return overall the isothermal compressibility factor

Information


kappa is defined as - 1/v * der(v,p), with v = 1/d at constant temperature T.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​isothermalCompressibility (Return overall the isothermal compressibility factor).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsothermalCompressibilitykappaIsothermal compressibility

Function Modelica.​Media.​Air.​MoistAir.​kappa
Alias of isothermalCompressibility for user convenience

Information


kappa is defined as - 1/v * der(v,p), with v = 1/d at constant temperature T.

Extends from Modelica.​Media.​Air.​MoistAir.​isothermalCompressibility.

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsothermalCompressibilitykappaIsothermal compressibility

Function Modelica.​Media.​Air.​MoistAir.​density_derp_h
Return density derivative w.r.t. pressure at const specific enthalpy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​density_derp_h (Return density derivative w.r.t. pressure at const specific enthalpy).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByPressureddphDensity derivative w.r.t. pressure

Function Modelica.​Media.​Air.​MoistAir.​density_derh_p
Return density derivative w.r.t. specific enthalpy at constant pressure

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​density_derh_p (Return density derivative w.r.t. specific enthalpy at constant pressure).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByEnthalpyddhpDensity derivative w.r.t. specific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​density_derp_T
Return density derivative w.r.t. pressure at const temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​density_derp_T (Return density derivative w.r.t. pressure at const temperature).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByPressureddpTDensity derivative w.r.t. pressure

Function Modelica.​Media.​Air.​MoistAir.​density_derT_p
Return density derivative w.r.t. temperature at constant pressure

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​density_derT_p (Return density derivative w.r.t. temperature at constant pressure).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByTemperatureddTpDensity derivative w.r.t. temperature

Function Modelica.​Media.​Air.​MoistAir.​density_derX
Return density derivative w.r.t. mass fraction

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​density_derX (Return density derivative w.r.t. mass fraction).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DensitydddX[nX]Derivative of density w.r.t. mass fraction

Function Modelica.​Media.​Air.​MoistAir.​molarMass
Return the molar mass of the medium

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​molarMass (Return the molar mass of the medium).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
MolarMassMMMixture molar mass

Function Modelica.​Media.​Air.​MoistAir.​specificEnthalpy_pTX
Return specific enthalpy from p, T, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​specificEntropy_pTX
Return specific enthalpy from p, T, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy

Function Modelica.​Media.​Air.​MoistAir.​density_pTX
Return density from p, T, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Air.​MoistAir.​temperature_phX
Return temperature from p, h, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Air.​MoistAir.​density_phX
Return density from p, h, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Air.​MoistAir.​temperature_psX
Return temperature from p,s, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Air.​MoistAir.​density_psX
Return density from p, s, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Air.​MoistAir.​specificEnthalpy_psX
Return specific enthalpy from p, s, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Type Modelica.​Media.​Air.​MoistAir.​MassFlowRate
Type for mass flow rate with medium specific attributes

Extends from Modelica.​SIunits.​MassFlowRate.

Attributes

NameValue
quantity"MassFlowRate." + mediumName
unit"kg/s"
min-100000
max100000
start0.

Function Modelica.​Media.​Air.​MoistAir.​gasConstant
Return ideal gas constant as a function from thermodynamic state, only valid for phi<1

Information

The ideal gas constant for moist air is computed from thermodynamic state assuming that all water is in the gas phase.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​gasConstant (Return the gas constant of the mixture (also for liquids)).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Outputs

TypeNameDescription
SpecificHeatCapacityRMixture gas constant

Function Modelica.​Media.​Air.​MoistAir.​moleToMassFractions
Return mass fractions X from mole fractions

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
MoleFractionmoleFractions[:]Mole fractions of mixture
MolarMassMMX[:]Molar masses of components

Outputs

TypeNameDescription
MassFractionX[size(moleFractions, 1)]Mass fractions of gas mixture

Function Modelica.​Media.​Air.​MoistAir.​massToMoleFractions
Return mole fractions from mass fractions X

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
MassFractionX[:]Mass fractions of mixture
MolarMassMMX[:]Molar masses of components

Outputs

TypeNameDescription
MoleFractionmoleFractions[size(X, 1)]Mole fractions of gas mixture

Function Modelica.​Media.​Air.​MoistAir.​saturationPressure
Return saturation pressure of water as a function of temperature T between 190 and 647.096 K

Information

Saturation pressure of water in the liquid and the solid region is computed using correlations. Functions for the solid and the liquid region, respectively, are combined using the first derivative continuous spliceFunction. This functions range of validity is from 190 to 647.096 K. For more information on the type of correlation used, see the documentation of the linked functions.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​saturationPressure (Return saturation pressure of condensing fluid).

Inputs

TypeNameDescription
TemperatureTsatSaturation temperature

Outputs

TypeNameDescription
AbsolutePressurepsatSaturation pressure

Function Modelica.​Media.​Air.​MoistAir.​enthalpyOfVaporization
Return enthalpy of vaporization of water as a function of temperature T, 273.16 to 647.096 K

Information

Enthalpy of vaporization of water is computed from temperature in the region of 273.16 to 647.096 K.

Source: W Wagner, A Pruss: "International equations for the saturation properties of ordinary water substance. Revised according to the international temperature scale of 1990" (1993).

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​enthalpyOfVaporization (Return vaporization enthalpy of condensing fluid).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificEnthalpyr0Vaporization enthalpy

Function Modelica.​Media.​Air.​MoistAir.​enthalpyOfLiquid
Return enthalpy of liquid water as a function of temperature T(use enthalpyOfWater instead)

Information

Specific enthalpy of liquid water is computed from temperature using a polynomial approach. Kept for compatibility reasons, better use enthalpyOfWater instead.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​enthalpyOfLiquid (Return liquid enthalpy of condensing fluid).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificEnthalpyhLiquid enthalpy

Function Modelica.​Media.​Air.​MoistAir.​enthalpyOfGas
Return specific enthalpy of gas (air and steam) as a function of temperature T and composition X

Information

Specific enthalpy of moist air is computed from temperature, provided all water is in the gaseous state. The first entry in the composition vector X must be the mass fraction of steam. For a function that also covers the fog region please refer to h_pTX.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​enthalpyOfGas (Return enthalpy of non-condensing gas mixture).

Inputs

TypeNameDescription
TemperatureTTemperature
MassFractionX[:]Vector of mass fractions

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​enthalpyOfCondensingGas
Return specific enthalpy of steam as a function of temperature T

Information

Specific enthalpy of steam is computed from temperature.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​enthalpyOfCondensingGas (Return enthalpy of condensing gas (most often steam)).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​enthalpyOfNonCondensingGas
Return specific enthalpy of dry air as a function of temperature T

Information

Specific enthalpy of dry air is computed from temperature.

Extends from Modelica.​Media.​Interfaces.​PartialCondensingGases.​enthalpyOfNonCondensingGas (Return enthalpy of the non-condensing species).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​Xsaturation
Return absolute humidity per unit mass of moist air at saturation as a function of the thermodynamic state record

Information

Absolute humidity per unit mass of moist air at saturation is computed from pressure and temperature in the state record. Note, that unlike X_sat in the BaseProperties model this mass fraction refers to mass of moist air at saturation.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
MassFractionX_satSteam mass fraction of sat. boundary

Function Modelica.​Media.​Air.​MoistAir.​xsaturation
Return absolute humidity per unit mass of dry air at saturation as a function of the thermodynamic state record

Information

Absolute humidity per unit mass of dry air at saturation is computed from pressure and temperature in the thermodynamic state record.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
MassFractionx_satAbsolute humidity per unit mass of dry air

Function Modelica.​Media.​Air.​MoistAir.​xsaturation_pT
Return absolute humidity per unit mass of dry air at saturation as a function of pressure p and temperature T

Information

Absolute humidity per unit mass of dry air at saturation is computed from pressure and temperature.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature

Outputs

TypeNameDescription
MassFractionx_satAbsolute humidity per unit mass of dry air

Function Modelica.​Media.​Air.​MoistAir.​massFraction_pTphi
Return steam mass fraction as a function of relative humidity phi and temperature T

Information

Absolute humidity per unit mass of moist air is computed from temperature, pressure and relative humidity.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
RealphiRelative humidity (0 ... 1.0)

Outputs

TypeNameDescription
MassFractionX_steamAbsolute humidity, steam mass fraction

Function Modelica.​Media.​Air.​MoistAir.​relativeHumidity_pTX
Return relative humidity as a function of pressure p, temperature T and composition X

Information

Relative humidity is computed from pressure, temperature and composition with 1.0 as the upper limit at saturation. Water mass fraction is the first entry in the composition vector.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
MassFractionX[:]Composition

Outputs

TypeNameDescription
RealphiRelative humidity

Function Modelica.​Media.​Air.​MoistAir.​relativeHumidity
Return relative humidity as a function of the thermodynamic state record

Information

Relative humidity is computed from the thermodynamic state record with 1.0 as the upper limit at saturation.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Outputs

TypeNameDescription
RealphiRelative humidity

Function Modelica.​Media.​Air.​MoistAir.​gasConstant_X
Return ideal gas constant as a function from composition X

Information

The ideal gas constant for moist air is computed from the gas phase composition. The first entry in composition vector X is the steam mass fraction of the gas phase.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
MassFractionX[:]Gas phase composition

Outputs

TypeNameDescription
SpecificHeatCapacityRIdeal gas constant

Function Modelica.​Media.​Air.​MoistAir.​saturationPressureLiquid
Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K

Information

Saturation pressure of water above the triple point temperature is computed from temperature.

Source: A Saul, W Wagner: "International equations for the saturation properties of ordinary water substance", equation 2.1

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTsatSaturation temperature

Outputs

TypeNameDescription
AbsolutePressurepsatSaturation pressure

Function Modelica.​Media.​Air.​MoistAir.​saturationPressureLiquid_der
Derivative function for 'saturationPressureLiquid'

Information

Saturation pressure of water above the triple point temperature is computed from temperature.

Source: A Saul, W Wagner: "International equations for the saturation properties of ordinary water substance", equation 2.1

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTsatSaturation temperature
RealdTsatSaturation temperature derivative

Outputs

TypeNameDescription
Realpsat_derSaturation pressure derivative

Function Modelica.​Media.​Air.​MoistAir.​sublimationPressureIce
Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K

Information

Sublimation pressure of water below the triple point temperature is computed from temperature.

Source: W Wagner, A Saul, A Pruss: "International equations for the pressure along the melting and along the sublimation curve of ordinary water substance", equation 3.5

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTsatSublimation temperature

Outputs

TypeNameDescription
AbsolutePressurepsatSublimation pressure

Function Modelica.​Media.​Air.​MoistAir.​sublimationPressureIce_der
Derivative function for 'sublimationPressureIce'

Information

Sublimation pressure of water below the triple point temperature is computed from temperature.

Source: W Wagner, A Saul, A Pruss: "International equations for the pressure along the melting and along the sublimation curve of ordinary water substance", equation 3.5

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTsatSublimation temperature
RealdTsatSublimation temperature derivative

Outputs

TypeNameDescription
Realpsat_derSublimation pressure derivative

Function Modelica.​Media.​Air.​MoistAir.​saturationPressure_der
Derivative function for 'saturationPressure'

Information

Derivative function of saturationPressure

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTsatSaturation temperature
RealdTsatTime derivative of saturation temperature

Outputs

TypeNameDescription
Realpsat_derSaturation pressure

Function Modelica.​Media.​Air.​MoistAir.​saturationTemperature
Return saturation temperature of water as a function of (partial) pressure p

Information

Computes saturation temperature from (partial) pressure via numerical inversion of the function saturationPressure. Therefore additional inputs are required (or the defaults are used) for upper and lower temperature bounds.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureT_minLower boundary of solution
TemperatureT_maxUpper boundary of solution

Outputs

TypeNameDescription
TemperatureTSaturation temperature

Function Modelica.​Media.​Air.​MoistAir.​HeatCapacityOfWater
Return specific heat capacity of water (liquid only) as a function of temperature T

Information

The specific heat capacity of water (liquid and solid) is calculated using a polynomial approach and data from VDI-Waermeatlas 8. Edition (Db1)

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificHeatCapacitycp_flSpecific heat capacity of liquid

Function Modelica.​Media.​Air.​MoistAir.​enthalpyOfWater
Computes specific enthalpy of water (solid/liquid) near atmospheric pressure from temperature T

Information

Specific enthalpy of water (liquid and solid) is computed from temperature using constant properties as follows:

Pressure is assumed to be around 1 bar. This function is usually used to determine the specific enthalpy of the liquid or solid fraction of moist air.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy of water

Function Modelica.​Media.​Air.​MoistAir.​enthalpyOfWater_der
Derivative function of enthalpyOfWater

Information

Derivative function for enthalpyOfWater.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTTemperature
RealdTTime derivative of temperature

Outputs

TypeNameDescription
RealdhTime derivative of specific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​T_phX
Return temperature as a function of pressure p, specific enthalpy h and composition X

Information

Temperature is computed from pressure, specific enthalpy and composition via numerical inversion of function h_pTX.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions of composition

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Air.​MoistAir.​h_pTX
Return specific enthalpy of moist air as a function of pressure p, temperature T and composition X

Information

Specific enthalpy of moist air is computed from pressure, temperature and composition with X[1] as the total water mass fraction. The fog region is included for both, ice and liquid fog.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions of moist air

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy at p, T, X

Function Modelica.​Media.​Air.​MoistAir.​h_pTX_der
Derivative function of h_pTX

Information

Derivative function for h_pTX.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions of moist air
RealdpPressure derivative
RealdTTemperature derivative
RealdX[:]Composition derivative

Outputs

TypeNameDescription
Realh_derTime derivative of specific enthalpy

Function Modelica.​Media.​Air.​MoistAir.​isentropicEnthalpyApproximation
Approximate calculation of h_is from upstream properties, downstream pressure, gas part only

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurep2Downstream pressure
ThermodynamicStatestateThermodynamic state at upstream location

Outputs

TypeNameDescription
SpecificEnthalpyh_isIsentropic enthalpy

Function Modelica.​Media.​Air.​MoistAir.​specificInternalEnergy_pTX
Return specific internal energy of moist air as a function of pressure p, temperature T and composition X

Information

Specific internal energy is determined from pressure p, temperature T and composition X, assuming that the liquid or solid water volume is negligible.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions of moist air

Outputs

TypeNameDescription
SpecificInternalEnergyuSpecific internal energy

Function Modelica.​Media.​Air.​MoistAir.​specificInternalEnergy_pTX_der
Derivative function for specificInternalEnergy_pTX

Information

Derivative function for specificInternalEnergy_pTX.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions of moist air
RealdpPressure derivative
RealdTTemperature derivative
RealdX[:]Mass fraction derivatives

Outputs

TypeNameDescription
Realu_derSpecific internal energy derivative

Function Modelica.​Media.​Air.​MoistAir.​T_psX
Return temperature as a function of pressure p, specific entropy s and composition X

Information

Temperature is computed from pressure, specific entropy and composition via numerical inversion of function specificEntropy.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions of composition

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Air.​MoistAir.​s_pTX
Return specific entropy of moist air as a function of pressure p, temperature T and composition X (only valid for phi<1)

Information

Specific entropy of moist air is computed from pressure, temperature and composition with X[1] as the total water mass fraction.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions of moist air

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy at p, T, X

Function Modelica.​Media.​Air.​MoistAir.​s_pTX_der
Return specific entropy of moist air as a function of pressure p, temperature T and composition X (only valid for phi<1)

Information

Specific entropy of moist air is computed from pressure, temperature and composition with X[1] as the total water mass fraction.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions of moist air
RealdpDerivative of pressure
RealdTDerivative of temperature
RealdX[nX]Derivative of mass fractions

Outputs

TypeNameDescription
RealdsSpecific entropy at p, T, X

Generated 2018-12-12 12:13:50 EST by MapleSim.