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 smoothOrder annotation, 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

TypeNameDefaultDescription
Modelica.Units.SI.PressurepPressure
Modelica.Units.SI.TemperatureTTemperature (K)

Outputs

TypeNameDefaultDescription
Modelica.Media.Common.GibbsDerivsgDimensionless Gibbs function and derivatives w.r.t. pi and tau

Revisions

  • June 11, 2021, by Michael Wetter:
    First implementation.