49 A_(dict.
lookup<scalar>(
"A")),
50 beta_(dict.
lookup<scalar>(
"beta")),
51 Ta_(dict.
lookup<scalar>(
"Ta")),
66 inline Foam::scalar Foam::JanevReactionRate::operator()
76 if (
mag(beta_) > vSmall)
83 if (
mag(Ta_) > vSmall)
90 for (
int n=0;
n<nb_;
n++)
92 expArg += b_[
n]*
pow(lnT,
n);
111 if (
mag(beta_) > vSmall)
113 lta *=
pow(T, beta_);
118 if (
mag(Ta_) > vSmall)
125 for (
int n=0;
n<nb_;
n++)
127 expArg += b_[
n]*
pow(lnT,
n);
130 scalar deriv = b_[1];
132 for (
int n=2;
n<nb_;
n++)
134 deriv +=
n*b_[
n]*
pow(lnT,
n-1);
139 return lta*(beta_+Ta_/T+deriv)/T;
146 return NullObjectRef<List<Tuple2<label, scalar>>>();
154 const scalarField& c,
165 const scalarField& c,
virtual Ostream & write(const char)=0
Write character.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
dimensionedScalar log(const dimensionedScalar &ds)
void postEvaluate() const
Post-evaluation hook.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void preEvaluate() const
Pre-evaluation hook.
const List< Tuple2< label, scalar > > & beta() const
Third-body efficiencies (beta = 1-alpha)
Janev, Langer, Evans and Post reaction rate.
dimensionedScalar exp(const dimensionedScalar &ds)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar dcidT(const scalar p, const scalar T, const scalarField &c, const label li) const
Temperature derivative of the pressure dependent term.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void dcidc(const scalar p, const scalar T, const scalarField &c, const label li, scalarField &dcidc) const
Species concentration derivative of the pressure dependent term.
A wordList with hashed indices for faster lookup by name.
JanevReactionRate(const scalar A, const scalar beta, const scalar Ta, const FixedList< scalar, nb_ > b)
Construct from components.
dimensioned< scalar > mag(const dimensioned< Type > &)
scalar ddT(const scalar p, const scalar T, const scalarField &c, const label li) const
void write(Ostream &os) const
Write to stream.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.