CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Issues building Paraview/Parafoam for OpenFOAM 1612+:

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 1 Post By sihai
  • 1 Post By fpena
  • 1 Post By NablaDyn
  • 1 Post By Laika
  • 1 Post By saatt
  • 1 Post By petros
  • 1 Post By wyldckat
  • 2 Post By wyldckat
  • 1 Post By ProofByColor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2017, 16:46
Default Issues building Paraview/Parafoam for OpenFOAM 1612+:
  #1
New Member
 
Rui Diogo
Join Date: Jun 2017
Location: Lisbon
Posts: 1
Rep Power: 0
ruisdiogo is on a distinguished road
Hello everyone,

I've been trying to figure out my way around OpenFOAM 1612+ for several days now, (fresh Linux and OpenFOAM user here, so bear with me), so setting up my question will take a while, for which I'd like to apologize in advance.

First things first, this is not a critical issue, though I'm guessing it could come back to bite me in the a** in a few tutorials' time. These are my specs:
- OpenFOAM 1612+
- Ubuntu 16.04 (i686), running out of a Fujitsu Siemens with an intel Pentium Dual-Core

I've followed this installation guide as best as possible:
https://openfoamwiki.net/index.php/I...1612%2B/Ubuntu
The step-by-step description was really helpful, but the problems began as I started to build Paraview (step 9 of the aforementioned guide) [see log in attachment].
Code:
./makeParaView -python -mpi -python-lib /usr/lib/i386-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1
The process starts out OK but just freezes after 20-30min and then I have to force shutdown manually. Another occurrence was my system rebooting without warning and without finishing the build.
Pushing on with the guide, I proceeded to build OpenFOAM. After some trial-and-error, I figured that the core number specification in
Code:
./Allwmake -j 4 > log.make 2>&1
was no good for my setup. Having omitted it, I was able to go through with the install, system checks also good.
Now, as far as I can tell, I've successfully built OpenFOAM (both "blockMesh" and "icoFoam" are running smoothly].
At this point in time, this was my output for running "paraFoam" from the command line:
Code:
rui@rui-AMILO-PRO-V3515:~/OpenFOAM/rui-v1612+/run/tutorials/incompressible/icoFoam/cavity/cavity$ paraFoam

ERROR: ParaView reader module library (PVFoamReader) does not exist
Please build the reader module before continuing:

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

Created temporary 'cavity.foam'
And then nothing.
I tried the recommended solution:
Code:
rui@rui-AMILO-PRO-V3515:~/OpenFOAM/OpenFOAM-v1612+/applications/utilities/postProcessing/graphics/PVReaders$     ./Allwclean
wclean libso vtkPVReaders
wclean libso vtkPVblockMesh
wclean libso vtkPVFoam
rui@rui-AMILO-PRO-V3515:~/OpenFOAM/OpenFOAM-v1612+/applications/utilities/postProcessing/graphics/PVReaders$     ./Allwmake
==> skip build of ParaView plugins
    include directory was for paraview major version 'none'
Which I found weird, but couldn't find anyone else having the same issue out here on the forum, so I disregarded it.
Having no luck with the Paraview recommendations, I decided to build Paraview 5.0.1 directly from the site source (which isn't recommended for Ubuntu systems, as I've read). This worked to a limited extent. This is my output now:
Code:
rui@rui-AMILO-PRO-V3515:~/OpenFOAM/rui-v1612+/run/tutorials/incompressible/icoFoam/cavity/cavity$ paraFoam

ERROR: ParaView reader module library (PVFoamReader) does not exist
Please build the reader module before continuing:

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

Using the native VTK/OpenFOAM reader instead
Created temporary 'cavity.foam'
Which then opens Paraview with the correct case "cavity.foam".
Any thoughts on how to make the build better, or at least sidestep this error message?
Also, and I'm not sure if this is relevant, I haven't been able to correctly reboot or shutdown my system since installing the Ubuntu OS!

Your help is greatly appreciated.

Warm regards.
Attached Files
File Type: gz log.makePV.gz (28.1 KB, 3 views)
ruisdiogo is offline   Reply With Quote

Old   October 19, 2017, 09:10
Default
  #2
New Member
 
Join Date: Aug 2016
Posts: 5
Rep Power: 10
sihai is on a distinguished road
Hi ruisdiogo,

I just reinstall the OpenFOAM v1612+ and I got exactly a same issue with you, all built are fine, as I took post-compilation steps the error occurred, then I tried to access to result folder and paraFoam appeared with same issue in terminal.

Did you solve the problem?

Regards
joshmccraney likes this.
sihai is offline   Reply With Quote

Old   December 15, 2017, 17:19
Default
  #3
New Member
 
Francisco Peņa Gallardo
Join Date: Jun 2016
Posts: 5
Rep Power: 10
fpena is on a distinguished road
I have the same problem building openfoam 1706
joshmccraney likes this.
fpena is offline   Reply With Quote

Old   July 30, 2018, 07:13
Default
  #4
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11
NablaDyn is on a distinguished road
Same with v1806
joshmccraney likes this.
NablaDyn is offline   Reply With Quote

Old   July 31, 2018, 09:55
Default
  #5
New Member
 
Join Date: Jun 2009
Location: Belgium
Posts: 11
Rep Power: 17
Laika is on a distinguished road
Me too... v1806 on Linux Mint

Laika,
still orbiting
joshmccraney likes this.
Laika is offline   Reply With Quote

Old   October 22, 2018, 05:52
Default Yep... v1806 on ubuntu16.04
  #6
New Member
 
Join Date: Mar 2017
Posts: 28
Rep Power: 9
saatt is on a distinguished road

Yep... v1806 on ubuntu16.04
joshmccraney likes this.
saatt is offline   Reply With Quote

Old   October 24, 2018, 12:12
Exclamation
  #7
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8
petros is on a distinguished road
I have the same problem with -v1806 on Ubuntu 18.04.1 LTS.

Can anyone give a piece of advice?

Regards
P.
joshmccraney likes this.
petros is offline   Reply With Quote

Old   October 27, 2018, 13:18
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

Unfortunately I was not able to answer nor look into this anytime sooner and was not able to give an answer to the first two posts. The quick workaround would have been to install the paraview package that comes with Ubuntu, by running this command:
Code:
sudo apt-get install paraview
Then when using "paraFoam", run it with the option "-builtin", for example, like this:
Code:
paraFoam -builtin
This way it will use the ".foam" extension, instead of the ".OpenFOAM" file extension. There are a few limitations with this, but at least you can somewhat make a better use of it, rather than none.

Worse case scenario, you can export the case to VTK format with this command:
Code:
foamToVTK
and then open the files that are inside the VTK folder, by first starting up ParaView with this command:
Code:
paraFoam
As for the more recent posts, namely those referring to OpenFOAM-v1806, please let us know which installation instructions you have followed. Because that way we are able to give you a better guidance on how to fix the issue in your particular situation.

Best regards,
Bruno
Richal Sun likes this.
__________________
wyldckat is online now   Reply With Quote

Old   November 7, 2018, 22:45
Default
  #9
New Member
 
Luke Fitzpatrick
Join Date: Nov 2018
Location: Ontario, Canada
Posts: 2
Rep Power: 0
ProofByColor is on a distinguished road
I'm a v1806 user. I followed instructions from this webpage to download OpenFOAM. OpenFOAM itself works fine with no issues, but I can't get paraview to work. I initially tried to run paraview simply by typing 'paraview' and the terminal told me:

Code:
sudo apt-get install paraview
It installed fine, but now when I type paraview it tells:

Code:
paraview: cannot connect to X server
First thing I tried was on this link where I ran

Code:
apt-get install xvfb
xvfb-run paraview
which told me

Code:
xvfb-run: error: Xvfb failed to start
So it doesn't look like a promising option. I then tried typing paraForm which told me

Code:
ERROR: ParaView reader module library (PVFoamReader) does not exist
Please build the reader module before continuing:

    cd $WM_PROJECT_DIR/applications/utilities/postProcessing/graphics/PVReaders
    ./Allwclean
    ./Allwmake

Using the native VTK/OpenFOAM reader instead
Created temporary 'lpjf54.foam'
paraview: cannot connect to X server
The problem then is that after running ./Allwmake I get

Code:
==> skip build of ParaView plugins
    include directory was for paraview major version 'none'
.

I think that's everything. Tbh I'm currently starting to use WRF and may not even use paraview with it, but I'll likely use it in the future if I play with OpenFOAM some more. Hopefully, there is enough info for you to help!
ProofByColor is offline   Reply With Quote

Old   November 8, 2018, 20:02
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
Quote:
Originally Posted by ProofByColor View Post
I'm a v1806 user. I followed instructions from this webpage to download OpenFOAM.
They mention on that page the following:
Quote:
For GUI-based processing users are recommended to download and use the ParaView Windows native build.
This means that you should download the ParaView version for Windows and install it on Windows.

So after you've installed ParaView, you should follow the example at the bottom of the page you mentioned and then launch ParaView interactively on Windows. Then from within ParaView, menu File->Open, then browse to the folder where the case is located and open the file that ends with ".foam".

This is because X server communications are not easy to enable from within WSL.
pgh and Kummi like this.
__________________
wyldckat is online now   Reply With Quote

Old   November 11, 2018, 14:43
Default
  #11
New Member
 
Luke Fitzpatrick
Join Date: Nov 2018
Location: Ontario, Canada
Posts: 2
Rep Power: 0
ProofByColor is on a distinguished road
Thank you. Everything works fine now.
wyldckat likes this.
ProofByColor is offline   Reply With Quote

Reply

Tags
installation issue, openfoam 1612, parafoam, paraview


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] paraview not runing? (foam extended 3.2 and ubuntu 15.04) Milan2013 OpenFOAM Installation 23 April 20, 2017 06:49
[OpenFOAM.org] OpenFOAM 2.3.0 on CentOS 6.5 entropies OpenFOAM Installation 33 January 4, 2017 06:01
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 15:56
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 11:16
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 05:55


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