44 for (
int i=0; i<n_; i++)
62 is.
readBegin(
"LangmuirHinshelwoodReactionRate(Istream&)");
64 for (
int i=0; i<n_; i++)
66 is >> A_[i] >> Ta_[i];
69 is.
readEnd(
"LangmuirHinshelwoodReactionRate(Istream&)");
88 A_[i] = coeffs[i].first();
89 Ta_[i] = coeffs[i].second();
96 inline Foam::scalar Foam::LangmuirHinshelwoodReactionRate::operator()
103 return A_[0]*
exp(-Ta_[0]/T)/
106 *
sqr(1 + A_[1]*
exp(-Ta_[1]/T)*
c[co_] + A_[2]*
exp(-Ta_[2]/T)*
c[c3h6_])
107 *(1 + A_[3]*
exp(-Ta_[3]/T)*
sqr(
c[co_])*
sqr(
c[c3h6_]))
108 *(1 + A_[4]*
exp(-Ta_[4]/T)*
pow(
c[no_], 0.7))
119 coeffs[i].
first() = A_[i];
120 coeffs[i].second() = Ta_[i];
135 for (
int i=0; i<LangmuirHinshelwoodReactionRate::n_; i++)
138 <<
'(' << lhrr.A_[i] <<
token::SPACE << lhrr.Ta_[i] <<
')';
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
LangmuirHinshelwoodReactionRate(const scalar A[], const scalar Ta[], const label co, const label c3h6, const label no)
Construct from components.
dimensionedScalar exp(const dimensionedScalar &ds)
A 1D vector of objects of type <T> with a fixed size <Size>.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Power series reaction rate.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Istream & readBegin(const char *funcName)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A wordList with hashed indices for faster lookup by name.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
T & first()
Return the first element of the list.
Istream & readEnd(const char *funcName)
void write(Ostream &os) const
Write to stream.