Skip to content

Commit

Permalink
Fix ArrheniusBM.get_activation_energy unit test.
Browse files Browse the repository at this point in the history
The E0 had been changed, but the expected Ea not updated.
  • Loading branch information
rwest committed Mar 8, 2024
1 parent 2c1c4e9 commit fa27613
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rmgpy/kinetics/arrheniusTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,13 @@ def test_get_activation_energy(self):
"""
Hrxn = -44000 # J/mol
Ea = self.arrhenius_bm.get_activation_energy(Hrxn)
self.assertAlmostEqual(Ea, 95074, delta=1e1)

w = self.w0
E0 = self.E0
Vp = 2 * w * (w + E0)/(w - E0)
Ea_exp = (w + Hrxn/2) * (Vp - 2*w + Hrxn)**2 / (Vp*Vp - 4*w*w + Hrxn*Hrxn)

self.assertAlmostEqual(Ea, Ea_exp, delta=1e1)


################################################################################
Expand Down

0 comments on commit fa27613

Please sign in to comment.