33 template<
class Specie>
40 p0_(
dict.subDict(
"equationOfState").
get<scalar>(
"p0")),
41 rho0_(
dict.subDict(
"equationOfState").
get<scalar>(
"rho0")),
42 gamma_(
dict.subDict(
"equationOfState").
get<scalar>(
"gamma")),
43 B_(
dict.subDict(
"equationOfState").
get<scalar>(
"B"))
49 template<
class Specie>
56 os.beginBlock(
"equationOfState");
57 os.writeEntry(
"p0", p0_);
58 os.writeEntry(
"rho0", rho0_);
59 os.writeEntry(
"gamma", gamma_);
60 os.writeEntry(
"B", B_);
68 template<
class Specie>
72 const adiabaticPerfectFluid<Specie>& pf
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...
adiabaticPerfectFluid(const Specie &sp, const scalar p0, const scalar rho0, const scalar gamma, const scalar B)
Construct from components.
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.
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.