Closed GoogleCodeExporter closed 9 years ago
How are you computing your expected rates? I wrote the following script to
evaluate the rate constants, and get the same values produced by Cantera:
from __future__ import division
import numpy as np
import scipy.special
C=[[1.74803, 0.48491, -0.19270, 0.04531, 0.00299, -0.00661, 0.00030],
[-3.74931, -0.63409, 0.20864, -0.02864, -0.01588, 0.00962, 0.00221],
[0.00982, 0.21793, -0.02120, -0.02227, 0.01705, -0.00258, -0.00548],
[0.06149, -0.02515, -0.03822, 0.02761, -0.01039, -0.00312, 0.00731],
[-0.01192, -0.01609, 0.02664, -0.01083, -0.00013, 0.00671, -0.00652],
[0.00236, 0.00495, -0.00183, -0.00529, 0.00625, -0.00472, 0.00213],
[-0.00374, 0.00477, -0.00741, 0.00797, -0.00468, 0.00078, 0.00112]]
phi = [scipy.special.chebyt(i) for i in range(7)]
def k(T,P):
Pmin = 101325.0 * 0.004
Pmax = 101325.0 * 1363.0
Tt = (2/T - 1/300.0 - 1/1000.0) / (1/1000.0 - 1/300.0)
Pt = (2*np.log10(P) - np.log10(Pmin) - np.log10(Pmax)) / (np.log10(Pmax) - np.log10(Pmin))
assert -1 <= Tt <= 1
assert -1 <= Pt <= 1
logk = 0.0
for t in range(7):
for p in range(7):
logk += C[t][p] * phi[t](Tt) * phi[p](Pt)
return 10**logk
for T in [300, 400, 500, 700]:
print 'T = {:.0f}, k = {:.3e}'.format(T, k(T, 101325))
Original comment by yarmond
on 27 Oct 2014 at 8:54
Hello, I've confirmed that the error was in fact in the publication (their eqn
for calculating the rates, and that for whatever reason Tmin and Tmax values
must be switched to get agreeable rates) from which I obtained the chebyshev
coefficients. sorry for the misunderstanding.
Original comment by enoch.da...@gmail.com
on 5 Nov 2014 at 3:40
Original comment by yarmond
on 5 Nov 2014 at 3:55
Original issue reported on code.google.com by
enoch.da...@gmail.com
on 24 Oct 2014 at 11:02Attachments: