Go to the documentation of this file.
34 template<
class ReactionThermo>
44 pyrolisisGases_(pyrolisisGases),
50 template<
class ReactionThermo>
58 pyrolisisGases_(pyrolisisGases),
64 template<
class ReactionThermo>
73 pyrolisisGases_(
dict.parent().parent().lookup(
"gaseousSpecies")),
89 template<
class ReactionThermo>
97 template<
class ReactionThermo>
105 template<
class ReactionThermo>
109 return pyrolisisGases_;
113 template<
class ReactionThermo>
117 os.writeEntry(
"reaction", solidReactionStr(
reaction));
121 template<
class ReactionThermo>
128 if (glhs().size() > 0)
135 if (grhs().size() > 0)
145 template<
class ReactionThermo>
151 for (label i = 0; i < glhs().size(); ++i)
157 if (
mag(glhs()[i].stoichCoeff - 1) > SMALL)
161 reaction << gasSpecies()[glhs()[i].index];
162 if (
mag(glhs()[i].exponent - glhs()[i].stoichCoeff) > SMALL)
164 reaction <<
"^" << glhs()[i].exponent;
170 template<
class ReactionThermo>
177 for (label i = 0; i < grhs().size(); ++i)
183 if (
mag(grhs()[i].stoichCoeff - 1) > SMALL)
187 reaction << gasSpecies()[grhs()[i].index];
188 if (
mag(grhs()[i].exponent - grhs()[i].stoichCoeff) > SMALL)
190 reaction <<
"^" << grhs()[i].exponent;
A class for handling character strings derived from std::string.
virtual const List< specieCoeffs > & grhs() const
Access to gas components of the reaction.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
virtual void write(Ostream &os) const
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
virtual const speciesTable & gasSpecies() const
Access to gas specie list.
CombustionModel< rhoReactionThermo > & reaction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Output to string buffer, using a OSstream. Always UNCOMPRESSED.
solidReaction(const Reaction< ReactionThermo > &reaction, const speciesTable &pyrolisisGases, const List< specieCoeffs > &glhs, const List< specieCoeffs > &grhs)
Construct from components.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual const List< specieCoeffs > & glhs() const
Read solid reactions of the type S1 = S2 + G1.
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...