Enthalpy based thermodynamics package using a polynomial function of temperature for the constant heat capacity at constant pressure: More...
Public Member Functions | |
hPolynomialThermo (const EquationOfState &pt, const scalar hf, const scalar sf, const Polynomial< PolySize > &CpCoeffs, const typename Polynomial< PolySize >::intPolyType &hCoeffs, const Polynomial< PolySize > &sCoeffs) | |
Construct from components. More... | |
hPolynomialThermo (const word &name, const dictionary &dict) | |
Construct from name and dictionary. More... | |
hPolynomialThermo (const word &, const hPolynomialThermo &) | |
Construct as a named copy. More... | |
scalar | limit (const scalar) const |
Limit the temperature to be in the range Tlow_ to Thigh_. More... | |
scalar | Cp (const scalar p, const scalar T) const |
Heat capacity at constant pressure [J/kg/K]. More... | |
scalar | ha (const scalar p, const scalar T) const |
Absolute enthalpy [J/kg]. More... | |
scalar | hs (const scalar p, const scalar T) const |
Sensible enthalpy [J/kg]. More... | |
scalar | hf () const |
Enthalpy of formation [J/kg]. More... | |
scalar | s (const scalar p, const scalar T) const |
Entropy [J/kg/K]. More... | |
scalar | gStd (const scalar T) const |
Gibbs free energy of the mixture in the standard state [J/kg]. More... | |
scalar | dCpdT (const scalar p, const scalar T) const |
Temperature derivative of heat capacity at constant pressure. More... | |
void | write (Ostream &os) const |
Write to Ostream. More... | |
void | operator+= (const hPolynomialThermo &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static word | typeName () |
Return the instantiated type name. More... | |
Friends | |
hPolynomialThermo | operator+ (const hPolynomialThermo &, const hPolynomialThermo &) |
hPolynomialThermo | operator* (const scalar, const hPolynomialThermo &) |
hPolynomialThermo | operator== (const hPolynomialThermo &, const hPolynomialThermo &) |
Ostream & | operator (Ostream &, const hPolynomialThermo &) |
Enthalpy based thermodynamics package using a polynomial function of temperature for the constant heat capacity at constant pressure:
Cp = a0 + a1*T + a2*sqr(T) + a3*pow3(T) + a4*pow4(T) + a5*pow(T, 5) + a6*pow(T, 6) + a7*pow(T, 7)
The polynomial function is templated on the order of the polynomial which defaults to 8.
Property | Description |
---|---|
hf | Heat of formation |
sf | Standard entropy |
CpCoeffs<8> | Specific heat at constant pressure polynomial coeffs |
Example of the specification of the thermodynamic properties:
thermodynamics { hf 0; sf 0; CpCoeffs<8> (1000 -0.05 0.003 0 0 0 0 0); }
Note: Specific heat at constant pressure polynomial coefficients evaluate to an expression in [J/kg/K].
Definition at line 131 of file hPolynomialThermo.H.
|
inline |
Construct from components.
Definition at line 31 of file hPolynomialThermoI.H.
hPolynomialThermo | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from name and dictionary.
Definition at line 32 of file hPolynomialThermo.C.
|
inline |
Construct as a named copy.
Definition at line 51 of file hPolynomialThermoI.H.
|
inlinestatic |
Return the instantiated type name.
Definition at line 180 of file hPolynomialThermo.H.
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 69 of file hPolynomialThermoI.H.
References Foam::T().
|
inline |
Heat capacity at constant pressure [J/kg/K].
Definition at line 79 of file hPolynomialThermoI.H.
References Cp(), p, and Foam::T().
|
inline |
Absolute enthalpy [J/kg].
Definition at line 101 of file hPolynomialThermoI.H.
References Foam::constant::universal::h, p, and Foam::T().
|
inline |
Sensible enthalpy [J/kg].
Definition at line 90 of file hPolynomialThermoI.H.
References ha(), p, and Foam::T().
|
inline |
Enthalpy of formation [J/kg].
Definition at line 112 of file hPolynomialThermoI.H.
|
inline |
Entropy [J/kg/K].
Definition at line 120 of file hPolynomialThermoI.H.
|
inline |
Gibbs free energy of the mixture in the standard state [J/kg].
Definition at line 131 of file hPolynomialThermoI.H.
References Foam::T().
|
inline |
Temperature derivative of heat capacity at constant pressure.
Definition at line 141 of file hPolynomialThermoI.H.
References Foam::T().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 75 of file hPolynomialThermo.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::name(), and Foam::vtkWriteOps::write().
|
inline |
Definition at line 157 of file hPolynomialThermoI.H.
References Foam::mag(), and Y.
|
inline |
Definition at line 181 of file hPolynomialThermoI.H.
References s().
|
friend |
|
friend |
|
friend |
|
friend |