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

Installation paraFoam - still problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 21, 2010, 04:49
Default Installation paraFoam - still problem
  #1
nhl
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 7
nhl is on a distinguished road
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 is offline   Reply With Quote

Old   June 21, 2010, 11:48
Default
  #2
nhl
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 7
nhl is on a distinguished road
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
nhl is offline   Reply With Quote

Old   June 21, 2010, 17:36
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Nico and welcome to the forum!

I guess the thread you initially mentioned was this one: Installation paraFoam
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
wyldckat is offline   Reply With Quote

Old   June 22, 2010, 03:35
Default
  #4
nhl
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 7
nhl is on a distinguished road
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
nhl is offline   Reply With Quote

Old   June 22, 2010, 06:57
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hello Nico,
Quote:
Originally Posted by nhl View Post
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 View Post
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
wyldckat is offline   Reply With Quote

Old   June 22, 2010, 08:38
Default
  #6
nhl
New Member
 
Join Date: Jun 2010
Posts: 7
Rep Power: 7
nhl is on a distinguished road
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
nhl is offline   Reply With Quote

Old   June 22, 2010, 08:45
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Nico,
Quote:
Originally Posted by nhl View Post
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
wyldckat is offline   Reply With Quote

Old   June 22, 2010, 09:22
Default
  #8
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
paraFoam problem autumn1012 OpenFOAM Paraview & paraFoam 22 July 8, 2010 02:20
Problem with paraFoam ata OpenFOAM 14 November 30, 2009 05:23
paraFoam running problem Aleksey_R OpenFOAM 2 November 27, 2009 19:18
Problem using paraFoam to view cavityGrade mesh file felik9 OpenFOAM Native Meshers: blockMesh 1 September 27, 2009 15:31
Problem with LinuxIA64 installation of OpenFOAM13 antares OpenFOAM Installation 0 May 25, 2006 12:19


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