Modelica.Media.Air.ReferenceMoistAir

ReferenceMoistAir: Detailed moist air model (143.15 ... 2000 K)

Information


Calculation of fluid properties for moist air in the region from 143.15 Kelvin to 2000 Kelvin at pressures up to 10 MPa. This model of moist air is based on the diploma thesis of Hellriegel [10] with small modifications. Moist air is treated as an ideal mixture of the real fluids air and water.

Restriction

The functions provided by this package shall be used inside of the restricted limits according to the referenced literature.

Usage

The package MoistAir can be used as any other medium model (see User's Guide of Media Library for further information). The package defines two boolean constants useEnhancementFactor and useDissociation, which give the user fine grained control of the calculations.

Constant Default Value Meaning
useEnhancementFactor false The enhancement factor is used in the calculation of the saturation partial pressure of water in moist air. It is always very close to 1 except for high pressures (>2 MPa) and low temperatures (<233.15 K). For pressures less than 1 MPa this factor can be safely set to 1. Its calculation is very expensive, since it can only be calculated by an iterative method.
useDissociation true The effect of dissociation is taken into account for temperatures greater than 773.15 K.

Calculation algorithms

Nomenclature
p Mixture pressure in Pa
T Temperature in K
xw Absolutue humidity in kg(water)/kg(dry air)
xws Absolutue humidity on saturation boundary in kg(water)/kg(dry air)
φ Relative humidity (only defined for unsaturated humid air)
Unsaturated and saturated humid air (0 ≤ xw ≤ xws)

Ideal mixture of dry air and steam

Supersaturated humid air (liquid fog and ice fog)

Liquid fog (xw > xwsw) and T ≥ 273.16 K

Ideal mixture of saturated humid air and water

Ice fog (xw > xwsw) and T < 273.16 K

Ideal mixture of saturated humid air and ice

Saturation pressure of water in moist air

The saturation pressure pds of water in moist air is calculated by pds = f*psat, where

Dissociation

For temperatures above 773.15 K effects of dissociation are taken into account. Dissociation is modeled according to [11]. For high temperatures the calculated values for moist air with 0 kg(water)/kg(dry air) (i.e. dry air) may differ from those calculated by the package Modelica.Media.Air.ReferenceAir, because there no dissociation is considered.

References

[1] Thermodynamic Properties of Air and Mixtures of Nitrogen, Argon, and Oxygen From 60 to 2000 K at Pressures to 2000 MPa. J. Phys. Chem. Ref. Data, Vol. 29, No. 3, 2000.
[2] Viscosity and Thermal Conductivity Equations for Nitrogen, Oxygen, Argon, and Air. International Journal of Thermophysics, Vol. 25, No. 1, January 2004
[3] Revised Release on the IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use. 2009 International Association for the Properties of Water and Steam.
[4] Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam. 2007 International Association for the Properties of Water and Steam.
[5] Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance. 2008 International Association for the Properties of Water and Steam
[6] Release on the IAPWS Formulation 2011 for the Thermal Conductivity of Ordinary Water Substance. 2011 International Association for the Properties of Water and Steam.
[7] Revised Release on the Equation of State 2006 for H2O Ice Ih. 2009 International Association for the Properties of Water and Steam.
[8] Revised Release on the Pressure along the Melting and Sublimation Curves of Ordinary Water Substance. 2011 International Association for the Properties of Water and Steam.
[9] Determination of Thermodynamic and Transport Properties of Humid Air for Power-Cycle Calculations. 2009 PTB, Braunschweig, Germany.
[10] Berechnung der thermodynamischen Zustandsfunktionen von feuchter Luft in energietechnischen Prozessmodellierungen. 2001 Diplomarbeit, Zittau.
[11] Thermodynamische Stoffwerte von feuchter Luft und Verbrennungsgasen. 2003 VDI-Richtlinie 4670.
[12] Wärmeübertragung in Dampferzeugern und Wärmetauschern. 1985 FDBR-Fachbuchreihe, Bd. 2, Vulkan Verlag Essen.

References

Lemmon, E. W., Jacobsen, R. T., Penoncello, S. G., Friend, D. G.:
Thermodynamic Properties of Air and Mixtures of Nitrogen, Argon, and Oxygen From 60 to 2000 K at Pressures to 2000 MPa. J. Phys. Chem. Ref. Data, Vol. 29, No. 3, 2000.
Lemmon, E. W., Jacobsen, R. T.:
Viscosity and Thermal Conductivity Equations for Nitrogen, Oxygen, Argon, and Air. International Journal of Thermophysics, Vol. 25, No. 1, January 2004

Verification

The verification report for the development of this library is provided here.

Acknowledgment

This library was developed by XRG Simulation GmbH as part of the Clean Sky JTI project (Project title: MoMoLib-Modelica Model Library Development for Media, Magnetic Systems and Wavelets; Project number: 296369; Theme: JTI-CS-2011-1-SGO-02-026: Modelica Model Library Development Part I). The partial financial support for the development of this library by the European Union is highly appreciated.

Some parts of this library refer to the ThermoFluid library developed at Lund University (http://thermofluid.sourceforge.net).

Disclaimer

In no event will XRG Simulation GmbH be liable for any direct, indirect, incidental, special, exemplary, or consequential damages, arising in any way out of the use of this software, even if advised of the possibility of such damage.

Copyright (C) 2013, XRG Simulation GmbH

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

Package Content

NameDescription
Water=1Index of water (in substanceNames, massFractions X, etc.)
Air=2Index of air (in substanceNames, massFractions X, etc.)
useEnhancementFactor=falseUse the enhancement factor in the calculations
useDissociation=trueTake dissociation into account for high temperatures
k_mair=steam.MM/dryair.MMRatio of molar weights
dryair=ReferenceAir.Air_Utilities.Basic.Constants 
steam=Utilities.Water95_Utilities.Constants 
MMX={steam.MM,dryair.MM}Molar masses of components
Modelica.Media.Air.ReferenceMoistAir.ThermodynamicState ThermodynamicState ThermodynamicState record for moist air
Modelica.Media.Air.ReferenceMoistAir.BaseProperties BaseProperties Moist air base properties record
Modelica.Media.Air.ReferenceMoistAir.setState_pTX setState_pTX Return thermodynamic state as function of pressure p, temperature T and composition X
Modelica.Media.Air.ReferenceMoistAir.setState_phX setState_phX Return thermodynamic state as function of pressure p, specific enthalpy h and composition X
Modelica.Media.Air.ReferenceMoistAir.setState_psX setState_psX Return thermodynamic state as function of pressure p, specific enthalpy h and composition X
Modelica.Media.Air.ReferenceMoistAir.setState_dTX setState_dTX Return thermodynamic state as function of density d, temperature T and composition X
Modelica.Media.Air.ReferenceMoistAir.setSmoothState setSmoothState Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b
Modelica.Media.Air.ReferenceMoistAir.Xsaturation Xsaturation Return absolute humitity per unit mass of moist air at saturation as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.xsaturation xsaturation Return absolute humitity per unit mass of dry air at saturation as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.massFraction_pTphi massFraction_pTphi Return mass fractions as a function of pressure, temperature and relative humidity
Modelica.Media.Air.ReferenceMoistAir.massFractionWaterVapor massFractionWaterVapor Return mass fraction of water vapor
Modelica.Media.Air.ReferenceMoistAir.massFractionWaterNonVapor massFractionWaterNonVapor Return mass fraction of liquid and solid water
Modelica.Media.Air.ReferenceMoistAir.massFractionSaturation massFractionSaturation Return saturation mass fractions
Modelica.Media.Air.ReferenceMoistAir.massFractionSaturation_ppsat massFractionSaturation_ppsat Return mass fvraction at saturation boundary given pressure and saturation pressure
Modelica.Media.Air.ReferenceMoistAir.massFraction_waterContent massFraction_waterContent Return mass fractions as a function of pressure, temperature and absolute humidity in kg(water)/kg(dry air)
Modelica.Media.Air.ReferenceMoistAir.waterContent_X waterContent_X Return water content in kg(water)/kg(dry air) given mass fractions
Modelica.Media.Air.ReferenceMoistAir.relativeHumidity relativeHumidity Return relativ humidity
Modelica.Media.Air.ReferenceMoistAir.gasConstant gasConstant Return ideal gas constant as a function from thermodynamic state, only valid for phi<1
Modelica.Media.Air.ReferenceMoistAir.saturationPressureLiquid saturationPressureLiquid Return saturation pressure of water as a function of temperature T
Modelica.Media.Air.ReferenceMoistAir.sublimationPressureIce sublimationPressureIce Return sublimation pressure of water as a function of temperature T between 223.16 and 273.16 K
Modelica.Media.Air.ReferenceMoistAir.saturationPressure saturationPressure Return saturation pressure of condensing fluid
Modelica.Media.Air.ReferenceMoistAir.saturationTemperature saturationTemperature Return saturation temperature of condensing fluid
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfVaporization enthalpyOfVaporization Return enthalpy of vaporization of water
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfLiquid enthalpyOfLiquid Return enthalpy of liquid water
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfGas enthalpyOfGas Return specific enthalpy of gas (air and steam)
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfCondensingGas enthalpyOfCondensingGas Return specific enthalpy of steam
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfNonCondensingGas enthalpyOfNonCondensingGas Return specific enthalpy of dry air
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfDryAir enthalpyOfDryAir Return specific enthalpy of dry air
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWater enthalpyOfWater Return specific enthalpy of water (solid + liquid + steam)
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWaterVapor enthalpyOfWaterVapor Return specific enthalpy of steam
Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWaterNonVapor enthalpyOfWaterNonVapor Return enthalpy of liquid and solid water
Modelica.Media.Air.ReferenceMoistAir.pressure pressure Returns pressure of ideal gas as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.temperature temperature Return temperature of ideal gas as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.density density Returns density as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.specificEnthalpy specificEnthalpy Return specific enthalpy of moist air as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.specificInternalEnergy specificInternalEnergy Return specific internal energy of moist air as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.specificEntropy specificEntropy Return specific entropy from thermodynamic state record, only valid for phi<1
Modelica.Media.Air.ReferenceMoistAir.specificGibbsEnergy specificGibbsEnergy Return specific Gibbs energy as a function of the thermodynamic state record, only valid for phi<1
Modelica.Media.Air.ReferenceMoistAir.specificHelmholtzEnergy specificHelmholtzEnergy Return specific Helmholtz energy as a function of the thermodynamic state record, only valid for phi<1
Modelica.Media.Air.ReferenceMoistAir.specificHeatCapacityCp specificHeatCapacityCp Return specific heat capacity at constant pressure as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.specificHeatCapacityCv specificHeatCapacityCv Return specific heat capacity at constant volume as a function of the thermodynamic state record
Modelica.Media.Air.ReferenceMoistAir.isentropicExponent isentropicExponent Return isentropic exponent
Modelica.Media.Air.ReferenceMoistAir.isentropicEnthalpy isentropicEnthalpy Return isentropic enthalpy
Modelica.Media.Air.ReferenceMoistAir.velocityOfSound velocityOfSound Return velocity of sound
Modelica.Media.Air.ReferenceMoistAir.molarMass molarMass Return the molar mass of the medium
Modelica.Media.Air.ReferenceMoistAir.dynamicViscosity dynamicViscosity Return dynamic viscosity as a function of the thermodynamic state record, valid from 73.15 K to 373.15 K
Modelica.Media.Air.ReferenceMoistAir.thermalConductivity thermalConductivity Return thermal conductivity as a function of the thermodynamic state record, valid from 73.15 K to 373.15 K
Modelica.Media.Air.ReferenceMoistAir.Utilities Utilities Utilitiy package for moist air
Inherited
Modelica.Media.Interfaces.PartialRealCondensingGases.specificEntropy_phX specificEntropy_phX Return specific entropy as a functio of pressure, specific enthalpy and mass fractions
fluidConstantsConstant data for the fluid
Modelica.Media.Interfaces.PartialMixtureMedium.moleToMassFractions moleToMassFractions Return mass fractions X from mole fractions
Modelica.Media.Interfaces.PartialMixtureMedium.massToMoleFractions massToMoleFractions Return mole fractions from mass fractions X
ThermoStatesEnumeration type for independent variables
mediumName="unusablePartialMedium"Name of the medium
substanceNames={mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
extraPropertiesNames=fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
singleState= true, if u and d are not a function of pressure
reducedX=true= true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details)
fixedX=false= true if medium contains the equation X = reference_X
reference_p=101325Reference pressure of Medium: default 1 atmosphere
reference_T=298.15Reference temperature of Medium: default 25 deg Celsius
reference_X=fill(1/nX, nX)Default mass fractions of medium
p_default=101325Default value for pressure of medium (for initialization)
T_default=Modelica.SIunits.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
h_default=specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
X_default=reference_XDefault value for mass fractions of medium (for initialization)
nS=size(substanceNames, 1)Number of substances
nX=nSNumber of mass fractions
nXi=if fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
nC=size(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
C_nominal=1.0e-6*ones(nC)Default for the nominal values for the extra properties
Modelica.Media.Interfaces.PartialMedium.FluidConstants FluidConstants Critical, triple, molecular and other standard data of fluid
Modelica.Media.Interfaces.PartialMedium.prandtlNumber prandtlNumber Return the Prandtl number
Modelica.Media.Interfaces.PartialMedium.heatCapacity_cp heatCapacity_cp Alias for deprecated name
Modelica.Media.Interfaces.PartialMedium.heatCapacity_cv heatCapacity_cv Alias for deprecated name
Modelica.Media.Interfaces.PartialMedium.isobaricExpansionCoefficient isobaricExpansionCoefficient Return overall the isobaric expansion coefficient beta
Modelica.Media.Interfaces.PartialMedium.beta beta Alias for isobaricExpansionCoefficient for user convenience
Modelica.Media.Interfaces.PartialMedium.isothermalCompressibility isothermalCompressibility Return overall the isothermal compressibility factor
Modelica.Media.Interfaces.PartialMedium.kappa kappa Alias of isothermalCompressibility for user convenience
Modelica.Media.Interfaces.PartialMedium.density_derp_h density_derp_h Return density derivative w.r.t. pressure at const specific enthalpy
Modelica.Media.Interfaces.PartialMedium.density_derh_p density_derh_p Return density derivative w.r.t. specific enthalpy at constant pressure
Modelica.Media.Interfaces.PartialMedium.density_derp_T density_derp_T Return density derivative w.r.t. pressure at const temperature
Modelica.Media.Interfaces.PartialMedium.density_derT_p density_derT_p Return density derivative w.r.t. temperature at constant pressure
Modelica.Media.Interfaces.PartialMedium.density_derX density_derX Return density derivative w.r.t. mass fraction
Modelica.Media.Interfaces.PartialMedium.specificEnthalpy_pTX specificEnthalpy_pTX Return specific enthalpy from p, T, and X or Xi
Modelica.Media.Interfaces.PartialMedium.specificEntropy_pTX specificEntropy_pTX Return specific enthalpy from p, T, and X or Xi
Modelica.Media.Interfaces.PartialMedium.density_pTX density_pTX Return density from p, T, and X or Xi
Modelica.Media.Interfaces.PartialMedium.temperature_phX temperature_phX Return temperature from p, h, and X or Xi
Modelica.Media.Interfaces.PartialMedium.density_phX density_phX Return density from p, h, and X or Xi
Modelica.Media.Interfaces.PartialMedium.temperature_psX temperature_psX Return temperature from p,s, and X or Xi
Modelica.Media.Interfaces.PartialMedium.density_psX density_psX Return density from p, s, and X or Xi
Modelica.Media.Interfaces.PartialMedium.specificEnthalpy_psX specificEnthalpy_psX Return specific enthalpy from p, s, and X or Xi
MassFlowRate Type for mass flow rate with medium specific attributes
AbsolutePressure Type for absolute pressure with medium specific attributes
Density Type for density with medium specific attributes
DynamicViscosity Type for dynamic viscosity with medium specific attributes
EnthalpyFlowRate Type for enthalpy flow rate with medium specific attributes
MassFraction Type for mass fraction with medium specific attributes
MoleFraction Type for mole fraction with medium specific attributes
MolarMass Type for molar mass with medium specific attributes
MolarVolume Type for molar volume with medium specific attributes
IsentropicExponent Type for isentropic exponent with medium specific attributes
SpecificEnergy Type for specific energy with medium specific attributes
SpecificInternalEnergy Type for specific internal energy with medium specific attributes
SpecificEnthalpy Type for specific enthalpy with medium specific attributes
SpecificEntropy Type for specific entropy with medium specific attributes
SpecificHeatCapacity Type for specific heat capacity with medium specific attributes
SurfaceTension Type for surface tension with medium specific attributes
Temperature Type for temperature with medium specific attributes
ThermalConductivity Type for thermal conductivity with medium specific attributes
PrandtlNumber Type for Prandtl number with medium specific attributes
VelocityOfSound Type for velocity of sound with medium specific attributes
ExtraProperty Type for unspecified, mass-specific property transported by flow
CumulativeExtraProperty Type for conserved integral of unspecified, mass specific property
ExtraPropertyFlowRate Type for flow rate of unspecified, mass-specific property
IsobaricExpansionCoefficient Type for isobaric expansion coefficient with medium specific attributes
DipoleMoment Type for dipole moment with medium specific attributes
DerDensityByPressure Type for partial derivative of density with respect to pressure with medium specific attributes
DerDensityByEnthalpy Type for partial derivative of density with respect to enthalpy with medium specific attributes
DerEnthalpyByPressure Type for partial derivative of enthalpy with respect to pressure with medium specific attributes
DerDensityByTemperature Type for partial derivative of density with respect to temperature with medium specific attributes
DerTemperatureByPressure Type for partial derivative of temperature with respect to pressure with medium specific attributes
Modelica.Media.Interfaces.Types.SaturationProperties SaturationProperties Saturation properties of two phase medium
Modelica.Media.Interfaces.Types.FluidLimits FluidLimits Validity limits for fluid model
FixedPhase Phase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use
Modelica.Media.Interfaces.Types.Basic Basic The most basic version of a record used in several degrees of detail
Modelica.Media.Interfaces.Types.IdealGas IdealGas The ideal gas version of a record used in several degrees of detail
Modelica.Media.Interfaces.Types.TwoPhase TwoPhase The two phase fluid version of a record used in several degrees of detail

Modelica.Media.Air.ReferenceMoistAir.ThermodynamicState Modelica.Media.Air.ReferenceMoistAir.ThermodynamicState

ThermodynamicState record for moist air

Information

Extends from (Thermodynamic state variables).

Modelica.Media.Air.ReferenceMoistAir.BaseProperties Modelica.Media.Air.ReferenceMoistAir.BaseProperties

Moist air base properties record

Information

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

Parameters

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

Modelica.Media.Air.ReferenceMoistAir.setState_pTX Modelica.Media.Air.ReferenceMoistAir.setState_pTX

Return thermodynamic state as function of pressure p, temperature T and composition X

Information

Extends from (Return thermodynamic state as function of p, T and composition X or Xi).

Inputs

NameDescription
pPressure [Pa]
TTemperature [K]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.Air.ReferenceMoistAir.setState_phX Modelica.Media.Air.ReferenceMoistAir.setState_phX

Return thermodynamic state as function of pressure p, specific enthalpy h and composition X

Information

Extends from (Return thermodynamic state as function of p, h and composition X or Xi).

Inputs

NameDescription
pPressure [Pa]
hSpecific enthalpy [J/kg]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.Air.ReferenceMoistAir.setState_psX Modelica.Media.Air.ReferenceMoistAir.setState_psX

Return thermodynamic state as function of pressure p, specific enthalpy h and composition X

Information

Extends from (Return thermodynamic state as function of p, s and composition X or Xi).

Inputs

NameDescription
pPressure [Pa]
sSpecific entropy [J/(kg.K)]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.Air.ReferenceMoistAir.setState_dTX Modelica.Media.Air.ReferenceMoistAir.setState_dTX

Return thermodynamic state as function of density d, temperature T and composition X

Information

Extends from (Return thermodynamic state as function of d, T and composition X or Xi).

Inputs

NameDescription
dDensity [kg/m3]
TTemperature [K]
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
stateThermodynamic state record

Modelica.Media.Air.ReferenceMoistAir.setSmoothState Modelica.Media.Air.ReferenceMoistAir.setSmoothState

Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b

Information

Extends from (Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b).

Inputs

NameDescription
xm_flow or dp
state_aThermodynamic state if x > 0
state_bThermodynamic state if x < 0
x_smallSmooth transition in the region -x_small < x < x_small

Outputs

NameDescription
stateSmooth thermodynamic state for all x (continuous and differentiable)

Modelica.Media.Air.ReferenceMoistAir.Xsaturation Modelica.Media.Air.ReferenceMoistAir.Xsaturation

Return absolute humitity per unit mass of moist air at saturation as a function of the thermodynamic state record

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
X_satSteam mass fraction of sat. boundary [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.xsaturation Modelica.Media.Air.ReferenceMoistAir.xsaturation

Return absolute humitity per unit mass of dry air at saturation as a function of the thermodynamic state record

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
x_satAbsolute humidity per unit mass of dry air [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.massFraction_pTphi Modelica.Media.Air.ReferenceMoistAir.massFraction_pTphi

Return mass fractions as a function of pressure, temperature and relative humidity

Information

Extends from (Return mass fractions as a function of pressure, temperature and relative humidity).

Inputs

NameDescription
pPressure [Pa]
TTemperature [K]
phiRelative humidity

Outputs

NameDescription
X[:]Mass fractions [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.massFractionWaterVapor Modelica.Media.Air.ReferenceMoistAir.massFractionWaterVapor

Return mass fraction of water vapor

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
XMass fraction of water varpor [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.massFractionWaterNonVapor Modelica.Media.Air.ReferenceMoistAir.massFractionWaterNonVapor

Return mass fraction of liquid and solid water

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
XMass fraction of water varpor [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.massFractionSaturation Modelica.Media.Air.ReferenceMoistAir.massFractionSaturation

Return saturation mass fractions

Information

Extends from (Return saturation mass fractions).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
Xsat[:]Saturation mass fractions [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.massFractionSaturation_ppsat Modelica.Media.Air.ReferenceMoistAir.massFractionSaturation_ppsat

Return mass fvraction at saturation boundary given pressure and saturation pressure

Information

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

Inputs

NameDescription
pAmbient pressure [Pa]
psatSaturation pressure [Pa]

Outputs

NameDescription
X[:]Mass fraction [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.massFraction_waterContent Modelica.Media.Air.ReferenceMoistAir.massFraction_waterContent

Return mass fractions as a function of pressure, temperature and absolute humidity in kg(water)/kg(dry air)

Information

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

Inputs

NameDescription
xwWater content in kg(water)/kg(dry air)

Outputs

NameDescription
X[:]Mass fractions [kg/kg]

Modelica.Media.Air.ReferenceMoistAir.waterContent_X Modelica.Media.Air.ReferenceMoistAir.waterContent_X

Return water content in kg(water)/kg(dry air) given mass fractions

Information

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

Inputs

NameDescription
X[:]Mass fractions [kg/kg]

Outputs

NameDescription
xwWater content in kg(water)/kg(dry air)

Modelica.Media.Air.ReferenceMoistAir.relativeHumidity Modelica.Media.Air.ReferenceMoistAir.relativeHumidity

Return relativ humidity

Information

Extends from (Return relativ humidity).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
phiRelative humidity

Modelica.Media.Air.ReferenceMoistAir.gasConstant Modelica.Media.Air.ReferenceMoistAir.gasConstant

Return ideal gas constant as a function from thermodynamic state, only valid for phi<1

Information

Extends from (Return the gas constant of the mixture (also for liquids)).

Inputs

NameDescription
stateThermodynamic state

Outputs

NameDescription
RMixture gas constant [J/(kg.K)]

Modelica.Media.Air.ReferenceMoistAir.saturationPressureLiquid Modelica.Media.Air.ReferenceMoistAir.saturationPressureLiquid

Return saturation pressure of water as a function of temperature T

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
psatSaturation pressure [Pa]

Modelica.Media.Air.ReferenceMoistAir.sublimationPressureIce Modelica.Media.Air.ReferenceMoistAir.sublimationPressureIce

Return sublimation pressure of water as a function of temperature T between 223.16 and 273.16 K

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
psatSublimation pressure [Pa]

Modelica.Media.Air.ReferenceMoistAir.saturationPressure Modelica.Media.Air.ReferenceMoistAir.saturationPressure

Return saturation pressure of condensing fluid

Information

Extends from (Return saturation pressure of condensing fluid).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
psatSaturation pressure [Pa]

Modelica.Media.Air.ReferenceMoistAir.saturationTemperature Modelica.Media.Air.ReferenceMoistAir.saturationTemperature

Return saturation temperature of condensing fluid

Information

Extends from (Return saturation temperature of condensing fluid).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
TsatSaturation temperature [K]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfVaporization Modelica.Media.Air.ReferenceMoistAir.enthalpyOfVaporization

Return enthalpy of vaporization of water

Information

Extends from (Return vaporization enthalpy of condensing fluid).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
r0Vaporization enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfLiquid Modelica.Media.Air.ReferenceMoistAir.enthalpyOfLiquid

Return enthalpy of liquid water

Information

Extends from (Return liquid enthalpy of condensing fluid).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hLiquid enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfGas Modelica.Media.Air.ReferenceMoistAir.enthalpyOfGas

Return specific enthalpy of gas (air and steam)

Information

Extends from (Return enthalpy of non-condensing gas mixture).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfCondensingGas Modelica.Media.Air.ReferenceMoistAir.enthalpyOfCondensingGas

Return specific enthalpy of steam

Information

Extends from (Return enthalpy of condensing gas (most often steam)).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfNonCondensingGas Modelica.Media.Air.ReferenceMoistAir.enthalpyOfNonCondensingGas

Return specific enthalpy of dry air

Information

Extends from (Return enthalpy of the non-condensing species).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfDryAir Modelica.Media.Air.ReferenceMoistAir.enthalpyOfDryAir

Return specific enthalpy of dry air

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWater Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWater

Return specific enthalpy of water (solid + liquid + steam)

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy of water [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWaterVapor Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWaterVapor

Return specific enthalpy of steam

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWaterNonVapor Modelica.Media.Air.ReferenceMoistAir.enthalpyOfWaterNonVapor

Return enthalpy of liquid and solid water

Information

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

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy of water [J/kg]

Modelica.Media.Air.ReferenceMoistAir.pressure Modelica.Media.Air.ReferenceMoistAir.pressure

Returns pressure of ideal gas as a function of the thermodynamic state record

Information

Extends from (Return pressure).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
pPressure [Pa]

Modelica.Media.Air.ReferenceMoistAir.temperature Modelica.Media.Air.ReferenceMoistAir.temperature

Return temperature of ideal gas as a function of the thermodynamic state record

Information

Extends from (Return temperature).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
TTemperature [K]

Modelica.Media.Air.ReferenceMoistAir.density Modelica.Media.Air.ReferenceMoistAir.density

Returns density as a function of the thermodynamic state record

Information

Extends from (Return density).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
dDensity [kg/m3]

Modelica.Media.Air.ReferenceMoistAir.specificEnthalpy Modelica.Media.Air.ReferenceMoistAir.specificEnthalpy

Return specific enthalpy of moist air as a function of the thermodynamic state record

Information

Extends from (Return specific enthalpy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
hSpecific enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.specificInternalEnergy Modelica.Media.Air.ReferenceMoistAir.specificInternalEnergy

Return specific internal energy of moist air as a function of the thermodynamic state record

Information

Extends from (Return specific internal energy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
uSpecific internal energy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.specificEntropy Modelica.Media.Air.ReferenceMoistAir.specificEntropy

Return specific entropy from thermodynamic state record, only valid for phi<1

Information

Extends from (Return specific entropy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
sSpecific entropy [J/(kg.K)]

Modelica.Media.Air.ReferenceMoistAir.specificGibbsEnergy Modelica.Media.Air.ReferenceMoistAir.specificGibbsEnergy

Return specific Gibbs energy as a function of the thermodynamic state record, only valid for phi<1

Information

Extends from (Return specific Gibbs energy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
gSpecific Gibbs energy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.specificHelmholtzEnergy Modelica.Media.Air.ReferenceMoistAir.specificHelmholtzEnergy

Return specific Helmholtz energy as a function of the thermodynamic state record, only valid for phi<1

Information

Extends from (Return specific Helmholtz energy).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
fSpecific Helmholtz energy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.specificHeatCapacityCp Modelica.Media.Air.ReferenceMoistAir.specificHeatCapacityCp

Return specific heat capacity at constant pressure as a function of the thermodynamic state record

Information

Extends from (Return specific heat capacity at constant pressure).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
cpSpecific heat capacity at constant pressure [J/(kg.K)]

Modelica.Media.Air.ReferenceMoistAir.specificHeatCapacityCv Modelica.Media.Air.ReferenceMoistAir.specificHeatCapacityCv

Return specific heat capacity at constant volume as a function of the thermodynamic state record

Information

Extends from (Return specific heat capacity at constant volume).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
cvSpecific heat capacity at constant volume [J/(kg.K)]

Modelica.Media.Air.ReferenceMoistAir.isentropicExponent Modelica.Media.Air.ReferenceMoistAir.isentropicExponent

Return isentropic exponent

Information

Extends from (Return isentropic exponent).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
gammaIsentropic exponent [1]

Modelica.Media.Air.ReferenceMoistAir.isentropicEnthalpy Modelica.Media.Air.ReferenceMoistAir.isentropicEnthalpy

Return isentropic enthalpy

Information

Extends from (Return isentropic enthalpy).

Inputs

NameDescription
p_downstreamDownstream pressure [Pa]
refStateReference state for entropy

Outputs

NameDescription
h_isIsentropic enthalpy [J/kg]

Modelica.Media.Air.ReferenceMoistAir.velocityOfSound Modelica.Media.Air.ReferenceMoistAir.velocityOfSound

Return velocity of sound

Information

Extends from (Return velocity of sound).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
aVelocity of sound [m/s]

Modelica.Media.Air.ReferenceMoistAir.molarMass Modelica.Media.Air.ReferenceMoistAir.molarMass

Return the molar mass of the medium

Information

Extends from (Return the molar mass of the medium).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
MMMixture molar mass [kg/mol]

Modelica.Media.Air.ReferenceMoistAir.dynamicViscosity Modelica.Media.Air.ReferenceMoistAir.dynamicViscosity

Return dynamic viscosity as a function of the thermodynamic state record, valid from 73.15 K to 373.15 K

Information

Extends from (Return dynamic viscosity).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
etaDynamic viscosity [Pa.s]

Modelica.Media.Air.ReferenceMoistAir.thermalConductivity Modelica.Media.Air.ReferenceMoistAir.thermalConductivity

Return thermal conductivity as a function of the thermodynamic state record, valid from 73.15 K to 373.15 K

Information

Extends from (Return thermal conductivity).

Inputs

NameDescription
stateThermodynamic state record

Outputs

NameDescription
lambdaThermal conductivity [W/(m.K)]

Automatically generated Mon Sep 23 17:20:58 2013.