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, is)
190 (species, thermoDatabase, dict)
211 thermoDatabase_(thermoDatabase)
367 friend Ostream& operator<< <ReactionThermo>
const List< specieCoeffs > & lhs() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual const List< specieCoeffs > & grhs() const
static autoPtr< Reaction< ReactionThermo > > New(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &is)
Return a pointer to new patchField created on freestore from input.
virtual ~Reaction()
Destructor.
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)...
const List< specieCoeffs > & rhs() const
Class used for the read-construction of PtrLists of reaction.
void reactionStrRight(OStringStream &reaction) const
Return string representation of the right of the reaction.
TypeName("Reaction")
Runtime type information.
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...
virtual scalar kf(const scalar p, const scalar T, const scalarField &c) const
Forward rate constant.
A class for handling words, derived from string.
void reactionStrLeft(OStringStream &reaction) const
Return string representation of the left of the reaction.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool operator!=(const specieCoeffs &sc) const
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 autoPtr< Reaction< ReactionThermo > > clone() const
Construct and return a clone.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual const List< specieCoeffs > & glhs() const
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.
declareRunTimeSelectionTable(autoPtr, Reaction, Istream,(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &is),(species, thermoDatabase, is))
const dimensionedScalar c
Speed of light in a vacuum.
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.
const speciesTable & species() const
static label nUnNamedReactions
Number of un-named reactions.
bool operator==(const specieCoeffs &sc) const
Output to memory buffer stream.
friend Ostream & operator<<(Ostream &os, const specieCoeffs &sc)
virtual const speciesTable & gasSpecies() const