CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[flameletFoam] flameletFoam (by Hagen Müller)

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

Like Tree24Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2016, 09:58
Question 2.3.1 - Problems installing FlameletFOAM
  #21
New Member
 
Join Date: Apr 2016
Posts: 1
Rep Power: 0
[NF] is on a distinguished road
Hello,

I hope I started my Thread in the right Subsection.
To my Problem:
I'm new to OpenFOAM. In order to use OpenFOAM with the Flameletmodel, I wanted to install FlameletFOAM. Therefore I followed this instructions: http://openfoamwiki.net/index.php/Ex...n/flameletFoam

Due to the Fact, that openFOAM 2.3.0 wasn't availible via "sudo apt-get install openfoam230", I installed OpenFOAM 2.3.1.

I followed the instruction and installed cantera 2.0.0.
In the Step of Installing the counter-flow diffusion flame solver I got a problem:
When I was typing "make" to my terminal, I get an error:

Code:
nf@NF-VPC:~/cantera-2.0.0/Cantera-CounterflowFlame/src$ make
g++  flamelet.o StFlow_2.o TransportFactory_2.o Lewis1Transport.o -lf2c -pthread -L/opt/cantera/lib -lcantera -lctmath -lexecstream -lsundials_cvodes -lsundials_ida -lsundials_nvecserial -L/opt/cantera/lib -lctlapack -lctblas  -lctf2c  -lblas -llapack  -o flamelet 
/usr/bin/ld: cannot find -lf2c
/usr/bin/ld: cannot find -lctlapack
/usr/bin/ld: cannot find -lctblas
collect2: error: ld returned 1 exit status
make: *** [flamelet] Fehler 1
Because of this error, there is also no executable flamelet file in the main folder.


Could you please help me?


Thanks a lot

Last edited by wyldckat; April 2, 2016 at 10:57. Reason: (moved from the "OpenFOAM Installation" forum)
[NF] is offline   Reply With Quote

Old   May 8, 2016, 03:18
Default flameletFoam Installation Error After Executing Allwmake
  #22
New Member
 
Thalhah
Join Date: May 2016
Posts: 15
Rep Power: 6
thalhah90 is on a distinguished road
Hi,

I tried to install flameletFoam by following the instructions on https://openfoamwiki.net/index.php/E...n/flameletFoam.

At the moment, I have cantera2.0.0 installed and the executable 'flamelet' was successfully created. I believe I was doing fine on the installation up till Section 2.2, the step 'setting an environment variable to the flameletFoam "src"-folder'.

However, when I ran the script ./Allwmake, I got an error message. Since the message is quite long, I'll post just the errors that pop out throughout the message.

//------------------------Start of Message--------------------//

make: *** No rule to make target `Make/linux64GccDPInt32Opt/chemistryReaders/chemkinReader/chemkinLexer.C.dep', needed by `Make/linux64GccDPInt32Opt/chemistryReaders/chemkinReader/chemkinLexer.o'. Stop.

//----------------------------------------------------------------//

collect2: error: ld returned 1 exit status
make: *** [/home/user/OpenFOAM/thalhah90-3.0.1/platforms/linux64GccDPInt32Opt/lib/libFlameletchemistryModel.so] Error 1

//----------------------------------------------------------------//

In file included from LaunderGibsonRSTM/LaunderGibsonRSTM.C:26:0:
LaunderGibsonRSTM/LaunderGibsonRSTM.H:63:32: fatal error: wallDistReflection.H: No such file or directory
#include "wallDistReflection.H"
^
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/LaunderGibsonRSTM/LaunderGibsonRSTM.o] Error 1

//----------------------------------------------------------------//

/home/user/OpenFOAM/flameletFoam/src/turbulenceModels/compressible/LES/compressibleLESdelta/compressibleLESdelta.H:38:22: fatal error: LESdelta.H: No such file or directory
#include "LESdelta.H"
^
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/LESModel/LESModel.o] Error 1

//----------------------------------------------------------------//

fvOptions/fvOption.C: In member function ‘void Foam::fv:ption::setCellSet()’:
fvOptions/fvOption.C:116:13: error: ‘IInfo’ was not declared in this scope
IInfo<< "- selecting cells using points" << endl;
^
fvOptions/fvOption.C:144:13: error: ‘IInfo’ was not declared in this scope
IInfo<< "- selecting cells using cellSet " << cellSetName_ << endl;
^
fvOptions/fvOption.C:153:13: error: ‘IInfo’ was not declared in this scope
IInfo<< "- selecting cells using cellZone " << cellSetName_ << endl;
^
fvOptions/fvOption.C:171:17: error: ‘IInfo’ was not declared in this scope
IInfo<< "- selecting inter region mapping" << endl;
^
fvOptions/fvOption.C:216:13: error: ‘IInfo’ was not declared in this scope
IInfo<< "- selecting all cells" << endl;
^
fvOptions/fvOption.C:241:9: error: ‘IInfo’ was not declared in this scope
IInfo<< "- selected " << returnReduce(cells_.size(), sumOp<label>())
^
fvOptions/fvOption.C: In constructor ‘Foam::fv:ption:ption(const Foam::word&, const Foam::word&, const Foam::dictionary&, const Foam::fvMesh&, bool)’:
fvOptions/fvOption.C:280:9: error: ‘IInfo’ was not declared in this scope
IInfo<< "- applying source at time " << timeStart_
^
fvOptions/fvOption.C:285:9: error: ‘IInfo’ was not declared in this scope
IInfo<< "- applying source for all time" << endl;
^
fvOptions/fvOption.C: In static member function ‘static Foam::autoPtr<Foam::fv:ption> Foam::fv:ption::New(const Foam::word&, const Foam::dictionary&, const Foam::fvMesh&)’:
fvOptions/fvOption.C:307:5: error: ‘IInfo’ was not declared in this scope
IInfo<< "Selecting finite volume options model type " << modelType << endl;
^
make: *** [Make/linux64GccDPInt32Opt/fvOptions/fvOption.o] Error 1

//----------------------------------------------------------------//

/opt/openfoam30/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
#include "cyclicAMILduInterface.H"
^
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/YSLFModel/YSLFModels.o] Error 1


//------------------------End of Message--------------------//


Anybody has any idea why these errors occur?
I am running OpenFOAM2.3.0 (beginner user) on Ubuntu 14.04LTE if that bit of info helps. Also, if the full message is required, please let me know.


Thank you in advance for any help.


Regards,
Thalhah
thalhah90 is offline   Reply With Quote

Old   May 8, 2016, 06:44
Default
  #23
Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 11
Hagen is on a distinguished road
Dear Thalhah,

did you make sure to source OF2.3 before installing flameletFoam? There are some OF3.0 paths in your log file.

Regards, hagen
Hagen is offline   Reply With Quote

Old   May 8, 2016, 09:40
Default
  #24
New Member
 
Thalhah
Join Date: May 2016
Posts: 15
Rep Power: 6
thalhah90 is on a distinguished road
Dear Hagen,

Ahah..my mistake! My current version of OF is 3.0. I guess that's where the problem is.

In your email, one of the suggestions is changing the code to fit OF3.0 but I'm not entirely sure how to do that since I'm still quite new to OF.

Anyway, I think I shall have to install OF 2.3. I will let you know if that works. Thanks.

Regards,
Thalhah
thalhah90 is offline   Reply With Quote

Old   May 12, 2016, 02:06
Default
  #25
New Member
 
Thalhah
Join Date: May 2016
Posts: 15
Rep Power: 6
thalhah90 is on a distinguished road
After installing an older version of OpenFOAM (OF 2.3.0), I had success on executing Allwmake.

Now that I have cantera and flameletFoam installed, i wanted to use the canteraToFoam utility. However, after running blockMesh, and after typing:

canteraToFoam

in the terminal (in ~/OpenFoam/flameletFoam/tutorial/pilotDiffusionFlame/les directory), an error message appears:

canteraToFoam: command not found

This may sound like a basic question, but how do I tackle this error and get the canteraToFoam utility working?

Thanks in advance for any help!
thalhah90 is offline   Reply With Quote

Old   May 23, 2016, 12:58
Default
  #26
New Member
 
Join Date: May 2016
Posts: 4
Rep Power: 6
elainest is on a distinguished road
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.
elainest is offline   Reply With Quote

Old   June 1, 2016, 07:26
Default
  #27
New Member
 
Yedukrishnan P
Join Date: Jun 2016
Posts: 5
Rep Power: 6
yedu is on a distinguished road
Same problem as above. Can anyone help please. Also, blockMesh is creating erroneous log files for canteraToFoam.
yedu is offline   Reply With Quote

Old   June 7, 2016, 22:45
Default
  #28
New Member
 
Thalhah
Join Date: May 2016
Posts: 15
Rep Power: 6
thalhah90 is on a distinguished road
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..
thalhah90 is offline   Reply With Quote

Old   June 8, 2016, 03:47
Default
  #29
New Member
 
Yedukrishnan P
Join Date: Jun 2016
Posts: 5
Rep Power: 6
yedu is on a distinguished road
So, does flameletFoam and cantera work in 2.1.x as well?
yedu is offline   Reply With Quote

Old   June 8, 2016, 06:08
Default
  #30
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Augsburg
Posts: 2,390
Blog Entries: 6
Rep Power: 42
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   June 9, 2016, 00:40
Default
  #31
New Member
 
Thalhah
Join Date: May 2016
Posts: 15
Rep Power: 6
thalhah90 is on a distinguished road
Yedu-Yes. flameletFoam could successfully run once the canteraToFoam utility works. Cantera works OK. It was able to generate the flamelet library regardless of the OF version.

Tobi-Thank you for sharing the page. I guess there's a lot more to explore
thalhah90 is offline   Reply With Quote

Old   June 10, 2016, 03:55
Default
  #32
New Member
 
Yedukrishnan P
Join Date: Jun 2016
Posts: 5
Rep Power: 6
yedu is on a distinguished road
Hey,
Which cantera version is preferred? flameletFoam compilation guide says cantera 2.0.0. Should I stick with the guide or should I go ahead and install the latest version?

P.S : Thanks Tobi for the link. It sure has lots of interesting things.
yedu is offline   Reply With Quote

Old   June 10, 2016, 04:22
Default
  #33
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Augsburg
Posts: 2,390
Blog Entries: 6
Rep Power: 42
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by thalhah90 View Post
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..
I just saw this.
Why it is not working is due to the fact that they changed classes and the therefore you have to check out the code of Hagen and change it to the actual version. As far as I saw in the past, he implemented hard-coded stuff in the turbulence models (not the best solution). Hence, you have to manipulate all stuff that he made not dynamically.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 10, 2016, 06:05
Default
  #34
New Member
 
Yedukrishnan P
Join Date: Jun 2016
Posts: 5
Rep Power: 6
yedu is on a distinguished road
I tried Openfoam 2.1.0. But still when I execute canteraToFoam, it says command not found.
yedu is offline   Reply With Quote

Old   June 10, 2016, 06:23
Default
  #35
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Augsburg
Posts: 2,390
Blog Entries: 6
Rep Power: 42
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Here you did either not compile the stuff correctly or link the program to your $PATH variable.

Normally if you compile it, it will pushed to the $WM_PROJECT_USER_DIR and therefore (after oyu load the FOAM variables) it will add this to your path. If the compilation is not correct, no program will be generated and hence there is no program to execute

To check it easily:
Code:
cante «« now double tab it
If you get no auto completion or even a list of available programs that start with »cante«, then there is no program called »canteraToFoam«
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 10, 2016, 08:37
Default
  #36
New Member
 
Thalhah
Join Date: May 2016
Posts: 15
Rep Power: 6
thalhah90 is on a distinguished road
Quote:
Originally Posted by yedu View Post
Hey,
Which cantera version is preferred? flameletFoam compilation guide says cantera 2.0.0. Should I stick with the guide or should I go ahead and install the latest version?

P.S : Thanks Tobi for the link. It sure has lots of interesting things.
The flameletFoam that I was able to install works with Cantera2.0.0 (as recommended by the guide).
thalhah90 is offline   Reply With Quote

Old   June 10, 2016, 08:52
Default
  #37
Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 11
Hagen is on a distinguished road
Dear Thalhah, Dear Yedo,

if you want to use flameletFoam with OpenFOAM-2.3.0, you need to install the correct version that is located here: https://github.com/flameletFoam/flameletFoam-2.3.0/

As Tobi pointed out, we made some changes in the libraries which is why you need another version, if you want to use flameletFoam with OpenFOAM-2.1.0. This version is provided here: https://github.com/flameletFoam/flameletFoam-2.1.x/

The script for cantera is a different story. We tested it with cantera 2.0.0. That's why we recommend to use this version. However, it has nothing to do with the OpenFOAM version you are using.

Regards,
Hagen
dokeun, Tobi, thalhah90 and 1 others like this.
Hagen is offline   Reply With Quote

Old   June 10, 2016, 09:08
Default
  #38
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Augsburg
Posts: 2,390
Blog Entries: 6
Rep Power: 42
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear Hagen,

just on question. Will your library be extended in feature, or are you still programming the flamelet-model you used, like non-adiabatic conditions, radiation model implementation etc.?

As far as I know, the flamelet model introduced by CRECK-Modeling is not anylonger available on the official homepage (I used that model during my thesis in detail, thats the reason why I know everything about that model instead of yours ) -- in any case. The problem was that there is no further development (especially for publicity). They introduced the new laminarFoam but I am not sure if that can handle turbulence as well as before (I don't think so).

Thanks in advance,
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 10, 2016, 13:37
Default
  #39
New Member
 
Yedukrishnan P
Join Date: Jun 2016
Posts: 5
Rep Power: 6
yedu is on a distinguished road
Hey Tobi,
I think the problem is with linking cantera. How do I know if it is linked to the path? When I execute ./Allwrun on a tutorial case in flameletFoam, the log files are created. But the log.canteraToFoam says command not found. I checked in the flameletFoam folder. Inside applications/utilities/preProcessing, there is a folder CanteraToFoam with all the necessary files. But somehow it is not getting linked. What should I do?
yedu is offline   Reply With Quote

Old   June 10, 2016, 14:09
Default error while using 'make' command
  #40
New Member
 
Jaspreet Singh
Join Date: Jun 2016
Posts: 1
Rep Power: 0
Jaspreet Singh is on a distinguished road
Hi,
I have installed Cantera 2.0.0 in OpenFoam 2.3.0.

While running the 'make' to make executable file (.exe), I am getting an error-

g++ flamelet.o StFlow_2.o TransportFactory_2.o Lewis1Transport.o -lf2c -pthread -L/opt/cantera/lib -lcantera -lsundials_cvodes -lsundials_ida -lsundials_nvecserial -lblas -llapack -o flamelet
/opt/cantera/lib/libcantera.a(funcs.os): In function `Cantera:: polyfit(int, double*, double*, double*, int, int&, double, double*)':
/home/jaspreet/Downloads/cantera-2.0.0/src/numerics/funcs.cpp:151: undefined reference to `dpolft_'
/home/jaspreet/Downloads/cantera-2.0.0/src/numerics/funcs.cpp:157: undefined reference to `dpcoef_'
collect2: ld returned 1 exit status
make: *** [flamelet] Error 1

Thanks in advance
Jaspreet Singh is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:04.