MCPcopy Create free account
hub / github.com/Cantera/cantera / test_advance_reverse

Method test_advance_reverse

test/python/test_reactor.py:1789–1796  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1787 return r, rsurf, sim
1788
1789 def test_advance_reverse(self):
1790 surf, gas = self.import_phases()
1791 gas.TPX = 1500, 4000, 'NH3:1.0, SiF4:0.4'
1792 r, rsurf, sim = self.make_reactors(gas, surf)
1793
1794 sim.advance(0.1)
1795 with pytest.raises(ct.CanteraError, match="backwards in time"):
1796 sim.advance(0.09)
1797
1798 def test_no_mass_flow_rate(self):
1799 surf, gas = self.import_phases()

Callers

nothing calls this directly

Calls 3

import_phasesMethod · 0.95
make_reactorsMethod · 0.95
advanceMethod · 0.80

Tested by

no test coverage detected