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

Error while adding a new boundary condition

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2021, 17:50
Default Error while adding a new boundary condition
  #1
New Member
 
Join Date: Jan 2021
Location: Norway
Posts: 22
Rep Power: 2
subhojitkadiacfd is on a distinguished road
Hello everyone,
I am trying to add a new boundary condition for epsilon using wmake libso.
I have successfully compiled the boundary condition and added the library in controlDict. However while running simpleFoam, I am getting the following error
Code:
--> FOAM Warning :
    From function void* Foam::dlOpen(const Foam::fileName&, bool)
    in file POSIX.C at line 1251
    dlopen error : /home/subhojik/OpenFOAM/subhojik-8/platforms/linux64GccDPInt32Opt/lib/libmyEpsilonFreeSurface.so: undefined symbol: _ZTVN4Foam38myEpsilonFreeSurfaceFvPatchScalarFieldE
--> FOAM Warning :
    From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libmyEpsilonFreeSurface.so"
Code:
.....
--> FOAM FATAL IO ERROR:
Unknown patchField type myEpsilonFreeSurface for patch type patch

Valid patchField types are :
......
The Make/files and options are
Code:
fvPatchFields = fields/fvPatchFields
derivedFvPatchFields = $(fvPatchFields)/derived
$(derivedFvPatchFields)/myEpsilonFreeSurface/myEpsilonFreeSurfaceFvPatchScalarField.C

LIB = $(FOAM_USER_LIBBIN)/libmyEpsilonFreeSurface
and
Code:
EXE_INC = \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude \

LIB_LIBS = \
    -lmeshTools \
    -lfiniteVolume
Could you please suggest the necessary correction? I am using OF 8 in Win 10.
Thanking you.

Subhojit

Last edited by subhojitkadiacfd; June 17, 2021 at 18:14.
subhojitkadiacfd is offline   Reply With Quote

Old   July 8, 2021, 11:48
Default
  #2
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 62
Rep Power: 5
petros is on a distinguished road
Hi Subhojit,

Nothing seems wrong in the provided code snippet. These errors usually mean that you have to wclean and wmake again.

Petros
petros is offline   Reply With Quote

Old   July 14, 2021, 06:19
Default
  #3
New Member
 
UOCFD
Join Date: Oct 2020
Posts: 27
Rep Power: 3
uosilos is on a distinguished road
Hi!


Could you fixed it?


I am using OF8 as well and facing exactly the same problem
uosilos is offline   Reply With Quote

Reply

Tags
boundary condition, free surface flow

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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 18:38
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 11:00
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00


All times are GMT -4. The time now is 20:46.