From 4e0fea70792dced18faa750c36dd321b5c3d6d8b Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 26 Jul 2012 20:50:23 +0000 Subject: [PATCH] Added a test for converting Chebyshev and P-log reactions with ck2cti.py --- test/data/pdep-test.inp | 2 +- test/python/testConvert.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/test/data/pdep-test.inp b/test/data/pdep-test.inp index 1e7da5400..8ac711ed1 100644 --- a/test/data/pdep-test.inp +++ b/test/data/pdep-test.inp @@ -1,5 +1,5 @@ ELEMENTS -H C AR +H C END SPECIES diff --git a/test/python/testConvert.py b/test/python/testConvert.py index f64bbdace..b0c336f45 100644 --- a/test/python/testConvert.py +++ b/test/python/testConvert.py @@ -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')