Go to the documentation of this file.
34 template<
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();
59 Sref_ - sCoeffs_.value(Tref_) - EquationOfState::S(
Pstd, Tref_);
65 template<
class EquationOfState,
int PolySize>
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_);
90 template<
class EquationOfState,
int PolySize>
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
const dimensionedScalar Pstd
Standard pressure.
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
const dimensionedScalar Tstd
Standard temperature.
void write(Ostream &os) const
Write to Ostream.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
Thermodynamics package templated on the equation of state, using polynomial functions for cp,...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...