[Python] Use name 'pre_exponential_factor' consistently
This commit is contained in:
parent
9e9f03288a
commit
f5b2fc37df
2 changed files with 6 additions and 6 deletions
|
|
@ -234,7 +234,7 @@ cdef class Arrhenius:
|
|||
|
||||
k_f = A T^b \exp{-\tfrac{E}{RT}}
|
||||
|
||||
where *A* is the `preexponential_factor`, *b* is the `temperature_exponent`,
|
||||
where *A* is the `pre_exponential_factor`, *b* is the `temperature_exponent`,
|
||||
and *E* is the `activation_energy`.
|
||||
"""
|
||||
def __cinit__(self, A=0, b=0, E=0, init=True):
|
||||
|
|
@ -246,7 +246,7 @@ cdef class Arrhenius:
|
|||
if self.reaction is None:
|
||||
del self.rate
|
||||
|
||||
property preexponential_factor:
|
||||
property pre_exponential_factor:
|
||||
"""
|
||||
The pre-exponential factor *A* in units of m, kmol, and s raised to
|
||||
powers depending on the reaction order.
|
||||
|
|
|
|||
|
|
@ -202,8 +202,8 @@ class KineticsFromReactions(utilities.CanteraTest):
|
|||
r2 = surf2.reaction(i)
|
||||
self.assertEqual(r1.reactants, r2.reactants)
|
||||
self.assertEqual(r1.products, r2.products)
|
||||
self.assertEqual(r1.rate.preexponential_factor,
|
||||
r2.rate.preexponential_factor)
|
||||
self.assertEqual(r1.rate.pre_exponential_factor,
|
||||
r2.rate.pre_exponential_factor)
|
||||
self.assertEqual(r1.rate.temperature_exponent,
|
||||
r2.rate.temperature_exponent)
|
||||
self.assertEqual(r1.rate.activation_energy,
|
||||
|
|
@ -788,7 +788,7 @@ class TestReaction(utilities.CanteraTest):
|
|||
gas = ct.Solution('h2o2.xml')
|
||||
gas.TPX = self.gas.TPX
|
||||
R = self.gas.reaction(2)
|
||||
A1 = R.rate.preexponential_factor
|
||||
A1 = R.rate.pre_exponential_factor
|
||||
b1 = R.rate.temperature_exponent
|
||||
Ta1 = R.rate.activation_energy / ct.gas_constant
|
||||
T = gas.T
|
||||
|
|
@ -805,7 +805,7 @@ class TestReaction(utilities.CanteraTest):
|
|||
gas = ct.Solution('h2o2.xml')
|
||||
gas.TPX = self.gas.TPX
|
||||
R = self.gas.reaction(5)
|
||||
A1 = R.rate.preexponential_factor
|
||||
A1 = R.rate.pre_exponential_factor
|
||||
b1 = R.rate.temperature_exponent
|
||||
T = gas.T
|
||||
kf1 = gas.forward_rate_constants[5]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue