55 template<
class ReactionThermo>
58 template<
class ReactionThermo>
59 inline Ostream& operator<<(Ostream&, const Reaction<ReactionThermo>&);
68 template<
class ReactionThermo>
72 public ReactionThermo::thermoType
115 (species, thermoDatabase, dict)
129 (species, thermoDatabase, ob, dict)
210 inline scalar
Tlow()
const;
213 inline scalar
Thigh()
const;
317 virtual bool hasDkdc()
const = 0;
372 friend Ostream& operator<< <ReactionThermo>
virtual void dkfdc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dkfdc) const =0
Concentration derivative of forward rate.
void dNdtByV(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dNdtByV, const bool reduced, const List< label > &c2s, const label Nsi0) const
The net reaction rate for each species involved.
virtual scalar dkfdT(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Temperature derivative of forward rate.
scalar omega(const scalar p, const scalar T, const scalarField &c, const label li, scalar &omegaf, scalar &omegar) const
Net reaction rate.
virtual bool hasDkdc() const =0
Does this reaction have concentration-dependent rate constants?
virtual ~Reaction()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void write(Ostream &) const
Write.
TypeName("Reaction")
Runtime type information.
A HashTable specialisation for hashing pointers.
const List< specieCoeffs > & lhs() const
Return the components of the left hand side.
virtual void postEvaluate() const =0
Post-evaluation hook.
const dimensionedScalar c
Speed of light in a vacuum.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
virtual void preEvaluate() const =0
Pre-evaluation hook.
Reaction base-class holding the specie names and coefficients.
static scalar TlowDefault
Default temperature limits of applicability of reaction rates.
scalar Tlow() const
Return the lower temperature limit for the reaction.
virtual scalar kr(const scalar kf, const scalar p, const scalar T, const scalarField &c, const label li) const =0
Reverse rate constant from the given forward rate constant.
scalar Thigh() const
Return the upper temperature limit for the reaction.
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)
void operator=(const Reaction< ReactionThermo > &)=delete
Disallow default bitwise assignment.
void ddNdtByVdcTp(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dNdtByV, scalarSquareMatrix &ddNdtByVdcTp, const bool reduced, const List< label > &c2s, const label csi0, const label Tsi, scalarField &cTpWork0, scalarField &cTpWork1) const
Derivative of the net reaction rate for each species involved.
Reaction(const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase)
Construct from components.
const List< specieCoeffs > & rhs() const
Return the components of the right hand side.
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.
void C(const scalar p, const scalar T, const scalarField &c, const label li, scalar &Cf, scalar &Cr) const
Concentration powers.
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...
const word & name() const
Return the name of the reaction.
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.
Registry of regIOobjects.
virtual void dkrdc(const scalar p, const scalar T, const scalarField &c, const label li, const scalarField &dkfdc, const scalar kr, scalarField &dkrdc) const =0
Concentration derivative of reverse rate.
virtual scalar kf(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Forward rate constant.