Cantera  2.0
Public Member Functions | Private Attributes | List of all members
C_AnyN Class Reference

Handles any number of species in a reaction, including fractional stoichiometric coefficients, and arbitrary reaction orders. More...

#include <StoichManager.h>

Public Member Functions

 C_AnyN (size_t rxn, const std::vector< size_t > &ic, const vector_fp &order, const vector_fp &stoich)
 
 C_AnyN (const C_AnyN &right)
 
C_AnyNoperator= (const C_AnyN &right)
 
size_t data (std::vector< size_t > &ic)
 
doublereal order (size_t n) const
 
doublereal stoich (size_t n) const
 
size_t speciesIndex (size_t n) const
 
void multiply (const doublereal *input, doublereal *output) const
 
void incrementSpecies (const doublereal *input, doublereal *output) const
 
void decrementSpecies (const doublereal *input, doublereal *output) const
 
void incrementReaction (const doublereal *input, doublereal *output) const
 
void decrementReaction (const doublereal *input, doublereal *output) const
 
void writeMultiply (std::string r, std::map< size_t, std::string > &out)
 
void writeIncrementReaction (std::string r, std::map< size_t, std::string > &out)
 
void writeDecrementReaction (std::string r, std::map< size_t, std::string > &out)
 
void writeIncrementSpecies (std::string r, std::map< size_t, std::string > &out)
 
void writeDecrementSpecies (std::string r, std::map< size_t, std::string > &out)
 

Private Attributes

size_t m_n
 Length of the m_ic vector.
 
size_t m_rxn
 ID of the reaction corresponding to this stoichiometric manager.
 
std::vector< size_t > m_ic
 Vector of species which are involved with this stoichiometric manager calculations.
 
vector_fp m_order
 
vector_fp m_stoich
 

Detailed Description

Handles any number of species in a reaction, including fractional stoichiometric coefficients, and arbitrary reaction orders.

Definition at line 453 of file StoichManager.h.

Member Data Documentation

size_t m_n
private

Length of the m_ic vector.

This is the number of species which have non-zero entries in either the reaction order matrix or the stoichiometric order matrix for this reaction.

Definition at line 595 of file StoichManager.h.

size_t m_rxn
private

ID of the reaction corresponding to this stoichiometric manager.

This is used within the interface to select the

Definition at line 601 of file StoichManager.h.

std::vector<size_t> m_ic
private

Vector of species which are involved with this stoichiometric manager calculations.

This is an integer list of species which have non-zero entries in either the reaction order matrix or the stoichiometric order matrix for this reaction, m_rxn. It's used as the index into the arrays m_order[] and m_stoich[].

Definition at line 609 of file StoichManager.h.


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