multiple evaluation of kinetic mechanisms with a single script

36 views
Skip to first unread message

tullio viola

unread,
Feb 23, 2021, 10:22:35 AM2/23/21
to Cantera Users' Group

Hi all,

how can I run my STR script evaluating multiple kinetic mechanisms?

At this moment I use a script of a single STR for single evaluation of residence time and equivalence ratio....so I want to simplify that evaluating multiple kinetic mechanism, residence times and equivalence ratios.


Thank you for suggestions

Tullio Viola

Ingmar Schoegl

unread,
Feb 23, 2021, 12:35:13 PM2/23/21
to Cantera Users' Group
Hi Tullio,

I recently wrote a wrapper for Cantera batch jobs that should be able to handle this: https://github.com/microcombustion/ctwrap

The motivation for this was both teaching and research; at the moment it mostly contains 'stock' examples. It is, however, meant to run user-defined scripts: you mostly need to (a) modify your script so it contains callable functions, and (b) write up your batch cases in form of a YAML file (sphinx docs are available). The batch simulation will dispatch individual jobs to multiple CPU's; we've tested it to the best of our abilities with the pre-release version of Cantera 2.5 and it should be ready to go. Unfortunately the course that I intended for an initial trial was canceled, so there may be the occasional glitch.

-ingmar-

tullio viola

unread,
Feb 23, 2021, 1:40:06 PM2/23/21
to canter...@googlegroups.com
Dear Ingmar,

first of all thank you for the answer...but unfortunately your examples are in yaml and I'm using Python..so for me it's difficult.
Thank you the same :)

Tullio

--
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/TwAqzY6FCYA/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/7a254288-fe69-4f4f-9556-26a9eb2edfc5n%40googlegroups.com.

Ingmar Schoegl

unread,
Feb 23, 2021, 3:12:51 PM2/23/21
to Cantera Users' Group
Ciao Tullio,

YAML is just used to specify the input parameters as an input file - the code itself runs in Python, so it may work after all.

-ingmar-

tullio viola

unread,
Feb 23, 2021, 3:37:15 PM2/23/21
to canter...@googlegroups.com
Dear Ingmar, I apologize but I was in a hurry and I read wrong. I will definitely try the material you suggested . Thank you again


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/CALNLAPvp4yjHk3UemHbBvePA%3DBqok0Z0kK6yNThNbw--ik1g1g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages