CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM 15 and openSUSE 111 paraview works OK (http://www.cfd-online.com/Forums/openfoam/60690-openfoam-15-opensuse-111-paraview-works-ok.html)

alberto December 23, 2008 13:34

Hello, I have just installe
 
Hello,

I have just installed the latest release of openSUSE 11.1 on my laptop, and I tried OpenFOAM on it to check if it works properly.

Well, good news! Of course the applications work OK, but also the third party paraview and the provided reader paraview work OK without any need to recompile with a personalized version of Qt, as you can see from the screenshot below, which shows the grid of the icoFoam/cavity case.

http://www.cfd-online.com/OpenFOAM_D...es/1/10432.jpg

Merry Christmas and happy 2009!

Regards,
Alberto

ivan_cozza December 26, 2008 14:28

Alberto! This is a wonderful
 
Alberto!
This is a wonderful news, I'll update soon my Suse!!!

alberto December 26, 2008 20:42

Hi Ivan, I need to correct th
 
Hi Ivan,
I need to correct the news, which stays good, but a bit more complicated.

All worked OK in my installation because I didn't format my /home directory, and I kept the previous version of OpenFOAM I had. In that installation, paraview and paraFoam were recompiled against QT 4.4, which is also used in openSUSE 11.1.

I upgraded my desktop system too, and there I had to format my /home. When I reinstalled OpenFOAM 1.5 from the git repository and added the third party package, I found out that paraview could not start, with an error about being unable to create objects. At this point I recompiled paraview against the Qt libraries provided with openSUSE 11.1, and...tada! It works!

So, to conclude, I'm sorry for the mistake in the information provided above, but well, I can provide a surely working solution, because I tried it on a fully clean 64-bit installation.

- Install OpenSUSE 11.1
- Install qt4-devel (it's in the OSS openSUSE repository)
- Download OpenFOAM 1.5 from git repository
- Download the third-party packages from OpenCFD site
- Source the bash configuration file for OpenFOAM, as usual.
- Edit ~/OpenFOAM/ThirdParty/ParaView3.3-cvsCMakeLists.txt and comment out the line:

MESSAGE(SEND_ERROR "Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).")

- Compile paraview as explained in OpenFOAM 1.5 README file.
- Compile OpenFOAM 1.5 with ./Allwmake in its main directory.

If you have problems, please let me know.

Enjoy :-D

Alberto

ivan_cozza December 27, 2008 11:15

Ok Alberto, now I have my hom
 
Ok Alberto,
now I have my homeworks for these holydays!
I wish you a Happy New Year!
Ivan

alberto December 27, 2008 13:09

Thanks. Happy 2009 to you too,
 
Thanks. Happy 2009 to you too, and to everyone!

Alberto

Erik February 22, 2009 08:04

Hia, Im trying to make this in
 
Hia, Im trying to make this installation on Suse 11.1 as well.

Does the above mean that I can use the gcc provided with suse 11.1, or do I still have to change to 4.3.1?

Thanks
Erik

Erik February 22, 2009 08:10

Hia, Im trying to make this in
 
Hia, Im trying to make this installation on Suse 11.1 as well.

Does the above mean that I can use the gcc provided with suse 11.1, or do I still have to change to 4.3.1?

Thanks
Erik

alberto February 22, 2009 18:50

Hi Erik, yes, it also works w
 
Hi Erik,
yes, it also works with the system compiler. That's right.

Just change name to the gcc compiler directory in the ThirdParty OF folder.

Alberto

Erik February 24, 2009 12:23

Hi Alberto, Thanks for your
 
Hi Alberto,

Thanks for your advice.

Im having problems compiling the OpenFOAM reader, following these lines of the README:

" The PV3FoamReader module is an OpenFOAM utility that can be compiled in the
usual manner as follows:
+ cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
+ ./Allwclean
+ ./Allwmake"

i get this pring out while compiling:


///begining pring-out


erik@linux-vcw2:~/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphics/PV3Foa mReader> ./Allwclean
+ rm -rf PV3FoamReader/Make
+ wclean libso vtkPV3Foam
wclean vtkPV3Foam
erik@linux-vcw2:~/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphics/PV3Foa mReader> ./Allwmake
+ '[' -d /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc -a -r /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc ']'
+ case "$ParaView_VERSION" in
+ wmake libso vtkPV3Foam
wmakeLnInclude: linking include files to /home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/vtkPV3Foam/lnInclude
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
/bin/sh: /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake/rules/linux64Gcc/wmkdep: No such file or directory
SOURCE=vtkPV3Foam.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/erik/OpenFOAM/OpenFOAM-1.5.x/src/finiteVolume/lnInclude -I/home/erik/OpenFOAM/OpenFOAM-1.5.x/src/lagrangian/basic/lnInclude -I/home/erik/OpenFOAM/OpenFOAM-1.5.x/src/meshTools/lnInclude -I/home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/VTK -I/home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs -I/home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK -I/home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common -I/home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Filtering -I/home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Rendering -I../PV3FoamReader -IlnInclude -I. -I/home/erik/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude -I/home/erik/OpenFOAM/OpenFOAM-1.5.x/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3Foam.o
In file included from vtkPV3Foam.C:27:
vtkPV3Foam.H:61:23: error: className.H: No such file or directory
vtkPV3Foam.H:62:22: error: fileName.H: No such file or directory
vtkPV3Foam.H:63:35: error: volPointInterpolation.H: No such file or directory
vtkPV3Foam.H:64:24: error: stringList.H: No such file or directory
vtkPV3Foam.H:65:22: error: wordList.H: No such file or directory
vtkPV3Foam.H:66:28: error: primitivePatch.H: No such file or directory
vtkPV3Foam.C:30:18: error: Time.H: No such file or directory
vtkPV3Foam.C:31:20: error: fvMesh.H: No such file or directory
vtkPV3Foam.C:32:26: error: IOobjectList.H: No such file or directory
vtkPV3Foam.C:33:24: error: patchZones.H: No such file or directory
In file included from /home/erik/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64 -unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/backward/strstream:51,
from /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkIOStream.h:112,
from /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkSystemIncludes.h:40 ,
from /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkIndent.h:24,
from /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkObjectBase.h:43,
from /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkObject.h:41,
from /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Filtering/vtkAlgorithm.h:32,
from /home/erik/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Filtering/vtkMultiBlockDataSe tAlgorithm.h:25,
from ../PV3FoamReader/vtkPV3FoamReader.h:24,
from vtkPV3Foam.C:34:
/home/erik/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64 -unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/backward/backward_warning .h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
vtkPV3Foam.C:35:22: error: IFstream.H: No such file or directory
In file included from vtkPV3Foam.C:56:
vtkPV3FoamAddToSelection.H:31:26: error: SortableList.H: No such file or directory
In file included from vtkPV3Foam.C:27:
vtkPV3Foam.H:200: error: ISO C++ forbids declaration of 'autoPtr' with no type
vtkPV3Foam.H:200: error: expected ';' before '<' token
vtkPV3Foam.H:218: error: 'boolList' does not name a type
vtkPV3Foam.H:221: error: 'labelList' does not name a type
vtkPV3Foam.H:225: error: 'labelList' does not name a type
vtkPV3Foam.H:229: error: 'labelList' does not name a type
vtkPV3Foam.H:233: error: 'labelList' was not declared in this scope
vtkPV3Foam.H:233: error: template argument 1 is invalid
vtkPV3Foam.H:237: error: 'labelList' was not declared in this scope
vtkPV3Foam.H:237: error: template argument 1 is invalid
vtkPV3Foam.H:240: error: field 'patchTextActorsPtrs_' has incomplete type
vtkPV3Foam.H:251: error: 'word' does not name a type
vtkPV3Foam.H:271: error: expected ',' or '...' before 'datasetNo'
vtkPV3Foam.H:274: error: ISO C++ forbids declaration of 'label' with no type
vtkPV3Foam.H:282: error: expected ',' or '...' before 'datasetNo'
vtkPV3Foam.H:283: error: ISO C++ forbids declaration of 'label' with no type
vtkPV3Foam.H:287: error: 'label' does not name a type
vtkPV3Foam.H:314: error: 'wordList' does not name a type
vtkPV3Foam.H:321: error: expected constructor, destructor, or type conversion before 'addToSelection'
vtkPV3Foam.H:391: error: 'labelList' has not been declared
vtkPV3Foam.H:412: error: expected ',' or '...' before '&' token
vtkPV3Foam.H:414: error: ISO C++ forbids declaration of 'labelList' with no type
vtkPV3Foam.H:420: error: expected ',' or '...' before '&' token
vtkPV3Foam.H:422: error: ISO C++ forbids declaration of 'labelList' with no type
vtkPV3Foam.H:451: error: expected constructor, destructor, or type conversion before 'addObjectsToSelection'
vtkPV3Foam.H:466: error: expected ',' or '...' before '&' token
vtkPV3Foam.H:471: error: ISO C++ forbids declaration of 'volPointInterpolation' with no type
vtkPV3Foam.H:477: error: expected ',' or '...' before '<' token
vtkPV3Foam.H:482: error: ISO C++ forbids declaration of 'GeometricField' with no type
vtkPV3Foam.H:488: error: expected ',' or '...' before '&' token
vtkPV3Foam.H:493: error: ISO C++ forbids declaration of 'word' with no type
vtkPV3Foam.H:499: error: expected ',' or '...' before '<' token
vtkPV3Foam.H:505: error: ISO C++ forbids declaration of 'GeometricField' with no type
vtkPV3Foam.H:511: error: expected ',' or '...' before '<' token
vtkPV3Foam.H:517: error: ISO C++ forbids declaration of 'GeometricField' with no type
vtkPV3Foam.H:517: error: 'template<class> void Foam::vtkPV3Foam::convertFaceField(int)' cannot be overloaded
vtkPV3Foam.H:505: error: with 'template<class> void Foam::vtkPV3Foam::convertFaceField(int)'
vtkPV3Foam.H:536: error: expected ',' or '...' before 'datasetNo'
vtkPV3Foam.H:537: error: ISO C++ forbids declaration of 'label' with no type
vtkPV3Foam.H:553: error: expected ',' or '...' before '<' token
vtkPV3Foam.H:558: error: ISO C++ forbids declaration of 'GeometricField' with no type
vtkPV3Foam.H:564: error: expected ',' or '...' before '&' token
vtkPV3Foam.H:569: error: ISO C++ forbids declaration of 'word' with no type
vtkPV3Foam.H:575: error: 'word' does not name a type
vtkPV3Foam.H:578: error: 'stringList' does not name a type
vtkPV3Foam.H:585: error: 'stringList' does not name a type
vtkPV3Foam.H:596: error: expected ',' or '...' before '&' token
vtkPV3Foam.H:597: error: ISO C++ forbids declaration of 'stringList' with no type
vtkPV3Foam.H:611: error: expected identifier before string constant
vtkPV3Foam.H:611: error: expected ',' or '...' before string constant
vtkPV3Foam.H:611: error: ISO C++ forbids declaration of 'ClassName' with no type
vtkPV3Foam.H:654: error: 'ostream' has not been declared
In file included from vtkPV3Foam.H:668,
from vtkPV3Foam.C:27:

/////......cut out of print out.......

/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/../vtkPV3Foam/vtkPV3Foam.H:611: error: ISO C++ forbids declaration of 'ClassName' with no type
In file included from /home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/../vtkPV3Foam/vtkPV3Foam.H:668,
from /home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:34:
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/../vtkPV3Foam/vtkPV3FoamI.H:31: error: 'word' in namespace 'Foam' does not name a type
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx: In member function 'virtual int vtkPV3FoamReader::RequestInformation(vtkInformatio n*, vtkInformationVector**, vtkInformationVector*)':
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:141: error: 'debug' is not a member of 'Foam::vtkPV3Foam'
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:162: error: 'debug' is not a member of 'Foam::vtkPV3Foam'
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:191: error: 'debug' is not a member of 'Foam::vtkPV3Foam'
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx: In member function 'virtual int vtkPV3FoamReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)':
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:232: error: 'debug' is not a member of 'Foam::vtkPV3Foam'
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:250: error: 'debug' is not a member of 'Foam::vtkPV3Foam'
/home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/utilities/postProcessing/graphic s/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx:292: error: 'debug' is not a member of 'Foam::vtkPV3Foam'
make[2]: *** [CMakeFiles/PV3FoamReader_SM.dir/vtkPV3FoamReader.o] Error 1
make[1]: *** [CMakeFiles/PV3FoamReader_SM.dir/all] Error 2
make: *** [all] Error 2

//////////end

Is it possilbe from this to say where my proceedure is wrong? I see In the print out of the reader compilation that there are a lot of files missing.

Many thanks
Erik

Erik February 25, 2009 06:49

And also, Im running on a 64-b
 
And also, Im running on a 64-bit machine and I have the following message from the foamInstallationTest:

Executing /home/erik/OpenFOAM/OpenFOAM-1.5.x/bin/foamInstallationTest:

//////////

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-vcw2
OS: Linux version 2.6.27.7-9-default
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/erik/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/erik/OpenFOAM/erik-1.5.x yes no
$WM_THIRD_PARTY_DIR /home/erik/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/erik/OpenFOAM/OpenFOAM-1.5.x yes yes yes

$FOAM_APPBIN ...5.x/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...5.x/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR /home/erik/OpenFOAM/OpenFOAM-1.5.x/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...M/OpenFOAM-1.5.x/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...nFOAM/erik-1.5.x/lib/linux64GccDPOpt yes yes no
$MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.1 ...penFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.20 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux-vcw2 Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.


////////

where Im not sure about what the conflicting installation of icoFoam means:

////

icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/erik/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

///////

Any advise is very appreciated!
/Erik

Erik March 6, 2009 06:52

Thanks for your tips. I finall
 
Thanks for your tips. I finally chose to use the OpenFOAM 1.5 version and not 1.5.x from the git repository. Then, I transformed the data with the <foamtovtk> command followed by <paraview>. start command. Which works fine for my cases.


All times are GMT -4. The time now is 04:43.