runTimePostProcessing functionality is not available in precompiled packages of v1912 and v2006.
I made a note how to compile OFv1912 with runTimePostProcessing.
The same way as v1912 gave me no error during compilation. However, runTimePostProcessing feature can not effective. The problem is the place where the compiled library is stored, I think.
Refs
ThirdParty Compilation
ParaView
cd $WM_THIRD_PARTY_DIR
makeParaView
You can build ParaView 5.6.3, including with the ability to use Python and MPI. Options are same as explained here at OpenFOAM WiKi.
It may be easy if you use a script like this example provided in a ThirdParty directory.
VTK
Check the VTK version with the following command.
cat ParaView-v5.6.3/VTK/CMake/vtkVersion.cmake
If the version is 8.2.0, create a link with the name of VTK-8.2.0.
ln -s ParaView-v5.6.3/VTK/ VTK-8.2.0
Now, compile the VTK.
makeVTK
You can build VTK with mpi and other options. It may be easy if you use a script like this example provided in a ThirdParty directory.
OpenFOAM v2006
Then, prepare for the OF compilation.
wmRefresh
cd $WM_PROJECT_DIR
export ParaView_DIR=$WM_THIRD_PARTY_DIR/platforms/linux64Gcc/ParaView-5.6.3
export VTK_DIR=$WM_THIRD_PARTY_DIR/platforms/linux64Gcc/VTK-8.2.0
Finally, compile OpenFOAM-v2006.
foam
./Allwmake -j -s -l
Test
You can check the functionality with tutorials/incompressible/simpleFoam/windAroundBuildings.
You will get the error message like this librunTimePostProcessing.so: cannot open shared object file: No such file or directory
trouble shooting
OpenFOAM compilation create files like librunTimePostProcessing.so
in the directory $WM_PROJECT_DIR/platforms/linux64GccDPInt32Opt/lib/lib
.
Should the librunTimePostProcessing.so
file be in the parent directory $WM_PROJECT_DIR/platforms/linux64GccDPInt32Opt/lib
?
If I copy the following three files into $WM_PROJECT_DIR/platforms/linux64GccDPInt32Opt/lib
, runTimePostProcessing function works perfectly.
librunTimePostProcessing.so
librunTimePostProcessing.so.8
librunTimePostProcessing.so.8.2.0