First post. Hi!
So basically I'm trying to make the Miller & Bowman 1989 AB Mechanism work in Cantera, a module for Python 3.4 I have running.
I have a .txt file of the mechanism (apparently) that I obtained from a university mechanisms list. (http://www.sciencedirect.com/science/article/pii/0360128589900178) and in order to use it with Cantera, I need it in a .cti format (I think?) and that what I specifically need help on - the conversion of a mechanism file.
I'm no skilled coder with Python, it's all new stuff to me. I can get the GRI3.0 that comes with the module to work with counterflow combuistion (my true goal) and with the help of someone else i've tried the Konnov 2009 mechanism (which required some editing before conversion, using the ck2cti code that comes with Cantera) but the Konnov mechanism keeps failing the time intergration (failed both adiabatic premixed AND counterflow combustion) and the code won't complete.
So, my question: Can anyone tell me how or suggest to me about how to go about converting a .txt mechanism file into a file format that will work for the Cantera module?
I have files attached, which are .txt mechanisms. The Miller & bowman is my first specific target.
I'm not asking for the conversion to be done for me, that's cheating - I'm merely wondering if it's an easy or difficult task, and how to go about it.
Regards and thanks for your time
T.Counterflow
--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to canter...@googlegroups.com.
Visit this group at https://groups.google.com/group/cantera-users.
For more options, visit https://groups.google.com/d/optout.
--
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.
Tom,
The warnings that are printed are about a different issue, which is discontinuities in the thermo data between the NASA polynomials evaluated for each temperature range. These can also cause issues for the solver, but apparently not in this particular case.
My approach for identifying this as the problem was to start by seeing if this was an example of any of the known failure modes of the solver, which mostly involve flames that are very close to the edge of the domain. I ran your code interactively, and after the integration error used the method ‘restore_time_stepping_solution’ to check on how the solver was progressing. This looked pretty normal, so my next guess was something funny in the mechanism.
I’ve seen issues with unusually high reverse rate constants in other mechanisms, so this was basically the first thing I looked at. What I like to do is plot the forward and reverse rate constants for each reaction using Matplotlib:
gas.TP = 300, 101325
plt.semilogy(gas.forward_rate_constants, 'r.')
plt.semilogy(gas.reverse_rate_constants, 'b.')
An example of this plot is attached for 3 cases:
As you can see, at 300 K, the Konnov mechanism contains a fair number of reactions where the reverse rate constant is far higher than any of the forward rate constants, and much higher than any of the rate constants in the GRI mechanism. In contrast, at 1800 K, there are only a couple of reactions which have reverse reaction rates that are outliers, and even these are not nearly as high.
These high reverse rate constants are nonphysical — as you can see, there is a fairly clear ceiling on the reaction rate constant, around 1e12 m^3/kmol/s, which is defined by the rate of collisions between molecules. Anything much higher than this is suspect. I think the case where reactions like this appear is when the forward rate constant is determined for high temperatures, and is irrelevantly small for low temperatures. However, the equilibrium constant for the reaction, determined from the species thermodynamics, can be extremely large in some cases, and taking a very small forward rate constant times that equilibrium constant gives an impossibly large value for the reverse rate constant.
I unfortunately don’t know of a simple fix for reactions where the rate constants demonstrate this behavior.
Regards,
Ray
--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/r8LJXFyfXGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cantera-users+unsubscribe@googlegroups.com.
To post to this group, send email to canter...@googlegroups.com.
Visit this group at https://groups.google.com/group/cantera-users.
For more options, visit https://groups.google.com/d/optout.