CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   reactingFoam Ignite (

camille131 April 1, 2013 07:22

reactingFoam Ignite
Hi every OpenFoamers,
I'm trying to add ignition to my solver reactingFoam as suggested in this thread :

But this is for an older version of OpenFoam and I am currently using v2.1.1 so the files are not exactly the same... and I am a bit lost when I have to add in the reactingFoam.C file the line : #include readCombustionproperties.H under the line #include "readChemistryProperties.H" which does not exist anymore in this version. so where am I supposed to write this?

The same problem for : #include "ignite.H" I see the line #include "hsEqn.H" which I suppose to be equivalent to #include "hEqn.H" but I don't see the line define DB turbulence->alphaEff().

You 'll find my solver modified here :

It just misses these two modifications.

Hope someone can help me.

Thanks in advance


camille131 April 23, 2013 09:15

Is there anybody who could help me? :-)

niklas April 24, 2013 03:12

If you use 2.2.x you dont have to code anything and
this can very easily be implemented using fvOptions

something like this

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.0                                |
|  \\  /    A nd          | Web:                      |
|    \\/    M anipulation  |                                                |
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "system";
    object      fvOptions;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    type            scalarSemiImplicitSource;
    active          true;
    timeStart      1.0e-5;
    duration        1.0e-4;
    selectionMode  points;
        (0 0.05 0)

        volumeMode      absolute;
            h          (1 0);

camille131 April 24, 2013 04:18

Hi Niklas , thank you for your answer.

Actually I use OF 2.1.1. Does that work on this version too or is it specific to the latest version?

niklas April 24, 2013 04:19

nope, I recommend you upgrade

camille131 April 24, 2013 04:42

oh.. but unfortunately I cannot upgrade because I run the case on a cluster on which I cannot do what I want. :-/

Is there another possibility to simulate ignition in that case?

niklas April 24, 2013 04:50

you can compile your own solver and run on the cluster, but you cant change OF version.

Is that what you are saying?

If so, I'm having problem to understand how your cluster is set up.

If you can run your own solver, surely you should be able to run your own OF version.

camille131 April 24, 2013 04:51

yes I think so . Well I'll ask the moderator if it s possible.

If not what am I supposed to do?

niklas April 24, 2013 05:03

you either tell the moderator to install the latest version and keep it up to date
(that means he should install the git version and keep up with all the bug-fixes)


you install openfoam under your own user-directory and do all of this yourself

either way I think its a waste of your time to implement something that is already obsolete,
plus the latest version is really a nice upgrade with lots of added goodies.

if you stick with 2.1.1 you're just digging yourself a hole that will get harder and harder
to climb out of as the new versions come out.

camille131 April 24, 2013 05:12

ok I ll try this then , you re right .

could you tell me a bit more about the different elements in the fvoption file you just showed me?

what are the differents options? or where can I find them to choose the best for my case?

Thank you

camille131 April 24, 2013 05:45

Niklas, what do you think about using XiFoam instead reactingFoam for my application ?
XiFoam already integrates ignition :-) and is for premixed combustion (my case)

But I suppose I'll be limited with the reaction model?

Thank you in advance for your advises


niklas April 24, 2013 06:51

dont know.

for fvOptions: read the documentation on the site. That's what I've done.

Tom123 February 3, 2015 11:09

Hi Niklas,

Do you know how to solve the problem for the solvers that do not include fvOption in system? For example, in OF230, the system for reactingFoam includes only controlDict, fvSchemes and fvSolution. Thanks in advance.


olivierG February 3, 2015 12:37

reactingFoam include the fvOption tools. So just add a "fvOptions" file in the system dir with the appropriate setting in.


dimaCFD February 20, 2015 15:15

hi Tom123,

It should be quite simple.
1. You should add an engine library in the options file (make dir):

-I$(LIB_SRC)/engine/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/LEMOS-2.3.x/libLEMOS-2.3.x/lnInclude \

-lengine \
-lchemistryModel \
-lradiationModels \
-lODE \
-lfvOptions \
-lmeshTools \
2. Just add #include "ignite.H" in the main loop of your application where you need.

At least it works fine for my combustion solver.

Thx, Dmitry

All times are GMT -4. The time now is 20:08.