|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Håkon Bartnes Line
Join Date: Mar 2013
Posts: 23
Rep Power: 2 ![]() |
Hi everyone,
I've written a modified version of the SpalartAllmarasIDDES model, named "SpalartAllmarasBasicIDDES", and I'm having some problems getting it to run. The code compiles just fine, and creates a custom library called "libMyIDDESModels.so". When I try to run a case with it, however, I get the following error message, indicating that the solver could not read my library: Code:
-> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : /home/hakonbar/OpenFOAM/hakonbar-2.2.0/platforms/linux64GccDPOpt/lib/libMyIDDESModels.so: undefined symbol: _ZTIN4Foam14incompressible9LESModels20SpalartAllmarasBasicE
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libMyIDDESModels.so"
It's odd that the RANS version worked, and not the IDDES version. On the other hand, the latter includes two custom objects that talk together, so maybe that adds some complexities that need to be accounted for when compiling? Here are the contents of the "options" file in my "Make" directory: Code:
EXE_INC = \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude \
-I$(LIB_SRC)/turbulenceModels/incompressible/LES/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
-I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude
LIB_LIBS = \
-lincompressibleTurbulenceModel \
-lLESdeltas \
-lfiniteVolume \
-lmeshTools
Code:
SpalartAllmarasBasic/SpalartAllmarasBasic.C SpalartAllmarasBasicIDDES/SpalartAllmarasBasicIDDES.C LIB = $(FOAM_USER_LIBBIN)/libMyIDDESModels Any suggestions from you would be greatly appreciated, dear foamers =) best regards, Håkon |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 3 | May 4, 2013 08:19 |
| Error due to Unstructured Mesh with custom solver | fredo490 | OpenFOAM Running, Solving & CFD | 1 | February 23, 2013 03:04 |
| Working directory via command line | Luiz | CFX | 4 | March 6, 2011 20:02 |
| Suitable solver for Air/Air flow with different temperatures | cjm | OpenFOAM | 1 | January 20, 2011 04:17 |
| Troubleshooting Unsteady Incompressible Flow Solver | dandalf | Main CFD Forum | 0 | November 15, 2010 10:55 |