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... | |
void | 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... | |
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.
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, and hPolynomialThermo< EquationOfState, PolySize >::write().
|
inline |
Construct as copy.
Definition at line 54 of file hPolynomialThermoI.H.
|
inline |
Construct as a named copy.
Definition at line 69 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::limit().
|
inlinestatic |
Return the instantiated type name.
Definition at line 154 of file hPolynomialThermo.H.
References hPolynomialThermo< EquationOfState, PolySize >::cp(), hPolynomialThermo< EquationOfState, PolySize >::ha(), hPolynomialThermo< EquationOfState, PolySize >::hc(), hPolynomialThermo< EquationOfState, PolySize >::hs(), hPolynomialThermo< EquationOfState, PolySize >::limit(), hPolynomialThermo< EquationOfState, PolySize >::operator*=(), hPolynomialThermo< EquationOfState, PolySize >::operator+=(), hPolynomialThermo< EquationOfState, PolySize >::operator-=(), hPolynomialThermo< EquationOfState, PolySize >::operator=(), p, hPolynomialThermo< EquationOfState, PolySize >::s(), Foam::T(), and hPolynomialThermo< EquationOfState, PolySize >::write().
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 87 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::cp(), and Foam::T().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::hPolynomialThermo(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Heat capacity at constant pressure [J/(kmol K)].
Definition at line 97 of file hPolynomialThermoI.H.
References cp, and hPolynomialThermo< EquationOfState, PolySize >::ha().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::limit(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Absolute Enthalpy [J/kmol].
Definition at line 107 of file hPolynomialThermoI.H.
References Foam::constant::universal::h, and hPolynomialThermo< EquationOfState, PolySize >::hs().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::cp(), hPolynomialThermo< EquationOfState, PolySize >::hs(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Sensible enthalpy [J/kmol].
Definition at line 117 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::ha(), and hPolynomialThermo< EquationOfState, PolySize >::hc().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::ha(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Chemical enthalpy [J/kmol].
Definition at line 126 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::s().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::hs(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Entropy [J/(kmol K)].
Definition at line 135 of file hPolynomialThermoI.H.
References s().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::hc(), hPolynomialThermo< EquationOfState, PolySize >::operator*=(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 97 of file hPolynomialThermo.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::name(), Foam::tab, and write().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::hPolynomialThermo(), and hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Definition at line 148 of file hPolynomialThermoI.H.
Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Definition at line 164 of file hPolynomialThermoI.H.
Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Definition at line 185 of file hPolynomialThermoI.H.
Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
inline |
Definition at line 206 of file hPolynomialThermoI.H.
References hPolynomialThermo< EquationOfState, PolySize >::s().
Referenced by hPolynomialThermo< EquationOfState, PolySize >::typeName().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |