CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   reactingFoam Ignite (http://www.cfd-online.com/Forums/openfoam-programming-development/115493-reactingfoam-ignite.html)

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 : http://openfoamwiki.net/index.php/Contrib_reactingFoam

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 : https://www.dropbox.com/s/gjeletwwzv...FoamIgnite.zip

It just misses these two modifications.

Hope someone can help me.

Thanks in advance

Cam

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
Code:

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

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

    scalarSemiImplicitSourceCoeffs
    {
        volumeMode      absolute;
        injectionRateSuSp
        {
            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)

or

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

Camille

niklas April 24, 2013 06:51

dont know.

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


All times are GMT -4. The time now is 02:51.