33template<
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_ <<
')'
61template<
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();
84template<
class EquationOfState>
87 EquationOfState::write(
os);
92 for (label coefLabel=0; coefLabel<nCoeffs_; coefLabel++)
94 highCpCoeffs[coefLabel] = highCpCoeffs_[coefLabel]/this->
R();
95 lowCpCoeffs[coefLabel] = lowCpCoeffs_[coefLabel]/this->
R();
113template<
class EquationOfState>
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define R(A, B, C, D, E, F, K, M)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & endBlock()
Write end block group.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
JANAF tables based thermodynamics package templated into the equation of state.
static constexpr int nCoeffs_
Lookup type of boundary radiation properties.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
errorManipArg< error, int > exit(error &err, const int errNo=1)