Reg: IC Engine Simulation

88 views
Skip to first unread message

Thamarai Kannan

unread,
Nov 16, 2021, 4:21:05 AM11/16/21
to Cantera Users' Group
Dear All,

I m trying to simulate IC engine using python. There is an example https://cantera.org/examples/python/reactors/ic_engine.py.html in which I tried changing few parameters according to my need  but got some errors which I didn't understand. Can anyone please help me in this. 


  File "/home/lab427/.config/spyder-py3/temp.py", line 167, in <module>
    sim.advance(sim.time + dt)

  File "interfaces/cython/cantera/reactor.pyx", line 964, in cantera._cantera.ReactorNet.advance

CanteraError: 
***********************************************************************
CanteraError thrown by CVodesIntegrator::integrate:
CVodes error encountered. Error code: -1
At t = 0.159111, mxstep steps taken before reaching tout.

Components with largest weighted error estimates:
2: -2.2158447081882616e-19
0: -1.9173347801950228e-19
10: 1.5531935944493587e-19
11: -7.50524250180235e-20
14: -5.0979984943656334e-20
12: 1.3426828558391016e-20
1: 1.2861610881164163e-20
13: -5.546235967205841e-22
9: 1.9577877489614884e-22
8: 1.6951598904963506e-22
***********************************************************************

Thank You,
Thamarai Kannan M

Pushkar Sheth

unread,
Jun 19, 2024, 1:06:18 AM (14 days ago) Jun 19
to Cantera Users' Group
Hello,

I am also facing this issue. The base code on the website runs well but simply changing the mechanism causes the error.

https://uwmadison.box.com/s/tnk7thber5v2qm2xqqr4306ekinsvjx9 [converted to cantera format using ck2yaml]

Can anyone help?

Thanks,
Pushkar Sheth

Reply all
Reply to author
Forward
0 new messages