CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

SanDiego Mechanism chemkinToFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2021, 05:37
Default SanDiego Mechanism chemkinToFoam
  #1
New Member
 
Join Date: Apr 2021
Posts: 4
Rep Power: 4
LiGi is on a distinguished road
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
LiGi is offline   Reply With Quote

Old   April 30, 2021, 13:13
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 722
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
How exactly do you run chemkinToFoam?

Do you manage to convert other mechanisms ok?
dlahaye is online now   Reply With Quote

Old   May 3, 2021, 07:19
Default
  #3
New Member
 
Join Date: Apr 2021
Posts: 4
Rep Power: 4
LiGi is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
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.
LiGi is offline   Reply With Quote

Old   May 3, 2021, 09:18
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 722
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
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.
dlahaye is online now   Reply With Quote

Old   May 3, 2021, 09:34
Default
  #5
New Member
 
Join Date: Apr 2021
Posts: 4
Rep Power: 4
LiGi is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
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 .
LiGi is offline   Reply With Quote

Old   May 3, 2021, 10:35
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 722
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
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
dlahaye is online now   Reply With Quote

Old   May 4, 2021, 03:12
Default
  #7
New Member
 
Join Date: Apr 2021
Posts: 4
Rep Power: 4
LiGi is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
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.
LiGi is offline   Reply With Quote

Old   May 4, 2021, 09:29
Default
  #8
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 722
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
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?
dlahaye is online now   Reply With Quote

Old   May 4, 2021, 14:36
Default
  #9
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
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:

chemkinToFoam parsing issues? (v19)
adhiraj is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mechanism of diesel fuel Weiqiang Liu FLUENT 6 December 28, 2018 15:40
Question about reaction mechanism in ReactingFoam Dan1788 OpenFOAM Running, Solving & CFD 6 December 13, 2016 05:09
Replacing n-heptane (chlamers mechanism) for ECN Spray Simulation alenp07 CONVERGE 14 August 25, 2016 07:10
Mechanism reduction N-Dayah CONVERGE 5 August 1, 2016 13:58
Augmented reduced mechanism for methane by J.-Y. Chen Hagen OpenFOAM Programming & Development 2 May 3, 2016 02:59


All times are GMT -4. The time now is 15:48.