34 template<
class EquationOfState>
37 EquationOfState(
dict),
38 Cv_(
dict.subDict(
"thermodynamics").
get<scalar>(
"Cv")),
39 Hf_(
dict.subDict(
"thermodynamics").
get<scalar>(
"Hf")),
40 Tref_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Tref",
Tstd)),
41 Esref_(
dict.subDict(
"thermodynamics").getOrDefault<scalar>(
"Eref", 0))
47 template<
class EquationOfState>
54 os.beginBlock(
"thermodynamics");
55 os.writeEntry(
"Cv", Cv_);
56 os.writeEntry(
"Hf", Hf_);
57 os.writeEntryIfDifferent<scalar>(
"Tref",
Tstd, Tref_);
58 os.writeEntryIfDifferent<scalar>(
"Eref", 0, Esref_);
66 template<
class EquationOfState>
70 const eConstThermo<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.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Constant properties thermodynamics package templated on an equation of state.
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.