46 for (
int i=0; i<n_; i++)
57 const dictionary&
dict 60 co_(species.
find(
"CO")),
61 c3h6_(species.
find(
"C3H6")),
62 no_(species.
find(
"NO"))
65 FixedList<Tuple2<scalar, scalar>, n_> coeffs(
dict.lookup(
"coeffs"));
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)/
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];
111 const LangmuirHinshelwoodReactionRate& lhrr
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Same as ListOps::find_if.
A 1D vector of objects of type <T> with a fixed length <N>.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr char nl
The newline '\n' character (0x0a)
hashedWordList speciesTable
A table of species as a hashedWordList.
#define forAll(list, i)
Loop across all elements in list.
dimensionedScalar exp(const dimensionedScalar &ds)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
T & first() noexcept
Access first element of the list, position [0] - front()
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void write(Ostream &os) const
Write to stream.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const dimensionedScalar c
Speed of light in a vacuum.
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
LangmuirHinshelwoodReactionRate(const scalar A[], const scalar Ta[], const label co, const label c3h6, const label no)
Construct from components.