Go to the documentation of this file.
33 template<
class EquationOfState>
39 <<
"Tlow(" << Tlow_ <<
") >= Thigh(" << Thigh_ <<
')'
43 if (Tcommon_ <= Tlow_)
46 <<
"Tcommon(" << Tcommon_ <<
") <= Tlow(" << Tlow_ <<
')'
50 if (Tcommon_ > Thigh_)
53 <<
"Tcommon(" << Tcommon_ <<
") > Thigh(" << Thigh_ <<
')'
61 template<
class EquationOfState>
64 EquationOfState(
dict),
65 Tlow_(
dict.subDict(
"thermodynamics").
get<scalar>(
"Tlow")),
66 Thigh_(
dict.subDict(
"thermodynamics").
get<scalar>(
"Thigh")),
67 Tcommon_(
dict.subDict(
"thermodynamics").
get<scalar>(
"Tcommon")),
68 highCpCoeffs_(
dict.subDict(
"thermodynamics").lookup(
"highCpCoeffs")),
69 lowCpCoeffs_(
dict.subDict(
"thermodynamics").lookup(
"lowCpCoeffs"))
72 for (label coefLabel=0; coefLabel<
nCoeffs_; coefLabel++)
74 highCpCoeffs_[coefLabel] *= this->
R();
75 lowCpCoeffs_[coefLabel] *= this->
R();
84 template<
class EquationOfState>
90 coeffArray highCpCoeffs;
91 coeffArray lowCpCoeffs;
92 for (label coefLabel=0; coefLabel<nCoeffs_; coefLabel++)
94 highCpCoeffs[coefLabel] = highCpCoeffs_[coefLabel]/this->
R();
95 lowCpCoeffs[coefLabel] = lowCpCoeffs_[coefLabel]/this->
R();
113 template<
class EquationOfState>
117 const janafThermo<EquationOfState>& jt
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
JANAF tables based thermodynamics package templated into the equation of state.
virtual Ostream & beginBlock(const keyType &kw)
static constexpr int nCoeffs_
#define R(A, B, C, D, E, F, K, M)
Lookup type of boundary radiation properties.
virtual Ostream & endBlock()
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual bool write(const token &tok)=0
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Ostream & writeEntry(const keyType &key, const T &value)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
janafThermo(const EquationOfState &st, const scalar Tlow, const scalar Thigh, const scalar Tcommon, const coeffArray &highCpCoeffs, const coeffArray &lowCpCoeffs, const bool convertCoeffs=false)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void write(Ostream &os) const