Help us understand the problem. What is going on with this article?

Compilation of OpenFOAM v2006 with runTimePostProcessing [trouble and temporary fix]

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした