Go to the documentation of this file.
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
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void write(Ostream &os) const
virtual Ostream & beginBlock(const keyType &kw)
const dimensionedScalar Tstd
virtual Ostream & endBlock()
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
Ostream & writeEntry(const keyType &key, const T &value)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Constant properties thermodynamics package templated into the EquationOfState.