Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s. More...
Public Member Functions | |
hPolynomialThermo (Istream &is) | |
Construct from Istream. More... | |
hPolynomialThermo (const dictionary &dict) | |
Construct from dictionary. More... | |
hPolynomialThermo (const hPolynomialThermo &) | |
Construct as copy. 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/(kmol K)]. More... | |
scalar | ha (const scalar p, const scalar T) const |
Absolute Enthalpy [J/kmol]. More... | |
scalar | hs (const scalar p, const scalar T) const |
Sensible enthalpy [J/kmol]. More... | |
scalar | hc () const |
Chemical enthalpy [J/kmol]. More... | |
scalar | s (const scalar p, const scalar T) const |
Entropy [J/(kmol K)]. More... | |
void | write (Ostream &os) const |
Write to Ostream. More... | |
hPolynomialThermo & | operator= (const hPolynomialThermo &) |
void | operator+= (const hPolynomialThermo &) |
void | operator-= (const hPolynomialThermo &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static word | typeName () |
Return the instantiated type name. More... | |
Private 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... | |
Private Attributes | |
scalar | Hf_ |
Heat of formation. More... | |
scalar | Sf_ |
Standard entropy. More... | |
Polynomial< PolySize > | CpCoeffs_ |
Specific heat at constant pressure polynomial coeffs [J/(kg.K)]. More... | |
Polynomial< PolySize >::intPolyType | hCoeffs_ |
Enthalpy polynomial coeffs - derived from cp [J/kg]. More... | |
Polynomial< PolySize > | sCoeffs_ |
Entropy - derived from Cp [J/(kg.K)] - relative to Tstd. More... | |
Friends | |
hPolynomialThermo | operator+ (const hPolynomialThermo &, const hPolynomialThermo &) |
hPolynomialThermo | operator- (const hPolynomialThermo &, const hPolynomialThermo &) |
hPolynomialThermo | operator* (const scalar, const hPolynomialThermo &) |
hPolynomialThermo | operator== (const hPolynomialThermo &, const hPolynomialThermo &) |
Ostream & | operator (Ostream &, const hPolynomialThermo &) |
Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s.
Polynomials for h and s derived from cp
Definition at line 52 of file hPolynomialThermo.H.
|
inlineprivate |
Construct from components.
Definition at line 32 of file hPolynomialThermoI.H.
hPolynomialThermo | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 33 of file hPolynomialThermo.C.
References Foam::constant::standard::Tstd.
hPolynomialThermo | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 61 of file hPolynomialThermo.C.
References Foam::constant::standard::Tstd.
|
inline |
Construct as copy.
|
inline |
Construct as a named copy.
|
inlinestatic |
Return the instantiated type name.
Definition at line 154 of file hPolynomialThermo.H.
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 87 of file hPolynomialThermoI.H.
References Foam::T().
|
inline |
Heat capacity at constant pressure [J/(kmol K)].
Definition at line 97 of file hPolynomialThermoI.H.
References Foam::T().
|
inline |
Absolute Enthalpy [J/kmol].
Definition at line 107 of file hPolynomialThermoI.H.
References Foam::T().
|
inline |
Sensible enthalpy [J/kmol].
Definition at line 117 of file hPolynomialThermoI.H.
|
inline |
Chemical enthalpy [J/kmol].
Definition at line 126 of file hPolynomialThermoI.H.
|
inline |
Entropy [J/(kmol K)].
Definition at line 135 of file hPolynomialThermoI.H.
References p, s(), and Foam::T().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 97 of file hPolynomialThermo.C.
References dict, Foam::indent(), Foam::name(), PolySize, and write().
|
inline |
Definition at line 149 of file hPolynomialThermoI.H.
|
inline |
Definition at line 167 of file hPolynomialThermoI.H.
|
inline |
Definition at line 188 of file hPolynomialThermoI.H.
|
inline |
Definition at line 209 of file hPolynomialThermoI.H.
References s().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Heat of formation.
Note: input in [J/kg], but internally uses [J/kmol]
Definition at line 103 of file hPolynomialThermo.H.
|
private |
Standard entropy.
Note: input in [J/kg/K], but internally uses [J/kmol/K]
Definition at line 107 of file hPolynomialThermo.H.
|
private |
Specific heat at constant pressure polynomial coeffs [J/(kg.K)].
Definition at line 110 of file hPolynomialThermo.H.
|
private |
Enthalpy polynomial coeffs - derived from cp [J/kg].
NOTE: relative to Tstd
Definition at line 114 of file hPolynomialThermo.H.
|
private |
Entropy - derived from Cp [J/(kg.K)] - relative to Tstd.
Definition at line 117 of file hPolynomialThermo.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.