CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   paraFoam command gives an error (https://www.cfd-online.com/Forums/openfoam-post-processing/227926-parafoam-command-gives-error.html)

joshmccraney June 14, 2020 18:01

paraFoam command gives an error
 
Hi all

I am running both OpenFOAM 4.1-extend and 6.0 on Ubuntu 18.04. When I run a case via of6 and execute paraFoam, everything works as normal. However, when I run a case via of4 and execute paraFoam, I get the error

Code:

Cannot use ParaView reader module library (PVFoamReader)
The PV_PLUGIN_PATH environment value is not set

Continuing with builtin reader:  paraFoam -vtk

Created temporary 'damBreakFine.foam'
/home/josh/foam/foam-extend-4.1/bin/paraFoam: 324: /home/josh/foam/foam-extend-4.1/bin/paraFoam: paraview: not found

I downloaded of4 here but did not yet execute section 1.3, since I already have paraFoam downloaded. Do I need to follow these instructions? If so, will they inhibit the of6 paraFoam that currently works?

Thanks so much!

olesen June 15, 2020 03:57

What is wrong with using the regular builtin OpenFOAM reader? Apart from some face/cell sets (which you can convert with foamToVTK) it handles things quite well. You may have to skip the 0/ directory if you have lots of #include, code stream etc, but that is to be expected.
The only place where the additional special-purpose readers might be useful is for diagnosing complicated blockMeshDict.
Otherwise I just use the following:
Code:

alias parafoam='touch log.foam; paraview log.foam'

joshmccraney June 15, 2020 11:41

Quote:

Originally Posted by olesen (Post 774425)
What is wrong with using the regular builtin OpenFOAM reader?

When I execute the suggested paraFoam -vtk , which I assume is what you're referring to, I still get the error

Code:

Created temporary 'damBreak.foam'
/home/josh/foam/foam-extend-4.1/bin/paraFoam: 324: /home/josh/foam/foam-extend-4.1/bin/paraFoam: paraview: not found

Quote:

Originally Posted by olesen (Post 774425)
Otherwise I just use the following:
Code:

alias parafoam='touch log.foam; paraview log.foam'

So inputting this at the end of the bashrc will allow paraFoam to work with of4 and of6 in the same manner (after a simulation, simply execute "paraFoam"?).

olesen June 15, 2020 16:53

sudo apt-get install paraview ?

joshmccraney June 16, 2020 17:34

Quote:

Originally Posted by olesen (Post 774639)
sudo apt-get install paraview ?

I have paraview installed (it works with openFoam 6). But it does not work with openFoam 4.

More specifically, at the end of the bashrc file I have
Code:

alias of6='source /opt/openfoam6/etc/bashrc'
alias of4='source $HOME/foam/foam-extend-4.1/etc/bashrc'

When I execute " of4 " the case runs, but executing " paraFoam " gives the the aforementioned errors, and nothing loads. However, if after running I open a new terminal, execute " of6 " and then execute " paraFoam " everything works. I'd like to be able to run paraFoam without having to open a new terminal everytime.

olesen June 16, 2020 18:31

Quote:

Originally Posted by joshmccraney (Post 774815)
I have paraview installed (it works with openFoam 6). But it does not work with openFoam 4.


I meant that you can use your system paraview. Eg, on my ubuntu system
Code:

$ which paraview
/usr/bin/paraview

Or download a binary from https://www.paraview.org/download/

Do neither of these work?

joshmccraney June 16, 2020 22:07

Quote:

Originally Posted by olesen (Post 774816)
I meant that you can use your system paraview. Eg, on my ubuntu system
Code:

$ which paraview
/usr/bin/paraview

Or download a binary from https://www.paraview.org/download/

Do neither of these work?

This opens paraview but it does not allow me to load the simulation. Any ideas?


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