CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation paraFoam - still problem (http://www.cfd-online.com/Forums/openfoam-installation/77345-installation-parafoam-still-problem.html)

nhl June 21, 2010 04:49

Installation paraFoam - still problem
 
Hello,

I was in another thread but maybe not the most appropriate....


I saw many threads on this forum about paraFoam. I am still not getting how to handle to complete the OpenFoam installation.

Actually first steps works well...but when comes the time to run paraFoam..it does not work so I search on forums and manuals...find "Compiling Paraview 3.6.1 and the PV3FoamReader module", install locally qt as explained.

I come to Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
./Allwclean
./Allwmake
at that point I got problem with cmake so I install a local version of cmake (2.8)
Change some paths to find the correct executable. At the end I come to get this error and I am not getting what to do at that point...some help please ?
Code:
make: *** [Make/linux64GccDPOpt/vtkPV3Foam.o] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ set ParaView_DIR=/nishome/nhl/OpenFOAM/ThirdParty-1.6/paraview-3.6.1
+ /usr/local/cmake-2.8.1-Linux-i386/bin/cmake ../..
CMake Error at CMakeLists.txt:12 (FIND_PACKAGE):
Could not find module FindParaView.cmake or a configuration file for
package ParaView.

Adjust CMAKE_MODULE_PATH to find FindParaView.cmake or set ParaView_DIR to
the directory containing a CMake configuration file for ParaView. The file
will have one of the following names:

ParaViewConfig.cmake
paraview-config.cmake



CMake Error at CMakeLists.txt:13 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.


CMake Error at CMakeLists.txt:37 (ADD_PARAVIEW_PLUGIN):
Unknown CMake command "ADD_PARAVIEW_PLUGIN".


-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found. Stop.
If I have already paraview installed (3.8), how can I set openfoam to use it for paraFoam ?
My station is Linux Red Hat 5.3 Linux 64bit...I "installed" OF 1.6..

nhl June 21, 2010 11:48

I went a little bit further...by setting the Paraview_DIR...the script correctly find ParaViewConfig.cmake file...but now I got a new error when executing ./Allwmake in PV3Foam reader folder....


Code:

make: *** [Make/linux64GccDPOpt/vtkPV3Foam.o] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ /usr/local/cmake-2.8.1-Linux-i386/bin/cmake ../..
CMake Error at /nishome/nhl/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/ParaViewConfig.cmake:36 (INCLUDE):
  include could not find load file:

    @PARAVIEW_LIBRARY_DEPENDS_FILE@
Call Stack (most recent call first):
  CMakeLists.txt:12 (FIND_PACKAGE)


CMake Error at CMakeLists.txt:13 (INCLUDE):
  include could not find load file:

    @PARAVIEW_USE_FILE@


CMake Error at CMakeLists.txt:37 (ADD_PARAVIEW_PLUGIN):
  Unknown CMake command "ADD_PARAVIEW_PLUGIN".


-- Configuring incomplete, errors occurred!
+ make

Anyone already have encounter that error.
Any help would be appreciate.

Nico

wyldckat June 21, 2010 17:36

Greetings Nico and welcome to the forum!

I guess the thread you initially mentioned was this one: http://www.cfd-online.com/Forums/ope...-parafoam.html
Actually you were right to post there, but personally I didn't pick up on it's existence :(

OK, as for ParaView 3.6.1, I have a question for you: did you build ParaView using the script makeParaView that is available in the ThirdParty-1.6 folder??
My suggestion is to follow the thread I've help on how to install ParaView 3.6.1:
Quote:

Originally Posted by http://www.cfd-online.com/Forums/blogs/wyldckat/232-list-threads-useful-building-openfoam-other-third-party-tools.html
On how to build Paraview and Qt 4.3.5, including on how to use the cmake that comes with the package ThirdParty-1.6.linuxGcc.gtgz: New user needs help

It's a bit long but it should be worth it :)


As for ParaView 3.8.0, you won't need to build PV3FoamReader since it already has a very good native reader built in ParaView. You can change in the script OpenFOAM-1.6/bin/paraFoam were it says ".OpenFOAM" to ".foam", since ParaView 3.8.0 expects that "foam" is the file extension for OpenFOAM cases. Now, for OpenFOAM to have direct access to the binary file paraview, you should edit the file OpenFOAM-1.6/etc/apps/paraview3/bashrc and tweak it to suit your needs... or in other words, change the script in order for it to make it point to your ParaView 3.8.0 installation instead of OpenFOAM's 3.6.1 version!

Best regards,
Bruno

nhl June 22, 2010 03:35

Hello Bruno,

Thanks to help me to go through this.

Concerning paraview 3.6.1, I compiled Paraview with a local version of Qt that I download following your recommandations in another thread.

Code:

makeParaView -qmake package
As I did not have cmake I have to install a local version as well, the 2.8. As I have 64bit RHEL 5 version I used ThirdParty-1.6.linux64Gcc.gtgz. Should I prefer the 32bit version ThirdParty-1.6.linuxGcc.gtgz ?

Now for the 3.8.0, I make the corrections that you mention in the script OpenFOAM-1.6/etc/apps/paraview3/bashrc and in the paraFoam script....I come to succesfully launched paraview with paraFoam command (tutorial cavity case). But a "nice" GUI opens with an error saying that : "a reader can not be found.Please choose one" and I got many formats...but nothing seems to be related to OpenFoam data. I guess it is problems related to paraview...But do you have any ideas ?

Actually I don't care about the ParaView version..just one that works will be fine enough. Thanks again for the support.

Nico

wyldckat June 22, 2010 06:57

Hello Nico,
Quote:

Originally Posted by nhl (Post 263969)
Concerning paraview 3.6.1, I compiled Paraview with a local version of Qt that I download following your recommandations in another thread.

Code:

makeParaView -qmake package
As I did not have cmake I have to install a local version as well, the 2.8. As I have 64bit RHEL 5 version I used ThirdParty-1.6.linux64Gcc.gtgz. Should I prefer the 32bit version ThirdParty-1.6.linuxGcc.gtgz ?

The thing is that in ThirdParty-1.6.linuxGcc.gtgz there is a pre-built version of cmake 2.6.4. By my experience, for some strange reason, cmake 2.8.0 won't work very well with ParaView 3.6.1 :( You should follow through the whole thread and not skip steps, otherwise the probability of getting it built and properly working is reduced :(

Quote:

Originally Posted by nhl (Post 263969)
Now for the 3.8.0, I make the corrections that you mention in the script OpenFOAM-1.6/etc/apps/paraview3/bashrc and in the paraFoam script....I come to succesfully launched paraview with paraFoam command (tutorial cavity case). But a "nice" GUI opens with an error saying that : "a reader can not be found.Please choose one" and I got many formats...but nothing seems to be related to OpenFoam data. I guess it is problems related to paraview...But do you have any ideas ?

Strange... that dialog should have an entry simply saying "OpenFOAM". And it should automatically open files with extension ".foam". Where did you get that version from? Did it come with RHEL or did you download from www.paraview.org?


Best regards,
Bruno

nhl June 22, 2010 08:38

Ok I re-download Paraview 3.8.0. and it appears that my version was quite different. It was named RC1.

I do not know what that means..but now in that version, the reader is present as I do not have any more trouble.

Yes that means that the installation of OpenFoam is fully done !!!

Thank you again Bruno for your support and for the last threads that you post.

Nico

wyldckat June 22, 2010 08:45

Hi Nico,
Quote:

Originally Posted by nhl (Post 264002)
Ok I re-download Paraview 3.8.0. and it appears that my version was quite different. It was named RC1.

I do not know what that means..

RC1 - Release Candidate 1, which means it's a bit beyond beta stage, but bugs are still suspected to exist!

I'm glad it's finally working and you're welcome :)

Best regards,
Bruno

7islands June 22, 2010 09:22

Indeed, the reader was accidentally missing in the RC1, which was quickly noticed and reported to the PV developers by Fabian Braennstroem. Really appreciated!

T


All times are GMT -4. The time now is 11:42.