Hi all !
So, I recently switched to the v 2.1 and I am trying to familiarize with its novelties.
I just wanted to check with you something about the new ck2cti program : I tried to compare the old and new version of the ck2cti (by 'old', I mean version 1.8 of Cantera ) on the mechanism of Wang and Frenklach that can be found here :
http://ignis.usc.edu/Mechanisms/PAH/pah.html . The thing is that when I change absolutely nothing and try to get a .cti with the command :
ck2cti -i mech.inp -t therm.dat -tr tran.dat -d
so, with the old cantera, I get no errors and a perfectly viable .cti ... On the other hand, the (I have to say, less easy to write) new command with the new cantera :
ck2cti --input=mech.inp --thermo=therm.dat --transport=tran.dat
will produce this :
INFO:root:Skipping unexpected species "C(S)" while reading thermodynamics entry.
INFO:root:Skipping unexpected species "n-C4H7" while reading thermodynamics entry.
INFO:root:Skipping unexpected species "c-C6H3" while reading thermodynamics entry.
INFO:root:Skipping unexpected species "A1C2HC2H2" while reading thermodynamics entry.
INFO:root:Skipping unexpected species "A2HR5" while reading thermodynamics entry.
INFO:root:Skipping unexpected species "A2R5" while reading thermodynamics entry.
INFO:root:Skipping unexpected species "A4H" while reading thermodynamics entry.
Traceback (most recent call last):
File "/usr/local/cantera211/bin/ck2cti", line 5, in <module>
ck2cti.main(sys.argv[1:])
File "/usr/local/cantera211/lib64/python2.7/site-packages/cantera/ck2cti.py", line 1882, in main
outName, permissive=permissive)
File "/usr/local/cantera211/lib64/python2.7/site-packages/cantera/ck2cti.py", line 1817, in convertMech
self.parseTransportData(lines)
File "/usr/local/cantera211/lib64/python2.7/site-packages/cantera/ck2cti.py", line 1686, in parseTransportData
raise InputParseError('Unable to parse transport data: not enough parameters')
cantera.ck2cti.InputParseError: Unable to parse transport data: not enough parameters
As I more or less understood that the problem came from the tran.dat file, I removed all end of file comments, and it seemed to have worked. However, I don't understand :
Why, as there still are comments and \n on the middle of the transport file ?
And what happened to the log file, doesn't it exist anymore ?
I know I could probably found answers looking at the.py file but if someone has a good grasp on this, it could save me time :)
Thanks a lot anyway !
Anne