34template<
class EquationOfState,
int PolySize>
35Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo
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);
75 os.beginBlock(
"thermodynamics");
76 os.writeEntry(
"Hf", Hf_);
77 os.writeEntry(
"Sf", Sf_);
78 os.writeEntry(
"Tref", Tref_);
79 os.writeEntry(
"Hsref", Href_);
80 os.writeEntry(
"Sref", Sref_);
81 os.writeEntry(
"Pref", Pref_);
82 os.writeEntry(coeffsName(
"Cp"), CpCoeffs_);
90template<
class EquationOfState,
int PolySize>
91Foam::Ostream& Foam::operator<<
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Thermodynamics package templated on the equation of state, using polynomial functions for cp,...
void write(Ostream &os) const
Write to Ostream.
Lookup type of boundary radiation properties.
OBJstream os(runTime.globalPath()/outputName)