Modelica.Media.IdealGases.Common.Functions

Basic Functions for ideal gases: cp, h, s, thermal conductivity, viscosity

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

Name Description
excludeEnthalpyOfFormation=true If true, enthalpy of formation Hf is not included in specific enthalpy h
referenceChoice=Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0K Choice of reference enthalpy
h_offset=0.0 User defined offset for reference enthalpy, if referenceChoice = UserDefined
methodForThermalConductivity=1  
Modelica.Media.IdealGases.Common.Functions.cp_T cp_T Compute specific heat capacity at constant pressure from temperature and gas data
Modelica.Media.IdealGases.Common.Functions.cp_Tlow cp_Tlow Compute specific heat capacity at constant pressure, low T region
Modelica.Media.IdealGases.Common.Functions.cp_Tlow_der cp_Tlow_der Compute specific heat capacity at constant pressure, low T region
Modelica.Media.IdealGases.Common.Functions.h_T h_T Compute specific enthalpy from temperature and gas data; reference is decided by the refChoice input, or by the referenceChoice package constant by default
Modelica.Media.IdealGases.Common.Functions.h_T_der h_T_der Derivative function for h_T
Modelica.Media.IdealGases.Common.Functions.h_Tlow h_Tlow Compute specific enthalpy, low T region; reference is decided by the refChoice input, or by the referenceChoice package constant by default
Modelica.Media.IdealGases.Common.Functions.h_Tlow_der h_Tlow_der Compute specific enthalpy, low T region; reference is decided by the refChoice input, or by the referenceChoice package constant by default
Modelica.Media.IdealGases.Common.Functions.s0_T s0_T Compute specific entropy from temperature and gas data
Modelica.Media.IdealGases.Common.Functions.s0_Tlow s0_Tlow Compute specific entropy, low T region
Modelica.Media.IdealGases.Common.Functions.s0_Tlow_der s0_Tlow_der Compute derivative of specific entropy, low T region
Modelica.Media.IdealGases.Common.Functions.dynamicViscosityLowPressure dynamicViscosityLowPressure Dynamic viscosity of low pressure gases
Modelica.Media.IdealGases.Common.Functions.thermalConductivityEstimate thermalConductivityEstimate Thermal conductivity of polyatomic gases(Eucken and Modified Eucken correlation)

Modelica.Media.IdealGases.Common.Functions.cp_T Modelica.Media.IdealGases.Common.Functions.cp_T

Compute specific heat capacity at constant pressure from temperature and gas data

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]

Outputs

NameDescription
cpSpecific heat capacity at temperature T [J/(kg.K)]

Modelica.Media.IdealGases.Common.Functions.cp_Tlow Modelica.Media.IdealGases.Common.Functions.cp_Tlow

Compute specific heat capacity at constant pressure, low T region

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]

Outputs

NameDescription
cpSpecific heat capacity at temperature T [J/(kg.K)]

Modelica.Media.IdealGases.Common.Functions.cp_Tlow_der Modelica.Media.IdealGases.Common.Functions.cp_Tlow_der

Compute specific heat capacity at constant pressure, low T region

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]
dTTemperature derivative

Outputs

NameDescription
cp_derDerivative of specific heat capacity

Modelica.Media.IdealGases.Common.Functions.h_T Modelica.Media.IdealGases.Common.Functions.h_T

Compute specific enthalpy from temperature and gas data; reference is decided by the refChoice input, or by the referenceChoice package constant by default

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]
exclEnthFormIf true, enthalpy of formation Hf is not included in specific enthalpy h
refChoiceChoice of reference enthalpy
h_offUser defined offset for reference enthalpy, if referenceChoice = UserDefined [J/kg]

Outputs

NameDescription
hSpecific enthalpy at temperature T [J/kg]

Modelica.Media.IdealGases.Common.Functions.h_T_der Modelica.Media.IdealGases.Common.Functions.h_T_der

Derivative function for h_T

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]
exclEnthFormIf true, enthalpy of formation Hf is not included in specific enthalpy h
refChoiceChoice of reference enthalpy
h_offUser defined offset for reference enthalpy, if referenceChoice = UserDefined [J/kg]
dTTemperature derivative

Outputs

NameDescription
h_derSpecific enthalpy at temperature T

Modelica.Media.IdealGases.Common.Functions.h_Tlow Modelica.Media.IdealGases.Common.Functions.h_Tlow

Compute specific enthalpy, low T region; reference is decided by the refChoice input, or by the referenceChoice package constant by default

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]
exclEnthFormIf true, enthalpy of formation Hf is not included in specific enthalpy h
refChoiceChoice of reference enthalpy
h_offUser defined offset for reference enthalpy, if referenceChoice = UserDefined [J/kg]

Outputs

NameDescription
hSpecific enthalpy at temperature T [J/kg]

Modelica.Media.IdealGases.Common.Functions.h_Tlow_der Modelica.Media.IdealGases.Common.Functions.h_Tlow_der

Compute specific enthalpy, low T region; reference is decided by the refChoice input, or by the referenceChoice package constant by default

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]
exclEnthFormIf true, enthalpy of formation Hf is not included in specific enthalpy h
refChoiceChoice of reference enthalpy
h_offUser defined offset for reference enthalpy, if referenceChoice = UserDefined [J/kg]
dTTemperature derivative [K/s]

Outputs

NameDescription
h_derDerivative of specific enthalpy at temperature T [J/(kg.s)]

Modelica.Media.IdealGases.Common.Functions.s0_T Modelica.Media.IdealGases.Common.Functions.s0_T

Compute specific entropy from temperature and gas data

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]

Outputs

NameDescription
sSpecific entropy at temperature T [J/(kg.K)]

Modelica.Media.IdealGases.Common.Functions.s0_Tlow Modelica.Media.IdealGases.Common.Functions.s0_Tlow

Compute specific entropy, low T region

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]

Outputs

NameDescription
sSpecific entropy at temperature T [J/(kg.K)]

Modelica.Media.IdealGases.Common.Functions.s0_Tlow_der Modelica.Media.IdealGases.Common.Functions.s0_Tlow_der

Compute derivative of specific entropy, low T region

Information

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
dataIdeal gas data
TTemperature [K]
T_derTemperature derivative

Outputs

NameDescription
sSpecific entropy at temperature T [J/(kg.K)]

Modelica.Media.IdealGases.Common.Functions.dynamicViscosityLowPressure Modelica.Media.IdealGases.Common.Functions.dynamicViscosityLowPressure

Dynamic viscosity of low pressure gases

Information

The used formula are based on the method of Chung et al (1984, 1988) referred to in ref [1] chapter 9. The formula 9-4.10 is the one being used. The Formula is given in non-SI units, the following conversion constants were used to transform the formula to SI units:

References:

[1] Bruce E. Poling, John E. Prausnitz, John P. O'Connell, "The Properties of Gases and Liquids" 5th Ed. Mc Graw Hill.

Author

T. Skoglund, Lund, Sweden, 2004-08-31

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
TGas temperature [K]
TcCritical temperature of gas [K]
MMolar mass of gas [kg/mol]
VcCritical molar volume of gas [m3/mol]
wAcentric factor of gas
muDipole moment of gas molecule [debye]
kSpecial correction for highly polar substances

Outputs

NameDescription
etaDynamic viscosity of gas [Pa.s]

Modelica.Media.IdealGases.Common.Functions.thermalConductivityEstimate Modelica.Media.IdealGases.Common.Functions.thermalConductivityEstimate

Thermal conductivity of polyatomic gases(Eucken and Modified Eucken correlation)

Information

This function provides two similar methods for estimating the thermal conductivity of polyatomic gases. The Eucken method (input method == 1) gives good results for low temperatures, but it tends to give an underestimated value of the thermal conductivity (lambda) at higher temperatures.
The Modified Eucken method (input method == 2) gives good results for high-temperatures, but it tends to give an overestimated value of the thermal conductivity (lambda) at low temperatures.

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

NameDescription
CpConstant pressure heat capacity [J/(kg.K)]
etaDynamic viscosity [Pa.s]
method1: Eucken Method, 2: Modified Eucken Method
dataIdeal gas data

Outputs

NameDescription
lambdaThermal conductivity [W/(m.k)] [W/(m.K)]
Automatically generated Tue Apr 05 09:36:58 2016.