JANAF tables based thermodynamics package templated into the equation of state. More...
Public Types | |
typedef FixedList< scalar, nCoeffs_ > | coeffArray |
Public Member Functions | |
janafThermo (const EquationOfState &st, const scalar Tlow, const scalar Thigh, const scalar Tcommon, const coeffArray &highCpCoeffs, const coeffArray &lowCpCoeffs) | |
Construct from components. More... | |
janafThermo (Istream &) | |
Construct from Istream. More... | |
janafThermo (const dictionary &dict) | |
Construct from dictionary. More... | |
janafThermo (const word &, const janafThermo &) | |
Construct as a named copy. More... | |
scalar | limit (const scalar T) const |
Limit the temperature to be in the range Tlow_ to Thigh_. More... | |
scalar | Tlow () const |
Return const access to the low temperature limit. More... | |
scalar | Thigh () const |
Return const access to the high temperature limit. More... | |
scalar | Tcommon () const |
Return const access to the common temperature. More... | |
const coeffArray & | highCpCoeffs () const |
Return const access to the high temperature poly coefficients. More... | |
const coeffArray & | lowCpCoeffs () const |
Return const access to the low temperature poly coefficients. 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 janafThermo &) |
void | operator-= (const janafThermo &) |
Static Public Member Functions | |
static word | typeName () |
Return the instantiated type name. More... | |
Static Public Attributes | |
static const int | nCoeffs_ = 7 |
Friends | |
janafThermo | operator+ (const janafThermo &, const janafThermo &) |
janafThermo | operator- (const janafThermo &, const janafThermo &) |
janafThermo | operator* (const scalar, const janafThermo &) |
janafThermo | operator== (const janafThermo &, const janafThermo &) |
Ostream & | operator (Ostream &, const janafThermo &) |
JANAF tables based thermodynamics package templated into the equation of state.
Definition at line 49 of file janafThermo.H.
typedef FixedList<scalar, nCoeffs_> coeffArray |
Definition at line 102 of file janafThermo.H.
|
inline |
Construct from components.
janafThermo | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 60 of file janafThermo.C.
References IOstream::check(), and forAll.
janafThermo | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 85 of file janafThermo.C.
|
inline |
Construct as a named copy.
Definition at line 77 of file janafThermoI.H.
References janafThermo< EquationOfState >::limit(), and janafThermo< EquationOfState >::nCoeffs_.
|
inlinestatic |
Return the instantiated type name.
Definition at line 153 of file janafThermo.H.
References janafThermo< EquationOfState >::cp(), janafThermo< EquationOfState >::ha(), janafThermo< EquationOfState >::hc(), janafThermo< EquationOfState >::highCpCoeffs(), janafThermo< EquationOfState >::hs(), janafThermo< EquationOfState >::limit(), janafThermo< EquationOfState >::lowCpCoeffs(), janafThermo< EquationOfState >::operator+=(), janafThermo< EquationOfState >::operator-=(), p, janafThermo< EquationOfState >::s(), Foam::T(), janafThermo< EquationOfState >::Tcommon(), janafThermo< EquationOfState >::Thigh(), janafThermo< EquationOfState >::Tlow(), and janafThermo< EquationOfState >::write().
|
inline |
Limit the temperature to be in the range Tlow_ to Thigh_.
Definition at line 99 of file janafThermoI.H.
References Foam::endl(), Foam::max(), Foam::min(), Foam::T(), and WarningInFunction.
Referenced by janafThermo< EquationOfState >::janafThermo(), and janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the low temperature limit.
Definition at line 121 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the high temperature limit.
Definition at line 128 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the common temperature.
Definition at line 135 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the high temperature poly coefficients.
Definition at line 143 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::operator-=(), and janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the low temperature poly coefficients.
Definition at line 151 of file janafThermoI.H.
References janafThermo< EquationOfState >::cp().
Referenced by janafThermo< EquationOfState >::operator-=(), and janafThermo< EquationOfState >::typeName().
|
inline |
Heat capacity at constant pressure [J/(kmol K)].
Definition at line 159 of file janafThermoI.H.
References cp, janafThermo< EquationOfState >::ha(), and Foam::constant::thermodynamic::RR.
Referenced by janafThermo< EquationOfState >::lowCpCoeffs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Absolute Enthalpy [J/kmol].
Definition at line 173 of file janafThermoI.H.
References Foam::constant::universal::h, janafThermo< EquationOfState >::hs(), and Foam::constant::thermodynamic::RR.
Referenced by janafThermo< EquationOfState >::cp(), janafThermo< EquationOfState >::hs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Sensible enthalpy [J/kmol].
Definition at line 190 of file janafThermoI.H.
References janafThermo< EquationOfState >::ha(), and janafThermo< EquationOfState >::hc().
Referenced by janafThermo< EquationOfState >::ha(), and janafThermo< EquationOfState >::typeName().
|
inline |
Chemical enthalpy [J/kmol].
Definition at line 200 of file janafThermoI.H.
References Foam::constant::thermodynamic::RR, janafThermo< EquationOfState >::s(), and Foam::constant::standard::Tstd.
Referenced by janafThermo< EquationOfState >::hs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Entropy [J/(kmol K)].
Definition at line 215 of file janafThermoI.H.
References Foam::log(), Foam::constant::thermodynamic::RR, and s().
Referenced by janafThermo< EquationOfState >::hc(), janafThermo< EquationOfState >::operator-=(), and janafThermo< EquationOfState >::typeName().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 101 of file janafThermo.C.
References dictionary::add(), IOstream::check(), dict, dictionaryName::dictName(), Foam::endl(), forAll, Foam::indent(), Foam::nl, Foam::tab, and write().
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Definition at line 235 of file janafThermoI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::max(), Foam::min(), Foam::name(), and Foam::notEqual().
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Definition at line 279 of file janafThermoI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, janafThermo< EquationOfState >::highCpCoeffs(), janafThermo< EquationOfState >::lowCpCoeffs(), Foam::max(), Foam::min(), Foam::name(), Foam::notEqual(), and janafThermo< EquationOfState >::s().
Referenced by janafThermo< EquationOfState >::typeName().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 101 of file janafThermo.H.
Referenced by janafThermo< EquationOfState >::janafThermo().