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

Method make_reactors

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

Source from the content-addressed store, hash-verified

2026
2027class TestSurfaceKinetics:
2028 def make_reactors(self):
2029 self.interface = ct.Interface('diamond.yaml', 'diamond_100')
2030 self.gas = self.interface.adjacent['gas']
2031 self.gas.TPX = None, 1.0e3, 'H:0.002, H2:1, CH4:0.01, CH3:0.0002'
2032 self.r1 = ct.IdealGasReactor(self.gas)
2033 self.r1.volume = 0.01
2034 self.r2 = ct.IdealGasReactor(self.gas)
2035 self.r2.volume = 0.01
2036
2037 self.net = ct.ReactorNet([self.r1, self.r2])
2038
2039 def test_coverages(self):
2040 self.make_reactors()

Callers 4

test_coveragesMethod · 0.95

Calls 2

InterfaceMethod · 0.80
ReactorNetMethod · 0.45

Tested by

no test coverage detected