Cantera
2.4.0
|
Intermediate class which stores data about a reaction and its rate parameterization so that it can be added to a Kinetics object. More...
#include <Reaction.h>
Public Member Functions | |
Reaction (int type) | |
Reaction (int type, const Composition &reactants, const Composition &products) | |
virtual std::string | reactantString () const |
The reactant side of the chemical equation for this reaction. More... | |
virtual std::string | productString () const |
The product side of the chemical equation for this reaction. More... | |
std::string | equation () const |
The chemical equation for this reaction. More... | |
virtual void | validate () |
Ensure that the rate constant and other parameters for this reaction are valid. More... | |
Public Attributes | |
int | reaction_type |
Type of the reaction. More... | |
Composition | reactants |
Reactant species and stoichiometric coefficients. More... | |
Composition | products |
Product species and stoichiometric coefficients. More... | |
Composition | orders |
Forward reaction order with respect to specific species. More... | |
std::string | id |
An identification string for the reaction, used in some filtering operations. More... | |
bool | reversible |
True if the current reaction is reversible. False otherwise. More... | |
bool | duplicate |
True if the current reaction is marked as duplicate. More... | |
bool | allow_nonreactant_orders |
True if reaction orders can be specified for non-reactant species. More... | |
bool | allow_negative_orders |
True if negative reaction orders are allowed. Default is false . More... | |
Intermediate class which stores data about a reaction and its rate parameterization so that it can be added to a Kinetics object.
Definition at line 22 of file Reaction.h.
|
virtual |
The reactant side of the chemical equation for this reaction.
Reimplemented in FalloffReaction, and ThreeBodyReaction.
Definition at line 59 of file Reaction.cpp.
Referenced by ThreeBodyReaction::reactantString(), and FalloffReaction::reactantString().
|
virtual |
The product side of the chemical equation for this reaction.
Reimplemented in FalloffReaction, and ThreeBodyReaction.
Definition at line 74 of file Reaction.cpp.
Referenced by ThreeBodyReaction::productString(), and FalloffReaction::productString().
std::string equation | ( | ) | const |
The chemical equation for this reaction.
Definition at line 89 of file Reaction.cpp.
Referenced by InterfaceKinetics::buildSurfaceArrhenius(), ElementaryReaction::validate(), FalloffReaction::validate(), and PlogReaction::validate().
|
virtual |
Ensure that the rate constant and other parameters for this reaction are valid.
Reimplemented in PlogReaction, FalloffReaction, and ElementaryReaction.
Definition at line 38 of file Reaction.cpp.
Referenced by ElementaryReaction::validate(), FalloffReaction::validate(), and PlogReaction::validate().
int reaction_type |
Type of the reaction.
The valid types are listed in the file, reaction_defs.h, with constants ending in RXN
.
Definition at line 45 of file Reaction.h.
Referenced by InterfaceKinetics::addReaction().
Composition reactants |
Reactant species and stoichiometric coefficients.
Definition at line 48 of file Reaction.h.
Referenced by InterfaceKinetics::addReaction(), and InterfaceKinetics::buildSurfaceArrhenius().
Composition products |
Product species and stoichiometric coefficients.
Definition at line 51 of file Reaction.h.
Referenced by InterfaceKinetics::addReaction().
Composition orders |
Forward reaction order with respect to specific species.
By default, mass-action kinetics is assumed, with the reaction order equal to each reactant's stoichiometric coefficient.
Definition at line 56 of file Reaction.h.
Referenced by InterfaceKinetics::addReaction(), and InterfaceKinetics::buildSurfaceArrhenius().
std::string id |
An identification string for the reaction, used in some filtering operations.
Definition at line 60 of file Reaction.h.
bool reversible |
True if the current reaction is reversible. False otherwise.
Definition at line 63 of file Reaction.h.
Referenced by InterfaceKinetics::addReaction().
bool duplicate |
True if the current reaction is marked as duplicate.
Definition at line 66 of file Reaction.h.
bool allow_nonreactant_orders |
True if reaction orders can be specified for non-reactant species.
Default is false
.
Definition at line 70 of file Reaction.h.
bool allow_negative_orders |
True if negative reaction orders are allowed. Default is false
.
Definition at line 73 of file Reaction.h.