Skip to content

Commit

Permalink
[test] add TestETemp
Browse files Browse the repository at this point in the history
  • Loading branch information
BangShiuh committed Dec 22, 2021
1 parent a337727 commit 037f80b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions interfaces/cython/cantera/test/test_reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,29 @@ def test_efficiencies(self):
self.assertEqual(rxn.default_efficiency, 0.)


class TestETemp(ReactionTests, utilities.CanteraTest):
# test electron-temperature reaction

_cls = ct.ETempReaction
_type = "electron-temperature"
_equation = "O + H <=> O + H"
_rate = {"A": 17283, "b": -3.1, "Ea_T": -5820088, "Ea_Te": 10808733}
_index = 11
_yaml = """
equation: O + H <=> O + H
type: electron-temperature
rate-constant: {A: 17283, b: -3.1, Ea_T: -700 K, Ea_Te: 1300 K}
"""

@classmethod
def setUpClass(cls):
ReactionTests.setUpClass()
cls._rate_obj = ct.ETempRate(**cls._rate)

def eval_rate(self, rate):
return rate(self.gas.T, self.gas.Te)


class TestBlowersMasel(ReactionTests, utilities.CanteraTest):
# test updated version of Blowers-Masel reaction

Expand Down

0 comments on commit 037f80b

Please sign in to comment.