packageMoistAir

Extends from Modelica.Media.Interfaces.PartialMedium (Partial medium properties (base package of all media packages)).

Parameters

TypeNameDefaultDescription
Modelica.Media.Interfaces.Choices.IndependentVariablesThermoStates (from PartialMedium)Enumeration type for independent variables
StringmediumName (from PartialMedium)"unusablePartialMedium"Name of the medium
String[:]substanceNames (from PartialMedium){mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
String[:]extraPropertiesNames (from PartialMedium)fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
BooleansingleState (from PartialMedium)= true, if u and d are not a function of pressure
BooleanreducedX (from PartialMedium)true= true, if medium contains the equation sum(X) = 1.0; set reducedX=true, if only one substance (see docu for details)
BooleanfixedX (from PartialMedium)false= true, if medium contains the equation X = reference_X
AbsolutePressurereference_p (from PartialMedium)101325Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T (from PartialMedium)298.15Reference temperature of Medium: default 25 deg Celsius
MassFraction[nX]reference_X (from PartialMedium)fill(1/nX, nX)Default mass fractions of medium
AbsolutePressurep_default (from PartialMedium)101325Default value for pressure of medium (for initialization)
TemperatureT_default (from PartialMedium)Modelica.Units.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
SpecificEnthalpyh_default (from PartialMedium)specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
MassFraction[nX]X_default (from PartialMedium)reference_XDefault value for mass fractions of medium (for initialization)
ExtraProperty[nC]C_default (from PartialMedium)fill(0, nC)Default value for trace substances of medium (for initialization)
IntegernS (from PartialMedium)size(substanceNames, 1)Number of substances
IntegernX (from PartialMedium)nSNumber of mass fractions
IntegernXi (from PartialMedium)if fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
IntegernC (from PartialMedium)size(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
Real[nC]C_nominal (from PartialMedium)1.0e-6*ones(nC)Default for the nominal values for the extra properties
IntegerWater1Index of water (in substanceNames, massFractions X, etc.)
IntegerAir2Index of air (in substanceNames, massFractions X, etc.)
Realk_mairsteam.MM/dryair.MMRatio of molar weights
SI.MolarMassMMX{steam.MM, dryair.MM}Molar masses of components
FluidConstantsfluidConstants{Modelica.Media.IdealGases.Common.FluidData.H2O, Modelica.Media.IdealGases.Common.FluidData.N2}Constant data for the fluid

Contents

NameDescription
dryair
steam
water
ice
ThermodynamicStateThermodynamic state variables of moist air
BasePropertiesMoist air base properties record
setState_pTX
setState_phX
setState_dTX
setSmoothStateReturn thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b
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
massFraction_pTphiReturn steam mass fraction as a function of relative humidity phi and temperature T
relativeHumidity_pTXReturn relative humidity as a function of pressure p, temperature T and composition X
relativeHumidityReturn relative humidity as a function of the thermodynamic state record
gasConstantReturn ideal gas constant as a function from thermodynamic state, remains valid with liquid water in the mixture
r_dTXReturn ideal gas constant as a function from thermodynamic d, T and X, remains valid with liquid water in the mixture
r_dTX_derReturn ideal gas constant derivative as a function from thermodynamic d, T and X, remains valid with liquid water in the mixture
gasConstant_XReturn ideal gas constant as a function from composition X (only valid for phi<1)
moleToMassFractionsReturn mass fractions X from mole fractions
massToMoleFractionsReturn mole fractions from mass fractions X
saturationDensityReturn saturation density of steam as a function of temperature T
saturationDensity_derDerivative function for 'saturationDensity'
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.15K to 647.096K (region 4 from the IF97 definition)
saturationPressureLiquid_derDerivative function for 'saturationPressureLiquid'
sublimationPressureIceReturn sublimation pressure of water as a function of temperature T between 190 and 273.16 K
sublimationPressureIce_derDerivative function for 'sublimationPressureIce'
enthalpyOfVaporizationReturn vaporization enthalpy of condensing fluid
enthalpyOfLiquidReturn enthalpy of liquid water as a function of temperature T(use enthalpyOfWater instead)
enthalpyOfGasReturn specific enthalpy of gas (air and steam) as a function of temperature T and composition X (only valide for phi<1)
enthalpyOfCondensingGasReturn specific enthalpy of steam as a function of temperature T
enthalpyOfNonCondensingGasReturn specific enthalpy of dry air as a function of temperature T
enthalpyOfWaterComputes specific enthalpy of water (solid/liquid) near atmospheric pressure from temperature T
enthalpyOfWater_derDerivative function of enthalpyOfWater
pressureReturns pressure of ideal gas as a function of the thermodynamic state record
temperatureReturn temperature of ideal gas as a function of the thermodynamic state record
T_phXReturn temperature as a function of pressure p, specific enthalpy h and composition X
densityReturns density as a function of the thermodynamic state record
d_phXReturns density as a function of pressure p, enthalpy h and composition X
specificEnthalpyReturn specific enthalpy of moist air as a function of the thermodynamic state record
h_dTXReturn specific enthalpy of moist air as a function of density d, temperature T and composition X
h_dTX_derDerivative function of h_dTX
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
isentropicExponentReturn isentropic exponent (only for gas fraction!)
isentropicEnthalpyApproximationApproximate calculation of h_is from upstream properties, downstream pressure, gas part only
specificInternalEnergyReturn specific internal energy of moist air as a function of the thermodynamic state record
specificInternalEnergy_dTXReturn specific internal energy of moist air as a function of density d, temperature T and composition X
specificInternalEnergy_dTX_derDerivative function for specificInternalEnergy_dTX
specificEntropyReturn specific entropy from thermodynamic state record
s_dTXReturn specific entropy of moist air as a function of density d, temperature T and composition X
s_dTX_derDerivative function of h_dTX
specificGibbsEnergyReturn specific Gibbs energy as a function of the thermodynamic state record, only valid for phi<1
specificHelmholtzEnergyReturn specific Helmholtz energy as a function of the thermodynamic state record, only valid for phi<1
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, only valide for phi<1
dynamicViscosityReturn dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K
thermalConductivityReturn thermal conductivity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K
velocityOfSound
isobaricExpansionCoefficient
isothermalCompressibility
isentropicEnthalpyIsentropic enthalpy (only valid for phi<1)
UtilitiesUtility functions