-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid chemkin thermo block generated for an adsorbate with 5 elements #1634
Comments
I think RMG's behavior may be somewhat correct. We have explicit handling for molecules with more than 4 elements, which (according to the comments) is supported by Chemkin 4 and later. I confirmed the syntax with the input manual for our current version of Chemkin Pro. The I think you are correct that Chemkin II supports a 5th element in the gap between the last temperature and the 1. Perhaps we could update our Chemkin writer to prefer doing that for molecules with 5 elements. Additionally, new Chemkin also supports additional elements directly after the 1 (i.e. no I do feel like it the ck2cti converter should be able to handle the line continuation form as well though. |
OK, thanks Max. I was not familiar with the new Chemkin 4 syntax, and it appears that the version of ck2cti that it was using is not either (I guess this is one that was distributed with RMG, but perhaps I'm in a conda environment made for RMG 2.3.0). I suggest
? Anyway, at the end of the day, RMG shouldn't crash converting its own files. |
I looked into it some more, and it turns out that we are actually writing it wrong. 😓 The new line syntax is not column based and should be whitespace delimited instead:
instead of
So we should definitely fix that. While I was digging around, I found out that the ct2cti script originated as a port of RMG's Chemkin module. 😄 |
Fixed by #1636. |
Bug Description
When running a surface chemistry job, this ended up in my
chem_annotated-surface.inp
chemkin filewhich then obviously crashed the cantera conversion, leading to the error message
To (hopefully) reproduce it without running the full simulation (which took ~6 hours) the species in question is
My guess is that this is perhaps the first time we've run across a species with five different elements (X, H, C, O, N) and our chemin-writing code isn't set up to do. (The fifth element count block should go in that gap at the end of line 1, if I recall correctly).
How To Reproduce
I'm guessing here, but try writing a chemkin thermo block for the species mentioned above.
Expected Behavior
It'd make a valid chemkin file.
Installation Information
Describe your installation method and system information.
The text was updated successfully, but these errors were encountered: