Added a test for converting Chebyshev and P-log reactions with ck2cti.py

This commit is contained in:
Ray Speth 2012-07-26 20:50:23 +00:00
parent 5045d2c14c
commit 4e0fea7079
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,5 @@
ELEMENTS
H C AR
H C
END
SPECIES

View file

@ -74,6 +74,17 @@ class chemkinConverterTest(utilities.CanteraTest):
self.checkThermo(ref, gas, [300, 1100])
self.checkKinetics(ref, gas, [300, 1100])
def test_pdep(self):
if os.path.exists('pdep_test.cti'):
os.remove('pdep_test.cti')
ck2cti.convertMech('../data/pdep-test.inp',
outName='pdep_test.cti', quiet=True)
ref, gas = self.checkConversion('../data/pdep-test.xml', 'pdep_test.cti')
self.checkKinetics(ref, gas, [300, 800, 1450, 2800])
def test_missingElement(self):
if os.path.exists('h2o2_missingElement.cti'):
os.remove('h2o2_missingElement.cti')