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

Method test_integrateWithStep

test/python/test_reactor.py:2519–2533  ·  view source on GitHub ↗
(self, test_data_path, setup_combustor_tests)

Source from the content-addressed store, hash-verified

2517 }
2518
2519 def test_integrateWithStep(self, test_data_path, setup_combustor_tests):
2520 sim = setup_combustor_tests['sim']
2521 combustor = setup_combustor_tests['combustor']
2522
2523 tnow = 0.0
2524 tfinal = 0.25
2525 data = []
2526 while tnow < tfinal:
2527 tnow = sim.step()
2528 data.append([tnow, combustor.T] + list(combustor.thermo.X))
2529
2530 assert tnow >= tfinal
2531 bad = compareProfiles(test_data_path / self.referenceFile, data,
2532 rtol=1e-3, atol=1e-9)
2533 assert not bad, bad
2534
2535 def test_integrateWithAdvance(self, request, test_data_path, setup_combustor_tests):
2536 sim = setup_combustor_tests['sim']

Callers

nothing calls this directly

Calls 3

compareProfilesFunction · 0.85
stepMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected