packageFunctions

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

Extends from Modelica.Icons.FunctionsPackage (Icon for packages containing functions).

Parameters

TypeNameDefaultDescription
BooleanexcludeEnthalpyOfFormationtrueIf true, enthalpy of formation Hf is not included in specific enthalpy h
Modelica.Media.Interfaces.Choices.ReferenceEnthalpyreferenceChoiceModelica.Media.Interfaces.Choices.ReferenceEnthalpy.ZeroAt0KChoice of reference enthalpy
Modelica.Media.Interfaces.Types.SpecificEnthalpyh_offset0.0User defined offset for reference enthalpy, if referenceChoice = UserDefined
IntegermethodForThermalConductivity1

Contents

NameDescription
cp_TCompute specific heat capacity at constant pressure from temperature and gas data
cp_TlowCompute specific heat capacity at constant pressure, low T region
cp_Tlow_derCompute derivative of specific heat capacity at constant pressure, low T region
h_TCompute specific enthalpy from temperature and gas data; reference is decided by the refChoice input, or by the referenceChoice package constant by default
h_T_derDerivative function for h_T
h_TlowCompute specific enthalpy, low T region; reference is decided by the refChoice input, or by the referenceChoice package constant by default
h_Tlow_derCompute derivative of specific enthalpy, low T region; reference is decided by the refChoice input, or by the referenceChoice package constant by default
s0_TCompute specific entropy from temperature and gas data
s0_TlowCompute specific entropy, low T region
s0_Tlow_derCompute derivative of specific entropy, low T region
dynamicViscosityLowPressureDynamic viscosity of low pressure gases
thermalConductivityEstimateThermal conductivity of polyatomic gases (Eucken and Modified Eucken correlation)