Cantera  2.0
Public Member Functions | Protected Attributes | List of all members
Rate1< R > Class Template Reference

This rate coefficient manager supports one parameterization of the rate constant of any type. More...

#include <RateCoeffMgr.h>

Public Member Functions

size_t install (size_t rxnNumber, const ReactionData &rdata)
 Install a rate coefficient calculator.
 
const R & rateCoeff (int loc) const
 Return a reference to the nth rate coefficient calculator.
 
void update_C (const doublereal *c)
 Update the concentration-dependent parts of the rate coefficient, if any.
 
void update (doublereal T, doublereal logT, doublereal *values)
 Write the rate coefficients into array values.
 
void writeUpdate (std::ostream &output1, std::string key)
 
size_t nReactions () const
 

Protected Attributes

std::vector< R > m_rates
 
std::vector< size_t > m_rxn
 
vector_fp m_const
 

Detailed Description

template<class R>
class Cantera::Rate1< R >

This rate coefficient manager supports one parameterization of the rate constant of any type.

Definition at line 25 of file RateCoeffMgr.h.

Member Function Documentation

size_t install ( size_t  rxnNumber,
const ReactionData &  rdata 
)
inline

Install a rate coefficient calculator.

Parameters
rxnNumberthe reaction number
rdatarate coefficient specification for the reaction

Definition at line 38 of file RateCoeffMgr.h.

const R& rateCoeff ( int  loc) const
inline

Return a reference to the nth rate coefficient calculator.

Note that this is not the same as the calculator for reaction n, since reactions with constant rate coefficients do not have a calculator.

Definition at line 59 of file RateCoeffMgr.h.

void update_C ( const doublereal *  c)
inline

Update the concentration-dependent parts of the rate coefficient, if any.

Used by class SurfaceArrhenius to compute coverage-dependent * modifications to the Arrhenius parameters. The array c should contain whatever data the particular rate coefficient class needs to update its rates. Note that this method does not return anything. To get the updated rates, method update must be called after the call to update_C.

Definition at line 73 of file RateCoeffMgr.h.

Referenced by InterfaceKinetics::_update_rates_T().

void update ( doublereal  T,
doublereal  logT,
doublereal *  values 
)
inline

Write the rate coefficients into array values.

Each calculator writes one entry in values, at the location specified by the reaction number when it was installed. Note that nothing will be done for reactions that have constant rates. The array values should be preloaded with the constant rate coefficients.

Definition at line 90 of file RateCoeffMgr.h.

Referenced by InterfaceKinetics::_update_rates_T().

Member Data Documentation

vector_fp m_const
protected
Deprecated:
not used

Definition at line 112 of file RateCoeffMgr.h.


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