Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members

Base class for falloff function calculators. More...

#include <Falloff.h>

Inheritance diagram for Falloff:
[legend]

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...
 

Detailed Description

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.

Definition at line 23 of file Falloff.h.

Member Function Documentation

void init ( const vector_fp c)
virtual

Initialize.

Must be called before any other method is invoked.

Parameters
cVector of coefficients of the parameterization. The number and meaning of these coefficients is subclass-dependent.

Reimplemented in SRI, and Troe.

Definition at line 13 of file Falloff.cpp.

References Cantera::int2str().

Referenced by FalloffFactory::newFalloff().

virtual void updateTemp ( doublereal  T,
doublereal *  work 
) const
inlinevirtual

Update the temperature-dependent portions of the falloff function, if any, and store them in the 'work' array.

If not overloaded, the default behavior is to do nothing.

Parameters
TTemperature [K].
workstorage space for intermediate results.

Reimplemented in SRI, and Troe.

Definition at line 44 of file Falloff.h.

virtual doublereal F ( doublereal  pr,
const doublereal *  work 
) const
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}. \]

Parameters
prreduced pressure (dimensionless).
workarray of size workSize() containing cached temperature-dependent intermediate results from a prior call to updateTemp.
Returns
Returns the value of the falloff function \( F \) defined above

Reimplemented in SRI, and Troe.

Definition at line 64 of file Falloff.h.

virtual size_t workSize ( )
inlinevirtual

The size of the work array required.

Reimplemented in SRI, and Troe.

Definition at line 69 of file Falloff.h.

virtual int getType ( ) const
inlinevirtual

Return an integer representing the type of the Falloff parameterization.

Reimplemented in SRI, and Troe.

Definition at line 74 of file Falloff.h.

virtual size_t nParameters ( ) const
inlinevirtual

Returns the number of parameters used by this parameterization.

The values of these parameters can be obtained from getParameters().

Reimplemented in SRI, and Troe.

Definition at line 80 of file Falloff.h.

virtual void getParameters ( double *  params) const
inlinevirtual

Get the values of the parameters for this object.

params must be an array of at least nParameters() elements.

Reimplemented in SRI, and Troe.

Definition at line 86 of file Falloff.h.


The documentation for this class was generated from the following files: