modelPartialGas_pT

Gas vapor model with p, T and xi as independent variables

Information

The gas model Gas_pT calculates the thermopyhsical property data with given inputs: pressure (p), temperature (T), mass fraction (xi) and the parameter gasType.
The interface and the way of using, is demonstrated in the Testers -> TestGas.


Parameters

TypeNameDefaultDescription
TILMedia.Gas.Types.BaseGasgasType
SI.MolarMass[gasType.nc]M_iMolar mass of component i
Advanced
TILMedia.Internals.TILMediaExternalObjectgasPointer
BooleanstateSelectPreferForInputsfalse=true, StateSelect.prefer is set for input variables
BooleancomputeTransportPropertiesfalse=true, if transport properties are calculated

Components

TypeNameDefaultDescription
SI.DensitydDensity
SI.SpecificEnthalpyhSpecific enthalpy
SI.AbsolutePressurepPressure
SI.SpecificEntropysSpecific entropy
SI.TemperatureTTemperature
SI.MassFraction[gasType.nc - 1]xigasType.xi_defaultMass fraction
SI.MassFraction[if (gasType.nc > 1 and gasType.condensingIndex > 0) then gasType.nc - 2 else 0]xi_dryGasMass fraction
SI.MoleFraction[gasType.nc - 1]xMole fraction
SI.MolarMassMAverage molar mass
SI.SpecificHeatCapacitycpSpecific isobaric heat capacity cp
SI.SpecificHeatCapacitycvSpecific isochoric heat capacity cv
SI.LinearExpansionCoefficientbetaIsobaric thermal expansion coefficient
SI.CompressibilitykappaIsothermal compressibility
SI.VelocitywSpeed of sound
SI.DerDensityByEnthalpydrhodh_pxiDerivative of density wrt specific enthalpy at constant pressure and mass fraction
SI.DerDensityByPressuredrhodp_hxiDerivative of density wrt pressure at specific enthalpy and mass fraction
TILMedia.Internals.Units.DensityDerMassFraction[gasType.nc - 1]drhodxi_phDerivative of density wrt mass fraction of water at constant pressure and specific enthalpy
SI.PartialPressure[gasType.nc]p_iPartial pressure
SI.MassFractionxi_gasMass fraction of gasoues condensing component
TILMedia.Internals.Units.RelativeHumidityphiRelative humidity
SI.PartialPressurep_sSaturation partial pressure of condensing component
SI.MassFractionxi_sSaturation mass fraction of condensing component
SI.SpecificEnthalpydelta_hvSpecific enthalpy of vaporation of condensing component
SI.SpecificEnthalpydelta_hdSpecific enthalpy of desublimation of condensing component
SI.SpecificEnthalpy[gasType.nc]h_iSpecific enthalpy of pure ideal gas component
RealhumRatioContent of condensing component aka humidity ratio
RealhumRatio_sSaturation content of condensing component aka saturation humidity ratio
SI.SpecificEnthalpyh1pxEnthalpy H divided by the mass of components that cannot condense
TILMedia.Internals.TransportPropertyRecordtranspTransport property record