11 #include "cantera/kinetics/Falloff.h" 20 "Incorrect number of parameters. 0 required. Received {}.",
27 if (c.size() != 3 && c.size() != 4) {
29 "Incorrect number of parameters. 3 or 4 required. Received {}.",
44 Fcent += exp(-
m_t2 / T);
49 double Troe::F(
double pr,
const double* work)
const 52 double cc = -0.4 - 0.67 * (*work);
53 double nn = 0.75 - 1.27 * (*work);
54 double f1 = (lpr + cc)/ (nn - 0.14 * (lpr + cc));
55 double lgf = (*work) / (1.0 + f1 * f1);
56 return pow(10.0, lgf);
61 params[1] = 1.0/
m_rt3;
62 params[2] = 1.0/
m_rt1;
68 if (c.size() != 3 && c.size() != 5) {
70 "Incorrect number of parameters. 3 or 5 required. Received {}.",
76 "m_c parameter is less than zero: {}", c[2]);
85 "m_d parameter is less than zero: {}", c[3]);
97 *work =
m_a * exp(-
m_b / T);
99 *work += exp(- T/
m_c);
101 work[1] =
m_d * pow(T,
m_e);
104 double SRI::F(
double pr,
const double* work)
const 107 double xx = 1.0/(1.0 + lpr*lpr);
108 return pow(*work, xx) * work[1];
virtual void init(const vector_fp &c)
Initialization of the object.
doublereal m_c
parameter c in the 5-parameter SRI falloff function. [K]
doublereal m_rt1
parameter 1/T_1 in the 4-parameter Troe falloff function. [K^-1]
virtual void init(const vector_fp &c)
Initialization of the object.
virtual void getParameters(double *params) const
Sets params to contain, in order, .
doublereal m_t2
parameter T_2 in the 4-parameter Troe falloff function. [K]
virtual void getParameters(double *params) const
Sets params to contain, in order, .
doublereal m_rt3
parameter 1/T_3 in the 4-parameter Troe falloff function. [K^-1]
virtual void init(const vector_fp &c)
Initialize.
virtual doublereal F(doublereal pr, const doublereal *work) const
The falloff function.
doublereal m_e
parameter d in the 5-parameter SRI falloff function. Dimensionless.
doublereal m_d
parameter d in the 5-parameter SRI falloff function. Dimensionless.
Base class for exceptions thrown by Cantera classes.
virtual void updateTemp(doublereal T, doublereal *work) const
Update the temperature parameters in the representation.
doublereal m_b
parameter b in the 5-parameter SRI falloff function. [K]
const doublereal SmallNumber
smallest number to compare to zero.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void updateTemp(doublereal T, doublereal *work) const
Update the temperature parameters in the representation.
doublereal m_a
parameter a in the 4-parameter Troe falloff function. Dimensionless
Contains declarations for string manipulation functions within Cantera.
Namespace for the Cantera kernel.
virtual doublereal F(doublereal pr, const doublereal *work) const
The falloff function.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
doublereal m_a
parameter a in the 5-parameter SRI falloff function. Dimensionless.