98 virtual void add(
size_t rxn,
const std::vector<size_t>& reactants,
99 const std::vector<size_t>& products,
bool reversible);
117 const doublereal* fwdRatesOfProgress,
118 const doublereal* revRatesOfProgress,
119 doublereal* creationRates);
132 const doublereal* fwdRatesOfProgress,
133 const doublereal* revRatesOfProgress,
134 doublereal* destructionRates);
203 virtual void write(
const std::string& filename);
216 StoichManagerN m_reactants;
217 StoichManagerN m_revproducts;
218 StoichManagerN m_irrevproducts;
virtual void getNetProductionRates(size_t nsp, const doublereal *ropnet, doublereal *w)
Species net production rates.
void writeDestructionRates(std::ostream &f)
ReactionStoichMgr()
Constructor.
virtual void getDestructionRates(size_t nSpecies, const doublereal *fwdRatesOfProgress, const doublereal *revRatesOfProgress, doublereal *destructionRates)
Species destruction rates.
void writeMultiplyReactants(std::ostream &f)
virtual void getCreationRates(size_t nSpecies, const doublereal *fwdRatesOfProgress, const doublereal *revRatesOfProgress, doublereal *creationRates)
Species creation rates.
virtual void getRevReactionDelta(size_t nr, const doublereal *g, doublereal *dg)
Given an array of species properties 'g', return in array 'dg' the change in this quantity in the rev...
void writeNetProductionRates(std::ostream &f)
virtual void getReactionDelta(size_t nReactions, const doublereal *g, doublereal *dg)
Calculates the change of a molar species property in a reaction.
void writeMultiplyRevProducts(std::ostream &f)
virtual void multiplyReactants(const doublereal *C, doublereal *R)
Given an array of concentrations C, multiply the entries in array R by the concentration products for...
void writeCreationRates(std::ostream &f)
virtual void write(const std::string &filename)
Intermediate class which stores data about a reaction and its rate parameterization before adding the...
Reaction mechanism stoichiometry manager.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual ~ReactionStoichMgr()
Destructor.
virtual void multiplyRevProducts(const doublereal *c, doublereal *r)
Given an array of concentrations C, multiply the entries in array R by the concentration products for...
virtual void add(size_t rxn, const std::vector< size_t > &reactants, const std::vector< size_t > &products, bool reversible)
Add a reaction with mass-action kinetics.