Closed rwest closed 3 years ago
Thanks for reporting this @rwest. I'm not super inclined to support an apparently mostly unused feature that's only useful for 40 year old software that only a few people are even licensed to use anyways. Just out of curiosity, does Chemkin-II support surface chemistry at all?
From reading the linked RMG PR, I think the decision there was to use the Chemkin 4 syntax that is supported by Cantera, correct? In which case, @rwest, any objection to closing this?
No objection.
Cantera version
2.4 (and earlier)
Operating System
Mac OS X
Python/MATLAB version
Python
Expected Behavior
As described in the original documentation on Page 61 of Sandia report from 1980 in the Chemkin thermo block, on line 1 of a species definition, columns 74 through 78 can contain, if needed (eg. you have 5 atom types), atomic symbol and formula (2 letters then 3 digits), much like columns 25 through 44.
It would look something like
Comments from the
ckinterp.f
source codeand the source code itself
Actual Behavior
This syntax is not supported and those elements are not read by ck2cti.py
Discussion
I think the answer may be as simple as finding this part of ck2cti.py
and replacing that last line with
But of course it would be nice to include a unit test etc. too.
Actually, I'm reconsidering this issue. I'm going to finish writing it anyway, so there's a record of the decision, but we should probably have a think before fixing it....
I have just checked through close to 100 chemkin files taken from combustion literature, and it looks like none of them use this feature. But many of them do put other random junk in these columns, that we would have to ignore (mostly a digit in the first or last column, so would be easy enough to ignore, but...).
These are all the unique opening lines I have come across: openininglines.txt
That said, none of these use the extended line notation either, because none of them have more than 4 atom types.
As context, what led me to open this issue is that RMG can now generate things with more than four elements (especially when a catalytic surface site counts as one) and so we need to choose how to represent them in CHEMKIN format. It seems if we use columns 74-48, we're not compatible with Cantera. For now we can use the extended line syntax and be compatible with Cantera and Chemkin 4+, but not Chemkin-II