56 template<
class ReactionThermo>
59 template<
class ReactionThermo>
60 inline Ostream& operator<<(Ostream&, const Reaction<ReactionThermo>&);
67 template<
class ReactionThermo>
70 public ReactionThermo::thermoType
109 label getNewReactionID();
130 (species, thermoDatabase, dict)
190 inline scalar
Tlow()
const;
193 inline scalar
Thigh()
const;
363 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.
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...
void fdot(const scalar p, const scalar T, const scalarField &c, scalarField &f) const
Backward reaction rate.
virtual void write(Ostream &) const
Write.
const List< specieCoeffs > & lhs() const
Return the components of the left hand side.
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.
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.
A class for handling words, derived from string.
virtual const List< Tuple2< label, scalar > > & beta() const =0
Third-body efficiencies (beta = 1-alpha)
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.
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 operator=(const Reaction< ReactionThermo > &)=delete
Disallow default bitwise assignment.
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.
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...
const List< specieCoeffs > & rhs() const
Return the components of the right hand side.
Macros to ease declaration of run-time selection tables.
static label nUnNamedReactions
Number of un-named reactions.
virtual scalar kf(const scalar p, const scalar T, const scalarField &c) const =0
Forward rate constant.