|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Abhijit Joshi
Join Date: May 2011
Location: Atlanta, GA
Posts: 5
Rep Power: 3 ![]() |
Hi all,
I am developing a new LES turbulence model, using the existing models in OpenFOAM as a starting point and there are no errors during the compilation of the new model. However, when I use this new model for the channel395 simulation (instead of the default oneEqEddy model), I get the following error: channelFoam: symbol lookup error:/OpenFOAM/OpenFOAM-2.0.0/platforms/linux64GccDPOpt/lib/libincompressibleLESModels.so: undefined symbol: _ZN4Foam14incompressible9LESModels16subgridSGSStre ss4readEv SubgridSGSstress is a new class created one level below LESModels, similar to classes like GenSGSStress or GenEddyVisc. This new class (SubgridSGSStress) has a model called subgridTLS, which directly computes the subgrid stress. While using channelFoam, I specified subgridTLS as the LESModel. Actually, after compiling the new models, even the original models do not work with channelFoam (I get the same error above if I switch back to using oneEqEddy). Thus, this compilation using the new model sort of corrupts the entire OpenFOAM installation and I need to re-install in order to make channelFoam work again for the channel395 tutorial. Any suggestions on what causes this problem will be greatly appreciated. Thanks, - jabhiji |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Christopher
Join Date: Jun 2011
Posts: 1
Rep Power: 0 ![]() |
Hey jabhiji,
I ran in the same or similar problem and just solved it, maybe the same will work for you. I've developed a custom (lighthill equation) solver based on the pisoFoam solver and haven't tested this on any other solver. The LES model I incorporated is a selective Smagorinsky model. To do this I have created a selectiveSmagorinsky.H and .C file, based on the normal Smagorinsky files, in which I added some extra functions which basically alter the SGS values throughout the field. Also I copied the option file from src/turbulenceModels/incompressible/LES/Make and the files document simply reads: selectiveSmagorinsky.C LIB = $(FOAM_USER_LIBBIN)/libmyTurbulenceModels On compilation I encountered an error: the GenEddyVisc.H file could not be found. Looking at the selectiveSmagorinsky.depp file I noticed that the compiler was looking locally for this file instead of using the file from the installation directory(does anybody knows why? I tried changing the option file without succes..). I fixed this problem by copying the GenEddyVisc.H file to the local directory (the same needed to be done for LESModel.H). It compiled but now gave a similar error to what you had. Then I tried to make a link using in a terminal: sudo ln -s /absolute file path to/GenEddyVisc.H /absolute path to lnInclude folder(placed in folder with source code) Also in my selectiveSmagorinsky.H file I made a direct reference to the source folder hence using (I think this is the most important part): #include "incompressible/LES/GenEddyVisc/GenEddyVisc.H" Further I adapted the dependency file to fix the references. I don't know what exactly solved the problem but now it runs. (using only the direct referencing of the include file worked for one computer but was not sufficient for an other). Using decomposePar I still get warnings (but domain gets decomposed nonetheless ), the solver works perfectly without a warning. Hopefully this post is a bit useful for you. It's my first on this forum so I hope I was not too elaborate or to short. ![]() Good luck! Christopher |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Abhijit Joshi
Join Date: May 2011
Location: Atlanta, GA
Posts: 5
Rep Power: 3 ![]() |
Hello Christopher,
Thanks a lot for your detailed explanation. I have not checked whether this works for me yet, but will keep you posted. Regards, jabhiji |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| libudf error: undefined symbol: | Prashanth | FLUENT | 5 | July 28, 2010 07:03 |
| help for different between les model (subgrid-scale model) | liuyuxuan | FLUENT | 1 | October 2, 2009 15:25 |
| Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 09:38 |
| Problem with compiling my boundary conditions | peita | OpenFOAM Running, Solving & CFD | 4 | February 21, 2008 08:48 |
| 2-equation model of LES and source code | M.R.Hadian | Main CFD Forum | 0 | February 3, 2002 05:00 |