CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] Fluid Structure Interaction Toolkit on foam extend 4.0 (https://www.cfd-online.com/Forums/openfoam-installation/223669-fluid-structure-interaction-toolkit-foam-extend-4-0-a.html)

Bazinga January 21, 2020 12:26

Fluid Structure Interaction Toolkit on foam extend 4.0
 
Hey,

I am following this page for the installation (running ubuntu 16.04):
https://openfoamwiki.net/index.php/E...oam-extend_4.0

I wanted to test the beamInCrossFlow tutorial. Everything works smoothly as far as I can tell until Allwmake tries "wmake libso setInletVelocity". Here I get the error message

Code:

SOURCE=setInletVelocity.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I../../../../src/fluidSolidInteraction/lnInclude    -I/opt/foam/foam-extend-4.0/src/finiteVolume/lnInclude    -I/opt/foam/foam-extend-4.0/src/finiteArea/lnInclude    -I/opt/foam/foam-extend-4.0/src/meshTools/lnInclude    -I/opt/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude    -I/opt/foam/foam-extend-4.0/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/foam/foam-extend-4.0/src/foam/lnInclude -I/opt/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setInletVelocity.o
/usr/bin/ld: cannot open output file /opt/foam/foam-extend-4.0/lib/linux64GccDPOpt/libsetInletVelocity.so: Permission denied
collect2: error: ld returned 1 exit status

The log of the solver fsiFoam then also shows that the library was not successfully loaded.

Code:

(...)
Reference point coordinates: (0.45 0.15 -0.15)
--> FOAM Warning :
    From function dlLibraryTable::open(const fileName& functionLibName)
    in file db/dlLibraryTable/dlLibraryTable.C at line 124
    could not load libsetInletVelocity.so: cannot open shared object file: No such file or directory


--> FOAM FATAL ERROR:
Unknown function type setInletVelocity

Valid functions are :

1
(
pointHistory
)
(...)

Tried the HronTurekFsi3 too and similar problem with loading a library.
Not quite sure how I have to deal with the challenge of loading the library correctly.

sHpherd August 17, 2020 22:51

The smae problem with you
 
Quote:

Originally Posted by Bazinga (Post 755217)
Hey,

I am following this page for the installation (running ubuntu 16.04):
https://openfoamwiki.net/index.php/E...oam-extend_4.0

I wanted to test the beamInCrossFlow tutorial. Everything works smoothly as far as I can tell until Allwmake tries "wmake libso setInletVelocity". Here I get the error message

Code:

SOURCE=setInletVelocity.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I../../../../src/fluidSolidInteraction/lnInclude    -I/opt/foam/foam-extend-4.0/src/finiteVolume/lnInclude    -I/opt/foam/foam-extend-4.0/src/finiteArea/lnInclude    -I/opt/foam/foam-extend-4.0/src/meshTools/lnInclude    -I/opt/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude    -I/opt/foam/foam-extend-4.0/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/foam/foam-extend-4.0/src/foam/lnInclude -I/opt/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setInletVelocity.o
/usr/bin/ld: cannot open output file /opt/foam/foam-extend-4.0/lib/linux64GccDPOpt/libsetInletVelocity.so: Permission denied
collect2: error: ld returned 1 exit status

The log of the solver fsiFoam then also shows that the library was not successfully loaded.

Code:

(...)
Reference point coordinates: (0.45 0.15 -0.15)
--> FOAM Warning :
    From function dlLibraryTable::open(const fileName& functionLibName)
    in file db/dlLibraryTable/dlLibraryTable.C at line 124
    could not load libsetInletVelocity.so: cannot open shared object file: No such file or directory


--> FOAM FATAL ERROR:
Unknown function type setInletVelocity

Valid functions are :

1
(
pointHistory
)
(...)

Tried the HronTurekFsi3 too and similar problem with loading a library.
Not quite sure how I have to deal with the challenge of loading the library correctly.

Hi, Bazinga
I am facing the same problem with you now, when trying to use the fisFoam solver on HPC where I have no root permission. I guess this problem is probably caused due to the libsetInletVelocity.so is compiled into the root directory. Have you solved the problem or do you have idea about this problem?
Best wishes


All times are GMT -4. The time now is 15:29.