CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Problem creating user defined Boundary conditions (https://www.cfd-online.com/Forums/openfoam-programming-development/143550-problem-creating-user-defined-boundary-conditions.html)

fredf October 27, 2014 19:40

Problem creating user defined Boundary conditions
 
Helo. I´m trying to modify an exciting boundary condition, but get an error message when trying to visualize it in paraview. I copied all of the files in the existing oscillatingFixedValue into a folder called myBCs in my WM_PROJECT_USER_DIR folder. i renamed all the files, and did my changes in the corresponding .C file. Then made Make/files and Make/options files. Make/files consist of:

myFixedValueFvPatchFields.C
LIB = $(FOAM_USER_LIBBIN)/libmyBCs

Make/options consist of:

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \
-lfiniteVolume

then I run the "wake libso" command from the terminal "standing" in myBCs folder. Compiling doesn´t raise any error message.

then i add this boundary condition to my case, and also add the following lines in the controlDict.C file:

libs ("libmyBCs.so");

My case uses icoFoam, and running this doesn´t raise any error message either, but when I try to visualize the results in paraview, it paraFoam exits and I get an error-message reading:

" FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : /home/fredrik/OpenFOAM/fredrik-2.3.0/platforms/linux64GccDPOpt/lib/libmyBCs.so: undefined symbol: _ZTIN4Foam5token8compoundE
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libmyBCs.so"

Does anybody know what might be wrong?


All times are GMT -4. The time now is 00:18.