Base functions as described in IAWPS/IF97
Package BaseIF97/Basic computes the the fundamental functions for the 5 regions of the steam tables as described in the standards document IF97.pdf. The code of these functions has been generated using Mathematica and the add-on packages "Format" and "Optimize" to generate highly efficient, expression-optimized C-code from a symbolic representation of the thermodynamic functions. The C-code has than been transformed into Modelica code. An important feature of this optimization was to simultaneously optimize the functions and the directional derivatives because they share many common subexpressions.
Equation from:
Extends from Modelica.Icons.Package (Icon for standard packages).
| Name | Description |
|---|---|
| Gibbs function for region 1: g(p,T) | |
| Gibbs function for region 2: g(p,T) | |
| Gibbs function for metastable part of region 2: g(p,T) | |
| Helmholtz function for region 3: f(d,T) | |
| Base function for region 5: g(p,T) | |
| Gibbs function for region 1, 2 or 5: g(p,T,region) | |
| Derivative of g w.r.t. pi and tau | |
| Derivative of g w.r.t. pi and tau | |
| Derivative of g w.r.t. pi and tau | |
| 1st derivatives of f w.r.t. delta and tau | |
| Inverse function for region 1: T(p,h) | |
| Inverse function for region 1: T(p,s) | |
| Reverse function for region 2: T(p,h) | |
| Reverse function for region 2a: T(p,s) | |
| Reverse function for region 2b: T(p,s) | |
| Reverse function for region 2c: T(p,s) | |
| Reverse function for region 2: T(p,s) | |
| Region 4 saturation temperature as a function of pressure | |
| Derivative of saturation temperature w.r.t. pressure | |
| Derivative function for tsat | |
| Region 4 saturation pressure as a function of temperature | |
| Derivative of pressure w.r.t. temperature along the saturation pressure curve | |
| Derivative function for psat | |
| Pressure as a function of enthalpy and entropy in region 1 | |
| Boundary between regions 2a and 2b | |
| Pressure as a function of enthalpy and entropy in subregion 2a | |
| Pressure as a function of enthalpy and entropy in subregion 2a | |
| Pressure as a function of enthalpy and entropy in subregion 2c | |
| Region 3 a b boundary for pressure/enthalpy | |
| Region 3 a: inverse function T(p,h) | |
| Region 3 b: inverse function T(p,h) | |
| Region 3 a: inverse function v(p,h) | |
| Region 3 b: inverse function v(p,h) | |
| Region 3 a: inverse function T(p,s) | |
| Region 3 b: inverse function T(p,s) | |
| Region 3 a: inverse function v(p,s) | |
| Region 3 b: inverse function v(p,s) |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g1Gibbs function for region 1: g(p,T)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g2Gibbs function for region 2: g(p,T)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g2metastableGibbs function for metastable part of region 2: g(p,T)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.f3Helmholtz function for region 3: f(d,T)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| d | Density [kg/m3] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| f | Dimensionless Helmholtz function and derivatives w.r.t. delta and tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g5Base function for region 5: g(p,T)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.gibbsGibbs function for region 1, 2 or 5: g(p,T,region)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| region | IF97 region, 1, 2 or 5 |
| Name | Description |
|---|---|
| g | Dimensionless Gibbs function |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g1pitauDerivative of g w.r.t. pi and tau
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| pi | Dimensionless pressure |
| tau | Dimensionless temperature |
| gpi | Dimensionless derivative of Gibbs function w.r.t. pi |
| gtau | Dimensionless derivative of Gibbs function w.r.t. tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g2pitauDerivative of g w.r.t. pi and tau
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| pi | Dimensionless pressure |
| tau | Dimensionless temperature |
| gpi | Dimensionless derivative of Gibbs function w.r.t. pi |
| gtau | Dimensionless derivative of Gibbs function w.r.t. tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g5pitauDerivative of g w.r.t. pi and tau
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| pi | Dimensionless pressure |
| tau | Dimensionless temperature |
| gpi | Dimensionless derivative of Gibbs function w.r.t. pi |
| gtau | Dimensionless derivative of Gibbs function w.r.t. tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.f3deltatau1st derivatives of f w.r.t. delta and tau
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| d | Density [kg/m3] |
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| delta | Dimensionless density |
| tau | Dimensionless temperature |
| fdelta | Dimensionless derivative of Helmholtz function w.r.t. delta |
| ftau | Dimensionless derivative of Helmholtz function w.r.t. tau |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tph1Inverse function for region 1: T(p,h)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| h | Specific enthalpy [J/kg] |
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps1Inverse function for region 1: T(p,s)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tph2Reverse function for region 2: T(p,h)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| h | Specific enthalpy [J/kg] |
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2aReverse function for region 2a: T(p,s)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2bReverse function for region 2b: T(p,s)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2cReverse function for region 2c: T(p,s)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2Reverse function for region 2: T(p,s)
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsatRegion 4 saturation temperature as a function of pressure
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| Name | Description |
|---|---|
| t_sat | Temperature [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.dtsatofpDerivative of saturation temperature w.r.t. pressure
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| Name | Description |
|---|---|
| dtsat | Derivative of T w.r.t. p [K/Pa] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat_derDerivative function for tsat
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| der_p | Pressure derivative [Pa/s] |
| Name | Description |
|---|---|
| der_tsat | Temperature derivative [K/s] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.psatRegion 4 saturation pressure as a function of temperature
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| p_sat | Pressure [Pa] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.dptofTDerivative of pressure w.r.t. temperature along the saturation pressure curve
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
| Name | Description |
|---|---|
| dpt | Temperature derivative of pressure [Pa/K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.psat_derDerivative function for psat
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| T | Temperature (K) [K] |
| der_T | Temperature derivative [K/s] |
| Name | Description |
|---|---|
| der_psat | Pressure [Pa/s] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p1_hsPressure as a function of enthalpy and entropy in region 1
Equation number 1 from:
The International Association for the Properties of Water and Steam
Gaithersburg, Maryland, USA
September 2001
Supplementary Release on Backward Equations for Pressure as a
Function of Enthalpy and Entropy p(h,s) to the IAPWS Industrial
Formulation 1997 for the Thermodynamic Properties of Water and Steam
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| h | Specific enthalpy [J/kg] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| p | Pressure [Pa] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.h2ab_sBoundary between regions 2a and 2b
Equation number 2 from:
The International Association for the Properties of Water and Steam
Gaithersburg, Maryland, USA
September 2001
Supplementary Release on Backward Equations for Pressure as a
Function of Enthalpy and Entropy p(h,s) to the IAPWS Industrial
Formulation 1997 for the Thermodynamic Properties of Water and Steam
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| s | Entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| h | Enthalpy [J/kg] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p2a_hsPressure as a function of enthalpy and entropy in subregion 2a
Equation number 3 from:
The International Association for the Properties of Water and Steam
Gaithersburg, Maryland, USA
September 2001
Supplementary Release on Backward Equations for Pressure as a
Function of Enthalpy and Entropy p(h,s) to the IAPWS Industrial
Formulation 1997 for the Thermodynamic Properties of Water and Steam
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| h | Specific enthalpy [J/kg] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| p | Pressure [Pa] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p2b_hsPressure as a function of enthalpy and entropy in subregion 2a
Equation number 4 from:
The International Association for the Properties of Water and Steam
Gaithersburg, Maryland, USA
September 2001
Supplementary Release on Backward Equations for Pressure as a
Function of Enthalpy and Entropy p(h,s) to the IAPWS Industrial
Formulation 1997 for the Thermodynamic Properties of Water and Steam
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| h | Specific enthalpy [J/kg] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| p | Pressure [Pa] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p2c_hsPressure as a function of enthalpy and entropy in subregion 2c
Equation number 5 from:
The International Association for the Properties of Water and Steam
Gaithersburg, Maryland, USA
September 2001
Supplementary Release on Backward Equations for Pressure as a
Function of Enthalpy and Entropy p(h,s) to the IAPWS Industrial
Formulation 1997 for the Thermodynamic Properties of Water and Steam
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| h | Specific enthalpy [J/kg] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| p | Pressure [Pa] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.h3ab_pRegion 3 a b boundary for pressure/enthalpy
Equation number 1 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| Name | Description |
|---|---|
| h | Enthalpy [J/kg] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3a_phRegion 3 a: inverse function T(p,h)
Equation number 2 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| h | Specific enthalpy [J/kg] |
| Name | Description |
|---|---|
| T | Temperature [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3b_phRegion 3 b: inverse function T(p,h)
Equation number 3 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| h | Specific enthalpy [J/kg] |
| Name | Description |
|---|---|
| T | Temperature [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3a_phRegion 3 a: inverse function v(p,h)
Equation number 4 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| h | Specific enthalpy [J/kg] |
| Name | Description |
|---|---|
| v | Specific volume [m3/kg] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3b_phRegion 3 b: inverse function v(p,h)
Equation number 5 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| h | Specific enthalpy [J/kg] |
| Name | Description |
|---|---|
| v | Specific volume [m3/kg] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3a_psRegion 3 a: inverse function T(p,s)
Equation number 6 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| T | Temperature [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3b_psRegion 3 b: inverse function T(p,s)
Equation number 7 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| T | Temperature [K] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3a_psRegion 3 a: inverse function v(p,s)
Equation number 8 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| v | Specific volume [m3/kg] |
Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3b_psRegion 3 b: inverse function v(p,s)
Equation number 9 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description |
|---|---|
| p | Pressure [Pa] |
| s | Specific entropy [J/(kg.K)] |
| Name | Description |
|---|---|
| v | Specific volume [m3/kg] |