CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Can different OpenFOAM versions share the same ParaView? (https://www.cfd-online.com/Forums/openfoam-installation/120327-can-different-openfoam-versions-share-same-paraview.html)

kiddmax July 4, 2013 10:19

Can different OpenFOAM versions share the same ParaView?
 
Dear all,

There are two versions OpenFOAM in my computer, OpenFOAM-2.1.1 and OpenFOAM2.2. When I turn on OpenFOAM-2.1.1 version, I can use ParaView(ParaFoam) to do post-processing. While I switch to OpenFOAM-2.2, I can not use ParaFoam, and it says

'FATAL ERROR: ParaView reader module libraries do not exist
Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

I can not see the ParaView folder under openfoam-2.2/ThirdParty/, but there is in openfoam-2.1/ThirdParty.

So my question is How can I use shared paraView for both versions?

Best regards,
Ye

akidess July 5, 2013 04:30

The easiest way in my opinion is to not use paraFoam, but use paraview with the native reader instead. All you have to do is create an empty *.foam file in the case directory, and you will be able to open it with paraview.

wyldckat July 7, 2013 08:25

Greetings to all!

To complement Anton's response: http://www.cfd-online.com/Forums/ope...tml#post425147 post #4

In addition, it is possible to use the same custom build version for both installations, if you follow these steps (note: I haven't tested them yet):
  1. First activate OpenFOAM 2.1.1 shell environment in a new terminal.
  2. Then run:
    Code:

    echo $ParaView_DIR
    Make a note of the output.
  3. Activate the OpenFOAM 2.2.0 shell environment in another new terminal.
  4. Now use the following command:
    Code:

    ln -s other_paraview_full_path $ParaView_DIR
    Where "other_paraview_full_path" is the path given in step #2.
  5. Now follow the instructions given by paraFoam, in the terminal that has got 2.2.0:
    Code:

    cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
    ./Allwclean
    ./Allwmake

  6. And it should be ready to go!
Best regards,
Bruno

kiddmax July 8, 2013 02:21

Dear Anton and Bruno,

Many thanks for your help. Now I can use Paraview in OpenFOAM 2.2.0.

Thank you!

Best regards,
Ye

leofev July 23, 2021 09:20

Quote:

Originally Posted by akidess (Post 437931)
The easiest way in my opinion is to not use paraFoam, but use paraview with the native reader instead. All you have to do is create an empty *.foam file in the case directory, and you will be able to open it with paraview.

I am running cases on amazon servers and viewing the results on my own PC. The two versions of openFOAM are different, and it wouldn't allow me to use paraFoam because the headers were different. Creating an empty empty.foam file, opening that in paraview and skipping to last timestep worked! No idea why. But cheers


All times are GMT -4. The time now is 11:40.