7 #ifndef CT_RATECOEFF_MGR_H
8 #define CT_RATECOEFF_MGR_H
48 m_rxn.push_back(rxnNumber);
49 m_rates.push_back(R(rdata));
50 return m_rates.size() - 1;
64 for (
size_t i = 0; i != m_rates.size(); i++) {
65 m_rates[i].update_C(c);
77 void update(doublereal T, doublereal logT, doublereal* values) {
78 doublereal recipT = 1.0/T;
79 for (
size_t i = 0; i != m_rates.size(); i++) {
80 values[m_rxn[i]] = m_rates[i].updateRC(logT, recipT);
84 size_t nReactions()
const {
85 return m_rates.size();
89 std::vector<R> m_rates;
90 std::vector<size_t> m_rxn;
std::string int2str(const int n, const std::string &fmt)
Convert an int to a string using a format converter.
Various templated functions that carry out common vector operations (see Templated Utility Functions)...
This rate coefficient manager supports one parameterization of the rate constant of any type...
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
void update_C(const doublereal *c)
Update the concentration-dependent parts of the rate coefficient, if any.
Intermediate class which stores data about a reaction and its rate parameterization before adding the...
Base class for exceptions thrown by Cantera classes.
size_t install(size_t rxnNumber, const ReactionData &rdata)
Install a rate coefficient calculator.
void update(doublereal T, doublereal logT, doublereal *values)
Write the rate coefficients into array values.
int rateCoeffType
Type of the rate coefficient for the forward rate constant.
Contains declarations for string manipulation functions within Cantera.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...