Warning
This documentation is for an old version of Cantera. You can find docs for newer versions here.
Bases: cantera._cantera._SolutionBase
Instances of class Kinetics are responsible for evaluating reaction rates of progress, species production rates, and other quantities pertaining to a reaction mechanism.
Activation energies for all reactions [K].
Creation rates for each species. [kmol/m^3/s] for bulk phases or [kmol/m^2/s] for surface phases.
Change in enthalpy for each reaction [J/kmol].
Change in entropy for each reaction [J/kmol/K].
Change in Gibbs free energy for each reaction [J/kmol].
Change in standard-state enthalpy (independent of composition) for each reaction [J/kmol].
Change in standard-state entropy (independent of composition) for each reaction [J/kmol/K].
Change in standard-state Gibbs free energy (independent of composition) for each reaction [J/kmol].
Destruction rates for each species. [kmol/m^3/s] for bulk phases or [kmol/m^2/s] for surface phases.
Equilibrium constants in concentration units for all reactions.
Forward rate constants for all reactions. Units are a combination of kmol, m^3 and s, that depend on the rate expression for the reaction.
Forward rates of progress for the reactions. [kmol/m^3/s] for bulk phases or [kmol/m^2/s] for surface phases.
True if reaction i_reaction is reversible.
The index of species species of phase phase within arrays returned by methods of class Kinetics.
A scaling factor applied to the rate coefficient for reaction i_reaction. Can be used to carry out sensitivity analysis or to selectively disable a particular reaction. See set_multiplier.
Number of phases in the reaction mechanism.
Number of reactions in the reaction mechanism.
Total number of species in all phases participating in the kinetics mechanism.
Net production rates for each species. [kmol/m^3/s] for bulk phases or [kmol/m^2/s] for surface phases.
Net rates of progress for the reactions. [kmol/m^3/s] for bulk phases or [kmol/m^2/s] for surface phases.
The stoichiometric coefficient of species k_spec as a product in reaction i_reaction.
The array of product stoichiometric coefficients. Element [k,i] of this array is the product stoichiometric coefficient of species k in reaction i.
The stoichiometric coefficient of species k_spec as a reactant in reaction i_reaction.
The array of reactant stoichiometric coefficients. Element [k,i] of this array is the reactant stoichiometric coefficient of species k in reaction i.
The equation for the specified reaction. See also reaction_equations.
Returns a list containing the reaction equation for all reactions in the mechanism (if indices is unspecified) or the equations for each reaction in the sequence indices. For example:
>>> gas.reaction_equations()
['2 O + M <=> O2 + M', 'O + H + M <=> OH + M', 'O + H2 <=> H + OH', ...]
>>> gas.reaction_equations([2,3])
['O + H + M <=> OH + M', 'O + H2 <=> H + OH']
See also reaction_equation.
The index of the phase where the reactions occur.
Type of reaction i_reaction.
Reverse rate constants for all reactions. Units are a combination of kmol, m^3 and s, that depend on the rate expression for the reaction.
Reverse rates of progress for the reactions. [kmol/m^3/s] for bulk phases or [kmol/m^2/s] for surface phases.
Set the multiplier for for reaction i_reaction to value. If i_reaction is not specified, then the multiplier for all reactions is set to value. See multiplier.
Bases: object
ReactionPathDiagram(Kinetics kin, str element)
Create a reaction path diagram for the fluxes of the element element according the the net reaction rates determined by the Kinetics object kin.
Add fluxes from other to this diagram
arrow width. If < 0, then scale with flux value
color for bold lines
minimum relative flux for bold lines
Build the reaction path diagram. Called automatically by methods which return representations of the diagram, e.g. write_dot().
color for dashed lines
options for the ‘dot’ program
Set to either ‘NetFlow’ or ‘OneWayFlow’
Get a (roughly) human-readable representation of the reaction path diagram.
Return a string containing the reaction path diagram formatted for use by Graphviz’s ‘dot’ program.
minimum relative flux for labels
Logging messages generated while building the reaction path diagram
color for normal-weight lines
maximum relative flux for dashed lines
Scaling factor for the fluxes. Set to -1 to normalize by the maximum net flux.
Show the details of which reactions contribute to the flux
Set the threshold for the minimum flux relative value that will be plotted.
Write the reaction path diagram formatted for use by Graphviz’s ‘dot’ program to the file named filename.