Skip to content

Commit

Permalink
[UnitTests] Remove Python tests for legacy Kinetics
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed May 25, 2022
1 parent 752fc9d commit 4471793
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 468 deletions.
10 changes: 4 additions & 6 deletions interfaces/cython/cantera/test/test_kinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1412,13 +1412,11 @@ def test_interface(self):
surf_species = ct.Species.list_from_file("ptcombust.yaml")
gas = ct.Solution("ptcombust.yaml", "gas")
surf1 = ct.Interface("ptcombust.yaml", "Pt_surf", [gas])
r1 = ct.InterfaceReaction()
r1.reactants = 'H(S):2'
r1.products = 'H2:1, PT(S):2'
r1.rate = ct.Arrhenius(3.7e20, 0, 67.4e6)
r1.coverage_deps = {'H(S)': (0, 0, -6e6)}

self.assertNear(r1.coverage_deps['H(S)'][2], -6e6)
rate = ct.InterfaceArrheniusRate(3.7e20, 0, 67.4e6)
rate.coverage_dependencies = {'H(S)': (0, 0, -6e6)}
self.assertNear(rate.coverage_dependencies["H(S)"]["E"], -6e6)
r1 = ct.Reaction(equation="2 H(S) <=> H2 + 2 PT(S)", rate=rate)

surf2 = ct.Interface(thermo='Surface', species=surf_species,
kinetics='interface', reactions=[r1], adjacent=[gas])
Expand Down
Loading

0 comments on commit 4471793

Please sign in to comment.