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;
372 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...
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.
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.
void omega(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dcdt) const
Net reaction rate for individual species.
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.
scalar Tlow() const
Return the lower temperature limit for the reaction.
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.
virtual const List< Tuple2< label, scalar > > & beta() const =0
Third-body efficiencies (beta = 1-alpha)
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.
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.
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.
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.
virtual scalar kf(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Forward rate constant.