Skip to content

Commit

Permalink
[Doc/Kinetics] Clarify values returned by getFwdRateConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jan 7, 2018
1 parent ebc478f commit 831b92d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
15 changes: 10 additions & 5 deletions include/cantera/kinetics/Kinetics.h
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,10 @@ class Kinetics
/**
* Return the forward rate constants
*
* length is the number of reactions. units depends on many issues.
* The computed values include all temperature-dependent, pressure-dependent,
* and third body contributions. Length is the number of reactions. Units are
* a combination of kmol, m^3 and s, that depend on the rate expression for
* the reaction.
*
* @param kfwd Output vector containing the forward reaction rate
* constants. Length: nReactions().
Expand All @@ -648,11 +651,13 @@ class Kinetics
/**
* Return the reverse rate constants.
*
* length is the number of reactions. units depends on many issues. Note,
* this routine will return rate constants for irreversible reactions if
* the default for doIrreversible is overridden.
* The computed values include all temperature-dependent, pressure-dependent,
* and third body contributions. Length is the number of reactions. Units are
* a combination of kmol, m^3 and s, that depend on the rate expression for
* the reaction. Note, this routine will return rate constants for
* irreversible reactions if the default for `doIrreversible` is overridden.
*
* @param krev Output vector of reverse rate constants.
* @param krev Output vector of reverse rate constants
* @param doIrreversible boolean indicating whether irreversible reactions
* should be included.
*/
Expand Down
12 changes: 8 additions & 4 deletions interfaces/cython/cantera/kinetics.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,20 @@ cdef class Kinetics(_SolutionBase):

property forward_rate_constants:
"""
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 rate constants for all reactions. The computed values include
all temperature-dependent, pressure-dependent, and third body
contributions. Units are a combination of kmol, m^3 and s, that depend
on the rate expression for the reaction.
"""
def __get__(self):
return get_reaction_array(self, kin_getFwdRateConstants)

property reverse_rate_constants:
"""
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 rate constants for all reactions. The computed values include
all temperature-dependent, pressure-dependent, and third body
contributions. Units are a combination of kmol, m^3 and s, that depend
on the rate expression for the reaction.
"""
def __get__(self):
return get_reaction_array(self, kin_getRevRateConstants)
Expand Down
4 changes: 4 additions & 0 deletions interfaces/matlab/toolbox/@Kinetics/fwdRateConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
% FWDRATECONSTANTS Get the forward reaction rate constants.
% kf = fwdRateConstants(a)
%
% The computed values include all temperature-dependent, pressure-dependent, and
% third body contributions. Units are a combination of kmol, m^3 and s, that
% depend on the rate expression for the reaction.
%
% see also: :mat:func:`revRateConstants`, :mat:func:`equil_Kc`
%
% :param a:
Expand Down
4 changes: 4 additions & 0 deletions interfaces/matlab/toolbox/@Kinetics/revRateConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
% REVRATECONSTANTS Get the reverse reaction rate constants.
% kr = revRateConstants(a)
%
% The computed values include all temperature-dependent, pressure-dependent, and
% third body contributions. Units are a combination of kmol, m^3 and s, that
% depend on the rate expression for the reaction.
%
% See also: :mat:func:`fwdRateConstants`, :mat:func:`equil_KC`
%
% :param a:
Expand Down

0 comments on commit 831b92d

Please sign in to comment.