CHEMKIN Input file to Cantera .cti file

338 views
Skip to first unread message

ANKIT SACHAN

unread,
Mar 29, 2017, 7:31:53 AM3/29/17
to Cantera Users' Group
Hey, 
I'm using cantera with matlab interface and i'm trying to convert my reaction mechanism datasheet into .cti file but some error is coming. Here i'm posting both datasheet and screenshot of my error message. Can someone help me out with this problem.

Thank you
Final_reaction_mechanism_data_sheet.inp
Screenshot (3).png

Bryan W. Weber

unread,
Mar 29, 2017, 9:04:04 AM3/29/17
to Cantera Users' Group
Ankit,

Did you install the Python module in addition to the MATLAB module? As it states in the installation instructions (http://cantera.org/docs/sphinx/html/install.html#windows), both are necessary for the MATLAB module to work properly.

Regards,
Bryan

PS in the future, please copy and paste the error message into your post, rather than a screenshot. This is for a couple of reasons - 1) no one can search for a screenshot, so this post can't help future users; 2) blind users cannot read the image, but they may have some software to read text

ANKIT SACHAN

unread,
Mar 30, 2017, 2:29:34 PM3/30/17
to Cantera Users' Group
As you said about the installation, i have already done that part but still some issues are there.

>> addpath('D:\Hypergolic_DATA_sheets\Cantera')
>> f = ck2cti('Final_reaction_mechanism_data_sheet.inp')
Error using ctmethods

***********************************************************************
CanteraError thrown by ck2cti:
Error converting input file "Final_reaction_mechanism_data_sheet.inp" to CTI.
Python command was: 'python'
The exit code was: 7
-------------- start of converter log --------------
sys.path: ['', 'C:\\Program Files\\Cantera\\bin', 'C:\\Program Files
(x86)\\Python36-32\\python36.zip', 'C:\\Program Files (x86)\\Python36-32\\DLLs', 'C:\\Program
Files (x86)\\Python36-32\\lib', 'C:\\Program Files (x86)\\Python36-32', 'C:\\Program Files
(x86)\\Python36-32\\lib\\site-packages']
Traceback (most recent call last):
  File "<stdin>", line 5, in <module>
ModuleNotFoundError: No module named 'cantera'
--------------- end of converter log ---------------
***********************************************************************


Error in ck2cti (line 47)
iok = ctmethods(0, 1, infile, thermo, transport, idtag, 0, 0);

This is the error that i'm getting.

Bryan W. Weber

unread,
Mar 30, 2017, 2:39:57 PM3/30/17
to Cantera Users' Group
Ankit,

Can you please open a Windows command terminal and type

python -c "import sys; print(sys.path); import cantera; print(cantera.__file__)"

Are you sure you installed the Python module for Cantera into the correct directory, with the correct bitness of the Cantera module to match your Python version (32-bit vs 64-bit)? Do you have multiple versions of Python installed?

Regards,
Bryan

ANKIT SACHAN

unread,
Apr 3, 2017, 7:09:26 AM4/3/17
to Cantera Users' Group
>> addpath('D:\Hypergolic_DATA_sheets\Cantera')
>> f = ck2cti('Final_reaction_mechanism_data_sheet.inp')
Error using ctmethods

***********************************************************************
CanteraError thrown by ct2ctml:
Error executing python while converting input file:
Python command was: 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.6'
exec_stream_t::start: CreateProcess failed.
 command line was: "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.6" -i
Access is denied.

[code 0x0005 (5)]
***********************************************************************


Error in ck2cti (line 47)
iok = ctmethods(0, 1, infile, thermo, transport, idtag, 0, 0);

Now this is the error. What is the problem now and how to solve it?

On Wednesday, March 29, 2017 at 5:01:53 PM UTC+5:30, ANKIT SACHAN wrote:
Reply all
Reply to author
Forward
0 new messages