Skip to content

Commit

Permalink
[Kinetics] update unit tests to probe falloff type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingmar Schoegl committed Nov 2, 2019
1 parent fd6e05b commit 0ca7889
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interfaces/cython/cantera/test/test_kinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ def test_falloff(self):
r.low_rate = ct.Arrhenius(2.3e12, -0.9, -1700*1000*4.184)
r.falloff = ct.TroeFalloff((0.7346, 94, 1756, 5182))
r.efficiencies = {'AR':0.7, 'H2':2.0, 'H2O':6.0}
self.assertEqual(r.falloff.type, "Troe")

gas2 = ct.Solution(thermo='IdealGas', kinetics='GasKinetics',
species=self.species, reactions=[r])
Expand Down Expand Up @@ -1099,9 +1100,12 @@ def test_modify_third_body(self):
def test_modify_falloff(self):
gas = ct.Solution('gri30.xml')
gas.TPX = 1100, 3 * ct.one_atm, 'CH4:1.0, O2:0.4, CO2:0.1, H2O:0.05'
r0 = gas.reaction(11)
self.assertEqual(r0.falloff.type, "Lindemann")
# these two reactions happen to have the same third-body efficiencies
r1 = gas.reaction(49)
r2 = gas.reaction(53)
self.assertEqual(r2.falloff.type, "Troe")
self.assertEqual(r1.efficiencies, r2.efficiencies)
r2.high_rate = r1.high_rate
r2.low_rate = r1.low_rate
Expand Down

0 comments on commit 0ca7889

Please sign in to comment.