You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem description
This problem usually occurs for a reaction mechanism with reverse reactions. The reverse reaction rates can become very large for some conditions which might be caused by using the mechanism outside of the temperature range.
import cantera as ct
import matplotlib.pyplot as plt
ct.suppress_thermo_warnings()
gas = ct.Solution("/home/bschen/reaction-mechanisms/input/A2NOx.yaml")
gas.TP = 300, ct.one_atm
plt.plot(gas.reverse_rate_constants, ".")
print(gas.reaction(1153))
print(gas.reverse_rate_constants[1153])
After making this reaction irreversible, the simulation converged.
Behavior
Traceback (most recent call last):
File "phi-issue.py", line 34, in
sim.step()
File "build/python/cantera/reactor.pyx", line 1158, in cantera.reactor.ReactorNet.step
cantera._utils.CanteraError:
CanteraError thrown by CVodesIntegrator::step:
CVodes error encountered. Error code: -3
At t = 0.0012841 and h = 2.1008e-11, the error test failed repeatedly or with |h| = hmin.
Components with largest weighted error estimates:
196: -215.00762894680796
197: 210.9919998140404
21: 5.7857926262174235
2: -0.008801723314520293
23: 0.0030090242342010846
4: 1.0254549364550695e-06
6: 7.229548501420058e-07
14: 5.002437405334156e-07
12: 4.414005225560132e-07
8: 3.0764574908068557e-07
System information
Cantera version: 3.0.0
Attachments
Additional context
The text was updated successfully, but these errors were encountered:
Problem description
This problem usually occurs for a reaction mechanism with reverse reactions. The reverse reaction rates can become very large for some conditions which might be caused by using the mechanism outside of the temperature range.
Steps to reproduce
error from running:
To see the large reverse reaction constant:
After making this reaction irreversible, the simulation converged.
Behavior
Traceback (most recent call last):
File "phi-issue.py", line 34, in
sim.step()
File "build/python/cantera/reactor.pyx", line 1158, in cantera.reactor.ReactorNet.step
cantera._utils.CanteraError:
CanteraError thrown by CVodesIntegrator::step:
CVodes error encountered. Error code: -3
At t = 0.0012841 and h = 2.1008e-11, the error test failed repeatedly or with |h| = hmin.
Components with largest weighted error estimates:
196: -215.00762894680796
197: 210.9919998140404
21: 5.7857926262174235
2: -0.008801723314520293
23: 0.0030090242342010846
4: 1.0254549364550695e-06
6: 7.229548501420058e-07
14: 5.002437405334156e-07
12: 4.414005225560132e-07
8: 3.0764574908068557e-07
System information
Attachments
Additional context
The text was updated successfully, but these errors were encountered: