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

Openfoam : ch4-air combustion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2022, 23:43
Question Openfoam : ch4-air combustion
  #1
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 4
wangqiuxiao is on a distinguished road
hi,I am a new openfoam user, I use openfoam10 and run tutorial SandiaD_LTS, it's Ok。then, I changed the mechanism from gri30 to a 2-step mehcanism:
CH4 + 2O2 => CO2 + 2H2O 3e13 0.0 47e3
FORD / CH4 0.7 /
FORD / O2 0.8 /
.

when run reactingFoam, the error happens:
--> FOAM FATAL ERROR:
HO2 not found in table. Valid entries:
5
(
N2
CO2
O2
CH4
H2O
)


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.


do you know the reason?
wangqiuxiao is offline   Reply With Quote

Old   October 12, 2022, 02:13
Default
  #2
Member
 
Join Date: Jan 2022
Location: Germany
Posts: 72
Rep Power: 4
überschwupper is on a distinguished road
This error means, that somewhere in the code the HO2 species is needed, but only 5 species are initialized

I would guess you either have a HO2 file in your 0/ directory or you forgot to delete HO2 entry somewhere in the initialization files in the constant directory.


Grep your Case folders for "HO2" and check if there are valid entries left.
überschwupper is offline   Reply With Quote

Old   October 12, 2022, 09:38
Default
  #3
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 4
wangqiuxiao is on a distinguished road
Quote:
Originally Posted by überschwupper View Post
This error means, that somewhere in the code the HO2 species is needed, but only 5 species are initialized

I would guess you either have a HO2 file in your 0/ directory or you forgot to delete HO2 entry somewhere in the initialization files in the constant directory.


Grep your Case folders for "HO2" and check if there are valid entries left.
hi, thank you , I have solved this problem. there is something wrong in chemistryProperties file.
wangqiuxiao is offline   Reply With Quote

Old   October 12, 2022, 09:41
Default
  #4
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 4
wangqiuxiao is on a distinguished road
Quote:
Originally Posted by wangqiuxiao View Post
hi, thank you , I have solved this problem. there is something wrong in chemistryProperties file.
hi I have another question. how to set the chemistryType and odeCoeffs?
chemistryType
{
solver ode;
method standard;
}

chemistry on;

initialChemicalTimeStep 1e-7;
//maxChemicalTimeStep 1e-3;

odeCoeffs
{
solver Rosenbrock34;
absTol 1e-8;
relTol 1e-1;
}



when I use Rosenbrock34, the calculation is very slow
when I use seulex, the calcualtion is fast, but it's easy to divergence
wangqiuxiao is offline   Reply With Quote

Old   October 12, 2022, 14:36
Default
  #5
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
Possibly you find information by looking into modern implementation such as https://github.com/blttkgl/DLBFoam-1.0
dlahaye is offline   Reply With Quote

Old   October 12, 2022, 21:35
Default
  #6
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 4
wangqiuxiao is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Possibly you find information by looking into modern implementation such as https://github.com/blttkgl/DLBFoam-1.0
thank you very much. this code is very useful for me.
wangqiuxiao 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
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
Create a solver for biomass bale combustion in Openfoam mankaran90 OpenFOAM Programming & Development 0 December 29, 2017 11:13
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
mechanism for non-premixed methane air combustion a.Asadi OpenFOAM Running, Solving & CFD 7 October 14, 2016 17:02


All times are GMT -4. The time now is 21:25.