34 template<
class EquationOfState>
37 EquationOfState(
dict),
38 Cp_(
dict.subDict(
"thermodynamics").
get<scalar>(
"Cp")),
39 Hf_(
dict.subDict(
"thermodynamics").
get<scalar>(
"Hf")),
40 Tref_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Tref",
Tstd)),
41 Hsref_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Href", 0))
47 template<
class EquationOfState>
54 os.beginBlock(
"thermodynamics");
55 os.writeEntry(
"Cp", Cp_);
56 os.writeEntry(
"Hf", Hf_);
57 os.writeEntryIfDifferent<scalar>(
"Tref",
Tstd, Tref_);
58 os.writeEntryIfDifferent<scalar>(
"Href", 0, Hsref_);
66 template<
class EquationOfState>
70 const hConstThermo<EquationOfState>& ct
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
Constant properties thermodynamics package templated into the EquationOfState.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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)
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
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)
void write(Ostream &os) const
Write to Ostream.