34template<
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))
47template<
class EquationOfState>
50 EquationOfState::write(
os);
66template<
class EquationOfState>
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,...
virtual Ostream & endBlock()
Write end block group.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
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.
virtual bool write()
Write the output fields.
OBJstream os(runTime.globalPath()/outputName)