Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
C2 Class Reference

Handles two species in a single reaction. More...

#include <StoichManager.h>

Public Member Functions

 C2 (size_t rxn=0, size_t ic0=0, size_t ic1=0)
 
size_t data (std::vector< size_t > &ic)
 
void incrementSpecies (const doublereal *R, doublereal *S) const
 
void decrementSpecies (const doublereal *R, doublereal *S) const
 
void multiply (const doublereal *S, doublereal *R) const
 
void incrementReaction (const doublereal *S, doublereal *R) const
 
void decrementReaction (const doublereal *S, doublereal *R) const
 
size_t rxnNumber () const
 
size_t speciesIndex (size_t n) const
 
size_t nSpecies ()
 
void writeMultiply (const std::string &r, std::map< size_t, std::string > &out)
 
void writeIncrementReaction (const std::string &r, std::map< size_t, std::string > &out)
 
void writeDecrementReaction (const std::string &r, std::map< size_t, std::string > &out)
 
void writeIncrementSpecies (const std::string &r, std::map< size_t, std::string > &out)
 
void writeDecrementSpecies (const std::string &r, std::map< size_t, std::string > &out)
 

Private Attributes

size_t m_rxn
 Reaction index -> index into the ROP vector. More...
 
size_t m_ic0
 Species index -> index into the species vector for the two species. More...
 
size_t m_ic1
 

Detailed Description

Handles two species in a single reaction.

See Stoichiometry

Definition at line 231 of file StoichManager.h.

Member Function Documentation

void writeMultiply ( const std::string &  r,
std::map< size_t, std::string > &  out 
)
inline
Deprecated:
To be removed after Cantera 2.2

Definition at line 277 of file StoichManager.h.

References Cantera::fmt(), C2::m_ic0, and C2::m_rxn.

void writeIncrementReaction ( const std::string &  r,
std::map< size_t, std::string > &  out 
)
inline
Deprecated:
To be removed after Cantera 2.2

Definition at line 282 of file StoichManager.h.

References Cantera::fmt(), C2::m_ic0, and C2::m_rxn.

void writeDecrementReaction ( const std::string &  r,
std::map< size_t, std::string > &  out 
)
inline
Deprecated:
To be removed after Cantera 2.2

Definition at line 287 of file StoichManager.h.

References Cantera::fmt(), C2::m_ic0, and C2::m_rxn.

void writeIncrementSpecies ( const std::string &  r,
std::map< size_t, std::string > &  out 
)
inline
Deprecated:
To be removed after Cantera 2.2

Definition at line 292 of file StoichManager.h.

References Cantera::fmt(), C2::m_ic0, and C2::m_rxn.

void writeDecrementSpecies ( const std::string &  r,
std::map< size_t, std::string > &  out 
)
inline
Deprecated:
To be removed after Cantera 2.2

Definition at line 299 of file StoichManager.h.

References Cantera::fmt(), C2::m_ic0, and C2::m_rxn.

Member Data Documentation

size_t m_rxn
private
size_t m_ic0
private

Species index -> index into the species vector for the two species.

Definition at line 310 of file StoichManager.h.

Referenced by C2::writeDecrementReaction(), C2::writeDecrementSpecies(), C2::writeIncrementReaction(), C2::writeIncrementSpecies(), and C2::writeMultiply().


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