Go to the documentation of this file.
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_])
108 *(1 + A_[4]*
exp(-Ta_[4]/
T)*
pow(
c[no_], 0.7))
120 coeffs[i].second() =
Ta_[i];
138 <<
'(' << lhrr.A_[i] <<
token::SPACE << lhrr.Ta_[i] <<
')';
Istream & readEnd(const char *funcName)
#define forAll(list, i)
Loop across all elements in list.
T & first()
Return the first element of the list.
dimensionedScalar exp(const dimensionedScalar &ds)
simpleMatrix< scalar > A(Nc)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
LangmuirHinshelwoodReactionRate(const scalar A[], const scalar Ta[], const label co, const label c3h6, const label no)
Construct from components.
A wordList with hashed indices for faster lookup by name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Power series reaction rate.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void write(Ostream &os) const
Write to stream.
A 1D vector of objects of type <T> with a fixed size <Size>.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Istream & readBegin(const char *funcName)