Cantera
2.0
|
A falloff manager that implements any set of falloff functions. More...
#include <FalloffMgr.h>
Public Member Functions | |
FalloffMgr () | |
Constructor. | |
virtual | ~FalloffMgr () |
Destructor. | |
void | install (size_t rxn, int type, const vector_fp &c) |
Install a new falloff function calculator. | |
size_t | workSize () |
Size of the work array required to store intermediate results. | |
void | updateTemp (doublereal t, doublereal *work) |
Update the cached temperature-dependent intermediate results for all installed falloff functions. | |
void | pr_to_falloff (doublereal *values, const doublereal *work) |
Given a vector of reduced pressures for each falloff reaction, replace each entry by the value of the falloff function. | |
Protected Attributes | |
std::vector< size_t > | m_rxn |
std::vector< size_t > | m_rxn0 |
std::vector< Falloff * > | m_falloff |
FalloffFactory * | m_factory |
vector_int | m_loc |
int | m_n |
int | m_n0 |
std::vector < vector_fp::difference_type > | m_offset |
size_t | m_worksize |
A falloff manager that implements any set of falloff functions.
Definition at line 20 of file FalloffMgr.h.
|
inline |
|
inlinevirtual |
Destructor.
Deletes all installed falloff function calculators.
Definition at line 37 of file FalloffMgr.h.
|
inline |
Install a new falloff function calculator.
rxn | Index of the falloff reaction. This will be used to determine which array entry is modified in method pr_to_falloff. |
type | of falloff function to install. |
c | vector of coefficients for the falloff function. |
Definition at line 56 of file FalloffMgr.h.
References FalloffFactory::newFalloff(), and Falloff::workSize().
|
inline |
Size of the work array required to store intermediate results.
Definition at line 74 of file FalloffMgr.h.
Referenced by GasKinetics::finalize().
|
inline |
Update the cached temperature-dependent intermediate results for all installed falloff functions.
t | Temperature [K]. |
work | Work array. Must be dimensioned at least workSize(). |
Definition at line 84 of file FalloffMgr.h.
|
inline |
Given a vector of reduced pressures for each falloff reaction, replace each entry by the value of the falloff function.
Definition at line 96 of file FalloffMgr.h.