CanteraError thrown by CVodesIntegrator::step: CVodes error encountered.

234 views
Skip to first unread message

Francesca

unread,
May 1, 2021, 9:24:05 AM5/1/21
to Cantera Users' Group
Hi all,
I am conducting a ignition delay time simulation on 2-methyl-2-butene mechanism from Westbrook et al. (2015) as assignment.
I got the following error by running the simluation in a non ideal shock tube reactor. I'm not sure to what this problem is related as this is my first practice with cantera and with combustions. I saw other similar problems in this conversation, but I'm not sure I undesrtood how to fix mine. I appreciate if someone can help me out. Thank you in advance for your time and help.

OS: Windows 10
Interface: Python
Cantera version: 2.5.0

CanteraError: 
***********************************************************************
CanteraError thrown by CVodesIntegrator::step:
CVodes error encountered. Error code: -9
Exceptions caught during RHS evaluation:

***********************************************************************
CanteraError thrown by checkFinite:
ydot contains non-finite elements:

ydot[3] = -nan
ydot[4] = -nan
ydot[5] = -nan
ydot[7] = -nan
ydot[9] = -nan
ydot[14] = -nan
ydot[15] = -nan
ydot[17] = -nan
ydot[33] = -nan
ydot[34] = -nan
ydot[35] = -nan
ydot[37] = -nan
ydot[39] = -nan
ydot[40] = -nan
ydot[41] = -nan
ydot[72] = -nan
ydot[91] = -nan
ydot[93] = -nan
ydot[98] = -nan
ydot[122] = -nan
ydot[213] = -nan
ydot[367] = -nan
ydot[373] = -nan
***********************************************************************


The right-hand side routine failed at the first call.
Components with largest weighted error estimates:
623: -6.736079086516795e-295
613: -6.68175601045738e-295
603: -6.627432947350587e-295
593: -6.573109871291173e-295
583: -6.518786782279135e-295
573: -6.464463706220511e-295
563: -6.410140435886776e-295
553: -6.355817359826571e-295
543: -6.301494270816114e-295
533: -6.2471711947567e-295
***********************************************************************

Bryan Weber

unread,
May 1, 2021, 9:25:35 AM5/1/21
to Cantera Users' Group
Hi Francesca,

Can you please attach your script and input file? It is very hard to help without seeing the code. Thanks!

Bryan

Federica Bortolo

unread,
May 1, 2021, 9:37:20 AM5/1/21
to canter...@googlegroups.com
Yes, sorry I tried to do that on the first email but I got an error message. Here they are.

--
You received this message because you are subscribed to a topic in the Google Groups "Cantera Users' Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cantera-users/G0tQA1FwbiA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cantera-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/f864103f-952e-4b72-b890-22a48f8f0197n%40googlegroups.com.
IDT.py
mech.cti

Bryan Weber

unread,
May 2, 2021, 2:37:16 PM5/2/21
to Cantera Users' Group
Hi Francesca,

Thank you! Can you attach the circiri.cti file? Or is it the same as the mech.cti file you attached? I didn't see a R-K phase in that file.

Best,
Bryan

Federica Bortolo

unread,
May 3, 2021, 11:52:42 AM5/3/21
to canter...@googlegroups.com
Dear Bryan,

To solve the problem I converted the initial input and therm data with another way. Now I don't get any error message.
Thank you for your time and help.

Best regards.

You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/e42345bb-1402-4553-b148-179ae557a114n%40googlegroups.com.

Delight Ezeh

unread,
Jul 19, 2025, 10:38:25 PM7/19/25
to Cantera Users' Group
Hi Federica 

Please what other way did you convert the initial input and therm data cos I am having similar errors too

*******************************************************************************

CanteraError thrown by checkFinite:
ydot contains non-finite elements:

ydot[2] = -nan*******************************************************************************

CanteraError thrown by checkFinite:
ydot contains non-finite elements:

ydot[2] = -nan

Quite very new to canterra despite having gone over the documentations, etc.
Reply all
Reply to author
Forward
0 new messages