Error with NASA Thermobuild Data File and 'ck2cti' Command in Matlab

189 views
Skip to first unread message

Matt G.

unread,
Dec 1, 2017, 7:43:24 PM12/1/17
to Cantera Users' Group
Hi Everyone, 

Software information:
Windows 10
Matlab 2015b
Cantera 2.3 (64-bit)
Python 3.4 Cantera-2.3.0
Python 3.4.4 (64-bit)

I am new to Cantera and have had some issues creating a CTI file by using the ck2cti command in Matlab. I created a thermo data file using the NASA Thermobuild tool, and have been trying to convert it to a CTI file. I have been looking at the Cantera website under Elements and Species: The NASA 9-Coefficient Polynomial Parameterization to follow the example provided:


At first, I tried to convert just the 'nasa9thermo.dat' file with no success, and then created a 'nasa9.inp' file to define the elements and species. While trying to convert the two files in Matlab I keep getting the following error:

>> f = ck2cti('nasa9.inp', 'nasa9thermo.dat')
Error using ctmethods

***********************************************************************
CanteraError thrown by ck2cti:
Error converting input file "nasa9.inp" to CTI.
Python command was: 'C:\Python34\python.exe'
The exit code was: 7
-------------- start of converter log --------------
Traceback (most recent call last):
  File "<stdin>", line 9, in <module>
  File "C:\Python34\lib\site-packages\cantera\ck2cti.py", line 2215, in convertMech
    surface_names = self.writeCTI(name=phaseName, outName=outName)
  File "C:\Python34\lib\site-packages\cantera\ck2cti.py", line 2023, in writeCTI
    speciesNames = self.getSpeciesString(self.speciesList, 21)
  File "C:\Python34\lib\site-packages\cantera\ck2cti.py", line 1963, in getSpeciesString
    raise InputParseError('No thermo data found for species: {0!r}'.format(s.label))
cantera.ck2cti.InputParseError: No thermo data found for species: 'AR'
--------------- end of converter log ---------------
***********************************************************************

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


I attached the files that I am trying to convert to CTI. I would like to also mention that I was able to convert the UC San Diego Mechanism to CTI using the following command:

f = ck2cti('mech.txt', 'therm.txt, 'trans.txt)  

Thanks for any help or suggestions in advance. 

-Matt
 
nasa9.inp
nasa9thermo.dat

Ray Speth

unread,
Dec 1, 2017, 9:49:41 PM12/1/17
to Cantera Users' Group
Matt,

The input files are case sensitive. In nasa9.inp, the species is named 'AR', but in nasa9thermo.dat, it is named 'Ar'.

Regards,
Ray

Matt Gazella

unread,
Dec 1, 2017, 11:55:12 PM12/1/17
to canter...@googlegroups.com
Ray, 

Thanks! Everything worked after I updated the files. 

-Matt

--
You received this message because you are subscribed to a topic in the Google Groups "Cantera Users' Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cantera-users/2i41t7wjuVE/unsubscribe.
To unsubscribe from this group and all its topics, 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