56 template<
class ReactionThermo>
59 template<
class ReactionThermo>
60 inline Ostream& operator<<(Ostream&, const Reaction<ReactionThermo>&);
68 template<
class ReactionThermo>
71 public ReactionThermo::thermoType
110 label getNewReactionID();
131 (species, thermoDatabase, dict)
145 (species, thermoDatabase, ob, dict)
226 inline scalar
Tlow()
const;
229 inline scalar
Thigh()
const;
412 friend Ostream& operator<< <ReactionThermo>
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 scalar dkfdT(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Temperature derivative of forward rate.
virtual void dcidc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dcidc) const =0
Species concentration derivative of the pressure dependent term.
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void dwdc(const scalar p, const scalar T, const scalarField &c, const label li, 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.
virtual void write(Ostream &) const
Write.
const List< specieCoeffs > & lhs() const
Return the components of the left hand side.
TypeName("Reaction")
Runtime type information.
A HashTable specialization for hashing pointers.
const dimensionedScalar & c
Speed of light in a vacuum.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
void omega(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dcdt) const
Net reaction rate for individual species.
scalar Tlow() const
Return the lower temperature limit for the reaction.
static scalar TlowDefault
Default temperature limits of applicability of reaction rates.
virtual scalar dcidT(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Temperature derivative of the pressure dependent term.
const speciesTable & species() const
Return the specie list.
A class for handling words, derived from string.
virtual scalar kr(const scalar kfwd, const scalar p, const scalar T, const scalarField &c, const label li) const =0
Reverse rate constant from the given forward rate constant.
void fdot(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &f) const
Backward reaction rate.
virtual const List< Tuple2< label, scalar > > & beta() const =0
Third-body efficiencies (beta = 1-alpha)
void ddot(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &d) const
Forward reaction rate.
static scalar ThighDefault
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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.
Reaction(const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase)
Construct from components.
virtual scalar dkrdT(const scalar p, const scalar T, const scalarField &c, const label li, const scalar dkfdT, const scalar kr) const =0
Temperature derivative of reverse rate.
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.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
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.
void dwdT(const scalar p, const scalar T, const scalarField &c, const label li, 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.
Registry of regIOobjects.
static label nUnNamedReactions
Number of un-named reactions.
virtual scalar kf(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Forward rate constant.