---------------------------------------------------------------------------
CanteraError Traceback (most recent call last)
<ipython-input-5-e57d0132bba2> in <module>
30 for P in [40]:
31 for i,T in enumerate(temperatures):
---> 32 ignition_delay_times[i] = get_ignition_delay(T, P)
33 plt.semilogy(1000./temperatures, ignition_delay_times, 'o-', label='{0} bar'.format(P))
34 for i, element in enumerate(ignition_delay_times):
<ipython-input-3-adf54ff16f0b> in get_ignition_delay(temperature, pressure, stoichiometry, plot)
37 # the size of the step will be determined by the ODE solver
38 # depending on how quickly things are changing.
---> 39 reactor_network.step()
40
41 print("Reached end time {0:.2f} ms in {1} steps".format(times[-1]*1e3, len(times)))
interfaces/cython/cantera/reactor.pyx in cantera._cantera.ReactorNet.step()
CanteraError:
***********************************************************************
CanteraError thrown by CVodesIntegrator::step:
CVodes error encountered. Error code: -3
At t = 0.000295852 and h = 9.29322e-16, the error test failed repeatedly or with |h| = hmin.
Components with largest weighted error estimates:
660: 141.876
657: -122.15
7: 8.71207
2: -0.00422197
664: 0.000340841
661: -0.000103909
14: 2.29653e-05
665: 1.91783e-05
663: 1.54839e-05
76: 1.78792e-06
***********************************************************************
as you can see, it fails at T = 791.7, but if I change T from 791.7 to 792.0, it works,
"Reached end time 100.19 ms in 7027 steps
At 792.0 K 40 bar, ignition delay time is 0.8989770969860696 ms"
then, next T:756.3, cvode error -3 again.
how to solve this problem?
best regards,
shenghui