CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

reactingFoam Ignite

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

Like Tree1Likes
  • 1 Post By niklas

Reply
 
LinkBack Thread Tools Display Modes
Old   April 1, 2013, 07:22
Default reactingFoam Ignite
  #1
Member
 
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 4
camille131 is on a distinguished road
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 is offline   Reply With Quote

Old   April 23, 2013, 09:15
Default
  #2
Member
 
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 4
camille131 is on a distinguished road
Is there anybody who could help me? :-)
camille131 is offline   Reply With Quote

Old   April 24, 2013, 03:12
Default
  #3
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
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);
        }
    }
}
Tom123 likes this.
niklas is offline   Reply With Quote

Old   April 24, 2013, 04:18
Default
  #4
Member
 
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 4
camille131 is on a distinguished road
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?
camille131 is offline   Reply With Quote

Old   April 24, 2013, 04:19
Default
  #5
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
nope, I recommend you upgrade
niklas is offline   Reply With Quote

Old   April 24, 2013, 04:42
Default
  #6
Member
 
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 4
camille131 is on a distinguished road
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?
camille131 is offline   Reply With Quote

Old   April 24, 2013, 04:50
Default
  #7
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
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.
niklas is offline   Reply With Quote

Old   April 24, 2013, 04:51
Default
  #8
Member
 
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 4
camille131 is on a distinguished road
yes I think so . Well I'll ask the moderator if it s possible.

If not what am I supposed to do?
camille131 is offline   Reply With Quote

Old   April 24, 2013, 05:03
Default
  #9
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
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.
niklas is offline   Reply With Quote

Old   April 24, 2013, 05:12
Default
  #10
Member
 
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 4
camille131 is on a distinguished road
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 is offline   Reply With Quote

Old   April 24, 2013, 05:45
Default
  #11
Member
 
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 4
camille131 is on a distinguished road
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
camille131 is offline   Reply With Quote

Old   April 24, 2013, 06:51
Default
  #12
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
dont know.

for fvOptions: read the documentation on the site. That's what I've done.
niklas is offline   Reply With Quote

Old   February 3, 2015, 11:09
Default
  #13
New Member
 
Tomladian Bucinara
Join Date: Jan 2015
Posts: 10
Rep Power: 2
Tom123 is on a distinguished road
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.

Tom
Tom123 is offline   Reply With Quote

Old   February 3, 2015, 12:37
Default
  #14
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 237
Rep Power: 9
olivierG is on a distinguished road
Hello,
reactingFoam include the fvOption tools. So just add a "fvOptions" file in the system dir with the appropriate setting in.

regards,
olivier
olivierG is offline   Reply With Quote

Old   February 20, 2015, 15:15
Default
  #15
New Member
 
Dmitry
Join Date: Dec 2014
Posts: 8
Rep Power: 2
dimaCFD is on a distinguished road
hi Tom123,

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

EXE_INC = \
...
-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 \
-I$(LIB_SRC)/combustionModels/lnInclude
...

EXE_LIBS = \
...
-lengine \
-lchemistryModel \
-lradiationModels \
-lODE \
-lfvOptions \
-lmeshTools \
-lLEMOS-2.3.x\
-lcombustionModels
...
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
http://www.edcpisofoam.decgroup.org/
dimaCFD is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to ignite a mixture reactingFoam Bombolati OpenFOAM 1 April 25, 2013 05:54
Not tracking the products of a reactingFoam reaction Cyberholmes OpenFOAM 0 August 8, 2011 15:14
Constant Volume Combustion with reactingFoam Alish1984 OpenFOAM Running, Solving & CFD 2 May 8, 2011 08:51
reactingFoam wedge handling wrong U dhondupant OpenFOAM Bugs 1 December 9, 2010 08:34
reactingFoam - turbulent reacting flow hamburgFoam OpenFOAM 0 December 7, 2009 13:57


All times are GMT -4. The time now is 11:32.