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 |
Private Member Functions | |
void | checkInputData () const |
Check that input data is valid. More... | |
const coeffArray & | coeffs (const scalar T) const |
Return the coefficients corresponding to the given temperature. More... | |
Private Attributes | |
scalar | Tlow_ |
scalar | Thigh_ |
scalar | Tcommon_ |
coeffArray | highCpCoeffs_ |
coeffArray | lowCpCoeffs_ |
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 & | ) |
Construct from Istream.
janafThermo | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 85 of file janafThermo.C.
References janafThermo::checkInputData().
|
inline |
Construct as a named copy.
|
private |
Check that input data is valid.
Definition at line 32 of file janafThermo.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Referenced by janafThermo::janafThermo().
|
inlineprivate |
Return the coefficients corresponding to the given temperature.
Definition at line 58 of file janafThermoI.H.
References Foam::T().
|
inlinestatic |
Return the instantiated type name.
Definition at line 153 of file janafThermo.H.
|
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.
|
inline |
Return const access to the low temperature limit.
Definition at line 121 of file janafThermoI.H.
|
inline |
Return const access to the high temperature limit.
Definition at line 128 of file janafThermoI.H.
|
inline |
Return const access to the common temperature.
Definition at line 135 of file janafThermoI.H.
|
inline |
Return const access to the high temperature poly coefficients.
Definition at line 143 of file janafThermoI.H.
|
inline |
Return const access to the low temperature poly coefficients.
Definition at line 151 of file janafThermoI.H.
|
inline |
Heat capacity at constant pressure [J/(kmol K)].
Definition at line 159 of file janafThermoI.H.
References Foam::constant::thermodynamic::RR, and Foam::T().
|
inline |
Absolute Enthalpy [J/kmol].
Definition at line 171 of file janafThermoI.H.
References Foam::constant::thermodynamic::RR, and Foam::T().
|
inline |
Sensible enthalpy [J/kmol].
Definition at line 187 of file janafThermoI.H.
|
inline |
Chemical enthalpy [J/kmol].
Definition at line 197 of file janafThermoI.H.
References Foam::constant::thermodynamic::RR, and Foam::constant::standard::Tstd.
|
inline |
Entropy [J/(kmol K)].
Definition at line 212 of file janafThermoI.H.
References Foam::log(), p, Foam::constant::thermodynamic::RR, s(), and Foam::T().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 101 of file janafThermo.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), and write().
|
inline |
Definition at line 232 of file janafThermoI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, janafThermo::highCpCoeffs_, janafThermo::lowCpCoeffs_, Foam::max(), Foam::min(), Foam::name(), Foam::notEqual(), janafThermo::Tcommon_, janafThermo::Thigh_, and janafThermo::Tlow_.
|
inline |
Definition at line 276 of file janafThermoI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, janafThermo::highCpCoeffs_, janafThermo::lowCpCoeffs_, Foam::max(), Foam::min(), Foam::name(), Foam::notEqual(), janafThermo::Tcommon_, janafThermo::Thigh_, and janafThermo::Tlow_.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 101 of file janafThermo.H.
|
private |
Definition at line 110 of file janafThermo.H.
Referenced by janafThermo::operator+=(), and janafThermo::operator-=().
|
private |
Definition at line 110 of file janafThermo.H.
Referenced by janafThermo::operator+=(), and janafThermo::operator-=().
|
private |
Definition at line 110 of file janafThermo.H.
Referenced by janafThermo::operator+=(), and janafThermo::operator-=().
|
private |
Definition at line 112 of file janafThermo.H.
Referenced by janafThermo::operator+=(), and janafThermo::operator-=().
|
private |
Definition at line 113 of file janafThermo.H.
Referenced by janafThermo::operator+=(), and janafThermo::operator-=().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.