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

ParaView Error messages when accessing View menu

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2012, 23:13
Default
  #21
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
it isn't about the $ sign. I have tried this, if I understand correctly, the folder structure of deb install is different from the compilation. I am curious as to how to fix this as well. I can't really remember how different it is though.
haze_1986 is offline   Reply With Quote

Old   December 11, 2012, 09:06
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 haze_1986 View Post
it isn't about the $ sign. I have tried this, if I understand correctly, the folder structure of deb install is different from the compilation. I am curious as to how to fix this as well. I can't really remember how different it is though.
Sorry, I don't the time to go into details, so the quickest suggestion/fix is this:
  1. Uninstall the OpenFOAM Deb version you have installed.
  2. Follow the instructions available here, for the Ubuntu version you've got: http://openfoamwiki.net/index.php/In...M-2.1.1/Ubuntu
Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 11, 2012, 21:57
Default
  #23
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Sorry, I don't the time to go into details, so the quickest suggestion/fix is this:
  1. Uninstall the OpenFOAM Deb version you have installed.
  2. Follow the instructions available here, for the Ubuntu version you've got: http://openfoamwiki.net/index.php/In...M-2.1.1/Ubuntu
Good luck!
Bruno
Hi, I just found that it wouldn't work as well, at least on a clean install of 12.04 LTS. Same error under view.
haze_1986 is offline   Reply With Quote

Old   January 1, 2013, 00:28
Default
  #24
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Happy 2013 all, would just like to bump up this thread slightly with my updates/

I have been trying to find one paraview version that fixes the problem, and it seems that 3.98.0rc3 opened fine with no problems with mouse over view.
https://launchpad.net/~gladky-anton/...+build/4013515

However, I am not sure how to integrate it into the env such that using paraFoam would allow it to load pv3.98.0 directly. Anyone can enlighten me on this?
haze_1986 is offline   Reply With Quote

Old   January 1, 2013, 07:12
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi haze_1986 and Happy 2013!

It's simple:
  1. Uninstall the package "paraviewopenfoam3120", if you still have it installed.
  2. If you built OpenFOAM/ParaView manually, first check if the built ParaView is still available:
    Code:
    echo $ParaView_DIR
    ls -l $ParaView_DIR
    If it's still there (if the first command outputs a path and the second tells what's inside it), run:
    Code:
    rm -r $ParaView_DIR
  3. The new version of ParaView that you wrote about is installed on the global system. Therefore, all you need to do is do a little modification in the paraFoam script, which you can find by running:
    Code:
    which paraFoam
    Then edit this file and search for the line that 71 in it - this one https://github.com/OpenFOAM/OpenFOAM...n/paraFoam#L71 - and change:
    Code:
    extension=OpenFOAM
    requirePV=1
    To this:
    Code:
    extension=foam
    requirePV=0
    Save the file and close.
Best regards,
Bruno
__________________

Last edited by wyldckat; January 1, 2013 at 07:16. Reason: step #2 wasn't very clear
wyldckat is offline   Reply With Quote

Old   January 1, 2013, 08:36
Default
  #26
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi haze_1986 and Happy 2013!

It's simple:
  1. Uninstall the package "paraviewopenfoam3120", if you still have it installed.
  2. If you built OpenFOAM/ParaView manually, first check if the built ParaView is still available:
    Code:
    echo $ParaView_DIR
    ls -l $ParaView_DIR
    If it's still there (if the first command outputs a path and the second tells what's inside it), run:
    Code:
    rm -r $ParaView_DIR
  3. The new version of ParaView that you wrote about is installed on the global system. Therefore, all you need to do is do a little modification in the paraFoam script, which you can find by running:
    Code:
    which paraFoam
    Then edit this file and search for the line that 71 in it - this one https://github.com/OpenFOAM/OpenFOAM...n/paraFoam#L71 - and change:
    Code:
    extension=OpenFOAM
    requirePV=1
    To this:
    Code:
    extension=foam
    requirePV=0
    Save the file and close.
Best regards,
Bruno
Thanks Bruno
haze_1986 is offline   Reply With Quote

Old   January 11, 2013, 04:53
Default
  #27
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Hi Bruno, just wondering, would that work for self compiled multi-installations based on this? http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html

Previously with deb installation, I downloaded the latest 3.98.0 binary from paraview site and previously just changed the path in my .bashrc with this
export PATH=/opt/ParaView-3.98.0-Linux-64bit/bin/:$PATH

However now in the .bashrc, aliases were included
alias OF21x='. /home/hei/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc'
alias OF21xDebug='. /home/hei/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc WM_COMPILE_OPTION=Debug'
alias OF16ext='export QT_BIN_DIR=/usr/bin;. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'
alias PF057='export PYTHONPATH=/home/hei/OpenFOAM/PyFoam-0.5.7/lib/python-2.7/site-packages:$PYTHONPATH; export PATH=/home/hei/OpenFOAM/PyFoam-0.5.7/bin:$PATH'

Is there anyway I can point each of the paraviews to the 3.98 version?
haze_1986 is offline   Reply With Quote

Old   January 11, 2013, 05:00
Default
  #28
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi haze_1986,

In my signature link, you would find a link to another post on details about installing ParaView. From there, you should find this post: http://www.cfd-online.com/Forums/ope...tml#post345619 post #2
And then there's this blog post as well: Using the official pre-built ParaView 3.10.1 version with OpenFOAM

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 13, 2013, 07:08
Default
  #29
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Hi Bruno,

following the instructions, am I supposed to apply the steps independently to OF21x and OF16ext? I was able to rm -rf $ParaView_DIR for the OF21x. After following instructions to the end, it still didn't work, even for OF21x.
haze_1986 is offline   Reply With Quote

Old   January 13, 2013, 07:31
Default
  #30
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Error as below:

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
haze_1986 is offline   Reply With Quote

Old   January 13, 2013, 08:15
Default
  #31
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Haze,

Did you follow the instructions from post #25 on this thread we're on? The instructions on that particular post will only apply to OpenFOAM 2.1 and 2.0.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 13, 2013, 08:38
Default
  #32
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Hi Bruno,

Yeap that worked very well. However, on another system I am required to use 1.6 ext as well. Thus I used the Chalmer's walkthrough to build one that have multi versions. Would it be possible to use 3.98 PV for all the versions based on the chalmer's installation guide?

Your help is much appreciated, thanks.
haze_1986 is offline   Reply With Quote

Old   January 13, 2013, 08:41
Default
  #33
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
I haven't tested this on 1.6-ext, but my guess is that the instructions from here: http://www.cfd-online.com/Forums/blo...-openfoam.html - should do the trick. More specifically, starting from point #7.
__________________
wyldckat is offline   Reply With Quote

Old   January 13, 2013, 09:16
Default
  #34
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
I hope to clarify some points. For a start, in my built version based on chalmer's, I am unable to rm the $Paraview_DIR. Do I have to go into OF21x and OF16ext to rm. I found that it only works for OF21x.
haze_1986 is offline   Reply With Quote

Old   January 13, 2013, 18:55
Default
  #35
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Haze,

OK, I didn't have an 1.6-ext installation handy before, but now I do:
  1. Go into the main OpenFOAM folder of 1.6-ext:
    Code:
    cd $WM_PROJECT_DIR
  2. Source the file that has ParaView environment information:
    Code:
    . etc/apps/paraview3/bashrc
  3. Go into the third party directory:
    Code:
    cd $WM_THIRD_PARTY_DIR
  4. I got the 64bit version of ParaView 3.98.0:
    Code:
    wget http://www.paraview.org/files/v3.98/ParaView-3.98.0-Linux-64bit-glibc-2.3.6.tar.gz
  5. Unpack and place where it's needed:
    Code:
    mkdir -p $ParaView_DIR
    cd $ParaView_DIR
    tar -xzf $WM_THIRD_PARTY_DIR/ParaView-3.98.0-Linux-64bit-glibc-2.3.6.tar.gz
    mv ParaView-3.98.0-*/* .
    rmdir ParaView-3.98.0-*
  6. Now it's time to hack the paraFoam script:
    Code:
    sed -i -e 's=\.OpenFOAM=\.foam=' $WM_PROJECT_DIR/bin/paraFoam
  7. Another hack is also need to the paraFoam script, but this one has to be manual. Edit the file "$WM_PROJECT_DIR/bin/paraFoam" and place the code in bold right after the first comment block:
    Code:
    # Description
    #     start paraview with the OpenFOAM libraries
    #
    #------------------------------------------------------------------------------
    paraview3=`$WM_PROJECT_DIR/bin/foamEtcFile apps/paraview3/bashrc` \
        && . $paraview3
    unset paraview3
    
    usage() {
And I think that's all! It's ready to be used!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 13, 2013, 20:37
Default
  #36
Senior Member
 
Join Date: Jul 2011
Posts: 120
Rep Power: 15
haze_1986 is on a distinguished road
Hi Bruno, after doing this. paraFoam and paraview commands still return the 3.12.0 version that I have made based on http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html

I am not sure if it is because I have several versions of OF whereas the instructions you gave are only for just 1.6ext only
haze_1986 is offline   Reply With Quote

Old   January 14, 2013, 05:03
Default
  #37
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Haze,

Well, then it's all on your side from now on!
The instructions on that page are a bit ambiguous, because at the beginning it talks about following a set of instructions and later on it talks about another set of instructions, so I don't know what needs fixing.
You can run the following command to help you diagnose where the problem is:
Code:
echo $PATH
You probably will see two paths to different ParaView installations. The first that comes up is the one used.

Best regards and good luck!
Bruno
__________________
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] How to view openfoam results in paraview Marineboy ParaView 9 June 19, 2019 22:16
[OpenFOAM] View grid coordinates in Paraview ozzythewise ParaView 3 June 6, 2017 05:12
[General] Paraview User defined view prapanj ParaView 3 January 3, 2014 21:54
[OpenFOAM] ParaView 3.6.1 & 3.7.0: Can't view STL files johannes ParaView 2 December 3, 2009 15:07
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 10:23.