Package Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir
Moist air without condensation

Information

Extends from Modelica.​Media.​IdealGases.​MixtureGases.​AirSteam (Air and steam mixture (no condensation!, pseudo-mixture)).

Package Contents

NameDescription
AbsolutePressureType for absolute pressure with medium specific attributes
BasePropertiesBase properties (p, d, T, h, u, R, MM, X, and Xi of NASA mixture gas
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
densityReturn density of ideal gas
density_derh_pReturn density derivative w.r.t. specific enthalpy at constant pressure
density_derp_hReturn density derivative w.r.t. pressure at const specific enthalpy
density_derp_TReturn density derivative by pressure at constant temperature
density_derT_pReturn density derivative by temperature at constant pressure
density_derXReturn density derivative by mass fraction
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 mixture dynamic viscosity
EnthalpyFlowRateType for enthalpy flow rate with medium specific attributes
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 gasConstant
gasMixtureViscosityReturn viscosities of gas mixtures at low pressures (Wilke method)
h_TXReturn specific enthalpy
h_TX_derReturn specific enthalpy derivative
heatCapacity_cpAlias for deprecated name
heatCapacity_cvAlias for deprecated name
IdealGasThe ideal gas version of a record used in several degrees of detail
isentropicEnthalpyReturn isentropic enthalpy
isentropicEnthalpyApproximationApproximate method of calculating h_is from upstream properties and downstream pressure
IsentropicExponentType for isentropic exponent with medium specific attributes
isentropicExponentReturn isentropic exponent
IsobaricExpansionCoefficientType for isobaric expansion coefficient with medium specific attributes
isobaricExpansionCoefficientReturn isobaric expansion coefficient beta
isothermalCompressibilityReturn isothermal compressibility factor
kappaAlias of isothermalCompressibility for user convenience
lowPressureThermalConductivityReturn thermal conductivities of low-pressure gas mixtures (Mason and Saxena Modification)
MassFlowRateType for mass flow rate with medium specific attributes
MassFractionType for mass fraction with medium specific attributes
massToMoleFractionsReturn mole fractions from mass fractions X
MixEntropyReturn mixing entropy of ideal gases / R
mixtureViscosityChungReturn the viscosity of gas mixtures without access to component viscosities (Chung, et. al. rules)
MolarMassType for molar mass with medium specific attributes
molarMassReturn molar mass of mixture
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
pressureReturn pressure of ideal gas
s_TXReturn temperature dependent part of the entropy, expects full entropy vector
SaturationPropertiesSaturation properties of two phase medium
setSmoothStateReturn thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b
setState_dTXReturn thermodynamic state as function of d, T and composition X
setState_phXReturn thermodynamic state as function of p, h and composition X
setState_psXReturn thermodynamic state as function of p, s and composition X
setState_pTXReturn thermodynamic state as function of p, T and composition X
SpecificEnergyType for specific energy with medium specific attributes
SpecificEnthalpyType for specific enthalpy with medium specific attributes
specificEnthalpyReturn specific enthalpy
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
specificEntropy_pTXReturn specific enthalpy from p, T, and X or Xi
specificGibbsEnergyReturn specific Gibbs energy
SpecificHeatCapacityType for specific heat capacity with medium specific attributes
specificHeatCapacityCpReturn specific heat capacity at constant pressure
specificHeatCapacityCvReturn specific heat capacity at constant volume from temperature and gas data
specificHelmholtzEnergyReturn specific Helmholtz energy
SpecificInternalEnergyType for specific internal energy with medium specific attributes
specificInternalEnergyReturn specific internal energy
SurfaceTensionType for surface tension with medium specific attributes
T_hXReturn temperature from specific enthalpy and mass fraction
T_psXReturn temperature from pressure, specific entropy and mass fraction
TemperatureType for temperature with medium specific attributes
temperatureReturn temperature of ideal gas
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 for low pressure gas mixtures
ThermodynamicStateThermodynamic state variables
TwoPhaseThe two phase fluid version of a record used in several degrees of detail
VelocityOfSoundType for velocity of sound with medium specific attributes
velocityOfSoundReturn velocity of sound

Package Constants

TypeNameValueDescription
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
DataRecorddata[:]{Common.SingleGasesData.H2O, Common.SingleGasesData.Air}Data records of ideal gas substances
BooleanexcludeEnthalpyOfFormationtrueIf true, enthalpy of formation Hf is not included in specific enthalpy h
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]{Common.FluidData.H2O, 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)
SpecificEnthalpyh_offset0User defined offset for reference enthalpy, if referenceChoice = UserDefined
StringmediumName"MoistAir"Name of the medium
IntegermethodForThermalConductivity1 
MolarMassMMX[nX]data[msim/UNKNOWN].​MMMolar 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)
BooleanreducedXfalse= 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.03, 0.97}Default mass fractions of medium
ReferenceEnthalpyreferenceChoiceReferenceEnthalpy.​ZeroAt0KChoice of reference enthalpy
BooleansingleStatefalse= true, if u and d are not a function of pressure
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
MassFractionX_default[nX]reference_XDefault value for mass fractions of medium (for initialization)

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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
start1000000
nominal1000000

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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
start10
nominal10

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​SpecificInternalEnergy
Type for specific internal energy with medium specific attributes

Extends from Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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
startif referenceChoice == ReferenceEnthalpy.ZeroAt0K then 300000 else if referenceChoice == ReferenceEnthalpy.UserDefined then h_offset else 0
nominal100000

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​Temperature
Type for temperature with medium specific attributes

Extends from Modelica.​SIunits.​Temperature.

Attributes

NameValue
quantity"ThermodynamicTemperature"
unit"K"
displayUnit"degC"
min200
max6000
start500
nominal500

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​ExtraProperty
Type for unspecified, mass-specific property transported by flow

Extends from Real.

Attributes

NameValue
min0
maxModelica.Constants.inf
start1

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​CumulativeExtraProperty
Type for conserved integral of unspecified, mass specific property

Extends from Real.

Attributes

NameValue
min0
maxModelica.Constants.inf
start1

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​DipoleMoment
Type for dipole moment with medium specific attributes

Extends from Real.

Attributes

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

Type Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​ThermodynamicState
Thermodynamic state variables

Information

This icon is indicates a record.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​BaseProperties
Base properties (p, d, T, h, u, R, MM, X, and Xi of NASA mixture gas

Information

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

The BaseProperties model contains the following 7+nXi variables (nXi is the number of independent mass fractions defined in package PartialMedium):

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

In order to implement an actual medium model, one can extend from this base model and add 5 equations that provide relations among these variables. Equations will also have to be added in order to set all the variables within the ThermodynamicState record state.

If standardOrderComponents=true, the full composition vector X[nX] is determined by the equations contained in this base class, depending on the independent mass fraction vector Xi[nXi].

Additional 2 + nXi equations will have to be provided when using the BaseProperties model, in order to fully specify the thermodynamic conditions. The input connector qualifier applied to p, h, and nXi indirectly declares the number of missing equations, permitting advanced equation balance checking by Modelica tools. Please note that this doesn't mean that the additional equations should be connection equations, nor that exactly those variables should be supplied, in order to complete the model. For further information, see the Modelica.Media User's guide, and Section 4.7 (Balanced Models) of the Modelica 3.0 specification.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​setState_pTX
Return thermodynamic state as function of p, T and composition X

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestate 

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​setState_phX
Return thermodynamic state as function of p, h and composition X

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestate 

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​setState_psX
Return thermodynamic state as function of p, s and composition X

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestate 

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​setState_dTX
Return thermodynamic state as function of d, T and composition X

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
DensitydDensity
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestate 

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​dynamicViscosity
Return mixture dynamic viscosity

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DynamicViscosityetaDynamic viscosity

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​thermalConductivity
Return thermal conductivity for low pressure gas mixtures

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record
IntegermethodMethod to compute single component thermal conductivity

Outputs

TypeNameDescription
ThermalConductivitylambdaThermal conductivity

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​pressure
Return pressure of ideal gas

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
AbsolutePressurepPressure

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​temperature
Return temperature of ideal gas

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​density
Return density of ideal gas

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​specificEnthalpy
Return specific enthalpy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​specificEnthalpy (Return specific enthalpy) and Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​specificInternalEnergy
Return specific internal energy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​specificEntropy
Return specific entropy

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​specificGibbsEnergy
Return specific Gibbs energy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​specificHelmholtzEnergy
Return specific Helmholtz energy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​specificHeatCapacityCp
Return specific heat capacity at constant pressure

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycpSpecific heat capacity at constant pressure

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​heatCapacity_cp
Alias for deprecated name

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​specificHeatCapacityCp (Return specific heat capacity at constant pressure).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycpSpecific heat capacity at constant pressure

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​specificHeatCapacityCv
Return specific heat capacity at constant volume from temperature and gas data

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycvSpecific heat capacity at constant volume

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​heatCapacity_cv
Alias for deprecated name

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​specificHeatCapacityCv (Return specific heat capacity at constant volume from temperature and gas data).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycvSpecific heat capacity at constant volume

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​isentropicExponent
Return isentropic exponent

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsentropicExponentgammaIsentropic exponent

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​isentropicEnthalpy
Return isentropic enthalpy

Information

This function computes an isentropic state transformation:

  1. A medium is in a particular state, refState.
  2. The enthalpy at another state (h_is) shall be computed under the assumption that the state transformation from refState to h_is is performed with a change of specific entropy ds = 0 and the pressure of state h_is is p_downstream and the composition X upstream and downstream is assumed to be the same.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​isentropicEnthalpy (Return isentropic enthalpy).

Inputs

TypeNameDescription
AbsolutePressurep_downstreamDownstream pressure
ThermodynamicStaterefStateReference state for entropy
BooleanexactFlag whether exact or approximate version should be used

Outputs

TypeNameDescription
SpecificEnthalpyh_isIsentropic enthalpy

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​velocityOfSound
Return velocity of sound

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​velocityOfSound (Return velocity of sound) and Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
VelocityOfSoundaVelocity of sound

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​isobaricExpansionCoefficient
Return 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.​PartialMixtureMedium.​isobaricExpansionCoefficient (Return overall the isobaric expansion coefficient beta).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsobaricExpansionCoefficientbetaIsobaric expansion coefficient

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​isobaricExpansionCoefficient (Return isobaric expansion coefficient beta).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsobaricExpansionCoefficientbetaIsobaric expansion coefficient

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​isothermalCompressibility
Return 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.​PartialMixtureMedium.​isothermalCompressibility (Return overall the isothermal compressibility factor).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsothermalCompressibilitykappaIsothermal compressibility

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​isothermalCompressibility (Return isothermal compressibility factor).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsothermalCompressibilitykappaIsothermal compressibility

Partial Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​density_derp_h
Return density derivative w.r.t. pressure at const specific enthalpy

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByPressureddphDensity derivative w.r.t. pressure

Partial Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​density_derh_p
Return density derivative w.r.t. specific enthalpy at constant pressure

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByEnthalpyddhpDensity derivative w.r.t. specific enthalpy

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​density_derp_T
Return density derivative by pressure at constant temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​density_derT_p
Return density derivative by temperature at constant pressure

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMixtureMedium.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​density_derX
Return density derivative by mass fraction

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

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

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​molarMass
Return molar mass of mixture

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
MolarMassMMMixture molar mass

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​gasConstant
Return gasConstant

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Outputs

TypeNameDescription
SpecificHeatCapacityRMixture gas constant

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​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.​IdealGases.​MixtureGases.​simpleMoistAir.​h_TX
Return specific enthalpy

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
TemperatureTTemperature
MassFractionX[nX]Independent Mass fractions of gas mixture
BooleanexclEnthFormIf true, enthalpy of formation Hf is not included in specific enthalpy h
ReferenceEnthalpyrefChoiceChoice of reference enthalpy
SpecificEnthalpyh_offUser defined offset for reference enthalpy, if referenceChoice = UserDefined

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy at temperature T

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​h_TX_der
Return specific enthalpy derivative

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
TemperatureTTemperature
MassFractionX[nX]Independent Mass fractions of gas mixture
BooleanexclEnthFormIf true, enthalpy of formation Hf is not included in specific enthalpy h
ReferenceEnthalpyrefChoiceChoice of reference enthalpy
SpecificEnthalpyh_offUser defined offset for reference enthalpy, if referenceChoice = UserDefined
RealdTTemperature derivative
RealdX[nX]Independent mass fraction derivative

Outputs

TypeNameDescription
Realh_derSpecific enthalpy at temperature T

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​MixEntropy
Return mixing entropy of ideal gases / R

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
MoleFractionx[:]Mole fraction of mixture

Outputs

TypeNameDescription
RealsmixMixing entropy contribution, divided by gas constant

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​s_TX
Return temperature dependent part of the entropy, expects full entropy vector

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
TemperatureTTemperature
MassFractionX[nX]Mass fraction

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​isentropicEnthalpyApproximation
Approximate method of calculating h_is from upstream properties and downstream pressure

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.​IdealGases.​MixtureGases.​simpleMoistAir.​gasMixtureViscosity
Return viscosities of gas mixtures at low pressures (Wilke method)

Information

Simplification of the kinetic theory (Chapman and Enskog theory) approach neglecting the second-order effects.

This equation has been extensively tested (Amdur and Mason, 1958; Bromley and Wilke, 1951; Cheung, 1958; Dahler, 1959; Gandhi and Saxena, 1964; Ranz and Brodowsky, 1962; Saxena and Gambhir, 1963a; Strunk, et al., 1964; Vanderslice, et al. 1962; Wright and Gray, 1962). In most cases, only nonpolar mixtures were compared, and very good results obtained. For some systems containing hydrogen as one component, less satisfactory agreement was noted. Wilke's method predicted mixture viscosities that were larger than experimental for the H2-N2 system, but for H2-NH3, it underestimated the viscosities.
Gururaja, et al. (1967) found that this method also overpredicted in the H2-O2 case but was quite accurate for the H2-CO2 system.
Wilke's approximation has proved reliable even for polar-polar gas mixtures of aliphatic alcohols (Reid and Belenyessy, 1960). The principal reservation appears to lie in those cases where Mi>>Mj and etai>>etaj.

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

Inputs

TypeNameDescription
MoleFractionyi[:]Mole fractions
MolarMassM[size(yi, 1)]Mole masses
DynamicViscosityeta[size(yi, 1)]Pure component viscosities

Outputs

TypeNameDescription
DynamicViscosityetamViscosity of the mixture

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​mixtureViscosityChung
Return the viscosity of gas mixtures without access to component viscosities (Chung, et. al. rules)

Information

Equation to estimate the viscosity of gas mixtures at low pressures.
It is a simplification of an extension of the rigorous kinetic theory of Chapman and Enskog to determine the viscosity of multicomponent mixtures, at low pressures and with a factor to correct for molecule shape and polarity.

The input argument Kappa is a special correction for highly polar substances such as alcohols and acids.
Values of kappa for a few such materials:

Compound
Kappa
Compound
Kappa
Methanol
0.215
n-Pentanol
0.122
Ethanol
0.175
n-Hexanol
0.114
n-Propanol
0.143
n-Heptanol
0.109
i-Propanol
0.143
Acetic Acid
0.0916
n-Butanol
0.132
Water
0.076
i-Butanol
0.132

Chung, et al. (1984) suggest that for other alcohols not shown in the table:
    
    kappa = 0.0682 + 4.704*[(number of -OH groups)]/[molecular weight]

S.I. units relation for the debyes: 
                                                       1 debye = 3.162e-25 (J.m^3)^(1/2)

References

[1] THE PROPERTIES OF GASES AND LIQUIDS, Fifth Edition,
          Bruce E. Poling, John M. Prausnitz, John P. O'Connell.
[2] Chung, T.-H., M. Ajlan, L. L. Lee, and K. E. Starling: Ind. Eng. Chem. Res., 27: 671 (1988).
[3] Chung, T.-H., L. L. Lee, and K. E. Starling; Ing. Eng. Chem. Fundam., 23: 3 ()1984).

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

Inputs

TypeNameDescription
TemperatureTTemperature
TemperatureTc[nX]Critical temperatures
MolarVolumeVcrit[nX]Critical volumes (m3/mol)
Realw[nX]Acentric factors
Realmu[nX]Dipole moments (debyes)
MolarMassMolecularWeights[nX]Molecular weights (kg/mol)
MoleFractiony[nX]Molar Fractions
Realkappa[nX]Association Factors

Outputs

TypeNameDescription
DynamicViscosityetaMixtureMixture viscosity (Pa.s)

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​lowPressureThermalConductivity
Return thermal conductivities of low-pressure gas mixtures (Mason and Saxena Modification)

Information

This function applies the Masson and Saxena modification of the Wassiljewa Equation for the thermal conductivity for gas mixtures of n elements at low pressure.

For nonpolar gas mixtures errors will generally be less than 3 to 4%. For mixtures of nonpolar-polar and polar-polar gases, errors greater than 5 to 8% may be expected. For mixtures in which the sizes and polarities of the constituent molecules are not greatly different, the thermal conductivity can be estimated satisfactorily by a mole fraction average of the pure component conductivities.

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

Inputs

TypeNameDescription
MoleFractiony[:]Mole fraction of the components in the gas mixture
TemperatureTTemperature
TemperatureTc[size(y, 1)]Critical temperatures
AbsolutePressurePc[size(y, 1)]Critical pressures
MolarMassM[size(y, 1)]Molecular weights
ThermalConductivitylambda[size(y, 1)]Thermal conductivities of the pure gases

Outputs

TypeNameDescription
ThermalConductivitylambdamThermal conductivity of the gas mixture

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​T_hX
Return temperature from specific enthalpy and mass fraction

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy
MassFractionX[nX]Mass fractions of composition
BooleanexclEnthFormIf true, enthalpy of formation Hf is not included in specific enthalpy h
ReferenceEnthalpyrefChoiceChoice of reference enthalpy
SpecificEnthalpyh_offUser defined offset for reference enthalpy, if referenceChoice = UserDefined

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​IdealGases.​MixtureGases.​simpleMoistAir.​T_psX
Return temperature from pressure, specific entropy and mass fraction

Information

This icon indicates Modelica functions.

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

Inputs

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

Outputs

TypeNameDescription
TemperatureTTemperature

Generated 2018-12-12 12:14:15 EST by MapleSim.