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

PV3FoamReader and SUSE SLE-11 SP 3

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2014, 10:49
Default PV3FoamReader and SUSE SLE-11 SP 3
  #1
New Member
 
Join Date: Feb 2014
Posts: 6
Rep Power: 12
jokergermany.de.vu is on a distinguished road
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?

Last edited by jokergermany.de.vu; February 25, 2014 at 12:34.
jokergermany.de.vu is offline   Reply With Quote

Old   February 27, 2014, 03:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 09:57
Default
  #3
New Member
 
Join Date: Feb 2014
Posts: 6
Rep Power: 12
jokergermany.de.vu is on a distinguished road
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...
jokergermany.de.vu is offline   Reply With Quote

Old   March 4, 2014, 10:11
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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

Last edited by wyldckat; March 4, 2014 at 10:13. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   March 5, 2014, 10:29
Default
  #5
New Member
 
Join Date: Feb 2014
Posts: 6
Rep Power: 12
jokergermany.de.vu is on a distinguished road
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
jokergermany.de.vu is offline   Reply With Quote

Old   March 5, 2014, 15:04
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
__________________
wyldckat is offline   Reply With Quote

Old   March 6, 2014, 02:26
Default
  #7
New Member
 
Join Date: Feb 2014
Posts: 6
Rep Power: 12
jokergermany.de.vu is on a distinguished road
Ok the g++ version was too old.
now both are version 4.6.4

I compile OpenFoam at the moment....
jokergermany.de.vu is offline   Reply With Quote

Old   March 6, 2014, 03:36
Default
  #8
New Member
 
Join Date: Feb 2014
Posts: 6
Rep Power: 12
jokergermany.de.vu is on a distinguished road
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 is offline   Reply With Quote

Old   March 6, 2014, 05:03
Default
  #9
New Member
 
Join Date: Feb 2014
Posts: 6
Rep Power: 12
jokergermany.de.vu is on a distinguished road
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 =)
jokergermany.de.vu is offline   Reply With Quote

Old   March 6, 2014, 14:44
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by jokergermany.de.vu View Post
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
wyldckat is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 07:47.