Skip to content

Commit

Permalink
Preserve units in PLOG entries in ck2cti
Browse files Browse the repository at this point in the history
When converting chemkin into cti using ck2cti, the units were not preserved
in PLOG (pdep_arrhenius) reactions. Now they are.
  • Loading branch information
rwest authored and speth committed Feb 21, 2017
1 parent db1f1af commit 7b7aea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfaces/cython/cantera/ck2cti.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,11 @@ def to_cti(self, reactantstr, arrow, productstr, indent=0):
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)

Expand Down

0 comments on commit 7b7aea2

Please sign in to comment.