|
[Sponsors] |
[OpenFOAM.org] How to install ParaView 5 with OpenFOAM-dev or -3.x.x |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 3, 2016, 06:38 |
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 |
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() Code:
export ParaView_VERSION=5.0.0 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 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 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 Last edited by zordiack; February 3, 2016 at 15:32. |
|
|
|
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 |