CanteraError thrown by CVodesIntegrator::step: CVodes error encountered. Error code: -3

407 views
Skip to first unread message

shenghui qin

unread,
Aug 28, 2019, 10:15:00 AM8/28/19
to Cantera Users' Group
dear developer
my cantera is 2.4, I use cantera to test IDT, detail is on the ipynb file. T range from 650 to 1500 K

At 933.3 K 40 bar, ignition delay time is 0.6108529137253024 ms
Reached end time 101.06 ms in 6235 steps
At 897.9 K 40 bar, ignition delay time is 0.6043271556071341 ms
Reached end time 100.78 ms in 6452 steps
At 862.5 K 40 bar, ignition delay time is 0.614169872109367 ms
Reached end time 100.10 ms in 6775 steps
At 827.1 K 40 bar, ignition delay time is 0.6704673063845971 ms
---------------------------------------------------------------------------
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



8.27heptane1_N2=0.4.ipynb
8.27heptane2.cti

shenghui qin

unread,
Aug 28, 2019, 10:49:44 AM8/28/19
to Cantera Users' Group
for your information:
I did some trial, 
when T is lower than 720K, it always get CVode error, but if large than 720K, it works well.

shenghui qin

unread,
Aug 29, 2019, 5:44:17 PM8/29/19
to Cantera Users' Group
Reply all
Reply to author
Forward
0 new messages