Skip to content

Commit

Permalink
[UnitTests] Add test for FalloffRate.falloff_function
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Apr 29, 2022
1 parent d39c71c commit 3c9368b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interfaces/cython/cantera/test/test_reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ class TestLindemannRate(FalloffRateTests, utilities.CanteraTest):
high-P-rate-constant: {A: 7.4e+10, b: -0.37, Ea: 0.0}
"""

def test_falloff_function(self):
rate = self.from_parts()
# Falloff-function for Lindemann is unity by definition
assert np.isclose(rate.falloff_function(300, 0.), 1.)


class TestTroeRate(FalloffRateTests, utilities.CanteraTest):
# test Troe rate expressions
Expand Down

0 comments on commit 3c9368b

Please sign in to comment.