Cantera
2.4.0
|
Base class for falloff function calculators. More...
#include <Falloff.h>
Public Member Functions | |
virtual void | init (const vector_fp &c) |
Initialize. More... | |
virtual void | updateTemp (doublereal T, doublereal *work) const |
Update the temperature-dependent portions of the falloff function, if any, and store them in the 'work' array. More... | |
virtual doublereal | F (doublereal pr, const doublereal *work) const |
The falloff function. More... | |
virtual size_t | workSize () |
The size of the work array required. More... | |
virtual int | getType () const |
Return an integer representing the type of the Falloff parameterization. More... | |
virtual size_t | nParameters () const |
Returns the number of parameters used by this parameterization. More... | |
virtual void | getParameters (double *params) const |
Get the values of the parameters for this object. More... | |
Base class for falloff function calculators.
Each instance of a subclass of Falloff computes one falloff function. This base class implements the trivial falloff function F = 1.0.
|
virtual |
Initialize.
Must be called before any other method is invoked.
c | Vector of coefficients of the parameterization. The number and meaning of these coefficients is subclass-dependent. |
Reimplemented in SRI, and Troe.
Definition at line 16 of file Falloff.cpp.
|
inlinevirtual |
|
inlinevirtual |
The falloff function.
This is defined so that the rate coefficient is
\[ k = F(Pr)\frac{Pr}{1 + Pr}. \]
Here \( Pr \) is the reduced pressure, defined by
\[ Pr = \frac{k_0 [M]}{k_\infty}. \]
pr | reduced pressure (dimensionless). |
work | array of size workSize() containing cached temperature-dependent intermediate results from a prior call to updateTemp. |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Returns the number of parameters used by this parameterization.
The values of these parameters can be obtained from getParameters().
|
inlinevirtual |
Get the values of the parameters for this object.
params must be an array of at least nParameters() elements.