78 virtual void updateTemp(doublereal T, doublereal* work)
const {
79 doublereal Fcent = (1.0 -
m_a) * exp(- T *
m_rt3)
84 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
85 doublereal lpr,f1,lgf, cc, nn;
87 cc = -0.4 - 0.67 * (*work);
88 nn = 0.75 - 1.27 * (*work);
89 f1 = (lpr + cc)/ (nn - 0.14 * (lpr + cc));
90 lgf = (*work) / (1.0 + f1 * f1);
91 return pow(10.0, lgf);
175 virtual void updateTemp(doublereal T, doublereal* work)
const {
176 doublereal Fcent = (1.0 -
m_a) * exp(- T *
m_rt3)
182 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
183 doublereal lpr,f1,lgf, cc, nn;
185 cc = -0.4 - 0.67 * (*work);
186 nn = 0.75 - 1.27 * (*work);
187 f1 = (lpr + cc)/ (nn - 0.14 * (lpr + cc));
188 lgf = (*work) / (1.0 + f1 * f1);
189 return pow(10.0, lgf);
246 "m_c parameter is less than zero: " +
fp2str(c[2]));
262 virtual void updateTemp(doublereal T, doublereal* work)
const {
263 *work =
m_a * exp(-
m_b / T);
265 *work += exp(- T/
m_c);
269 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
271 doublereal xx = 1.0/(1.0 + lpr*lpr);
272 return pow(*work , xx);
331 "m_c parameter is less than zero: " +
fp2str(c[2]));
335 "m_d parameter is less than zero: " +
fp2str(c[3]));
353 virtual void updateTemp(doublereal T, doublereal* work)
const {
354 *work =
m_a * exp(-
m_b / T);
356 *work += exp(- T/
m_c);
358 work[1] =
m_d * pow(T,
m_e);
361 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
363 doublereal xx = 1.0/(1.0 + lpr*lpr);
364 return pow(*work, xx) * work[1];
449 virtual void updateTemp(doublereal T, doublereal* work)
const {
452 doublereal Fcent = (1.0 -
m_a) * exp(- T *
m_rt3)
454 work[2] = log10(Fcent);
457 virtual doublereal
F(doublereal pr,
const doublereal* work)
const {
459 doublereal x = (lpr - work[0])/work[1];
460 doublereal flog = work[2]/exp(x*x);
461 return pow(10.0, flog);
doublereal m_alpha2
Value of the coefficient.
The 3-parameter Troe falloff parameterization.
doublereal m_d
parameter d in the 5-parameter SRI falloff function. This is unitless.
virtual Falloff * newFalloff(int type, const vector_fp &c)
Return a pointer to a new falloff function calculator.
doublereal m_alpha1
Value of the coefficient.
WF93()
Default constructor.
doublereal m_rt3
parameter 1/T_3 in the 4-parameter Troe falloff function.
virtual size_t workSize()
The size of the work array required.
virtual doublereal F(doublereal pr, const doublereal *work) const
The falloff function.
doublereal m_rt1
parameter 1/T_1 in the 4-parameter Troe falloff function.
virtual void init(const vector_fp &c)
Initialization of the object.
doublereal m_a
parameter a in the 4-parameter Troe falloff function.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
doublereal m_c
parameter c in the 5-parameter SRI falloff function.
Parameterizations for reaction falloff functions.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, HTML_logs (see Input File Handling, Diagnostic Output, Writing messages to the screen and Writing HTML Logfiles).
doublereal m_sigma1
Value of the coefficient.
doublereal m_alpha0
Value of the coefficient.
The 5-parameter SRI falloff function.
static mutex_t falloff_mutex
Mutex for use when calling the factory.
doublereal m_t2
parameter T_2 in the 4-parameter Troe falloff function.
doublereal m_rt1
Value of inverse of the coefficient.
Troe3()
Default constructor.
doublereal m_sigma2
Value of the coefficient.
virtual size_t workSize()
The size of the work array required.
virtual doublereal F(doublereal pr, const doublereal *work) const
The falloff function.
doublereal m_rt3
Value of the inverse of the coefficient.
doublereal m_c
parameter c in the 3-parameter SRI falloff function.
virtual void updateTemp(doublereal T, doublereal *work) const
Update the temperature parameters in the representation.
std::string fp2str(const double x, const std::string &fmt)
Convert a double into a c++ string.
doublereal m_e
parameter d in the 5-parameter SRI falloff function. This is unitless.
virtual size_t workSize()
The size of the work array required.
doublereal m_a
parameter a in the 5-parameter SRI falloff function. This is unitless.
virtual void updateTemp(doublereal T, doublereal *work) const
Update the temperature parameters in the representation.
Base class for exceptions thrown by Cantera classes.
virtual void init(const vector_fp &c)
Initialization routine.
virtual doublereal F(doublereal pr, const doublereal *work) const
The falloff function.
doublereal m_t2
Value of the coefficient.
virtual void init(const vector_fp &c)
Initialize.
virtual void init(const vector_fp &c)
Initialization of the object.
static FalloffFactory * s_factory
Pointer to the single instance of the factory.
Base class for falloff function calculators.
doublereal m_a
parameter a in the 4-parameter Troe falloff function.
virtual void updateTemp(doublereal T, doublereal *work) const
Update the temperature parameters in the representation.
virtual size_t workSize()
The size of the work array required.
doublereal m_a
parameter a in the 3-parameter SRI falloff function.
doublereal m_rt3
parameter 1/T_3 in the 4-parameter Troe falloff function.
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 doublereal F(doublereal pr, const doublereal *work) const
The falloff function.
virtual void init(const vector_fp &c)
Initialization of the object.
virtual doublereal F(doublereal pr, const doublereal *work) const
The falloff function.
doublereal m_b
parameter b in the 5-parameter SRI falloff function.
Contains declarations for string manipulation functions within Cantera.
The 4-parameter Troe falloff parameterization.
virtual void init(const vector_fp &c)
Initialize.
virtual void updateTemp(doublereal T, doublereal *work) const
Update the temperature parameters in the representation.
The 3-parameter SRI falloff function for F
Wang-Frenklach falloff function.
doublereal m_sigma0
Value of the coefficient.
virtual size_t workSize()
The size of the work array required.
doublereal m_a
Value of the coefficient.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
virtual void updateTemp(doublereal T, doublereal *work) const
Update the temperature parameters in the representation.
doublereal m_rt1
parameter 1/T_1 in the 4-parameter Troe falloff function.
doublereal m_b
parameter b in the 3-parameter SRI falloff function.