Package Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic
Package BaseIF97/Basic computes 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.FunctionsPackage (Icon for packages containing functions).
| Name | Description |
|---|---|
dptofT | Derivative of pressure w.r.t. temperature along the saturation pressure curve |
dtsatofp | Derivative of saturation temperature w.r.t. pressure |
f3 | Helmholtz function for region 3: f(d,T) |
f3deltatau | 1st derivatives of f w.r.t. delta and tau |
g1 | Gibbs function for region 1: g(p,T) |
g1pitau | Derivative of g w.r.t. pi and tau |
g2 | Gibbs function for region 2: g(p,T) |
g2metastable | Gibbs function for metastable part of region 2: g(p,T) |
g2pitau | Derivative of g w.r.t. pi and tau |
g5 | Base function for region 5: g(p,T) |
g5pitau | Derivative of g w.r.t. pi and tau |
gibbs | Gibbs function for region 1, 2 or 5: g(p,T,region) |
h2ab_s | Boundary between regions 2a and 2b |
h3ab_p | Region 3 a b boundary for pressure/enthalpy |
p1_hs | Pressure as a function of enthalpy and entropy in region 1 |
p2a_hs | Pressure as a function of enthalpy and entropy in subregion 2a |
p2b_hs | Pressure as a function of enthalpy and entropy in subregion 2a |
p2c_hs | Pressure as a function of enthalpy and entropy in subregion 2c |
psat | Region 4 saturation pressure as a function of temperature |
psat_der | Derivative function for psat |
T3a_ph | Region 3 a: inverse function T(p,h) |
T3a_ps | Region 3 a: inverse function T(p,s) |
T3b_ph | Region 3 b: inverse function T(p,h) |
T3b_ps | Region 3 b: inverse function T(p,s) |
tph1 | Inverse function for region 1: T(p,h) |
tph2 | Reverse function for region 2: T(p,h) |
tps1 | Inverse function for region 1: T(p,s) |
tps2 | Reverse function for region 2: T(p,s) |
tps2a | Reverse function for region 2a: T(p,s) |
tps2b | Reverse function for region 2b: T(p,s) |
tps2c | Reverse function for region 2c: T(p,s) |
tsat | Region 4 saturation temperature as a function of pressure |
tsat_der | Derivative function for tsat |
v3a_ph | Region 3 a: inverse function v(p,h) |
v3a_ps | Region 3 a: inverse function v(p,s) |
v3b_ph | Region 3 b: inverse function v(p,h) |
v3b_ps | Region 3 b: inverse function v(p,s) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g1
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
GibbsDerivs | g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g2
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
GibbsDerivs | g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g2metastable
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
GibbsDerivs | g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.f3
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Density | d | Density |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
HelmholtzDerivs | f | Dimensionless Helmholtz function and derivatives w.r.t. delta and tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g5
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
GibbsDerivs | g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.gibbs
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
Integer | region | IF97 region, 1, 2 or 5 |
| Type | Name | Description |
|---|---|---|
Real | g | Dimensionless Gibbs function |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g1pitau
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
Real | pi | Dimensionless pressure |
Real | tau | Dimensionless temperature |
Real | gpi | Dimensionless derivative of Gibbs function w.r.t. pi |
Real | gtau | Dimensionless derivative of Gibbs function w.r.t. tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g2pitau
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
Real | pi | Dimensionless pressure |
Real | tau | Dimensionless temperature |
Real | gpi | Dimensionless derivative of Gibbs function w.r.t. pi |
Real | gtau | Dimensionless derivative of Gibbs function w.r.t. tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g5pitau
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
Real | pi | Dimensionless pressure |
Real | tau | Dimensionless temperature |
Real | gpi | Dimensionless derivative of Gibbs function w.r.t. pi |
Real | gtau | Dimensionless derivative of Gibbs function w.r.t. tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.f3deltatau
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Density | d | Density |
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
Real | delta | Dimensionless density |
Real | tau | Dimensionless temperature |
Real | fdelta | Dimensionless derivative of Helmholtz function w.r.t. delta |
Real | ftau | Dimensionless derivative of Helmholtz function w.r.t. tau |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tph1
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEnthalpy | h | Specific enthalpy |
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps1
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tph2
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEnthalpy | h | Specific enthalpy |
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2a
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2b
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2c
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tps2
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
| Type | Name | Description |
|---|---|---|
Temperature | t_sat | Temperature |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.dtsatofp
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
| Type | Name | Description |
|---|---|---|
Real | dtsat | Derivative of T w.r.t. p |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat_der
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Real | der_p | Pressure derivative |
| Type | Name | Description |
|---|---|---|
Real | der_tsat | Temperature derivative |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.psat
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
Pressure | p_sat | Pressure |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.dptofT
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
| Type | Name | Description |
|---|---|---|
Real | dpt | Temperature derivative of pressure |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.psat_der
This icon indicates Modelica functions.
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Temperature | T | Temperature (K) |
Real | der_T | Temperature derivative |
| Type | Name | Description |
|---|---|---|
Real | der_psat | Pressure |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p1_hs
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).
| Type | Name | Description |
|---|---|---|
SpecificEnthalpy | h | Specific enthalpy |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.h2ab_s
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).
| Type | Name | Description |
|---|---|---|
SpecificEntropy | s | Entropy |
| Type | Name | Description |
|---|---|---|
SpecificEnthalpy | h | Enthalpy |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p2a_hs
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).
| Type | Name | Description |
|---|---|---|
SpecificEnthalpy | h | Specific enthalpy |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p2b_hs
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).
| Type | Name | Description |
|---|---|---|
SpecificEnthalpy | h | Specific enthalpy |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.p2c_hs
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).
| Type | Name | Description |
|---|---|---|
SpecificEnthalpy | h | Specific enthalpy |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.h3ab_p
Equation number 1 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
| Type | Name | Description |
|---|---|---|
SpecificEnthalpy | h | Enthalpy |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3a_ph
Equation number 2 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEnthalpy | h | Specific enthalpy |
| Type | Name | Description |
|---|---|---|
Temp_K | T | Temperature |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3b_ph
Equation number 3 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEnthalpy | h | Specific enthalpy |
| Type | Name | Description |
|---|---|---|
Temp_K | T | Temperature |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3a_ph
Equation number 4 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEnthalpy | h | Specific enthalpy |
| Type | Name | Description |
|---|---|---|
SpecificVolume | v | Specific volume |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3b_ph
Equation number 5 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEnthalpy | h | Specific enthalpy |
| Type | Name | Description |
|---|---|---|
SpecificVolume | v | Specific volume |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3a_ps
Equation number 6 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Temp_K | T | Temperature |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.T3b_ps
Equation number 7 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
Temp_K | T | Temperature |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3a_ps
Equation number 8 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
SpecificVolume | v | Specific volume |
Function Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.v3b_ps
Equation number 9 from:
Extends from Modelica.Icons.Function (Icon for functions).
| Type | Name | Description |
|---|---|---|
Pressure | p | Pressure |
SpecificEntropy | s | Specific entropy |
| Type | Name | Description |
|---|---|---|
SpecificVolume | v | Specific volume |