#include <ReactionNetworkUtils.h>
Public Member Functions | |
| std::vector< VariableName > | getSpecies () const |
| Get all species involved in the reaction. More... | |
| std::vector< VariableName > | getUniqueSpecies () const |
| Get all unique species involved in the reaction Note: a species will only appear once even if both a reactant and a product. More... | |
| std::vector< Real > | getStoichiometricCoefficients () const |
| Get the stoeichiometric coefficients for each species in the reaction The sign used matches the sign in the reaction equation. More... | |
| std::map< VariableName, Real > | getUniqueStoichiometricCoefficients () const |
| Get the stoeichiometric coefficients for each unique species in the reaction Note: if a species is both a reactant and a product, the coefficient will be the difference between its product and reactor coefficients Note: this means all coefficients for reactants that are not products are negative, unlike in getStoichiometricCoefficients() More... | |
| std::vector< VariableName > | getReactantSpecies () const |
| Get all reactant species involved in the reaction (on LHS) More... | |
| std::vector< VariableName > | getUniqueReactantSpecies () const |
| Get all unique reactant species involved in the reaction (on LHS) More... | |
| std::vector< std::string > | getProductSpecies () const |
| Get all product species involved in the reaction (on RHS) More... | |
| std::vector< std::string > | getUniqueProductSpecies () const |
| Get all unique product species involved in the reaction (on RHS) More... | |
| template<typename T > | |
| bool | hasMetaData (const std::string &key) const |
| Whether the reaction has the metadata with the given type. More... | |
| bool | hasMetaData (const std::string &key) const |
| Whether the reaction has the metadata. More... | |
| const std::string & | getMetaData (const std::string &key) const |
| Get the metadata from the reaction. More... | |
| template<> | |
| bool | hasMetaData (const std::string &key) const |
Public Attributes | |
| TermList | reactants |
| TermList | products |
| Metadata | metadata |
Definition at line 44 of file ReactionNetworkUtils.h.
| const std::string & ReactionNetworkUtils::Reaction::getMetaData | ( | const std::string & | key | ) | const |
Get the metadata from the reaction.
Definition at line 327 of file ReactionNetworkUtils.C.
| std::vector< std::string > ReactionNetworkUtils::Reaction::getProductSpecies | ( | ) | const |
Get all product species involved in the reaction (on RHS)
Definition at line 283 of file ReactionNetworkUtils.C.
| std::vector< VariableName > ReactionNetworkUtils::Reaction::getReactantSpecies | ( | ) | const |
Get all reactant species involved in the reaction (on LHS)
Definition at line 260 of file ReactionNetworkUtils.C.
| std::vector< VariableName > ReactionNetworkUtils::Reaction::getSpecies | ( | ) | const |
| std::vector< Real > ReactionNetworkUtils::Reaction::getStoichiometricCoefficients | ( | ) | const |
Get the stoeichiometric coefficients for each species in the reaction The sign used matches the sign in the reaction equation.
Definition at line 232 of file ReactionNetworkUtils.C.
| std::vector< std::string > ReactionNetworkUtils::Reaction::getUniqueProductSpecies | ( | ) | const |
Get all unique product species involved in the reaction (on RHS)
Definition at line 292 of file ReactionNetworkUtils.C.
| std::vector< VariableName > ReactionNetworkUtils::Reaction::getUniqueReactantSpecies | ( | ) | const |
Get all unique reactant species involved in the reaction (on LHS)
Definition at line 269 of file ReactionNetworkUtils.C.
| std::vector< VariableName > ReactionNetworkUtils::Reaction::getUniqueSpecies | ( | ) | const |
Get all unique species involved in the reaction Note: a species will only appear once even if both a reactant and a product.
Definition at line 212 of file ReactionNetworkUtils.C.
| std::map< VariableName, Real > ReactionNetworkUtils::Reaction::getUniqueStoichiometricCoefficients | ( | ) | const |
Get the stoeichiometric coefficients for each unique species in the reaction Note: if a species is both a reactant and a product, the coefficient will be the difference between its product and reactor coefficients Note: this means all coefficients for reactants that are not products are negative, unlike in getStoichiometricCoefficients()
Definition at line 243 of file ReactionNetworkUtils.C.
| bool ReactionNetworkUtils::Reaction::hasMetaData | ( | const std::string & | key | ) | const |
Whether the reaction has the metadata with the given type.
Definition at line 314 of file ReactionNetworkUtils.C.
Referenced by getMetaData().
| bool ReactionNetworkUtils::Reaction::hasMetaData | ( | const std::string & | key | ) | const |
| bool ReactionNetworkUtils::Reaction::hasMetaData | ( | const std::string & | key | ) | const |
Definition at line 307 of file ReactionNetworkUtils.C.
| Metadata ReactionNetworkUtils::Reaction::metadata |
Definition at line 48 of file ReactionNetworkUtils.h.
Referenced by getMetaData(), hasMetaData(), ReactionNetworkUtils::parseReactionNetwork(), and Moose::stringify().
| TermList ReactionNetworkUtils::Reaction::products |
Definition at line 47 of file ReactionNetworkUtils.h.
Referenced by getProductSpecies(), getSpecies(), getStoichiometricCoefficients(), getUniqueProductSpecies(), getUniqueSpecies(), getUniqueStoichiometricCoefficients(), ReactionNetworkUtils::parseReactionNetwork(), and Moose::stringify().
| TermList ReactionNetworkUtils::Reaction::reactants |
Definition at line 46 of file ReactionNetworkUtils.h.
Referenced by getReactantSpecies(), getSpecies(), getStoichiometricCoefficients(), getUniqueReactantSpecies(), getUniqueSpecies(), getUniqueStoichiometricCoefficients(), ReactionNetworkUtils::parseReactionNetwork(), and Moose::stringify().
1.8.14