Package Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic
Base functions as described in IAWPS/IF97

Information

Package description

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.

Package contents

Version Info and Revision history

Author: Hubertus Tummescheit,
Modelon AB
Ideon Science Park
SE-22370 Lund, Sweden
email: hubertus@modelon.se

Equation from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Package Contents

NameDescription
dptofTDerivative of pressure w.r.t. temperature along the saturation pressure curve
dtsatofpDerivative of saturation temperature w.r.t. pressure
f3Helmholtz function for region 3: f(d,T)
f3deltatau1st derivatives of f w.r.t. delta and tau
g1Gibbs function for region 1: g(p,T)
g1pitauDerivative of g w.r.t. pi and tau
g2Gibbs function for region 2: g(p,T)
g2metastableGibbs function for metastable part of region 2: g(p,T)
g2pitauDerivative of g w.r.t. pi and tau
g5Base function for region 5: g(p,T)
g5pitauDerivative of g w.r.t. pi and tau
gibbsGibbs function for region 1, 2 or 5: g(p,T,region)
h2ab_sBoundary between regions 2a and 2b
h3ab_pRegion 3 a b boundary for pressure/enthalpy
p1_hsPressure as a function of enthalpy and entropy in region 1
p2a_hsPressure as a function of enthalpy and entropy in subregion 2a
p2b_hsPressure as a function of enthalpy and entropy in subregion 2a
p2c_hsPressure as a function of enthalpy and entropy in subregion 2c
psatRegion 4 saturation pressure as a function of temperature
psat_derDerivative function for psat
T3a_phRegion 3 a: inverse function T(p,h)
T3a_psRegion 3 a: inverse function T(p,s)
T3b_phRegion 3 b: inverse function T(p,h)
T3b_psRegion 3 b: inverse function T(p,s)
tph1Inverse function for region 1: T(p,h)
tph2Reverse function for region 2: T(p,h)
tps1Inverse function for region 1: T(p,s)
tps2Reverse function for region 2: T(p,s)
tps2aReverse function for region 2a: T(p,s)
tps2bReverse function for region 2b: T(p,s)
tps2cReverse function for region 2c: T(p,s)
tsatRegion 4 saturation temperature as a function of pressure
tsat_derDerivative function for tsat
v3a_phRegion 3 a: inverse function v(p,h)
v3a_psRegion 3 a: inverse function v(p,s)
v3b_phRegion 3 b: inverse function v(p,h)
v3b_psRegion 3 b: inverse function v(p,s)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​g1
Gibbs function for region 1: g(p,T)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)

Outputs

TypeNameDescription
GibbsDerivsgDimensionless Gibbs function and derivatives w.r.t. pi and tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​g2
Gibbs function for region 2: g(p,T)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)

Outputs

TypeNameDescription
GibbsDerivsgDimensionless Gibbs function and derivatives w.r.t. pi and tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​g2metastable
Gibbs function for metastable part of region 2: g(p,T)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)

Outputs

TypeNameDescription
GibbsDerivsgDimensionless Gibbs function and derivatives w.r.t. pi and tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​f3
Helmholtz function for region 3: f(d,T)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
DensitydDensity
TemperatureTTemperature (K)

Outputs

TypeNameDescription
HelmholtzDerivsfDimensionless Helmholtz function and derivatives w.r.t. delta and tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​g5
Base function for region 5: g(p,T)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)

Outputs

TypeNameDescription
GibbsDerivsgDimensionless Gibbs function and derivatives w.r.t. pi and tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​gibbs
Gibbs function for region 1, 2 or 5: g(p,T,region)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)
IntegerregionIF97 region, 1, 2 or 5

Outputs

TypeNameDescription
RealgDimensionless Gibbs function

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​g1pitau
Derivative of g w.r.t. pi and tau

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)

Outputs

TypeNameDescription
RealpiDimensionless pressure
RealtauDimensionless temperature
RealgpiDimensionless derivative of Gibbs function w.r.t. pi
RealgtauDimensionless derivative of Gibbs function w.r.t. tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​g2pitau
Derivative of g w.r.t. pi and tau

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)

Outputs

TypeNameDescription
RealpiDimensionless pressure
RealtauDimensionless temperature
RealgpiDimensionless derivative of Gibbs function w.r.t. pi
RealgtauDimensionless derivative of Gibbs function w.r.t. tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​g5pitau
Derivative of g w.r.t. pi and tau

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature (K)

Outputs

TypeNameDescription
RealpiDimensionless pressure
RealtauDimensionless temperature
RealgpiDimensionless derivative of Gibbs function w.r.t. pi
RealgtauDimensionless derivative of Gibbs function w.r.t. tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​f3deltatau
1st derivatives of f w.r.t. delta and tau

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
DensitydDensity
TemperatureTTemperature (K)

Outputs

TypeNameDescription
RealdeltaDimensionless density
RealtauDimensionless temperature
RealfdeltaDimensionless derivative of Helmholtz function w.r.t. delta
RealftauDimensionless derivative of Helmholtz function w.r.t. tau

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tph1
Inverse function for region 1: T(p,h)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
TemperatureTTemperature (K)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tps1
Inverse function for region 1: T(p,s)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
TemperatureTTemperature (K)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tph2
Reverse function for region 2: T(p,h)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
TemperatureTTemperature (K)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tps2a
Reverse function for region 2a: T(p,s)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
TemperatureTTemperature (K)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tps2b
Reverse function for region 2b: T(p,s)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
TemperatureTTemperature (K)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tps2c
Reverse function for region 2c: T(p,s)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
TemperatureTTemperature (K)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tps2
Reverse function for region 2: T(p,s)

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
TemperatureTTemperature (K)

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tsat
Region 4 saturation temperature as a function of pressure

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure

Outputs

TypeNameDescription
Temperaturet_satTemperature

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​dtsatofp
Derivative of saturation temperature w.r.t. pressure

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure

Outputs

TypeNameDescription
RealdtsatDerivative of T w.r.t. p

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​tsat_der
Derivative function for tsat

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
PressurepPressure
Realder_pPressure derivative

Outputs

TypeNameDescription
Realder_tsatTemperature derivative

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​psat
Region 4 saturation pressure as a function of temperature

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
TemperatureTTemperature (K)

Outputs

TypeNameDescription
Pressurep_satPressure

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​dptofT
Derivative of pressure w.r.t. temperature along the saturation pressure curve

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
TemperatureTTemperature (K)

Outputs

TypeNameDescription
RealdptTemperature derivative of pressure

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​psat_der
Derivative function for psat

Information

This icon indicates Modelica functions.

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

Inputs

TypeNameDescription
TemperatureTTemperature (K)
Realder_TTemperature derivative

Outputs

TypeNameDescription
Realder_psatPressure

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​p1_hs
Pressure as a function of enthalpy and entropy in region 1

Information

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).

Inputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
PressurepPressure

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​h2ab_s
Boundary between regions 2a and 2b

Information

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).

Inputs

TypeNameDescription
SpecificEntropysEntropy

Outputs

TypeNameDescription
SpecificEnthalpyhEnthalpy

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​p2a_hs
Pressure as a function of enthalpy and entropy in subregion 2a

Information

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).

Inputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
PressurepPressure

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​p2b_hs
Pressure as a function of enthalpy and entropy in subregion 2a

Information

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).

Inputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
PressurepPressure

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​p2c_hs
Pressure as a function of enthalpy and entropy in subregion 2c

Information

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).

Inputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
PressurepPressure

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​h3ab_p
Region 3 a b boundary for pressure/enthalpy

Information

 Equation number 1 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure

Outputs

TypeNameDescription
SpecificEnthalpyhEnthalpy

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​T3a_ph
Region 3 a: inverse function T(p,h)

Information

 Equation number 2 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
Temp_KTTemperature

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​T3b_ph
Region 3 b: inverse function T(p,h)

Information

 Equation number 3 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
Temp_KTTemperature

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​v3a_ph
Region 3 a: inverse function v(p,h)

Information

 Equation number 4 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
SpecificVolumevSpecific volume

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​v3b_ph
Region 3 b: inverse function v(p,h)

Information

 Equation number 5 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
SpecificVolumevSpecific volume

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​T3a_ps
Region 3 a: inverse function T(p,s)

Information

 Equation number 6 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
Temp_KTTemperature

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​T3b_ps
Region 3 b: inverse function T(p,s)

Information

 Equation number 7 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
Temp_KTTemperature

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​v3a_ps
Region 3 a: inverse function v(p,s)

Information

 Equation number 8 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
SpecificVolumevSpecific volume

Function Modelica.​Media.​Water.​IF97_Utilities.​BaseIF97.​Basic.​v3b_ps
Region 3 b: inverse function v(p,s)

Information

 Equation number 9 from:

 [1] The international Association for the Properties of Water and Steam
 Vejle, Denmark
 August 2003
 Supplementary Release on Backward Equations for the Functions T(p,h), v(p,h) and T(p,s),
 v(p,s) for Region 3 of the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of
 Water and Steam

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

Inputs

TypeNameDescription
PressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
SpecificVolumevSpecific volume

Generated 2018-12-12 12:14:31 EST by MapleSim.