Hi Hamed,
Thanks for the confirmation. There are a number of issues with converting this mechanism. A few of them are due to liberties with formatting that aren’t currently handled by ck2yaml, like unexpected whitespace and the use of elemental compositions formatted as floating point values. I’ve put together a fix for these issues in a pull request for the development version of Cantera. You can download the version of ck2yaml.py from this branch to use locally and get past these errors.
There is one other minor issue, with a species whose name is capitalized differently in the kinetic input file and the thermo input file, which can be easily fixed in the input.
The bigger problem is the use of the NONCON keyword to specify that the surface mechanism does not conserve surface sites. This has been discussed in the past without resolution, as it’s not clear to me what the modeling intent is for such reactions. Please feel free to comment on that enhancement issue, as an indicator of interest and if you can provide any reference for how such reactions ought to be interpreted.
Regards,
Ray
Hi Ray,
Thank you for your time and for responding to this issue. I used the ck2yaml.py script from the branch and was able to get past the initial errors. As you mentioned, other issues then appeared (e.g., species names and the NONCON keyword).
I manually fixed some of those. However, when I tried to balance the surface sites manually by introducing _S_ as an empty surface site, I ran into additional Chemkin-format issues. Even though I basically copy-pasted one of the surface species entries in the thermo file, renamed it, and set all element coefficients to zero (even with the same composition), it still caused problems.
To save time, I ended up manually converting the surface kinetics and adding it to the gas-phase YAML file I had already generated with ck2yaml. Then, in the YAML file, I balanced the surface sites by introducing _S_ in the surface reactions. That works now.
Thank you again for your help.
Regards,
Hamed