CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   PV3FoamReader and SUSE SLE-11 SP 3 (https://www.cfd-online.com/Forums/openfoam-installation/130405-pv3foamreader-suse-sle-11-sp-3-a.html)

jokergermany.de.vu February 25, 2014 10:49

PV3FoamReader and SUSE SLE-11 SP 3
 
gcc (SUSE Linux) 4.7.3
mpirun (Open MPI) 1.7.2

I installed OpenFOAM 2.2.x for Suse SLE-11 SP3 from this repository:
https://build.opensuse.org/package/s...ge=openfoam22x

I downloaded Third-Party-2.2.2.tgz
i unzip it and move it to /opt/OpenFOAM/Third-Party-2.2.x

./makeParaView seems to work.


Code:

cd /opt/OpenFOAM/OpenFOAM-2.2.x/applications/utilities/postProcessing/graphics/PV3Readers/
wmSet
./Allwclean
+ wclean libso vtkPV3Readers
wclean vtkPV3Readers
+ PV3blockMeshReader/Allwclean
+ rm -f '/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libPV3blockMeshReader*'
+ rm -rf PV3blockMeshReader/Make
+ wclean libso vtkPV3blockMesh
wclean vtkPV3blockMesh
+ PV3FoamReader/Allwclean
+ rm -f '/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libPV3FoamReader*'
+ rm -rf PV3FoamReader/Make
+ wclean libso vtkPV3Foam
wclean vtkPV3Foam

Seems to be ok so far.
Now i tried ./Allwmake

Code:

+ cd .
+ '[' -d /opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/paraview-3.12.0 ']'
+ '[' -n /opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/paraview-3.12 ']'
+ '[' -n g++ ']'
+ export CXX=g++
+ CXX=g++
+ wmake libso vtkPV3Readers
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Readers.C
+ PV3blockMeshReader/Allwmake
+ '[' -d /opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/paraview-3.12.0 -a -r /opt/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/paraview-3.12.0 ']'
+ wmake libso vtkPV3blockMesh
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3blockMesh.C
Making dependency list for source file vtkPV3blockMeshConvert.C
Making dependency list for source file vtkPV3blockMeshUtils.C
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lblockMesh
collect2: ld returned 1 exit status
make: *** [/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libvtkPV3blockMesh.so] Fehler 1
+ cd PV3blockMeshReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
+ make
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lOpenFOAM
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lblockMesh
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lvtkPV3blockMesh
collect2: ld returned 1 exit status
make[2]: *** [/opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/paraview-3.12/libPV3blockMeshReader_SM.so] Fehler 1
make[1]: *** [CMakeFiles/PV3blockMeshReader_SM.dir/all] Fehler 2
make: *** [all] Fehler 2

Can anyone help me?

wyldckat February 27, 2014 03:46

Greetings jokergermany.de.vu and welcome to the forum!

It's possible that the people that created those packages are using the default ParaView version that comes with openSUSE. The simplest hack to use the system's ParaView version (or even the one you've already built now) is to add the following alias to your "~/.bashrc" file:
Code:

paraFoam -builtin
As for the error message you're getting, it seems that OpenFOAM's libraries are not accessible for some reason. In your case, you should be able to find with the following commands:
Code:

ls -l /opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libblockMesh.so
ls -l /opt/OpenFOAM/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so

If you do not find them there, then it's because you haven't properly followed the instructions given on this file: https://build.opensuse.org/package/v...am22x?expand=1

Best regards,
Bruno

jokergermany.de.vu March 4, 2014 09:57

Thanks, I've done the two commands from the instructions, but the files sill didn't exist...

Code:

/opt/openfoam/OpenFOAM-2.2.x/platforms/linux64GccDPOpt # ls
bin  lib

Code:

/opt/openfoam/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib # ls
dummy                                libOSspecific.o
libcompressibleKineticTheoryModel.so  libscotchDecomp.so
libdistributionModels.so              libsolidMixtureProperties.so
libedgeMesh.so                        libsolidProperties.so
libextrudeModel.so                    libsolidSpecie.so
libfileFormats.so                    libspecie.so
libhelpTypes.so                      libsurfMesh.so
libjobControl.so                      libsystemCall.so
libkineticTheoryModel.so              libthermophysicalFunctions.so
liblagrangian.so                      libtriSurface.so
libliquidMixtureProperties.so        libvtkPV3Readers.so
libliquidProperties.so                openmpi-system
libmeshTools.so                      paraview-3.12
libmolecularMeasurements.so          postCalc.o
libODE.so

I think this is also the problem why openfoam only runs with one thread, too...

wyldckat March 4, 2014 10:11

There is something very wrong in that installation. I have 104 "*.so" files inside the folder "lib" in my installation (edit: without counting the ones inside the subfolders!).

I strongly suggest that you remove that installation and build OpenFOAM 2.2.x from source code instead. The following instructions are for 2.2.2: http://openfoamwiki.net/index.php/In...#openSUSE_12.2 - but you can easily adjust your steps, based on the old git instructions, mostly because of the git repository link: http://www.openfoam.org/archive/2.2.2/download/git.php

jokergermany.de.vu March 5, 2014 10:29

Thanks,
i trying to install the git repository now, but when i try to compile OpenFoam i get the following error:
Code:

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleTransportModels
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleTurbulenceModel
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleRASModels
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lincompressibleLESModels
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lfiniteVolume
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lbarotropicCompressibilityModel
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicMesh
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -ldynamicFvMesh
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lOpenFOAM


wyldckat March 5, 2014 15:04

In the first link I had provided, in step #8, it specifies to execute this command:
Code:

./Allwmake > make.log 2>&1
You need to look for the first error message in the file "make.log".

In addition, even though you've mentioned in the first post that you have gcc 4.7.3, make sure that you also have the GNU C++ compiler of the same version:
Code:

gcc --version
g++ --version

Both should be of the same version, which for OpenFOAM 2.2, should be GCC 4.5 or newer.

jokergermany.de.vu March 6, 2014 02:26

Ok the g++ version was too old.
now both are version 4.6.4

I compile OpenFoam at the moment....

jokergermany.de.vu March 6, 2014 03:36

Yeah =)

Everything seems to work fine now with the root user.

But a user without root rights didn't can run ParaFoam:

user:
Code:

blub@blubber:~/OpenFOAM/blub-2.2.x/run/motorbike> paraFoam

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

root:
Code:

blubber:/home/blub/OpenFOAM/blub-2.2.x/run/motorbike # paraFoam
created temporary 'motorbike.OpenFOAM'
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.

Is this the Problem?
Code:

wmSet: command not found

jokergermany.de.vu March 6, 2014 05:03

Ok the solution:

as root:
Code:

chmod 777 -R /opt/OpenFoam
as user:
Code:

cd /opt/OpenFOAM/OpenFOAM-2.2.x/applications/utilities/postProcessing/graphics/PV3Readers/
./Allwclean
./Allwmake

Thanks for your help =)

wyldckat March 6, 2014 14:44

Quote:

Originally Posted by jokergermany.de.vu (Post 478461)
Is this the Problem?
Code:

wmSet: command not found

Quick note: wmSET is an alias command created when the OpenFOAM shell environment is activated.
"wmSet" is an invalid name, simply because Linux Distributions are usually case sensitive ;)


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