31 template<
class EquationOfState>
37 <<
"Tlow(" << Tlow_ <<
") >= Thigh(" << Thigh_ <<
')'
41 if (Tcommon_ <= Tlow_)
44 <<
"Tcommon(" << Tcommon_ <<
") <= Tlow(" << Tlow_ <<
')'
48 if (Tcommon_ > Thigh_)
51 <<
"Tcommon(" << Tcommon_ <<
") > Thigh(" << Thigh_ <<
')'
59 template<
class EquationOfState>
67 Tlow_(
dict.subDict(
"thermodynamics").lookup<scalar>(
"Tlow")),
68 Thigh_(
dict.subDict(
"thermodynamics").lookup<scalar>(
"Thigh")),
69 Tcommon_(
dict.subDict(
"thermodynamics").lookup<scalar>(
"Tcommon")),
70 highCpCoeffs_(
dict.subDict(
"thermodynamics").lookup(
"highCpCoeffs")),
71 lowCpCoeffs_(
dict.subDict(
"thermodynamics").lookup(
"lowCpCoeffs"))
76 highCpCoeffs_[coefLabel] *= this->
R();
77 lowCpCoeffs_[coefLabel] *= this->
R();
86 template<
class EquationOfState>
94 for (
label coefLabel=0; coefLabel<nCoeffs_; coefLabel++)
96 highCpCoeffs[coefLabel] = highCpCoeffs_[coefLabel]/this->
R();
97 lowCpCoeffs[coefLabel] = lowCpCoeffs_[coefLabel]/this->
R();
104 dict.
add(
"highCpCoeffs", highCpCoeffs);
105 dict.
add(
"lowCpCoeffs", lowCpCoeffs);
112 template<
class EquationOfState>
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
const word dictName() const
Return the local dictionary name (final part of scoped name)
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool add(entry *, bool mergeEntry=false)
Add a new entry.
Enthalpy based thermodynamics package using JANAF tables:
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.
void write(Ostream &os) const
Write to Ostream.
static const int nCoeffs_
Number of coefficients.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
static scalar R(const scalar a, const scalar x)
Ostream & indent(Ostream &os)
Indent stream.