53 template<
class ReactionThermo>
56 template<
class ReactionThermo>
57 inline Ostream& operator<<(Ostream&, const Reaction<ReactionThermo>&);
64 template<
class ReactionThermo>
67 public ReactionThermo::thermoType
109 return index == sc.
index;
114 return index != sc.
index;
156 label getNewReactionID();
177 (species, thermoDatabase, dict)
308 friend Ostream& operator<< <ReactionThermo>
virtual scalar kr(const scalar kfwd, const scalar p, const scalar T, const scalarField &c) const
Reverse rate constant from the given forward rate constant.
virtual scalar kf(const scalar p, const scalar T, const scalarField &c) const
Forward rate constant.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const List< specieCoeffs > & lhs() const
virtual ~Reaction()
Destructor.
virtual const List< specieCoeffs > & grhs() const
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual void write(Ostream &) const
Write.
TypeName("Reaction")
Runtime type information.
virtual autoPtr< Reaction< ReactionThermo > > clone() const
Construct and return a clone.
A HashTable specialization for hashing pointers.
Class to hold the specie index and its coefficients in the.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
const speciesTable & species() const
Access to specie list.
void reactionStrLeft(OStringStream &reaction) const
Return string representation of the left of the reaction.
A class for handling words, derived from string.
bool operator!=(const specieCoeffs &sc) const
virtual const List< specieCoeffs > & glhs() const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual const speciesTable & gasSpecies() const
Access to gas specie list.
void reactionStrRight(OStringStream &reaction) const
Return string representation of the right of the reaction.
Reaction(const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase)
Construct from components.
void setLRhs(Istream &, const speciesTable &, List< specieCoeffs > &lhs, List< specieCoeffs > &rhs)
Construct the left- and right-hand-side reaction coefficients.
A wordList with hashed indices for faster lookup by name.
static autoPtr< Reaction< ReactionThermo > > New(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
Return a pointer to new patchField created on freestore from dict.
Info<< "Creating reaction model\"<< endl;autoPtr< combustionModels::psiCombustionModel > reaction(combustionModels::psiCombustionModel::New(mesh))
const dimensionedScalar c
Speed of light in a vacuum.
declareRunTimeSelectionTable(autoPtr, Reaction, dictionary,(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict),(species, thermoDatabase, dict))
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
static label nUnNamedReactions
Number of un-named reactions.
Output to memory buffer stream.
friend Ostream & operator<<(Ostream &os, const specieCoeffs &sc)
const List< specieCoeffs > & rhs() const
bool operator==(const specieCoeffs &sc) const