converting chemkin format into cti

632 views
Skip to first unread message

Michael J. Zehe

unread,
May 3, 2013, 10:07:01 AM5/3/13
to canter...@googlegroups.com
Dr. Amrinder Singh recently posted a procedure for converting chemkin format into cti,  and it speaks of a script ‘ck2cti’ for doing the conversion, but I can’t find that script anywhere in the distribution for Cantera.  I do have a python file (ck2cti.py) and a c++ (ck2cti.cpp), but no ck2cti file with no extension.  Do I somehow use the python or C++ version for the job?  Thank you for any help.
 

 

Mike

 

Michael J. Zehe

NASA Glenn Research Center

Cleveland, OH

Message has been deleted

Nick Curtis

unread,
May 4, 2013, 8:54:47 PM5/4/13
to canter...@googlegroups.com
I think it depends what interface you're using.  I have the c++ interface, and there is a ck2cti.exe file in my Cantera\bin folder. 
However, the python script should do what you're looking for.
I assume you have python installed (more or less needed for Cantera), and added the folder containing the python exe to your path (if not and on windows, see here:http://www.computerhope.com/issues/ch000549.htm)

In command line navigate to the folder with the ck2cti.py file
Then run it something like (assuming you have python on your path):

python ck2cti.py --input=chem.inp --thermo=thermo.dat --transport=tran.dat

where transport is optional (there's also an output and phase id inputs you can use to change the name of the .cti file created and the name of the phase created respectively)

I find it easiest to copy all my mechanism files to the bin directory, so I don't have to specify paths, and then move the .cti to wherever.

Michael J. Zehe

unread,
May 7, 2013, 3:39:44 PM5/7/13
to canter...@googlegroups.com
Nick:
   Thanks for the information.  I do have python installed, but my problem was apparently that I was using the wrong shell!  Once I entered the bash shell I was able to use the command 'ck2cti' from within the python folder and it did the job.   It must be a path thing.  But I don't know where.
 
Mike
Reply all
Reply to author
Forward
0 new messages