55 template<
class ThermoType>
58 template<
class ThermoType>
68 template<
class ThermoType>
72 public ThermoType::thermoType
203 inline scalar
Tlow()
const;
206 inline scalar
Thigh()
const;
319 virtual bool hasDkdc()
const = 0;
374 friend Ostream& operator<< <ThermoType>
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Simple extension of ThermoType to handle reaction kinetics in addition to the equilibrium thermodynam...
virtual scalar kf(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Forward rate constant.
virtual void postEvaluate() const =0
Post-evaluation hook.
virtual void write(Ostream &) const
Write.
static scalar TlowDefault
Default temperature limits of applicability of reaction rates.
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.
declareRunTimeSelectionTable(autoPtr, Reaction, dictionary,(const speciesTable &species, const PtrList< ThermoType > &speciesThermo, const dictionary &dict),(species, speciesThermo, dict))
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.
static scalar ThighDefault
virtual void preEvaluate() const =0
Pre-evaluation hook.
scalar Tlow() const
Return the lower temperature limit for the reaction.
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.
void C(const scalar p, const scalar T, const scalarField &c, const label li, scalar &Cf, scalar &Cr) const
Concentration powers.
virtual scalar dkfdT(const scalar p, const scalar T, const scalarField &c, const label li) const =0
Temperature derivative of forward rate.
dimensionSet kfDims() const
Dimensions of the forward rate.
dimensionSet krDims() const
Dimensions of the reverse rate.
TypeName("Reaction")
Runtime type information.
virtual void dkfdc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dkfdc) const =0
Concentration derivative of forward rate.
scalar Thigh() const
Return the upper temperature limit for the reaction.
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.
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.
static autoPtr< Reaction< ThermoType > > New(const speciesTable &species, const PtrList< ThermoType > &speciesThermo, const dictionary &dict)
Return a pointer to new reaction created from a dictionary.
scalar omega(const scalar p, const scalar T, const scalarField &c, const label li, scalar &omegaf, scalar &omegar) const
Net reaction rate.
void operator=(const Reaction< ThermoType > &)=delete
Disallow default bitwise assignment.
virtual ~Reaction()
Destructor.
virtual autoPtr< Reaction< ThermoType > > clone() const =0
Construct and return a clone.
Reaction(const speciesTable &species, const PtrList< ThermoType > &speciesThermo, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs)
Construct from components.
virtual bool hasDkdc() const =0
Does this reaction have concentration-dependent rate constants?
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Dimension set for the base types.
A wordList with hashed indices for faster lookup by name.
Registry of regIOobjects.
Reaction base-class holding the specie names and coefficients.
const speciesTable & species() const
Return the specie list.
const List< specieCoeffs > & lhs() const
Return the components of the left hand side.
const List< specieCoeffs > & rhs() const
Return the components of the right hand side.
const word & name() const
Return the name of the reaction.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Macros to ease declaration of run-time selection tables.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...