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>
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>
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)
Write begin block group with the given name.
static constexpr int nCoeffs_
#define R(A, B, C, D, E, F, K, M)
Lookup type of boundary radiation properties.
virtual Ostream & endBlock()
Write end block group.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void write(Ostream &os) const
Write to Ostream.