From efb246d73aa4e882688f0ddc02276ec618172f4c Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Fri, 1 Nov 2019 18:24:42 -0400 Subject: [PATCH] [cti2yaml] Add failing test of Motz-Wise option The global Motz-Wise option is not added to the phase specification --- interfaces/cython/cantera/test/test_convert.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/interfaces/cython/cantera/test/test_convert.py b/interfaces/cython/cantera/test/test_convert.py index 9cefe75da..37541c12a 100644 --- a/interfaces/cython/cantera/test/test_convert.py +++ b/interfaces/cython/cantera/test/test_convert.py @@ -613,6 +613,18 @@ class cti2yamlTest(utilities.CanteraTest): self.checkThermo(ctiSurf, yamlSurf, [400, 800, 1600]) self.checkKinetics(ctiSurf, yamlSurf, [500, 1200], [1e4, 3e5]) + def test_ptcombust_motzwise(self): + cti2yaml.convert(Path(self.test_data_dir).joinpath('ptcombust-motzwise.cti'), + Path(self.test_work_dir).joinpath('ptcombust-motzwise.yaml')) + ctiGas, yamlGas = self.checkConversion('ptcombust-motzwise') + ctiSurf, yamlSurf = self.checkConversion('ptcombust-motzwise', ct.Interface, + name='Pt_surf', ctiphases=[ctiGas], yamlphases=[yamlGas]) + + + self.checkKinetics(ctiGas, yamlGas, [500, 1200], [1e4, 3e5]) + self.checkThermo(ctiSurf, yamlSurf, [400, 800, 1600]) + self.checkKinetics(ctiSurf, yamlSurf, [900], [101325]) + def test_sofc(self): cti2yaml.convert(Path(self.cantera_data).joinpath('sofc.cti'), Path(self.test_work_dir).joinpath('sofc.yaml'))