Supplementary ParaView/OpenFOAM reader modules not found by paraFoam when compiling from source
Summary
When compiling OpenFOAM v2006 and ParaView 5.6.3 from source, the PVFoamReader and PVblockMeshReader modules are not installed to the $PV_PLUGIN_DIR directory specified in etc/config.sh/paraview. When paraFoam is run it gives the following error message:
Invalid $PV_PLUGIN_PATH and -plugin-path= not defined
No supplementary ParaView/OpenFOAM reader modules
Using builtin reader: paraFoam -vtk
Created temporary 'pitzDaily.foam'
before defaulting to the native reader instead. This means that the functionality of the supplementary reader modules cannot be used.
Steps to reproduce
The following is a list of commands to compile OpenFOAM v2006 from source in Ubuntu 18.04 LTS:
sudo apt-get update
sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev \
libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev \
qt5-default libqt5x11extras5-dev libqt5help5 qtdeclarative5-dev qttools5-dev \
libqtwebkit-dev freeglut3-dev libqt5opengl5-dev texinfo \
libscotch-dev libcgal-dev python python-dev libglu1-mesa-dev
mkdir $HOME/OpenFOAM && cd $HOMEOpenFOAM
wget https://sourceforge.net/projects/openfoam/files/v2006/OpenFOAM-v2006.tgz
wget https://sourceforge.net/projects/openfoam/files/v2006/ThirdParty-v2006.tgz
tar -xzf OpenFOAM-v2006.tgz -C $HOME/OpenFOAM && tar -xzf ThirdParty-v2006.tgz -C $HOME/OpenFOAM
source $HOME/OpenFOAM/OpenFOAM-v2006/etc/bashrc WM_LABEL_SIZE=64
cd $WM_THIRD_PARTY_DIR
export QT_SELECT=qt5
./makeParaView -mpi -python2 -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1
ln -s ParaView-v5.6.3/VTK/ VTK-8.2.0
./makeVTK -mpi
wmRefresh
cd $WM_PROJECT_DIR
./Allwmake -j > log.make 2>&1
mkdir -p $FOAM_RUN
Example case
What is the current bug behaviour?
Performing the standard post-compilation steps:
cd $FOAM_RUN
cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily ./
cd pitzDaily
blockMesh
simpleFoam
followed by
paraFoam
gives the error listed in the summary above.
What is the expected correct behavior?
The expected behaviour is that the supplementary PVFoamReader module is used and the following message is printed to the terminal
Created temporary 'pitzDaily.OpenFOAM'
Relevant logs and/or images
Environment information
- OpenFOAM version : v2006
- Operating system : Ubuntu 18.04 LTS
- Hardware info : -
- Compiler : gcc
Possible fixes
I fixed this issue as follows:
cd $FOAM_LIBBIN
ln -s lib/paraview-5.6/ .
ln -s lib/libvtkPV* .
as it appears that paraview-5.6/libParaFoamBlockReader.so, paraview-5.6/libParaFoamReader.so, libvtkPVblockReader-pv5.6.so, libvtkPVFoamCommon-pv5.6.so and libvtkPVFoamReader-pv5.6.so are located in $FOAM_LIBBIN/lib and not $FOAM_LIBBIN itself.