functiong2
Gibbs function for region 2: g(p,T)
Extends from Modelica.Icons.Function (Icon for functions).
Information
This function is identical to Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.g2 except that
- it contains the
smoothOrderannotation, and - it removes the assertions on the temperature and pressure because the applicability of this medium is steam heating which has medium states that are inside these values.
The smoothOrder is needed for Optimica to differentiate the specific heat capacity,
which is used in
Buildings.Media.Examples.SteamDerivativeCheck.
The function is differentiable except at p=0, which is far away from the state for which
this function is used.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Pressure | p | Pressure | |
| Modelica.Units.SI.Temperature | T | Temperature (K) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Media.Common.GibbsDerivs | g | Dimensionless Gibbs function and derivatives w.r.t. pi and tau |
Revisions
-
June 11, 2021, by Michael Wetter:
First implementation.