7 BulkKinetics::BulkKinetics(
thermo_t* thermo) :
75 for (
size_t k = 0; k <
m_kk; k++) {
89 for (
size_t k = 0; k <
m_kk; k++) {
105 if (doIrreversible) {
107 for (
size_t i = 0; i <
m_ii; i++) {
112 for (
size_t i = 0; i <
m_ii; i++) {
138 for (Composition::const_iterator iter = r->products.begin();
139 iter != r->products.end();
143 for (Composition::const_iterator iter = r->reactants.begin();
144 iter != r->reactants.end();
159 void BulkKinetics::addElementaryReaction(
ReactionData& r)
164 void BulkKinetics::addElementaryReaction(ElementaryReaction& r)
169 void BulkKinetics::modifyElementaryReaction(
size_t i, ElementaryReaction& rNew)
171 m_rates.replace(i, rNew.rate);
vector_fp m_ropr
Reverse rate-of-progress for each reaction.
virtual void setMultiplier(size_t i, double f)
Set the multiplier for reaction i to f.
virtual void getDeltaSSEnthalpy(doublereal *deltaH)
Return the vector of values for the change in the standard state enthalpies of reaction.
virtual void assignShallowPointers(const std::vector< thermo_t * > &tpVector)
Reassign the pointers within the Kinetics object.
virtual void getEnthalpy_RT(doublereal *hrt) const
Get the nondimensional Enthalpy functions for the species at their standard states at the current T a...
virtual void getDeltaSSGibbs(doublereal *deltaG)
Return the vector of values for the reaction standard state Gibbs free energy change.
thermo_t & thermo(size_t n=0)
This method returns a reference to the nth ThermoPhase object defined in this kinetics mechanism...
size_t m_kk
The number of species in all of the phases that participate in this kinetics mechanism.
vector_fp pstoich
Product stoichiometric coefficients, in the order given by products.
virtual void getFwdRateConstants(doublereal *kfwd)
Return the forward rate constants.
virtual void getDeltaSSEntropy(doublereal *deltaS)
Return the vector of values for the change in the standard state entropies for each reaction...
virtual void getStandardChemPotentials(doublereal *mu) const
Get the array of chemical potentials at unit activity for the species at their standard states at the...
vector_fp m_ropnet
Net rate-of-progress for each reaction.
virtual void getEquilibriumConstants(doublereal *kc)
Return a vector of Equilibrium constants.
virtual void init()
Prepare the class for the addition of reactions.
ThermoPhase thermo_t
typedef for the ThermoPhase class
vector_fp m_ropf
Forward rate-of-progress for each reaction.
Partial specialization of Kinetics for chemistry in a single bulk phase.
std::vector< size_t > m_irrev
Indices of irreversible reactions.
std::vector< std::map< size_t, doublereal > > m_prxn
m_prxn is a vector of maps, containing the reactant stoichiometric coefficient information ...
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials. Units: J/kmol.
virtual bool isReversible(size_t i)
True if reaction i has been declared to be reversible.
vector_fp m_perturb
Vector of perturbation factors for each reaction's rate of progress vector.
Public interface for kinetics managers.
Intermediate class which stores data about a reaction and its rate parameterization before adding the...
virtual void getRevRateConstants(doublereal *krev, bool doIrreversible=false)
Return the reverse rate constants.
virtual void getPartialMolarEntropies(doublereal *sbar) const
Returns an array of partial molar entropies of the species in the solution.
std::vector< size_t > m_revindex
Indices of reversible reactions.
virtual Kinetics * duplMyselfAsKinetics(const std::vector< thermo_t * > &tpVector) const
Duplication routine for objects which inherit from Kinetics.
std::vector< std::map< size_t, doublereal > > m_rrxn
m_rrxn is a vector of maps, containing the reactant stoichiometric coefficient information ...
virtual void getDeltaEntropy(doublereal *deltaS)
Return the vector of values for the reactions change in entropy.
vector_fp m_rkcn
Reciprocal of the equilibrium constant in concentration units.
vector_fp rstoich
Reactant stoichiometric coefficients, in the order given by reactants.
size_t nSpecies() const
Returns the number of species in the phase.
bool reversible
True if the current reaction is reversible. False otherwise.
virtual void getDeltaGibbs(doublereal *deltaG)
Return the vector of values for the reaction Gibbs free energy change.
virtual void getEntropy_R(doublereal *sr) const
Get the array of nondimensional Entropy functions for the standard state species at the current T and...
doublereal temperature() const
Temperature (K).
virtual bool ready() const
Returns true if the kinetics manager has been properly initialized and finalized. ...
vector_fp m_dn
Difference between the global reactants order and the global products order.
const doublereal GasConstant
Universal Gas Constant. [J/kmol/K].
size_t m_ii
Number of reactions in the mechanism.
size_t nReactions() const
Number of reactions in the reaction mechanism.
virtual void finalize()
Finish adding reactions and prepare for use.
virtual void getPartialMolarEnthalpies(doublereal *hbar) const
Returns an array of partial molar enthalpies for the species in the mixture.
virtual void addReaction(ReactionData &r)
Add a single reaction to the mechanism.
virtual void setMultiplier(size_t i, doublereal f)
Set the multiplier for reaction i to f.
virtual void getDeltaEnthalpy(doublereal *deltaH)
Return the vector of values for the reactions change in enthalpy.
virtual void getReactionDelta(const doublereal *property, doublereal *deltaProperty)
Change in species properties.
virtual void addReaction(ReactionData &r)
Add a single reaction to the mechanism.