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, const bool convertCoeffs=false) | |
Construct from components. 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/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 | Hc () const |
Chemical enthalpy [J/kg]. More... | |
scalar | S (const scalar p, const scalar T) const |
Entropy [J/kg/K]. More... | |
scalar | dGdT (const scalar p, const scalar T) const |
Derivative of Gibbs free energy w.r.t. temperature. 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 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 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 95 of file janafThermo.H.
|
inline |
Construct from components.
janafThermo | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 60 of file janafThermo.C.
References janafThermo< EquationOfState >::nCoeffs_, and R.
|
inline |
Construct as a named copy.
Definition at line 89 of file janafThermoI.H.
References janafThermo< EquationOfState >::limit(), and janafThermo< EquationOfState >::nCoeffs_.
|
inlinestatic |
Return the instantiated type name.
Definition at line 144 of file janafThermo.H.
References janafThermo< EquationOfState >::Cp(), janafThermo< EquationOfState >::dCpdT(), janafThermo< EquationOfState >::dGdT(), janafThermo< EquationOfState >::Ha(), janafThermo< EquationOfState >::Hc(), janafThermo< EquationOfState >::highCpCoeffs(), janafThermo< EquationOfState >::Hs(), janafThermo< EquationOfState >::limit(), janafThermo< EquationOfState >::lowCpCoeffs(), 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 111 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 133 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the high temperature limit.
Definition at line 140 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the common temperature.
Definition at line 147 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Return const access to the high temperature poly coefficients.
Definition at line 155 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::operator+=(), janafThermo< EquationOfState >::typeName(), and janafThermo< EquationOfState >::write().
|
inline |
Return const access to the low temperature poly coefficients.
Definition at line 163 of file janafThermoI.H.
References janafThermo< EquationOfState >::Cp().
Referenced by janafThermo< EquationOfState >::operator+=(), janafThermo< EquationOfState >::typeName(), and janafThermo< EquationOfState >::write().
|
inline |
Heat capacity at constant pressure [J/kg/K].
Definition at line 171 of file janafThermoI.H.
References Cp(), and janafThermo< EquationOfState >::Ha().
Referenced by janafThermo< EquationOfState >::lowCpCoeffs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Absolute Enthalpy [J/kg].
Definition at line 185 of file janafThermoI.H.
References janafThermo< EquationOfState >::Hs().
Referenced by janafThermo< EquationOfState >::Cp(), janafThermo< EquationOfState >::Hs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Sensible enthalpy [J/kg].
Definition at line 201 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/kg].
Definition at line 211 of file janafThermoI.H.
References janafThermo< EquationOfState >::S(), and Foam::constant::standard::Tstd.
Referenced by janafThermo< EquationOfState >::Hs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Entropy [J/kg/K].
Definition at line 226 of file janafThermoI.H.
References janafThermo< EquationOfState >::dGdT(), and Foam::log().
Referenced by janafThermo< EquationOfState >::Hc(), and janafThermo< EquationOfState >::typeName().
|
inline |
Derivative of Gibbs free energy w.r.t. temperature.
Definition at line 242 of file janafThermoI.H.
References janafThermo< EquationOfState >::dCpdT(), and Foam::T().
Referenced by janafThermo< EquationOfState >::S(), and janafThermo< EquationOfState >::typeName().
|
inline |
Temperature derivative of heat capacity at constant pressure.
Definition at line 254 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::dGdT(), and janafThermo< EquationOfState >::typeName().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 83 of file janafThermo.C.
References dictionary::add(), dict, dictionaryName::dictName(), janafThermo< EquationOfState >::highCpCoeffs(), Foam::indent(), janafThermo< EquationOfState >::lowCpCoeffs(), janafThermo< EquationOfState >::nCoeffs_, R, Foam::blockMeshTools::write(), and Ostream::write().
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Definition at line 269 of file janafThermoI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, janafThermo< EquationOfState >::highCpCoeffs(), janafThermo< EquationOfState >::lowCpCoeffs(), Foam::mag(), Foam::max(), Foam::min(), Foam::name(), Foam::notEqual(), s(), and Y.
Referenced by janafThermo< EquationOfState >::typeName().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 94 of file janafThermo.H.
Referenced by janafThermo< EquationOfState >::janafThermo(), and janafThermo< EquationOfState >::write().