CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] paraFoam command not working (installed openFoam from source + its Third-party) (https://www.cfd-online.com/Forums/openfoam-installation/240984-parafoam-command-not-working-installed-openfoam-source-its-third-party.html)

manle0312 February 3, 2022 09:16

paraFoam command not working (installed openFoam from source + its Third-party)
 
Hello all,
I pulled the source codes for openFoam and Third-party here:
https://github.com/OpenFOAM
I picked the non dev version, so OpenFOAM-9 and ThirdParty-9. My system is Arch Linux.

I installed OpenFOAM successfully (compile + source the path in bashrc) This is because I tested with the lid driven cavity case and blockMesh + icoFOAM command works and I do have some data files, ready to plot.

For ThirdParty-9, I also compile successfully by following:

https://openfoam.org/download/source...arty-software/

After installation, I am able to type "paraview" and Paraview launches.

Now, OpenFOAM also comes with paraFoam command. When I type "paraFoam", I got error saying "official reader for OpenFOAM does not exist on your system". It also prompts me to try
Code:

paraFoam -built in
.

When I tried
Code:

paraFoam -built in
, paraView launches. Is
Code:

paraFoam
supposed to launch paraView? Not sure why it works with the suggested
Code:

paraFoam -builtin
and not a normal
Code:

paraFoam
.

I use the
Code:

which
command on both paraFoam and paraview, and I do have both of them on my system. They are just at different locations.


Any help is appreciated.

olesen February 6, 2022 04:23

https://discourse.paraview.org/t/i-w...n-should-i-use
https://develop.openfoam.com/Develop...raview-plugins

lxufeishi April 2, 2022 07:18

Hello,

After loading the openFoam environment, check the paraview directory:
Code:

echo $ParaView_DIR
Make sure your paraview is installed in the same path.
Otherwise, make a soft link from your installation path (probably in ThirdParty-9/build/.../paraview.../) to $ParaView_LIB_DIR:
Code:

ln -s YOUR_PATH $ParaView_LIB_DIR
Then you can use paraFoam

Cheers,


All times are GMT -4. The time now is 09:17.