34template<
class EquationOfState>
35Foam::hConstThermo<EquationOfState>::hConstThermo(
const dictionary&
dict)
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))
47template<
class EquationOfState>
50 EquationOfState::write(
os);
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_);
66template<
class EquationOfState>
70 const hConstThermo<EquationOfState>& ct
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Constant properties thermodynamics package templated into the EquationOfState.
void write(Ostream &os) const
Write to Ostream.
OBJstream os(runTime.globalPath()/outputName)