Skip to content

Commit 6ed499f

Browse files
authored
Merge pull request #2398 from ReactionMechanismGenerator/correct_troe
Correct Troe kinetics formula
2 parents c6fecdb + b5b374b commit 6ed499f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

rmgpy/kinetics/falloff.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ cdef class Lindemann(PDepKineticsModel):
148148
`efficiencies` A dict associating chemical species with associated efficiencies
149149
`comment` Information about the model (e.g. its source)
150150
=================== ========================================================
151-
151+
152152
"""
153153

154154
def __init__(self, arrheniusHigh=None, arrheniusLow=None, Tmin=None, Tmax=None, Pmin=None, Pmax=None,
@@ -255,7 +255,7 @@ cdef class Troe(PDepKineticsModel):
255255
`efficiencies` A dict associating chemical species with associated efficiencies
256256
`comment` Information about the model (e.g. its source)
257257
=================== ========================================================
258-
258+
259259
"""
260260

261261
def __init__(self, arrheniusHigh=None, arrheniusLow=None, alpha=0.0, T3=None, T1=None, T2=None, Tmin=None,
@@ -347,7 +347,7 @@ cdef class Troe(PDepKineticsModel):
347347
d = 0.14
348348
n = 0.75 - 1.27 * log10(Fcent)
349349
c = -0.4 - 0.67 * log10(Fcent)
350-
F = 10.0 ** (log10(Fcent) / (1 + ((log10(Pr) + c) / (n - d * (log10(Pr)))) ** 2))
350+
F = 10.0 ** (log10(Fcent) / (1 + ((log10(Pr) + c) / (n - d * (log10(Pr) + c))) ** 2))
351351

352352
return kinf * (Pr / (1 + Pr)) * F
353353

@@ -397,7 +397,7 @@ cdef class Troe(PDepKineticsModel):
397397
T3 = self.T3.value_si
398398
T1 = self.T1.value_si
399399
if self.T2 is None:
400-
ct_reaction.falloff = ct.TroeFalloff(params=[A, T3, T1])
400+
ct_reaction.falloff = ct.TroeFalloff(params=[A, T3, T1])
401401
else:
402402
T2 = self.T2.value_si
403403
ct_reaction.falloff = ct.TroeFalloff(params=[A, T3, T1, T2])

rmgpy/kinetics/falloffTest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,10 @@ def test_get_rate_coefficient(self):
615615
Tlist = np.array([300, 500, 1000, 1500])
616616
Plist = np.array([1e4, 1e5, 1e6])
617617
Kexp = np.array([
618-
[1.00866e+08, 2.03759e+08, 2.55190e+08],
619-
[4.74623e+07, 1.41629e+08, 2.47597e+08],
620-
[3.97397e+06, 2.89521e+07, 9.57569e+07],
621-
[5.91277e+05, 5.14013e+06, 3.12239e+07],
618+
[1.00648177e+08, 2.01999460e+08, 2.53938097e+08],
619+
[4.71247326e+07, 1.41526885e+08, 2.45386923e+08],
620+
[3.94987723e+06, 2.87338709e+07, 9.57539092e+07],
621+
[5.88566395e+05, 5.10614193e+06, 3.10462030e+07],
622622
])
623623
for t in range(Tlist.shape[0]):
624624
for p in range(Plist.shape[0]):

0 commit comments

Comments
 (0)