encountering error while converting chemkin to ck2cti

373 views
Skip to first unread message

Noor Jahan Serajudeen

unread,
Aug 3, 2017, 8:31:51 AM8/3/17
to Cantera Users' Group
 Hi all,,
I am Noorjahan new to this group I installed cantera2.3 python 3.5.3  latest version,while trying to convert chemkin format  reaction  mechanisms into cantera format using ck2cti.py I got the following errors.expecting ur help



CanteraError thrown by ct2ctml_string:
Error executing python while converting input file:
Python command was: 'C:\python35\python.exe'
exec_stream_t::start: CreateProcess failed.
 command line was: C:\python35\python.exe  -c "from __future__ import print_func
tion
import sys
try:
    from cantera import ctml_writer
except ImportError:
    print('sys.path: ' + repr(sys.path) + '\n', file=sys.stderr)
    raise
ctml_writer.convert(r'./nc7_2c_mech.cti', outName='STDOUT')
sys.exit(0)
"
The system cannot find the file specified.
[code 0x0002 (2)]
***********************************************************************


C:\PYTHON3.5.3\Lib\site-packages\cantera>

Bryan W. Weber

unread,
Aug 3, 2017, 9:51:43 AM8/3/17
to Cantera Users' Group
Hi Noorjahan,

Welcome to the group! Can you please provide a few more details to help us help you? In particular, what command are you running that generates that error message, what OS are you using, and are you running in Matlab or Python? Can you also provide a link to the instructions you used to install Cantera?

Thanks,
Bryan

icombu...@gmail.com

unread,
Aug 7, 2017, 8:46:08 AM8/7/17
to Cantera Users' Group
Dear Bryan,
Thanks for your concern. im using cantera version 2.3 running in Python 3.5.3 installed is windows 8.1 OS. i have referred following link for installation of cantera.

the required input file for the cantera is in chemkin format which i tried to convert to ck2cti format which is acceptable by cantera software. i tried to convert it by the following method using cmd command which as follows:

C:\Python3.5.3\Lib\site-packages\cantera>ck2cti --input=heptanesymp159_mec.inp -
-thermo=heptanesymp_therm.dat
failed to create process.

When i tried i faced with the following error. hope you have understood the problem that i face. expecting best solution from you or please suggest me any other ways to convert the input file from chemkin format to ck2cti

thanks and regards,
Noorjahan



Noor Jahan Serajudeen

unread,
Aug 7, 2017, 1:26:52 PM8/7/17
to Cantera Users' Group

Bryan W. Weber

unread,
Aug 9, 2017, 10:34:39 AM8/9/17
to Cantera Users' Group
Noorjahan,

You should not run the ck2cti script from inside that directory. Instead, move the Chemkin input files to a directory such as your Documents folder, open the command prompt and change to the directory with the input files, then run

C:\Python3.5.3\Scripts\ck2cti --input=....

I think that will work. If you get an error that the command cannot be found (or is not an internal or external command) you need to look for the ck2cti.exe file, which should be somewhere in the C:\Python3.5.3 directory (but not in site-packages). Then you need to put the full path to the ck2cti.exe file to run it.

Best,
Bryan

Noor Jahan Serajudeen

unread,
Aug 9, 2017, 11:09:28 AM8/9/17
to canter...@googlegroups.com
Dear Bryan,
Thanks for ur concern.i will change the directory as u said and try to run  C:\Python3.5.3\Scripts\ck2cti --input=... thanks again for ur kind help it is most helpful for me.

--
You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-users+unsubscribe@googlegroups.com.
To post to this group, send email to canter...@googlegroups.com.
Visit this group at https://groups.google.com/group/cantera-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages