modelGas_ps

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

Extends from TILMedia.BaseClasses.PartialGas_ps (Gas vapor model with p, s and xi as independent variables).

Information

The gas model Gas_ps calculates the thermopyhsical property data with given inputs: pressure (p), entropy (s), 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 (from PartialGas_ps)
SI.MolarMass[gasType.nc]M_i (from PartialGas_ps)Molar mass of component i
Advanced
TILMedia.Internals.TILMediaExternalObjectgasPointer (from PartialGas_ps)
BooleanstateSelectPreferForInputs (from PartialGas_ps)false=true, StateSelect.prefer is set for input variables
BooleancomputeTransportProperties (from PartialGas_ps)false=true, if transport properties are calculated

Components

TypeNameDefaultDescription
SI.Densityd (from PartialGas_ps)Density
SI.SpecificEnthalpyh (from PartialGas_ps)Specific enthalpy
SI.AbsolutePressurep (from PartialGas_ps)Pressure
SI.SpecificEntropys (from PartialGas_ps)Specific entropy
SI.TemperatureT (from PartialGas_ps)Temperature
SI.MassFraction[gasType.nc - 1]xi (from PartialGas_ps)gasType.xi_defaultMass fraction
SI.MassFraction[if (gasType.nc > 1 and gasType.condensingIndex > 0) then gasType.nc - 2 else 0]xi_dryGas (from PartialGas_ps)Mass fraction
SI.MoleFraction[gasType.nc - 1]x (from PartialGas_ps)Mole fraction
SI.MolarMassM (from PartialGas_ps)Average molar mass
SI.SpecificHeatCapacitycp (from PartialGas_ps)Specific isobaric heat capacity cp
SI.SpecificHeatCapacitycv (from PartialGas_ps)Specific isochoric heat capacity cv
SI.LinearExpansionCoefficientbeta (from PartialGas_ps)Isobaric thermal expansion coefficient
SI.Compressibilitykappa (from PartialGas_ps)Isothermal compressibility
SI.Velocityw (from PartialGas_ps)Speed of sound
SI.DerDensityByEnthalpydrhodh_pxi (from PartialGas_ps)Derivative of density wrt specific enthalpy at constant pressure and mass fraction
SI.DerDensityByPressuredrhodp_hxi (from PartialGas_ps)Derivative of density wrt pressure at specific enthalpy and mass fraction
TILMedia.Internals.Units.DensityDerMassFraction[gasType.nc - 1]drhodxi_ph (from PartialGas_ps)Derivative of density wrt mass fraction of water at constant pressure and specific enthalpy
SI.PartialPressure[gasType.nc]p_i (from PartialGas_ps)Partial pressure
SI.MassFractionxi_gas (from PartialGas_ps)Mass fraction of gasoues condensing component
TILMedia.Internals.Units.RelativeHumidityphi (from PartialGas_ps)Relative humidity
SI.PartialPressurep_s (from PartialGas_ps)Saturation partial pressure of condensing component
SI.MassFractionxi_s (from PartialGas_ps)Saturation mass fraction of condensing component
SI.SpecificEnthalpydelta_hv (from PartialGas_ps)Specific enthalpy of vaporation of condensing component
SI.SpecificEnthalpydelta_hd (from PartialGas_ps)Specific enthalpy of desublimation of condensing component
SI.SpecificEnthalpy[gasType.nc]h_i (from PartialGas_ps)Specific enthalpy of pure ideal gas component
RealhumRatio (from PartialGas_ps)Content of condensing component aka humidity ratio
RealhumRatio_s (from PartialGas_ps)Saturation content of condensing component aka saturation humidity ratio
SI.SpecificEnthalpyh1px (from PartialGas_ps)Enthalpy H divided by the mass of components that cannot condense
TILMedia.Internals.TransportPropertyRecordtransp (from PartialGas_ps)Transport property record