Closed GoogleCodeExporter closed 9 years ago
You can give multiple rate expressions at the same pressure, which will be
added before doing the logarithmic interpolation in pressure, e.g.:
pdep_arrhenius('CO(15) + OH(26) <=> HOCO(30)',
[(0.001, 'atm'), 1.000000e+25, -6.0, 2.981],
[(1.0, 'atm'), 6.000000e+26, -5.6, 2.881],
[(3.0, 'atm'), 2.200000e+27, -5.6, 3.239],
[(10.0, 'atm'), 1.500000e+25, -5.0, 1.987],
[(10.0, 'atm'), 1.300000e+37, -8.4, 7.948],
[(20.0, 'atm'), 4.200000e+26, -5.7, 1.927],
[(20.0, 'atm'), 7.500000e+28, -6.0, 3.775],
[(20.0, 'atm'), 4.000000e+39, -9.0, 9.935],
[(50.0, 'atm'), 4.900000e+25, -5.2, 1.987],
[(50.0, 'atm'), 4.000000e+38, -9.0, 6.955],
[(50.0, 'atm'), 5.000000e+43, -10.0, 13.015],
[(80.0, 'atm'), 5.200000e+25, -5.2, 1.987],
[(80.0, 'atm'), 7.700000e+35, -8.0, 6.557],
[(80.0, 'atm'), 9.000000e+47, -11.2, 15.499],
[(100.0, 'atm'), 1.100000e+28, -6.0, 2.384],
[(100.0, 'atm'), 1.800000e+36, -8.0, 7.153],
[(100.0, 'atm'), 2.000000e+54, -13.0, 19.671],
[(650.0, 'atm'), 3.200000e+41, -10.0, 6.955],
[(650.0, 'atm'), 2.900000e+66, -17.1, 19.87],
[(650.0, 'atm'), 2.000000e+63, -15.2, 27.421],
[(2000.0, 'atm'), 5.500000e+44, -11.0, 7.948],
[(2000.0, 'atm'), 2.700000e+67, -17.0, 22.851],
[(2000.0, 'atm'), 1.000000e+74, -18.0, 37.157])
This has the advantage of also working when some of the Arrhenius expressions
at a particular pressure have negative A factors. I haven't worked out a
general way to detect whether a particular combination of rate expressions will
lead to a negative rate coefficient for some value of T (and subsequently break
the logarithmic interpolation), but checking that A != 0.0 wouldn't hurt.
Original comment by yarmond
on 19 Jul 2012 at 1:16
Fixed in r1713 in the 2.0 maintenance branch; will be merged back into trunk
later.
Original comment by yarmond
on 24 Jul 2012 at 11:04
Original issue reported on code.google.com by
r.h.w...@gmail.com
on 18 Jul 2012 at 7:15