CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Sudden errors: "cannot open shared object file: No such file or directory" (https://www.cfd-online.com/Forums/openfoam-solving/163312-sudden-errors-cannot-open-shared-object-file-no-such-file-directory.html)

AlexPorta November 26, 2015 23:36

Sudden errors: "cannot open shared object file: No such file or directory"
 
I had been simulating a 3d object with simpleFoam on a version of the motorbike tutorial, using OF 2.3.1

After many runs, and a small change to the input geometry, it started throwing this error,

dlopen error : libincompressibleTurbulenceModel.so: cannot open shared object file: No such file or directory

the error persists even after restoring the input with a backup the had just run with no errors.

Has anyone seen this before?

akidess November 27, 2015 02:01

This has nothing to do with your case. Your OpenFOAM installation is broken.

AlexPorta November 27, 2015 10:40

I uninstalled OF2.3.1, and installed a fresh copy of OF3.0.0.


Same error

alexeym November 27, 2015 11:15

Hi,

Guess, your case files contain somewhere a line (or similar)

Code:

libs ("libincompressibleTurbulenceModel.so");
In 3.0.x this library was removed:

Code:

$ echo $WM_PROJECT_VERSION
3.0.x
$ cd $FOAM_LIBBIN
$ ls -1 *Turbulence*
libDPMTurbulenceModels.so
libcompressibleTurbulenceModels.so
libincompressibleTurbulenceModels.so
liblagrangianTurbulence.so
libmultiphaseReactingTurbulenceModels.so
libphaseCompressibleTurbulenceModels.so
libtwoPhaseReactingTurbulenceModels.so


AlexPorta December 1, 2015 17:28

Problem is, it stated doing it before I swtched to OF3.0.0

alexeym December 2, 2015 02:22

Well, then, I guess, someone just deleted the library. And I have checked tutorial controlDict, in 2.3.1 it does contain these lines:

Code:

libs
(
    "libOpenFOAM.so"
    "libincompressibleTurbulenceModel.so"
    "libincompressibleRASModels.so"
);

So there are plenty of possibilities for the error, and there is almost no information for diagnostics.

Chanterz February 4, 2016 23:36

I had this problem when I moved from 2.3x to 3.0x.

It is my understanding that 3.0x does not use them, so I commented out those library references in my ControlDict when using 3.0x.

However, the file with these libs left in the ControlDict should work in 2.3 as they did for me. The most possible problem is that they are not in your lib bin in 2.3 when they should be. I think Alexey is right.


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