55 template<
class ReactionThermo>
58 template<
class ReactionThermo>
59 inline Ostream& operator<<(Ostream&, const Reaction<ReactionThermo>&);
66 template<
class ReactionThermo>
69 public ReactionThermo::thermoType
113 return index == sc.
index;
118 return index != sc.
index;
142 scalar Tlow_, Thigh_;
163 label getNewReactionID();
184 (species, thermoDatabase, dict)
253 inline scalar
Tlow()
const;
256 inline scalar
Thigh()
const;
420 friend Ostream& operator<< <ReactionThermo>
void ddot(const scalar p, const scalar T, const scalarField &c, scalarField &d) const
Forward reaction rate.
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
Return the components of the left hand side.
virtual ~Reaction()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word & name() const
Return the name of the reaction.
void dwdT(const scalar p, const scalar T, const scalarField &c, const scalar omegaI, const scalar kfwd, const scalar kbwd, scalarSquareMatrix &J, const bool reduced, const List< label > &c2s, const label indexT) const
Derivative of the net reaction rate for each species involved.
virtual scalar dkfdT(const scalar p, const scalar T, const scalarField &c) const =0
Temperature derivative of forward rate.
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)...
void fdot(const scalar p, const scalar T, const scalarField &c, scalarField &f) const
Backward reaction rate.
virtual void write(Ostream &) const
Write.
virtual scalar kr(const scalar kfwd, const scalar p, const scalar T, const scalarField &c) const =0
Reverse rate constant from the given forward rate constant.
TypeName("Reaction")
Runtime type information.
A HashTable specialization for hashing pointers.
void omega(const scalar p, const scalar T, const scalarField &c, scalarField &dcdt) const
Net reaction rate for individual species.
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...
scalar Tlow() const
Return the lower temperature limit for the reaction.
static scalar TlowDefault
Default temperature limits of applicability of reaction rates.
virtual void dcidc(const scalar p, const scalar T, const scalarField &c, scalarField &dcidc) const =0
Species concentration derivative of the pressure dependent term.
const speciesTable & species() const
Return the specie list.
void reactionStrLeft(OStringStream &reaction) const
Return string representation of the left of the reaction.
A class for handling words, derived from string.
virtual const List< Tuple2< label, scalar > > & beta() const =0
Third-body efficiencies (beta = 1-alpha)
CombustionModel< rhoReactionThermo > & reaction
void dwdc(const scalar p, const scalar T, const scalarField &c, scalarSquareMatrix &J, scalarField &dcdt, scalar &omegaI, scalar &kfwd, scalar &kbwd, const bool reduced, const List< label > &c2s) const
Derivative of the net reaction rate for each species involved.
bool operator!=(const specieCoeffs &sc) const
static scalar ThighDefault
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual scalar dkrdT(const scalar p, const scalar T, const scalarField &c, const scalar dkfdT, const scalar kr) const =0
Temperature derivative of reverse rate.
virtual autoPtr< Reaction< ReactionThermo > > clone() const =0
Construct and return a clone.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar Thigh() const
Return the upper temperature limit for the reaction.
void reactionStrRight(OStringStream &reaction) const
Return string representation of the right of the reaction.
virtual scalar dcidT(const scalar p, const scalar T, const scalarField &c) const =0
Temperature derivative of the pressure dependent term.
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.
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.
virtual scalar kf(const scalar p, const scalar T, const scalarField &c) const =0
Forward rate constant.
friend Ostream & operator<<(Ostream &os, const specieCoeffs &sc)
const List< specieCoeffs > & rhs() const
Return the components of the right hand side.
bool operator==(const specieCoeffs &sc) const