58 inline Foam::scalar Foam::JanevReactionRate::operator()
67 if (
mag(beta_) > vSmall)
74 if (
mag(Ta_) > vSmall)
81 for (
int n=0;
n<nb_;
n++)
83 expArg += b_[
n]*
pow(lnT,
n);
101 if (
mag(beta_) > vSmall)
103 lta *=
pow(T, beta_);
108 if (
mag(Ta_) > vSmall)
115 for (
int n=0;
n<nb_;
n++)
117 expArg += b_[
n]*
pow(lnT,
n);
120 scalar deriv = b_[1];
122 for (
int n=2;
n<nb_;
n++)
124 deriv +=
n*b_[
n]*
pow(lnT,
n-1);
129 return lta*(beta_+Ta_/T+deriv)/T;
136 return NullObjectRef<List<Tuple2<label, scalar>>>();
scalar ddT(const scalar p, const scalar T, const scalarField &c) const
scalar dcidT(const scalar p, const scalar T, const scalarField &c) const
Temperature derivative of the pressure dependent term.
dimensionedScalar log(const dimensionedScalar &ds)
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...
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)
void dcidc(const scalar p, const scalar T, const scalarField &c, scalarField &dcidc) const
Species concentration derivative of the pressure dependent term.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
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 > &)
virtual Ostream & write(const token &)=0
Write next token to stream.
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.