Go to the documentation of this file.
46 for (
int i=0; i<n_; i++)
69 A_[i] = coeffs[i].first();
70 Ta_[i] = coeffs[i].second();
77 inline Foam::scalar Foam::LangmuirHinshelwoodReactionRate::operator()
84 return A_[0]*
exp(-Ta_[0]/
T)/
87 *
sqr(1 + A_[1]*
exp(-Ta_[1]/
T)*
c[co_] + A_[2]*
exp(-Ta_[2]/
T)*
c[c3h6_])
89 *(1 + A_[4]*
exp(-Ta_[4]/
T)*
pow(
c[no_], 0.7))
100 coeffs[i].
first() = A_[i];
101 coeffs[i].second() = Ta_[i];
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
dimensionedScalar exp(const dimensionedScalar &ds)
#define forAll(list, i)
Loop across all elements in list.
T & first() noexcept
The first element of the list, position [0].
LangmuirHinshelwoodReactionRate(const scalar A[], const scalar Ta[], const label co, const label c3h6, const label no)
Construct from components.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
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 length <N>.
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...