CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Problem creating user defined Boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 27, 2014, 19:40
Default Problem creating user defined Boundary conditions
  #1
New Member
 
Fredrik Eikeland Fossan
Join Date: Oct 2014
Posts: 6
Rep Power: 4
fredf is on a distinguished road
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:pen(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?
fredf is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 45 February 8, 2016 05:42
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 05:58
Units problem and boundary conditions with potentialFoam Calu OpenFOAM Running, Solving & CFD 0 February 14, 2014 14:31
ribbed channel / simpleFoam / boundary conditions beeo OpenFOAM Pre-Processing 20 July 17, 2013 08:39
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 12:44.