Go to the documentation of this file.
56 template<
class ReactionThermo>
59 template<
class ReactionThermo>
67 template<
class ReactionThermo>
70 public ReactionThermo::thermoType
159 label getNewReactionID();
193 bool initReactionThermo =
true
212 bool initReactionThermo =
true
312 friend Ostream& operator<< <ReactionThermo>
A class for handling words, derived from Foam::string.
void setLRhs(Istream &, const speciesTable &, List< specieCoeffs > &lhs, List< specieCoeffs > &rhs)
Construct the left- and right-hand-side reaction coefficients.
const speciesTable & species() const
Access to specie list.
void reactionStrLeft(OStringStream &reaction) const
Return string representation of the left of the reaction.
Class to hold the specie index and its coefficients in the.
virtual ~Reaction()=default
Destructor.
virtual const speciesTable & gasSpecies() const
Access to gas specie list.
virtual const List< specieCoeffs > & glhs() const
bool operator!=(const specieCoeffs &sc) const
const List< specieCoeffs > & lhs() const
virtual scalar kf(const scalar p, const scalar T, const scalarField &c) const
Forward rate constant.
void reactionStrRight(OStringStream &reaction) const
Return string representation of the right of the reaction.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
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.
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.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
declareRunTimeSelectionTable(autoPtr, Reaction, dictionary,(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict),(species, thermoDatabase, dict))
virtual void write(Ostream &) const
Write.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
TypeName("Reaction")
Runtime type information.
virtual autoPtr< Reaction< ReactionThermo > > clone() const
Construct and return a clone.
static label nUnNamedReactions
Number of un-named reactions.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
CombustionModel< rhoReactionThermo > & reaction
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const List< specieCoeffs > & rhs() const
A HashTable of pointers to objects of type <T>, with deallocation management of the pointers.
Macros to ease declaration of run-time selection tables.
bool operator==(const specieCoeffs &sc) const
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.
const dimensionedScalar c
Speed of light in a vacuum.
const word & name() const
virtual const List< specieCoeffs > & grhs() const
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...
friend Ostream & operator<<(Ostream &os, const specieCoeffs &sc)
Reaction(const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase, bool initReactionThermo=true)
Construct from components.