44 for (
int i=0; i<n_; i++)
67 A_[i] = coeffs[i].first();
68 Ta_[i] = coeffs[i].second();
75 inline Foam::scalar Foam::LangmuirHinshelwoodReactionRate::operator()
82 return A_[0]*
exp(-Ta_[0]/T)/
85 *
sqr(1 + A_[1]*
exp(-Ta_[1]/T)*
c[co_] + A_[2]*
exp(-Ta_[2]/T)*
c[c3h6_])
86 *(1 + A_[3]*
exp(-Ta_[3]/T)*
sqr(
c[co_])*
sqr(
c[c3h6_]))
87 *(1 + A_[4]*
exp(-Ta_[4]/T)*
pow(
c[no_], 0.7))
98 coeffs[i].
first() = A_[i];
99 coeffs[i].second() = Ta_[i];
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A 1D vector of objects of type <T> with a fixed size <Size>.
Power series reaction rate.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar exp(const dimensionedScalar &ds)
T & first()
Return the first element of the list.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
void write(Ostream &os) const
Write to stream.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
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.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
LangmuirHinshelwoodReactionRate(const scalar A[], const scalar Ta[], const label co, const label c3h6, const label no)
Construct from components.