I’m developing some scripts to automate our post processing of OpenFOAM-5.0 simulations. The script should be running using pvbatch without opening the GUI.
As reader we use PVFoamReader distributed with OpenFOAM, since we have particles and the new barycentric tracking method in OpenFOAM is not supported in the OpenFOAMReader which comes with Praview.
In the paraview GUI the PVFoamReader is loaded automatically and additionally it is possible to load the reader in the python shell.
In pvbatch and pvpython PVFoamReader is not loaded automatically, when I try to load it with:
LoadPlugin(’/opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/paraview-5.5/libPVFoamReader_SM.so’, remote=False, ns=globals())
I got the following error:
ERROR: In /opt/OpenFOAM/ThirdParty-dev/ParaView-5.5.0/ParaViewCore/ClientServerCore/Core/vtkPVPluginLoader.cxx, line 391
vtkPVPluginLoader (0x55fd904a83c0): /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/paraview-5.5/libPVFoamReader_SM.so: undefined symbol: _ZN12pqRenderView16staticMetaObjectE
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/ParaView-5.5.0/lib/python2.7/site-packages/paraview/simple.py", line 1777, in LoadPlugin servermanager.LoadPlugin(filename, remote) File "/opt/OpenFOAM/ThirdParty-dev/platforms/linux64Gcc/ParaView-5.5.0/lib/python2.7/site-packages/paraview/servermanager.py", line 2284, in LoadPlugin raise RuntimeError ("Problem loading plugin %s" % (filename)) RuntimeError: Problem loading plugin /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt32Opt/lib/paraview-5.5/libPVFoamReader_SM.so
Can someone please tell me what the problem is?
I know, that the reader comes with OpenFoam, but this issue is still paraview related.