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