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/)
-   -   SanDiego Mechanism chemkinToFoam (https://www.cfd-online.com/Forums/openfoam-pre-processing/235827-sandiego-mechanism-chemkintofoam.html)

LiGi April 30, 2021 05:37

SanDiego Mechanism chemkinToFoam
 
Hello together,
does anyone have the SanDiego mechanism in OpenFOAM format?
When I try to convert the data via chemkinToFoam I get the error



--> 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'

Changing THERMO to THERMO ALL did not help either.


Many greetings

dlahaye April 30, 2021 13:13

How exactly do you run chemkinToFoam?

Do you manage to convert other mechanisms ok?

LiGi May 3, 2021 07:19

Quote:

Originally Posted by dlahaye (Post 802909)
How exactly do you run chemkinToFoam?

Do you manage to convert other mechanisms ok?




chemkinToFoam SanDiegoMech SanDiegoThermo TransportProperties SanDiegoMechOF SanDiegoThermOF


SanDiegoMechOF and SanDiegoThermOF are the output files.
Yes, for example GriMech3 and DRM19.

dlahaye May 3, 2021 09:18

Thank you for your further elaboration.

I see that https://web.eng.ucsd.edu/mae/groups/...mechanism.html provides thermo and transport data as well. I can imagine that the chemistry file requires its thermo and transport data to be converted.

Alternatively, the same page provides as sequence of chemkin files of older date. Possibly you can try those.

LiGi May 3, 2021 09:34

Quote:

Originally Posted by dlahaye (Post 803051)
Thank you for your further elaboration.

I see that https://web.eng.ucsd.edu/mae/groups/...mechanism.html provides thermo and transport data as well. I can imagine that the chemistry file requires its thermo and transport data to be converted.

Alternatively, the same page provides as sequence of chemkin files of older date. Possibly you can try those.


I have tested exactly these mechanisms, new and old.

Always the error described above :confused:.

dlahaye May 3, 2021 10:35

I see.

What in case that you replace the first line of thermo.dat the line
"THERMO"
by
"THERMO ALL" as in e.g. https://github.com/OpenFOAM/OpenFOAM...n/thermo30.dat

LiGi May 4, 2021 03:12

Quote:

Originally Posted by dlahaye (Post 803057)
I see.

What in case that you replace the first line of thermo.dat the line
"THERMO"
by
"THERMO ALL" as in e.g. https://github.com/OpenFOAM/OpenFOAM...n/thermo30.dat


I have tried that too, without success.
However, if I copy the SanDiego Thermo file to the end of the Thermo file from GriMech3, the conversion works. However, I do not know if it is possible to do it this way.

dlahaye May 4, 2021 09:29

Congrats for the progress that you are making!

I imagine that at this point it is a matter of understanding the format of the thermo-file, i.e., understanding what is really in the file.

Does the union of both files contain more species that the two files individually? Is a single file insufficient to cover the complete temperate range?

adhiraj May 4, 2021 14:36

From my experience OpenFOAM is very strict about the proper format of the thermo files.

Take a look here for a solution for some common problems with reading them in OpenFOAM:

https://www.cfd-online.com/Forums/op...tml#post757584


All times are GMT -4. The time now is 18:45.