OGS
MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1 Struct Reference

Detailed Description

A class for dimensionless Gibbs free energy defined by

\[ \gamma=\sum_{i=1}^{34}\left[ n_i * (7.1-\pi)^{l_i}(\tau - 1.222)^{j_i} \right] \]

IF97-Rev

Coefficients \(n_i\), \(j_i\) and \(l_i\) are given in three static arrays in the cpp file.

Definition at line 33 of file DimensionLessGibbsFreeEnergyRegion1.h.

#include <DimensionLessGibbsFreeEnergyRegion1.h>

Static Public Member Functions

static double get_gamma (const double tau, const double pi)
 
static double get_dgamma_dtau (const double tau, const double pi)
 
static double get_dgamma_dtau_dtau (const double tau, const double pi)
 
static double get_dgamma_dpi (const double tau, const double pi)
 
static double get_dgamma_dpi_dpi (const double tau, const double pi)
 
static double get_dgamma_dtau_dpi (const double tau, const double pi)
 

Member Function Documentation

◆ get_dgamma_dpi()

double MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1::get_dgamma_dpi ( const double tau,
const double pi )
static

Get the 1st order partial derivative of the dimension less Gibbs free energy with respect to dimension less pressure, pi

Parameters
piDimension less temperature
tauDimension less pressure
Returns
The value

Definition at line 83 of file DimensionLessGibbsFreeEnergyRegion1.cpp.

85{
86 double val = 0.;
87 for (int i = 0; i < 34; i++)
88 {
89 val -= ni[i] * li[i] * std::pow(7.1 - pi, li[i] - 1.0) *
90 std::pow(tau - 1.222, ji[i]);
91 }
92
93 return val;
94}

References MaterialLib::Fluid::ji, MaterialLib::Fluid::li, and MaterialLib::Fluid::ni.

Referenced by MaterialPropertyLib::WaterDensityIAPWSIF97Region1::dValue(), MaterialPropertyLib::WaterDensityIAPWSIF97Region1::value(), and MaterialPropertyLib::WaterLiquidDensityIAPWSIF97Region4::value().

◆ get_dgamma_dpi_dpi()

double MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1::get_dgamma_dpi_dpi ( const double tau,
const double pi )
static

Get the 2nd order partial derivative of the dimension less Gibbs free energy with respect to dimension less pressure, pi

Parameters
piDimension less temperature
tauDimension less pressure
Returns
The value

Definition at line 96 of file DimensionLessGibbsFreeEnergyRegion1.cpp.

98{
99 double val = 0.;
100 for (int i = 0; i < 34; i++)
101 {
102 val += ni[i] * li[i] * (li[i] - 1.0) * std::pow(7.1 - pi, li[i] - 2.0) *
103 std::pow(tau - 1.222, ji[i]);
104 }
105
106 return val;
107}

References MaterialLib::Fluid::ji, MaterialLib::Fluid::li, and MaterialLib::Fluid::ni.

Referenced by MaterialPropertyLib::WaterDensityIAPWSIF97Region1::dValue().

◆ get_dgamma_dtau()

double MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1::get_dgamma_dtau ( const double tau,
const double pi )
static

Get the 1st order partial derivative of the dimension less Gibbs free energy with respect to dimension less temperature, tau

Parameters
piDimension less temperature
tauDimension less pressure
Returns
The value

Definition at line 57 of file DimensionLessGibbsFreeEnergyRegion1.cpp.

59{
60 double val = 0.;
61 for (int i = 0; i < 34; i++)
62 {
63 val += ni[i] * ji[i] * std::pow(7.1 - pi, li[i]) *
64 std::pow(tau - 1.222, ji[i] - 1.0);
65 }
66
67 return val;
68}

References MaterialLib::Fluid::ji, MaterialLib::Fluid::li, and MaterialLib::Fluid::ni.

Referenced by MaterialPropertyLib::WaterEnthalpyIAPWSIF97Region1::value(), and MaterialPropertyLib::WaterLiquidEnthalpyIAPWSIF97Region4::value().

◆ get_dgamma_dtau_dpi()

double MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1::get_dgamma_dtau_dpi ( const double tau,
const double pi )
static

Get the 2nd order partial derivative of the dimension less Gibbs free energy with respect to dimension less temperature, tau, and dimension less pressure, pi

Parameters
piDimension less temperature
tauDimension less pressure
Returns
The value

Definition at line 109 of file DimensionLessGibbsFreeEnergyRegion1.cpp.

111{
112 double val = 0.;
113 for (int i = 0; i < 34; i++)
114 {
115 val -= ni[i] * ji[i] * li[i] * std::pow(7.1 - pi, li[i] - 1.0) *
116 std::pow(tau - 1.222, ji[i] - 1.0);
117 }
118
119 return val;
120}

References MaterialLib::Fluid::ji, MaterialLib::Fluid::li, and MaterialLib::Fluid::ni.

Referenced by MaterialPropertyLib::WaterDensityIAPWSIF97Region1::dValue().

◆ get_dgamma_dtau_dtau()

double MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1::get_dgamma_dtau_dtau ( const double tau,
const double pi )
static

Get the 2nd order partial derivative of the dimension less Gibbs free energy with respect to dimension less temperature, tau

Parameters
piDimension less temperature
tauDimension less pressure
Returns
The value

Definition at line 70 of file DimensionLessGibbsFreeEnergyRegion1.cpp.

72{
73 double val = 0.;
74 for (int i = 0; i < 34; i++)
75 {
76 val += ni[i] * ji[i] * (ji[i] - 1.0) * std::pow(7.1 - pi, li[i]) *
77 std::pow(tau - 1.222, ji[i] - 2.0);
78 }
79
80 return val;
81}

References MaterialLib::Fluid::ji, MaterialLib::Fluid::li, and MaterialLib::Fluid::ni.

Referenced by MaterialPropertyLib::WaterEnthalpyIAPWSIF97Region1::dValue().

◆ get_gamma()

double MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1::get_gamma ( const double tau,
const double pi )
static

Get the value

Parameters
piDimension less temperature
tauDimension less pressure
Returns
The value

Definition at line 45 of file DimensionLessGibbsFreeEnergyRegion1.cpp.

47{
48 double val = 0.;
49 for (int i = 0; i < 34; i++)
50 {
51 val += ni[i] * std::pow(7.1 - pi, li[i]) * std::pow(tau - 1.222, ji[i]);
52 }
53
54 return val;
55}

References MaterialLib::Fluid::ji, MaterialLib::Fluid::li, and MaterialLib::Fluid::ni.


The documentation for this struct was generated from the following files: