34template<
class EquationOfState>
35Foam::eConstThermo<EquationOfState>::eConstThermo(
const dictionary&
dict)
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))
47template<
class EquationOfState>
50 EquationOfState::write(
os);
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_);
66template<
class EquationOfState>
70 const eConstThermo<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 on an equation of state.
void write(Ostream &os) const
Write to Ostream.
OBJstream os(runTime.globalPath()/outputName)
const scalar Tstd
Standard temperature: default in [K].