CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Three-Body Reactions in OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By niklas

LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2019, 12:20
Default Three-Body Reactions in OpenFOAM
Join Date: Jul 2017
Posts: 75
Blog Entries: 1
Rep Power: 4
mkhm is on a distinguished road
Dear foamers,

I want to define a new type of reaction rate coefficients in OpenFoam for my case. The source of inspiration could be the ThirdBodyArrhenius reaction rate of OpenFOAM (in src/thermophysicalModels/specie/reaction/reactionRate/thirdBodyArrheniusReactionRate/). Could you explain me how the reaction should look like when it comes to define the third bodies species ?

Like if I look at tutorial case of openFOAM for reactingFOAM solver in tutorials/combustion/reactingFoam/laminar/counterFlowFlame2D/:
in constant/reaction, we have :


        type     irreversibleArrheniusReaction;
        reaction "CH4 + 2O2 = CO2 + 2H2O";
        A        5.2e16;
        beta     0;
        Ta       14906;

so, lets say that I want to modify this reaction in the following way :
  1 species
  2 (
  3     O2
  4     H2O
  5     CH4
  6     CO2
  7     N2
  8 );
 10 reactions
 11 {
 12     methaneReaction
 13     {
 14         type     irreversiblethirdBodyArrheniusReaction;
 15         reaction "CH4 + 2O2 + M = CO2 + 2H2O + M";
 16         A        5.2e16;
 17         beta     0;
 18         Ta       14906;
 19         tbes     1.0;
 20         defaultEfficiency 1.0;
 21         M CO2/N2;
 22     }
 23 }
There are 2 questions :

First, if I remove the line 20, I would have an error saying there is no mention of defaultEfficiency. However, I don't see anywhere in src/thermophysicalModels/specie/reaction/reactionRate/ this parameter being defined. What is the difference between tbes (which stands for thirdBodyEfficiencies) and defaultEfficiency ?

Second, in thirdBodyArrheniusReactionRate there is no input named as M. The inputs are :

    const scalar A,
    const scalar beta,
    const scalar Ta,
    const thirdBodyEfficiencies& tbes
If I remove the line 21, the solver would not complain. Does that mean the OpenFOAM takes all the species mentioned in the species part as third bodies ? How about having only 2 species as third bodies ? Is that mention of third body in the reaction and after at line 21 correct ? Does OpenFOAM understand that it should take the M as N2 and CO2 ? How about having two different thirdBodyEfficiencies based on the third body's nature. like 0.9 for CO2 and 0.2 for N2. Should I define two separate reactions for treating these two cases ?

Thanks in advance for your help,

Best regards,


P.S.: I am using the version 4.x of OpenFOAM.
mkhm is online now   Reply With Quote

Old   March 14, 2019, 04:44
Super Moderator
niklas's Avatar
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 694
Rep Power: 25
niklas will become famous soon enoughniklas will become famous soon enough
go to

chemkinToFoam chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties chem.inp therm.inp

to convert chemkin format files to foam format.
check the chem.inp file and compare it with chemkin/chem.inp

so for instance this reaction in chemkin.
H+O2(+M)=HO2(+M) 4.52E+13 0.0 0.0 !MARINOV 1995A
LOW / 1.05E+19 -1.257 0.0 / !MARINOV 1995A
H2O/0.0/ H2/0.0/ N2/0.0/

converts to
type reversibleArrheniusLindemannFallOffReaction;
reaction "H + O2 = HO2";
A 1.05e+13;
beta -1.257;
Ta 0;
A 4.52e+10;
beta 0;
Ta 0;
(H2 0)
(H 1)
(O2 1)
(O 1)
(OH 1)
(HO2 1)
(H2O2 1)
(H2O 0)
(AR 1)
(N2 0)
mkhm likes this.
niklas is offline   Reply With Quote

Old   March 17, 2019, 04:29
Join Date: Jul 2017
Posts: 75
Blog Entries: 1
Rep Power: 4
mkhm is on a distinguished road
Thanks Niklas. Your reply answers totally to my question and gives me enough insight to create the new type of reaction rate coefficients.
mkhm is online now   Reply With Quote


new reaction model, openfaom, reactingfoam, thirdbody reaction rate

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Training Beijing 22-26 Aug 2016 OpenFOAM Announcements from Other Sources 0 May 3, 2016 04:57
Localized reactions in OpenFOAM appie OpenFOAM Running, Solving & CFD 0 October 3, 2014 11:25
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07

All times are GMT -4. The time now is 09:16.