From 7b7aea2038ecfad88af0919bf4104ac2a87b70e7 Mon Sep 17 00:00:00 2001 From: Richard West Date: Mon, 20 Feb 2017 00:09:44 -0500 Subject: [PATCH] Preserve units in PLOG entries in ck2cti When converting chemkin into cti using ck2cti, the units were not preserved in PLOG (pdep_arrhenius) reactions. Now they are. --- interfaces/cython/cantera/ck2cti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/cython/cantera/ck2cti.py b/interfaces/cython/cantera/ck2cti.py index f3942ad28..93323a737 100644 --- a/interfaces/cython/cantera/ck2cti.py +++ b/interfaces/cython/cantera/ck2cti.py @@ -531,11 +531,11 @@ class PDepArrhenius(KineticsModel): rxnstring = reactantstr + arrow + productstr lines = ['pdep_arrhenius({0!r},'.format(rxnstring)] prefix = ' '*(indent+15) - template = '[({0}, {1!r}), {2.A[0]:e}, {2.b}, {2.Ea[0]}],' + template = '[({0}, {1!r}), {2}],' for pressure, arrhenius in zip(self.pressures[0], self.arrhenius): lines.append(prefix + template.format(pressure, self.pressures[1], - arrhenius)) + arrhenius.rateStr()[1:-1])) lines[-1] = lines[-1][:-1] + ')' return '\n'.join(lines)