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 | 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 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 >::Gstd(), janafThermo< EquationOfState >::Ha(), janafThermo< EquationOfState >::Hf(), 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 >::Hs().
Referenced by janafThermo< EquationOfState >::lowCpCoeffs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Absolute enthalpy [J/kg].
Definition at line 196 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::Hs(), and janafThermo< EquationOfState >::typeName().
|
inline |
Sensible enthalpy [J/kg].
Definition at line 185 of file janafThermoI.H.
References janafThermo< EquationOfState >::Ha(), and janafThermo< EquationOfState >::Hf().
Referenced by janafThermo< EquationOfState >::Cp(), and janafThermo< EquationOfState >::typeName().
|
inline |
Enthalpy of formation [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 >::Gstd(), Foam::log(), and Sp.
Referenced by janafThermo< EquationOfState >::Hf(), and janafThermo< EquationOfState >::typeName().
|
inline |
Gibbs free energy of the mixture in the standard state [J/kg].
Definition at line 242 of file janafThermoI.H.
References janafThermo< EquationOfState >::dCpdT(), and Foam::log().
Referenced by janafThermo< EquationOfState >::S(), and janafThermo< EquationOfState >::typeName().
|
inline |
Temperature derivative of heat capacity at constant pressure.
Definition at line 261 of file janafThermoI.H.
Referenced by janafThermo< EquationOfState >::Gstd(), 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::vtkWriteOps::write(), and Ostream::write().
Referenced by janafThermo< EquationOfState >::typeName().
|
inline |
Definition at line 275 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().