30 template<
class ThermoType,
class ReactionRate>
42 template<
class ThermoType,
class ReactionRate>
51 k_(species, this->kfDims(),
dict)
55 template<
class ThermoType,
class ReactionRate>
65 k_(species, ob, this->kfDims(),
dict)
69 template<
class ThermoType,
class ReactionRate>
83 template<
class ThermoType,
class ReactionRate>
90 template<
class ThermoType,
class ReactionRate>
97 template<
class ThermoType,
class ReactionRate>
106 return k_(
p,
T,
c, li);
110 template<
class ThermoType,
class ReactionRate>
120 return kfwd/
max(this->Kc(
p,
T), rootSmall);
124 template<
class ThermoType,
class ReactionRate>
133 return kr(kf(
p,
T,
c, li),
p,
T,
c, li);
137 template<
class ThermoType,
class ReactionRate>
146 return k_.ddT(
p,
T,
c, li);
150 template<
class ThermoType,
class ReactionRate>
161 const scalar Kc =
max(this->Kc(
p,
T), rootSmall);
163 return dkfdT/Kc - (Kc > rootSmall ? kr*this->dKcdTbyKc(
p,
T) : 0);
167 template<
class ThermoType,
class ReactionRate>
175 template<
class ThermoType,
class ReactionRate>
185 k_.ddc(
p,
T,
c, li, dkfdc);
189 template<
class ThermoType,
class ReactionRate>
201 const scalar Kc =
max(this->Kc(
p,
T), rootSmall);
207 template<
class ThermoType,
class ReactionRate>
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 void write(Ostream &) const
Write.
Extension of Reaction to handle reversible reactions using equilibrium thermodynamics.
virtual scalar kr(const scalar kfwd, const scalar p, const scalar T, const scalarField &c, const label li) const
Reverse rate constant from the given forward rate constant.
virtual scalar dkfdT(const scalar p, const scalar T, const scalarField &c, const label li) const
Temperature derivative of forward rate.
virtual void write(Ostream &) const
Write.
virtual void preEvaluate() const
Pre-evaluation hook.
virtual void postEvaluate() const
Post-evaluation hook.
virtual scalar dkrdT(const scalar p, const scalar T, const scalarField &c, const label li, const scalar dkfdT, const scalar kr) const
Temperature derivative of backward rate.
void dkfdc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dkfdc) const
Concentration derivative of forward rate.
virtual bool hasDkdc() const
Does this reaction have concentration-dependent rate constants?
virtual scalar kf(const scalar p, const scalar T, const scalarField &c, const label li) const
Forward rate constant.
void dkrdc(const scalar p, const scalar T, const scalarField &c, const label li, const scalarField &dkfdc, const scalar kr, scalarField &dkrdc) const
Concentration derivative of reverse rate.
ReversibleReaction(const Reaction< ThermoType > &reaction, const ReactionRate &k)
Construct from components.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A wordList with hashed indices for faster lookup by name.
Registry of regIOobjects.
Reaction base-class holding the specie names and coefficients.
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.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)