33template<
class ThermoType>
47template<
class ThermoType>
64template<
class ThermoType>
67 SLPtrList<Reaction<ThermoType>>(reactions),
68 species_(reactions.species_),
69 thermoDb_(reactions.thermoDb_),
70 dict_(reactions.dict_)
76template<
class ThermoType>
79 for (
const entry& dEntry : dict_.subDict(
"reactions"))
96template<
class ThermoType>
99 os.beginBlock(
"reactions");
101 for (
const Reaction<ThermoType>& r : *
this)
103 os.beginBlock(r.name());
105 os.writeEntry(
"type", r.type());
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & endBlock()
Write end block group.
List of templated reactions.
ReactionList(const speciesTable &species, const ReactionTable< ThermoType > &thermoDatabase)
Construct empty list.
void write(Ostream &os) const
Write.
bool readReactionDict()
Read reactions from dictionary.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
static autoPtr< Reaction< ReactionThermo > > New(const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
Return a pointer to new patchField created on freestore from dict.
virtual void write(Ostream &os) const
Write.
const word & name() const noexcept
Name of reaction.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A keyword and a list of tokens is an 'entry'.
OBJstream os(runTime.globalPath()/outputName)
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
hashedWordList speciesTable
A table of species as a hashedWordList.
HashPtrTable< ThermoType > ReactionTable
LPtrList< SLListBase, T > SLPtrList