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.
This commit is contained in:
parent
db1f1af0a0
commit
7b7aea2038
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue