|
[Sponsors] |
April 1, 2013, 07:22 |
reactingFoam Ignite
|
#1 |
Member
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 13 |
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 |
|
April 23, 2013, 09:15 |
|
#2 |
Member
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 13 |
Is there anybody who could help me? :-)
|
|
April 24, 2013, 03:12 |
|
#3 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
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); } } } |
|
April 24, 2013, 04:18 |
|
#4 |
Member
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 13 |
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? |
|
April 24, 2013, 04:19 |
|
#5 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
nope, I recommend you upgrade
|
|
April 24, 2013, 04:42 |
|
#6 |
Member
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 13 |
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? |
|
April 24, 2013, 04:50 |
|
#7 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
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. |
|
April 24, 2013, 04:51 |
|
#8 |
Member
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 13 |
yes I think so . Well I'll ask the moderator if it s possible.
If not what am I supposed to do? |
|
April 24, 2013, 05:03 |
|
#9 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
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. |
|
April 24, 2013, 05:12 |
|
#10 |
Member
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 13 |
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 |
|
April 24, 2013, 05:45 |
|
#11 |
Member
Camille
Join Date: Oct 2012
Posts: 54
Rep Power: 13 |
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 |
|
April 24, 2013, 06:51 |
|
#12 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
dont know.
for fvOptions: read the documentation on the site. That's what I've done. |
|
February 3, 2015, 10:09 |
|
#13 |
New Member
Tomladian Bucinara
Join Date: Jan 2015
Posts: 18
Rep Power: 11 |
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 |
|
February 3, 2015, 11:37 |
|
#14 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17 |
Hello,
reactingFoam include the fvOption tools. So just add a "fvOptions" file in the system dir with the appropriate setting in. regards, olivier |
|
February 20, 2015, 14:15 |
|
#15 |
New Member
Dmitry
Join Date: Dec 2014
Posts: 8
Rep Power: 11 |
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/ |
|
October 16, 2016, 07:28 |
|
#16 |
New Member
chen king arthur
Join Date: Sep 2016
Posts: 4
Rep Power: 9 |
Sir i am using openFoam 2.3.x as well but in window so i usually just click around. Would u mind explain how to include ignition in reactingFoam in a window operating sense like copy and paste which folder to which? Please let me know your reply is very much appreciated.
|
|
October 16, 2016, 07:29 |
|
#17 | |
New Member
chen king arthur
Join Date: Sep 2016
Posts: 4
Rep Power: 9 |
Quote:
Sir i am using openFoam 2.3.x as well but in window so i usually just click around. Would u mind explain how to include ignition in reactingFoam in a window operating sense like copy and paste which folder to which? Please let me know your reply is very much appreciated. |
||
|
|
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 07:34 |
reactingFoam - turbulent reacting flow | hamburgFoam | OpenFOAM | 0 | December 7, 2009 12:57 |