CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   convert chemkin file ino format (https://www.cfd-online.com/Forums/openfoam-pre-processing/173632-convert-chemkin-file-ino-format.html)

nimasam June 23, 2016 11:59

convert chemkin file ino format
 
i download the chemkin file from here for iso-octane
but i can not convert it in OpenFOAM format using chemkinToFoam
Quote:

chemkinToFoam ic8_ver3_mech.txt prf_v3_therm_dat.txt chemistry thermo
the error line is:
Quote:

--> FOAM FATAL ERROR:
while reading thermodynamic data specie formula on line 2
' expected <word><label><word><label><word><label><word><labe l> (4(2A1,I3)) but found '"0"0.000

From function chemkinReader::lex()
in file chemistryReaders/chemkinReader/chemkinLexer.L at line 1517.

FOAM exiting
i tested openfoam 220,301,3+

asjamwal94 July 11, 2016 05:17

Hello,
I tried it and was able to solve this error by using THERMO ALL instead of THERMO in Thermodynamic parameters file. But then I am getting another error.
Quote:

--> FOAM FATAL ERROR:
while reading thermodynamic specie name on line 3
'H 120186H 1 G 0300.00 5000.00 1000.00 1

From function chemkinReader::lex()
in file chemistryReaders/chemkinReader/chemkinLexer.L at line 1517.

FOAM exiting

using OF 3.0.1

fabri September 9, 2016 10:02

Hi to all,
I have the same problem.
did you solve it?

thanks in advance
Fabri

asjamwal94 September 15, 2016 05:47

Yes.

I copied all the data from these files to the chemkin files given in one of the the tutorial cases of ChemFoam. Can't think of any reason for this. Hope it works for you as well.

Regards!

DMM December 29, 2016 15:01

1 Attachment(s)
hi guys
if you have this problem, you should change reaction file only. because in new format you should put all of third body reactions at the end of this file. in old format third body reactions are in middle of file.
I attach a new format file.


All times are GMT -4. The time now is 23:36.