34template<
class EquationOfState,
int PolySize>
40 EquationOfState(
dict),
41 Hf_(
dict.subDict(
"thermodynamics").get<scalar>(
"Hf")),
42 Sf_(
dict.subDict(
"thermodynamics").get<scalar>(
"Sf")),
43 CpCoeffs_(
dict.subDict(
"thermodynamics").
lookup(coeffsName(
"Cp"))),
44 Tref_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Tref", Tstd)),
45 Href_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Href", 0)),
46 Sref_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Sref", 0)),
47 Pref_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Pref", Pstd)),
51 hCoeffs_ = CpCoeffs_.integral();
52 sCoeffs_ = CpCoeffs_.integralMinus1();
55 Href_ - hCoeffs_.
value(Tref_) - EquationOfState::H(Pstd, Tref_);
59 Sref_ - sCoeffs_.value(Tref_) - EquationOfState::S(Pstd, Tref_);
65template<
class EquationOfState,
int PolySize>
71 EquationOfState::write(
os);
90template<
class EquationOfState,
int PolySize>
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 & 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.
scalar value(const scalar x) const
Return polynomial value.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
Thermodynamics package templated on the equation of state, using polynomial functions for cp,...
Lookup type of boundary radiation properties.
OBJstream os(runTime.globalPath()/outputName)