CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Species not found when using reduced H2 mechanism with reactingFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ivpa
  • 1 Post By tomi24

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2024, 11:07
Arrow Species not found when using reduced H2 mechanism with reactingFoam
  #1
New Member
 
ivpa's Avatar
 
Ivana P.
Join Date: Jan 2024
Location: Stockholm, SE
Posts: 2
Rep Power: 0
ivpa is on a distinguished road
I was trying to simulate the usual Sandia D's flame from tutorial but using H2 instead CH4. With GRI3.0 mech all worked out just fine. As solver I chose following the tutorial reactingFoam. Now I was aiming at simulating it with a reduced mechanism: https://chemistry.cerfacs.fr/en/chem...ins-mechanism/.

Unfortunately, this does not work anymore. I've been trying to converse the original mech from .cti to .yaml and then to Chemkin. Finally, a last conversion from ck to foam is carried out. After this last step, some minor changes (e.g. spacing, THERMO to THERMO ALL) have to be applied so OF does not complain.

In any case, I still get the following error log:

...
Selecting combustion model EDC
Selecting chemistry solver
{
solver ode;
method chemistryModel;
}


odeChemistryModel: Number of species = 10
Selecting chemistry reduction method DAC



--> FOAM FATAL ERROR:
CH4 not found in table. Valid entries:
10
(
OH
KOH
N2
K
O2
H2
HO2
O
H2O
H
)



From function const T& Foam::HashTable<T, Key, Hash>:perator[](const Key&) const [with T = int; Key = Foam::word; Hash = Foam::string::hash]
in file /home/ubuntu/OpenFOAM/OpenFOAM-10/src/OpenFOAM/lnInclude/HashTableI.H at line 126.


FOAM exiting ...



I've grepped through all the directories in order to spot and delete eventual places where the missing species is, but the error keeps on appearing.

Any help is more than appreciated


Ps. I am using OF 10 from OF foundation
tomi24 likes this.
ivpa is offline   Reply With Quote

Old   January 30, 2024, 03:03
Default
  #2
New Member
 
Thomas B.
Join Date: Sep 2023
Location: Stuttgart, DE
Posts: 2
Rep Power: 0
tomi24 is on a distinguished road
Any updates on this topic? I'm having the same exact problem. There are other threads discussing this issue and none have gotten resolved.


If someone has already encountered this problem, could you give an hint on how you came up with a solution? Any help would be much appreciated.


Best Regards,

Thomas.
tomi24 is offline   Reply With Quote

Old   February 1, 2024, 03:29
Default
  #3
New Member
 
Thomas B.
Join Date: Sep 2023
Location: Stuttgart, DE
Posts: 2
Rep Power: 0
tomi24 is on a distinguished road
Hi There!



Found the solution for this problem. I had to edit the "chemistryPropertiesFlame.cfg" file to exclude CH4 from the initiating species. Using "$ grep -r CH4 *" wasn't getting any apearences inside the case folder, as this file is in "$FOAM_ETC/caseDicts/solvers/chemistry/TDAC/" directory. I don't know about the .com version, but with the foundation version i had to copy the "chemistryPropertiesFlame.cfg" file to the constant folder and "#include chemistryPropertiesFlame.cfg" in the chemistryProperties file. I'm using OpenFOAM v10 form the foundation version.


Greetings,


Thomas.
ivpa likes this.
tomi24 is offline   Reply With Quote

Old   February 1, 2024, 04:29
Default
  #4
New Member
 
ivpa's Avatar
 
Ivana P.
Join Date: Jan 2024
Location: Stockholm, SE
Posts: 2
Rep Power: 0
ivpa is on a distinguished road
Thank you very much Thomas!! That solved also my issue.

Cheers!
ivpa is offline   Reply With Quote

Reply

Tags
combustion, hashtable, hydrogen, openfoam, reactingfoam


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
[OpenFOAM.com] Installing on Ubuntu 18.04 samiam1000 OpenFOAM Installation 11 April 27, 2020 01:01
[OpenFOAM.com] Issue configuring ./makeParaView - Ubuntu 16.04 bjdarrer OpenFOAM Installation 2 April 20, 2020 14:50
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 16:11
Question about reaction mechanism in ReactingFoam Dan1788 OpenFOAM Running, Solving & CFD 6 December 13, 2016 06:09
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41


All times are GMT -4. The time now is 19:53.