Closed GoogleCodeExporter closed 8 years ago
The c8-c16_n-alkanes_therm.txt file starts with non-ASCII characters
(specifically, a UTF-8 BOM) which interferes with parsing. Removing these
characters with a suitable editor will allow the file to be parsed.
The current development version of Cantera automatically strips non-ASCII
characters (see r2717), and works with the provided input files as-is, but this
change is not planned to be backported to the maintenance branch.
Original comment by yarmond
on 24 Sep 2014 at 9:04
The conversion of the Therm file actually works.
The conversion of the Mech file doese not work.
Original comment by christia...@gmail.com
on 25 Sep 2014 at 10:20
You can't convert the pieces to CTI separately, so I'm not sure what it means
to say that converting one file works and the other doesn't. The problem is in
the thermo file.
Running this command:
python -c 'print repr(open("c8-c16_n-alkanes_therm.txt").readline())'
Gives the output:
'\xef\xbb\xbfthermo\r\n'
Thus, when the converter looks for a line that starts with 'thermo' to indicate
the beginning of the thermo data, this line doesn't qualify, so it decides that
the file doesn't contain any thermo data.
Original comment by yarmond
on 25 Sep 2014 at 2:12
Dear Yarmond,
thanks for your help so far.
But since I am an absolute newbie in that field, could you please be more
specific?
How do I need to convert the Thermo file in a way that the conversion works?
You say, that the therm file starts with non-ASCII characters.
When I look into the first line of the file, I see: thermo, which looks to me
like ASCII characters.
So, which characters do I have to modifiy/remove and how?
Thanks a lot for your help again.
Original comment by christia...@gmail.com
on 25 Sep 2014 at 5:17
They are by definition non-printable characters, and your editor is hiding them.
Since this is no longer a matter of reporting a Cantera bug, you would be
better served by asking your question on the Cantera Users Group
(https://groups.google.com/forum/?fromgroups#!forum/cantera-users). If you ask
there, I would suggest including information about your operating system and
what editor you are trying to use to fix the file.
Original comment by yarmond
on 25 Sep 2014 at 11:17
Issue 239 has been merged into this issue.
Original comment by yarmond
on 25 Sep 2014 at 11:19
Original issue reported on code.google.com by
christia...@gmail.com
on 24 Sep 2014 at 3:07Attachments: