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

[OpenFOAM.org] How to install ParaView 5 with OpenFOAM-dev or -3.x.x

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By zordiack

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 3, 2016, 06:38
Default How to install ParaView 5 with OpenFOAM-dev or -3.x.x
  #1
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Hi, I just finished installing ParaView 5 for OpenFOAM, so I thought I'd share the installation steps with you (OS is Xubuntu 14.04).

1. cd into $WM_THIRD_PARTY_DIR and get the sources from http://www.paraview.org/download/ (ParaView-v5.0.0-source.tar.gz)

2. Unpack and rename the directory to ParaView-5.0.0

3. Edit file ParaView-5.0.0/CMake/ParaViewDetermineVersion.cmake and comment out lines 41-50 (otherwise source version detection fails, this is also a bug in 4.4.0):

Code:
  if (NOT PARAVIEW_GIT_DESCRIBE)
#    if (EXISTS ${git_command})
#      execute_process(
#        COMMAND ${git_command} describe
#        WORKING_DIRECTORY ${source_dir}
#        RESULT_VARIABLE result
#        OUTPUT_VARIABLE output
#        ERROR_QUIET
#        OUTPUT_STRIP_TRAILING_WHITESPACE
#        ERROR_STRIP_TRAILING_WHITESPACE)
#    endif()
  else()
4. Edit file $WM_PROJECT_DIR/etc/config/paraView.sh line 58 to following:

Code:
export ParaView_VERSION=5.0.0
5. Source $WM_PROJECT_DIR/etc/basrc

6. Now let's compile ParaView 5. For this you can use the existing makeParaView4 script, because it has an option to select custom version. Your taste in ParaView options may be different, so adjust the following command accordingly (mpi and python are optional, run in $WM_THIRD_PARTY_DIR):

Code:
./makeParaView4 -version 5.0.0 -mpi -python -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so
7. After compiling, export the new environmental settings and remember to use your home directory, ParaView compilation should output the correct lines for you once it's finished (you should also add/update these to your $HOME/.bashrc):

Code:
export ParaView_DIR=/home/YOURUSERNAME/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/ParaView-5.0.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-5.0
8. Copy the attached pv5readers.tar.gz into $FOAM_UTILITIES/postProcessing/graphics/, cd into that directory and unpack the archive.

9. Compile the PV5Readers (it will output some warnings, but it compiles at least with gcc-4.8.4):

Code:
cd PV5Readers
wmSET
./Allwclean
./Allwmake
That's it, you should now have ParaView 5 compiled with OpenFOAM readers
Attached Files
File Type: gz pv5readers.tar.gz (48.3 KB, 74 views)

Last edited by zordiack; February 3, 2016 at 15:32.
zordiack is offline   Reply With Quote

 


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 course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
[OpenFOAM] Installation ParaView for Windows version of openFOAM kasra karimi ParaView 14 September 8, 2018 14:06
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
Install openFOAM from with proxy server Dhruval OpenFOAM Installation 3 October 18, 2014 15:38
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 02:32


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