modelGas_ph

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

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

Information

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

Components

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