|
[Sponsors] |
Loading Libraries (e.g. new boundary conditions) Stored Locally in ControlDict |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2014, 22:20 |
Loading Libraries (e.g. new boundary conditions) Stored Locally in ControlDict
|
#1 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
Hello all,
I compiled a new boundary condition that I would like to use on a server, where there is no "$FOAM_USER_LIBBIN" directory. I have compiled and run the case without difficulty when the .so (shared object library) file is in the $FOAM_USER_LIBBIN directory, however now I want to move the .so file to my case directory and somehow tell OpenFOAM to find it there so that I can use it on the server. I tried a couple of approaches: 1. Changing the reference in the controlDict to Code:
libs ("/home/<path to .so file>/lib<BCname>.so"); Code:
export FOAM_USER_LIBBIN=/home/<path to .so file> Code:
--> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libtimeVaryingUniformInletOutlet.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libtimeVaryingUniformInletOutlet.so" Any ideas on how to make this work? Thanks in advance. Daniel |
|
April 27, 2014, 22:46 |
|
#2 |
Senior Member
Daniel
Join Date: Jul 2009
Location: Montreal, Canada
Posts: 156
Rep Power: 17 |
It looks like my mistake was using a relative path in place of an absolute path in the libs ("<path goes here");
Works now. |
|
October 15, 2014, 04:57 |
|
#3 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
I had similar problem and I could resolve it by simply copying relevant files from the lib folder in the FOAM_USER_LIBBIN to the lib folder inside the openFoam installation folder.
|
|
May 15, 2022, 14:53 |
|
#4 |
Member
Mahmoud
Join Date: Nov 2020
Location: United Kingdom
Posts: 43
Rep Power: 6 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary Conditions | Thomas P. Abraham | Main CFD Forum | 20 | July 7, 2013 06:05 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
using METIS functions in fortran | dokeun | Main CFD Forum | 7 | January 29, 2013 05:06 |
inlet boundary conditions | newOFuser | OpenFOAM | 1 | January 10, 2013 09:08 |
Boundary Conditions | Jan Ramboer | Main CFD Forum | 11 | August 16, 1999 09:59 |