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
| Type | Name | Default | Description |
|---|---|---|---|
| TILMedia.Gas.Types.BaseGas | gasType (from PartialGas_ph) | ||
| SI.MolarMass[gasType.nc] | M_i (from PartialGas_ph) | Molar mass of component i | |
| Advanced | |||
| TILMedia.Internals.TILMediaExternalObject | gasPointer (from PartialGas_ph) | ||
| Boolean | stateSelectPreferForInputs (from PartialGas_ph) | false | =true, StateSelect.prefer is set for input variables |
| Boolean | computeTransportProperties (from PartialGas_ph) | false | =true, if transport properties are calculated |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Density | d (from PartialGas_ph) | Density | |
| SI.AbsolutePressure | p (from PartialGas_ph) | Pressure | |
| SI.SpecificEnthalpy | h (from PartialGas_ph) | Specific enthalpy | |
| SI.SpecificEntropy | s (from PartialGas_ph) | Specific entropy | |
| SI.Temperature | T (from PartialGas_ph) | Temperature | |
| SI.MassFraction[gasType.nc - 1] | xi (from PartialGas_ph) | gasType.xi_default | Mass 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.MolarMass | M (from PartialGas_ph) | Average molar mass | |
| SI.SpecificHeatCapacity | cp (from PartialGas_ph) | Specific isobaric heat capacity cp | |
| SI.SpecificHeatCapacity | cv (from PartialGas_ph) | Specific isochoric heat capacity cv | |
| SI.LinearExpansionCoefficient | beta (from PartialGas_ph) | Isobaric thermal expansion coefficient | |
| SI.Compressibility | kappa (from PartialGas_ph) | Isothermal compressibility | |
| SI.Velocity | w (from PartialGas_ph) | Speed of sound | |
| SI.DerDensityByEnthalpy | drhodh_pxi (from PartialGas_ph) | Derivative of density wrt specific enthalpy at constant pressure and mass fraction | |
| SI.DerDensityByPressure | drhodp_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.MassFraction | xi_gas (from PartialGas_ph) | Mass fraction of gasoues condensing component | |
| TILMedia.Internals.Units.RelativeHumidity | phi (from PartialGas_ph) | Relative humidity | |
| SI.PartialPressure | p_s (from PartialGas_ph) | Saturation partial pressure of condensing component | |
| SI.MassFraction | xi_s (from PartialGas_ph) | Saturation mass fraction of condensing component | |
| SI.SpecificEnthalpy | delta_hv (from PartialGas_ph) | Specific enthalpy of vaporation of condensing component | |
| SI.SpecificEnthalpy | delta_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 | |
| Real | humRatio (from PartialGas_ph) | Content of condensing component aka humidity ratio | |
| Real | humRatio_s (from PartialGas_ph) | Saturation content of condensing component aka saturation humidity ratio | |
| SI.SpecificEnthalpy | h1px (from PartialGas_ph) | Enthalpy H divided by the mass of components that cannot condense | |
| TILMedia.Internals.TransportPropertyRecord | transp (from PartialGas_ph) | Transport property record |