28 "To be removed after Cantera 2.2.");
32 doublereal deflt = 1.0) {
34 "To be removed after Cantera 2.2.");
35 std::map<size_t, doublereal>::const_iterator iter;
36 for (iter = enhanced.begin(); iter != enhanced.end(); ++iter) {
37 m_index.push_back(iter->first);
38 m_eff.push_back(iter->second - deflt);
43 doublereal update(
const vector_fp& c, doublereal ctot)
const {
45 for (
size_t i = 0; i < m_eff.size(); i++) {
46 sum += m_eff[i] * c[m_index[i]];
48 return m_deflt * ctot + sum;
51 void getEfficiencies(
vector_fp& eff)
const {
52 for (
size_t i = 0; i < m_eff.size(); i++) {
53 eff[m_index[i]] = m_eff[i] + m_deflt;
58 std::vector<size_t> m_index;
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
Computes enhanced third-body concentrations.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.