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

Upgrade from 3.12 to 4.1 - PVReader

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2014, 09:04
Question Upgrade from 3.12 to 4.1 - PVReader
  #1
New Member
 
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 12
Yeru is on a distinguished road
Greetings,

I'm using OpenFoam 2.2.0, which originally uses paraView 3.12.
My supervisor recommended me to upgrade to PV 4.1.

Summed up, I have problems with upgrading the Reader plug-in and ./Allwmake complains about the variable ParaView_VERSION still being 3.12.0
(see specific question below)

After installing PV4 via
Code:
sudo apt-get install paraviewopenfoam410
I simply exchanged the directory
Code:
opt/openfoam220/applications/utilities/postProcessing/graphics/PV3Readers
with
[...]/PV4Readers
then ran ./Allwclean, which yielded
Code:
+ wclean libso vtkPV4Readers
wclean vtkPV4Readers
+ PV4blockMeshReader/Allwclean
+ rm -f /opt/openfoam220/platforms/linux64GccDPOpt/lib/libPV4blockMeshReader*
+ rm -rf PV4blockMeshReader/Make
+ wclean libso vtkPV4blockMesh
wclean vtkPV4blockMesh
+ PV4FoamReader/Allwclean
+ rm -f /opt/openfoam220/platforms/linux64GccDPOpt/lib/libPV4FoamReader*
+ rm -rf PV4FoamReader/Make
+ wclean libso vtkPV4Foam
wclean vtkPV4Foam
Now, here's my problem:
Trying to run ./Allwmake - even as root - I only get
Code:
WARN: PV4 readers not building: ParaView_VERSION=3.12.0
And since I already moved the old directory, when typing "paraFoam" in a case directory, I get:

Code:
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
Note: Running "paraview" and then loading the file still works.

Precisely, my question is:
How can I upgrade ParaView from 3.12 to 4.1. while using OpenFOAM 2.2.0 so that even the Readers are upgraded and I can continue loading cases via paraFoam -case <CaseDir>?

Any advice is much appreciated.
Yeru is offline   Reply With Quote

Old   August 30, 2014, 11:56
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 Dominik,

I've moved your post from the other thread: http://www.cfd-online.com/Forums/par...ux-x64-os.html - because that forum is for ParaView in general and not OpenFOAM related.

As for your question:
  1. You can use a more recent version of ParaView. Example instructions are given here: Using the official pre-built ParaView 3.10.1 version with OpenFOAM - Keep in mind to adjust the instructions to your particular installation.
  2. Building the PV4 reader isn't straight forward like that. It requires you to build ParaView from source code, so that you can then build the PV4 plug-in reader. In addition, you will need to use the plug-in from OpenFOAM 2.3.0. You do not need to do this, if you follow the instructions from the previous link.

... Actually, now that I think of it, the easiest solution for you is to use:
Code:
paraFoam -builtin
and/or create an alias command to do this automatically, in your "~/.bashrc" file:
Code:
alias paraFoam='paraFoam -builtin'
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 1, 2014, 06:26
Default
  #3
New Member
 
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 12
Yeru is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
... Actually, now that I think of it, the easiest solution for you is to use:
Code:
paraFoam -builtin
and/or create an alias command to do this automatically, in your "~/.bashrc" file:
Code:
alias paraFoam='paraFoam -builtin'
Best regards,
Bruno
Dear Bruno,
thanks for the advice with adding the '-builtin' option - which works fine!
The alias-command is not working though. Typing 'paraFoam' without the option yields
Code:
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
Anyway. Thanks again!
Dominik

EDIT: The alias command didn't work when there was no .foam-file in the current directory.
After creating it via
Code:
 touch <caseName>.foam
"paraFoam" works fine. - Thanks again!

Last edited by Yeru; September 5, 2014 at 06:14. Reason: Solution added
Yeru is offline   Reply With Quote

Old   September 7, 2014, 15:39
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
Hi Dominik,

It's possible that you used the alias command incorrectly. More detailed information on this and related topics are provided here: http://openfoamwiki.net/index.php/In...with_the_Shell

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 7, 2014, 18:49
Default
  #5
New Member
 
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 12
Yeru is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Dominik,

It's possible that you used the alias command incorrectly. More detailed information on this and related topics are provided here: http://openfoamwiki.net/index.php/In...with_the_Shell

Best regards,
Bruno
Dear Bruno,
although I deeply acknowled your further propositions of a solution: I found my mistake and added an EDIT:

Quote:
Originally Posted by Yeru View Post
EDIT: The alias command didn't work when there was no .foam-file in the current directory.
After creating it via
Code:
 touch <caseName>.foam
"paraFoam" works fine. - Thanks again!
Yeru is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
[OpenFOAM] Paraview 3.12 memory allocation problem while saving animation jgomez ParaView 17 September 14, 2013 17:03
[General] How to install Paraview 4.0.1 on a linux x64 OS ? dhxlxz ParaView 1 September 9, 2013 13:42
Upgrade P4 1.5 to P4 2.6 JJJ FLUENT 3 May 29, 2004 10:30


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