Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion

simple explicit functions for one region only

Information

Package description

Package ByRegion provides fast forward calls for dynamic property calculation records for all one phase regions of IAPWS/IF97

Package contents

Version Info and Revision history

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

Extends from Modelica.Icons.Library (Icon for library).

Package Content

NameDescription
Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR1_pT waterR1_pT standard properties for region 1, (p,T) as inputs
Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR2_pT waterR2_pT standard properties for region 2, (p,T) as inputs
Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR3_dT waterR3_dT standard properties for region 3, (d,T) as inputs
Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR5_pT waterR5_pT standard properties for region 5, (p,T) as inputs


Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR1_pT Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR1_pT

standard properties for region 1, (p,T) as inputs

Information

Extends from Modelica.Icons.Function (Icon for a function).

Inputs

TypeNameDefaultDescription
Pressurep pressure [Pa]
TemperatureT temperature (K) [K]

Outputs

TypeNameDescription
ThermoProperties_pTprothermodynamic property collection

Modelica definition

function waterR1_pT 
  "standard properties for region 1, (p,T) as inputs"

  extends Modelica.Icons.Function;
  input SI.Pressure p "pressure";
  input SI.Temperature T "temperature (K)";
  output Modelica.Media.Common.ThermoFluidSpecial.ThermoProperties_pT pro 
    "thermodynamic property collection";

protected 
  Modelica.Media.Common.GibbsDerivs g 
    "dimensionless Gibbs funcion and dervatives wrt pi and tau";
algorithm 
  g := Basic.g1(p, T);
  pro := Modelica.Media.Common.ThermoFluidSpecial.gibbsToProps_pT(g);
end waterR1_pT;

Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR2_pT Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR2_pT

standard properties for region 2, (p,T) as inputs

Information

Extends from Modelica.Icons.Function (Icon for a function).

Inputs

TypeNameDefaultDescription
Pressurep pressure [Pa]
TemperatureT temperature (K) [K]

Outputs

TypeNameDescription
ThermoProperties_pTprothermodynamic property collection

Modelica definition

function waterR2_pT 
  "standard properties for region 2, (p,T) as inputs"
  extends Modelica.Icons.Function;
  input SI.Pressure p "pressure";
  input SI.Temperature T "temperature (K)";
  output Modelica.Media.Common.ThermoFluidSpecial.ThermoProperties_pT pro 
    "thermodynamic property collection";
protected 
  Modelica.Media.Common.GibbsDerivs g 
    "dimensionless Gibbs funcion and dervatives wrt pi and tau";
algorithm 
  g := Basic.g2(p, T);
  pro := Modelica.Media.Common.ThermoFluidSpecial.gibbsToProps_pT(g);
end waterR2_pT;

Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR3_dT Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR3_dT

standard properties for region 3, (d,T) as inputs

Information

Extends from Modelica.Icons.Function (Icon for a function).

Inputs

TypeNameDefaultDescription
Densityd density [kg/m3]
TemperatureT temperature (K) [K]

Outputs

TypeNameDescription
ThermoProperties_dTprothermodynamic property collection

Modelica definition

function waterR3_dT 
  "standard properties for region 3, (d,T) as inputs"
  extends Modelica.Icons.Function;
  input SI.Density d "density";
  input SI.Temperature T "temperature (K)";
  output Common.ThermoFluidSpecial.ThermoProperties_dT pro 
    "thermodynamic property collection";
protected 
  Common.HelmholtzDerivs f 
    "dimensionless Helmholtz function and dervatives wrt delta and tau";
algorithm 
  f := Basic.f3(d, T);
  pro := Modelica.Media.Common.ThermoFluidSpecial.helmholtzToProps_dT(f);
  assert(pro.p <= 100.0e6,
    "IF97 medium function waterR3_dT: the input pressure (= " + String(pro.p) +
    " Pa) is higher than 100 Mpa");
end waterR3_dT;

Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR5_pT Modelica.Media.Water.IF97_Utilities.BaseIF97.ByRegion.waterR5_pT

standard properties for region 5, (p,T) as inputs

Information

Extends from Modelica.Icons.Function (Icon for a function).

Inputs

TypeNameDefaultDescription
Pressurep pressure [Pa]
TemperatureT temperature (K) [K]

Outputs

TypeNameDescription
ThermoProperties_pTprothermodynamic property collection

Modelica definition

function waterR5_pT 
  "standard properties for region 5, (p,T) as inputs"
  extends Modelica.Icons.Function;
  input SI.Pressure p "pressure";
  input SI.Temperature T "temperature (K)";
  output Modelica.Media.Common.ThermoFluidSpecial.ThermoProperties_pT pro 
    "thermodynamic property collection";
protected 
  Modelica.Media.Common.GibbsDerivs g 
    "dimensionless Gibbs funcion and dervatives wrt pi and tau";
algorithm 
  g := Basic.g5(p, T);
  pro := Modelica.Media.Common.ThermoFluidSpecial.gibbsToProps_pT(g);
end waterR5_pT;

HTML-documentation generated by Dymola Sun Jan 17 21:12:36 2010.