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>
90 template<
class EquationOfState,
int PolySize>
94 const hPolynomialThermo<EquationOfState, PolySize>& pt
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void write(Ostream &os) const
Write to Ostream.
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...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Lookup type of boundary radiation properties.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
virtual Ostream & endBlock()
Write end block group.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
const dimensionedScalar Pstd
Standard pressure.
const dimensionedScalar Tstd
Standard temperature.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.