Go to the documentation of this file.
53 template<
class ReactionThermo>
56 template<
class ReactionThermo>
64 template<
class ReactionThermo>
67 public ReactionThermo::thermoType
367 friend Ostream& operator<< <ReactionThermo>
A class for handling words, derived from string.
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.
const speciesTable & species() const
void reactionStrLeft(OStringStream &reaction) const
Return string representation of the left of the reaction.
const word name_
Name of reaction.
void setThermo(const HashPtrTable< ReactionThermo > &thermoDatabase)
Construct reaction thermo.
Class to hold the specie index and its coefficients in the.
label getNewReactionID()
Return new reaction ID for un-named reactions.
string reactionStr(OStringStream &reaction) const
Return string representation of reaction.
autoPtr< Reaction > operator()(Istream &is) const
virtual const speciesTable & gasSpecies() 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 const List< specieCoeffs > & glhs() const
iNew(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase)
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.
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.
Class used for the read-construction of PtrLists of reaction.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
declareRunTimeSelectionTable(autoPtr, Reaction, Istream,(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &is),(species, thermoDatabase, is))
Pre-declare SubField and related Field type.
A wordList with hashed indices for faster lookup by name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual ~Reaction()
Destructor.
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.
Ostream & operator<<(Ostream &, const edgeMesh &)
const speciesTable & species_
List of specie names present in reaction system.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void operator=(const Reaction< ReactionThermo > &)
Disallow default bitwise assignment.
List< specieCoeffs > rhs_
Specie info for the right-hand-side of the reaction.
Info<< "Creating reaction model\n"<< endl;autoPtr< combustionModels::psiCombustionModel > reaction(combustionModels::psiCombustionModel::New(mesh))
const speciesTable & species_
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const List< specieCoeffs > & rhs() const
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 memory buffer stream.
List< specieCoeffs > lhs_
Specie info for the left-hand-side of the reaction.
const dimensionedScalar c
Speed of light in a vacuum.
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)
const HashPtrTable< ReactionThermo > & thermoDatabase_