Go to the documentation of this file.
32 template<
class ReactionThermo>
42 pyrolisisGases_(pyrolisisGases),
48 template<
class ReactionThermo>
56 pyrolisisGases_(pyrolisisGases),
62 template<
class ReactionThermo>
66 const HashPtrTable<ReactionThermo>& thermoDatabase,
70 Reaction<ReactionThermo>(species, thermoDatabase, is),
79 template<
class ReactionThermo>
104 template<
class ReactionThermo>
112 template<
class ReactionThermo>
120 template<
class ReactionThermo>
124 return pyrolisisGases_;
128 template<
class ReactionThermo>
137 template<
class ReactionThermo>
144 if (glhs().size() > 0)
151 if (grhs().size() > 0)
161 template<
class ReactionThermo>
167 for (
label i = 0; i < glhs().
size(); ++i)
173 if (
mag(glhs()[i].stoichCoeff - 1) > SMALL)
177 reaction << gasSpecies()[glhs()[i].index];
178 if (
mag(glhs()[i].exponent - glhs()[i].stoichCoeff) > SMALL)
180 reaction <<
"^" << glhs()[i].exponent;
186 template<
class ReactionThermo>
193 for (
label i = 0; i < grhs().
size(); ++i)
199 if (
mag(grhs()[i].stoichCoeff - 1) > SMALL)
203 reaction << gasSpecies()[grhs()[i].index];
204 if (
mag(grhs()[i].exponent - grhs()[i].stoichCoeff) > SMALL)
206 reaction <<
"^" << grhs()[i].exponent;
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A class for handling character strings derived from std::string.
void solidReactionStrLeft(OStringStream &) const
Return string representation of the left of the reaction.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual void write(Ostream &) const
Write.
virtual const List< specieCoeffs > & grhs() const
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A wordList with hashed indices for faster lookup by name.
hashedWordList speciesTable
A table of species as a hashedWordList.
const dictionary & parent() const
Return the parent dictionary.
string solidReactionStr(OStringStream &) const
Return string representation of reaction.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Input from memory buffer stream.
virtual const speciesTable & gasSpecies() const
Info<< "Creating reaction model\n"<< endl;autoPtr< combustionModels::psiCombustionModel > reaction(combustionModels::psiCombustionModel::New(mesh))
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Output to memory buffer stream.
solidReaction(const Reaction< ReactionThermo > &reaction, const speciesTable &pyrolisisGases, const List< specieCoeffs > &glhs, const List< specieCoeffs > &grhs)
Construct from components.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual const List< specieCoeffs > & glhs() const
Read solid reactions of the type S1 = S2 + G1.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
void solidReactionStrRight(OStringStream &) const
Return string representation of the right of the reaction.