|
[Sponsors] |
[flameletFoam] flameletFoam (by Hagen Müller) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
December 11, 2014, 12:19 |
flameletFoam (by Hagen Müller)
|
#1 |
Member
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 15 |
Dear all,
I would like to open a thread for the flameletFoam package we recently developed. This is a package to use the steady laminar flamelet model for turbulent non-premixed combustion in OpenFOAM. The package consists of a cantera tool to calculate the laminar flamelets, an utility to integrate them with a beta-PDF and a solver for RANS and LES. Two versions are available - one for OF-2.3 and one for OF-2.1. Download: https://github.com/flameletFoam/ Documentation: https://openfoamwiki.net/index.php/E...n/flameletFoam Greetings, Hagen Last edited by Tobi; September 19, 2017 at 04:21. |
|
December 19, 2014, 20:03 |
|
#2 | |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12 |
Quote:
|
||
December 20, 2014, 02:56 |
|
#3 |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12 |
Dear Hagen,
http://www.et.byu.edu/~Tom/classes/6...ningphases.pdf we can get Cantera as the instructions, but can not be used by OF. Now i want to get CO mechanism of .xml file as gri30.xml in the mechanisms folder, how can i get it? I have no idea. Please give me some hints, Thank you in advance! Best regards, wenxu |
|
December 21, 2014, 13:02 |
|
#4 |
Member
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 15 |
Dear Wenxu,
which mechanism do you want to use? There are some provided in the cantera installation folder (cantera-2.0.0/data/). If you have your mechanism in chemkin format, there is a converter ck2cti. I haven't tried it though. Hope this helps a bit, Hagen |
|
December 22, 2014, 04:48 |
|
#5 | ||||
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12 |
The different versions were used, i think. The first version fvOptions was not added, but the latter one, fvOptions was added to adjusted to OF230.
------------------- Dear Hagen, Yes, i have found that the ck2cti can transfer .inp file to .cti file, which can be used in cantera. But my problems as follows:
PS: the flamelet.cpp file in src folder should be changed in order to use CO mechanism. If that true, then it will be tough... Sorry, this question is some one like the first, because i am not understand the first time you answer me. regards, wenxu Last edited by wyldckat; December 27, 2014 at 05:22. Reason: merge consecutive posts, posted a few minutes apart |
|||||
December 23, 2014, 08:31 |
|
#6 |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12 |
Then no one help me?!
|
|
January 5, 2015, 06:36 |
|
#7 |
Member
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 15 |
Dear Wenxu,
your cantera run does not converge with these settings. If you are using one of the solution files in the examples folder, you can try to change the boundary conditions in the input.txt in small steps. In your case, if you are using the Sandia example, slowly increase the CO mass fraction and decrease mass fraction of the other species at the fuel boundary until you reach the conditions of your flame. Hagen |
|
April 7, 2015, 12:32 |
flameletFoam compilation problem
|
#8 |
Member
Join Date: Feb 2014
Posts: 63
Rep Power: 12 |
I am using openfoam-2.3.x [ on ubuntu 1.204] and i tried to install flameletFoam. when i try to compile OpenFOAM
i get an error about cycilcAMILduInterface Code:
finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/flameletFoamPost.o] Error 1 Has anyone come across something like that and solved it? |
|
April 7, 2015, 16:13 |
cycilcAMILduInterface.H error
|
#9 |
Member
Join Date: Feb 2014
Posts: 63
Rep Power: 12 |
Well i managed to get it compiled, but did not test yet.
I had to replace few Make/options files src/combustionModels/Make/options applications/utilities/preProcessing/canteraToFoam/Make/options applications/utilities/postProcessing/flameletFoamPost/Make/options I added the following include directory Code:
EXE_INC = \ -I$(LIB_SRC)/meshTools/lnInclude \ |
|
April 13, 2015, 06:47 |
|
#10 |
Member
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 15 |
Hi Uyan,
thank you! I changed the source in the git repository. Regards, Hagen |
|
July 25, 2015, 16:42 |
Error after "make"
|
#11 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
Ps: I edited it because I had put I had an error when compiling Cantera. Actually, I compiled Cantera successfully, I had an error when compiling flameletFoam solver..
Hello guys, I am installing Cantera aiming use it with OpenFOAM. However, when I tried to compile the flameletFoam solver (after "make" command), I received the following error: g++ -g -Wall -fpermissive -c StFlow_2.cpp -I/usr/local/include In file included from StFlow_2.h:10:0, from StFlow_2.cpp:15: TransportBase_2.h:344:57: error: ‘virtual’ outside class declaration DEPRECATED(virtual void mobilityRatio(double* mobRat)) { ^ TransportBase_2.h:344:58: warning: ISO C++ forbids declaration of ‘DEPRECATED’ with no type [-fpermissive] DEPRECATED(virtual void mobilityRatio(double* mobRat)) { ^ TransportBase_2.h: In member function ‘int Cantera::Transport:EPRECATED(void (*)(double*))’: TransportBase_2.h:346:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ In file included from StFlow_2.cpp:15:0: StFlow_2.h: At global scope: StFlow_2.h:195:18: error: conflicting return type specified for ‘virtual void Cantera::StFlow::save(Cantera::XML_Node&, const doublereal*)’ virtual void save(XML_Node& o, const doublereal* const sol); ^ In file included from StFlow_2.h:11:0, from StFlow_2.cpp:15: /usr/local/include/cantera/oneD/Domain1D.h:413:23: error: overriding ‘virtual Cantera::XML_Node& Cantera:omain1D::save(Cantera::XML_Node&, const doublereal*)’ virtual XML_Node& save(XML_Node& o, const doublereal* const sol); ^ make: *** [StFlow_2.o] Error 1 Does anyone have any idea what could be causing this? Thanks in advance! Lisandro Last edited by Lisandro Maders; July 26, 2015 at 14:27. |
|
July 26, 2015, 14:28 |
|
#12 |
New Member
Federica Ferraro
Join Date: Jul 2015
Posts: 1
Rep Power: 0 |
Hi Lisandro,
If you are using cantera-2.0.0 you should not have any problem. that is my output to make: g++ -g -Wall -fpermissive -c StFlow_2.cpp -I/opt/cantera/include g++ -g -Wall -fpermissive -c TransportFactory_2.cpp -I/opt/cantera/include g++ -g -Wall -fpermissive -c Lewis1Transport.cpp -I/opt/cantera/include g++ -c -g -Wall -fpermissive flamelet.cpp -I/opt/cantera/include g++ flamelet.o StFlow_2.o TransportFactory_2.o Lewis1Transport.o -lf2c -pthread -L/opt/cantera/lib -lcantera -lcvode -lblas -llapack -o flamelet the paths to cantera's include and libraries (in bold) are different for you.. this can probably cause the error.. Check if the first line in the Makefile contains the path to your cantera build directory that for me is include ~/cantera-2.0.0/build/platform/Cantera.mak Regards, Federica |
|
July 26, 2015, 18:05 |
Sorted the old problem, a new one appeared..
|
#13 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
Federica,
thanks for your reply! I was really making a mistake regarding to the path. Also, I wrote my thread badly. My error happened when I compiled the flameletFoam solver, not Cantera. I sorted it out by updating the pip through easy_install. It seems that for Ubuntu 12.04 (which I am using) the pip (for python packages) has some bugs (see it on http://stackoverflow.com/questions/2...-on-pip-freeze) So I uninstalled Cantera, updated pip, reinstalled Cantera and then the flameletFoam compiled well. The only thin weird was when I runned scons test after building, it shown me this error: * Running test 'diamondSurf-cti'... Comparing 'diamond_blessed.xml' with 'diamond.xml' scons: *** [test_problems/diamondSurf/.passed-diamondSurf-cti] /private/tmp/cantera-OaWCVw/cantera-2.1.2/test_problems/diamondSurf/diamond.xml: No such file or directory scons: building terminated because of errors. However, as it was running everything ok (apparently) I did not fixed it. Do you know if this is really an error or just a test stuff bug? Could I keep using Cantera with this error? Regards, Lisandro |
|
September 10, 2015, 20:40 |
|
#14 |
Member
Join Date: Aug 2015
Posts: 37
Rep Power: 10 |
Can anyone explain to me why the steady laminar flamelet model class is templated as YSLFModel<class CombThermoType, class ThermoType>? It seems to me that the second template variable is completely irrelevant. I was able to remove it by:
Edit: this was for OpenFOAM 2.3.0 Last edited by knuckles; September 10, 2015 at 20:41. Reason: Adding version |
|
September 23, 2015, 04:26 |
|
#15 | |
Member
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 15 |
Quote:
|
||
May 23, 2016, 12:58 |
|
#16 |
New Member
Join Date: May 2016
Posts: 4
Rep Power: 9 |
hi,
I have the same problem with thalhah90. In the terminal (in ~/OpenFoam/flameletFoam/tutorial/pilotDiffusionFlame/les directory), canteraToFoam: command not found. Could anyone help us? Thanks in advance! Last edited by elainest; May 23, 2016 at 16:38. |
|
June 1, 2016, 07:26 |
|
#17 |
New Member
Yedukrishnan P
Join Date: Jun 2016
Posts: 5
Rep Power: 9 |
Same problem as above. Can anyone help please. Also, blockMesh is creating erroneous log files for canteraToFoam.
|
|
June 7, 2016, 22:45 |
|
#18 |
New Member
Thalhah
Join Date: May 2016
Posts: 15
Rep Power: 10 |
I finally have flameletFoam working!
Installing OpenFoam 2.1.x instead of 2.3.0 apparently solves the problem. Not sure why the latter version didn't work though.. |
|
June 8, 2016, 03:47 |
|
#19 |
New Member
Yedukrishnan P
Join Date: Jun 2016
Posts: 5
Rep Power: 9 |
So, does flameletFoam and cantera work in 2.1.x as well?
|
|
June 8, 2016, 06:08 |
|
#20 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Of course, if not, you have do manipulate the code that it works.
Alternatively you can use the flameletModel based on the research by CRECK Modelling. Check out my homepage for further information, I converted it to different versions and made further improvements. PS: Cantera does not belong to FOAM.
__________________
Keep foaming, Tobias Holzmann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[flameletFoam] new flameletFoam for OpenFoam-2.3.0 | Likun | OpenFOAM Community Contributions | 25 | April 10, 2017 03:05 |
[flameletFoam] Issue: Installation of flameletfoam | Raghuveera | OpenFOAM Community Contributions | 2 | April 12, 2016 22:59 |
FlameletFoam tables and OpenFOAM-2.3.x Look-Up-Tables | Sermengi | OpenFOAM | 2 | December 19, 2014 06:10 |
flameletFoam for mutiphase Combustion | wenxu | OpenFOAM | 0 | December 10, 2014 08:14 |
data on flow Hagen Poisseuis | kostas | FLUENT | 0 | August 6, 2003 17:37 |