28 template<
class ReactionRate,
class FallOffFunction>
32 const ReactionRate& k0,
33 const ReactionRate& kInf,
34 const FallOffFunction& F,
41 thirdBodyEfficiencies_(tbes)
45 template<
class ReactionRate,
class FallOffFunction>
53 k0_(species, dict.
subDict(
"k0")),
54 kInf_(species, dict.
subDict(
"kInf")),
56 thirdBodyEfficiencies_(species, dict.
subDict(
"thirdBodyEfficiencies"))
62 template<
class ReactionRate,
class FallOffFunction>
71 scalar k0 = k0_(p, T,
c);
72 scalar kInf = kInf_(p, T,
c);
74 scalar
Pr = k0*thirdBodyEfficiencies_.M(
c)/kInf;
76 return kInf*(Pr/(1 +
Pr))*F_(T, Pr);
80 template<
class ReactionRate,
class FallOffFunction>
87 os <<
indent << token::BEGIN_BLOCK <<
nl;
91 os <<
indent << token::END_BLOCK <<
nl;
94 os <<
indent << token::BEGIN_BLOCK <<
nl;
98 os <<
indent << token::END_BLOCK <<
nl;
101 os <<
indent << token::BEGIN_BLOCK <<
nl;
105 os <<
indent << token::END_BLOCK <<
nl;
107 os <<
indent <<
"thirdBodyEfficiencies" <<
nl;
108 os <<
indent << token::BEGIN_BLOCK <<
nl;
110 thirdBodyEfficiencies_.
write(os);
112 os <<
indent << token::END_BLOCK <<
nl;
116 template<
class ReactionRate,
class FallOffFunction>
dimensionedScalar Pr("Pr", dimless, laminarTransport)
Ostream & indent(Ostream &os)
Indent stream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
General class for handling unimolecular/recombination fall-off reactions.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
void write(Ostream &os) const
Write to stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
FallOffReactionRate(const ReactionRate &k0, const ReactionRate &kInf, const FallOffFunction &F, const thirdBodyEfficiencies &tbes)
Construct from components.
friend Ostream & operator(Ostream &, const FallOffReactionRate< ReactionRate, FallOffFunction > &)
A wordList with hashed indices for faster lookup by name.
const dimensionedScalar c
Speed of light in a vacuum.
virtual Ostream & write(const token &)=0
Write next token to stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.