CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   paraFoam command no longer working after upgrading to Ubuntu 13.04 (http://www.cfd-online.com/Forums/openfoam-installation/116946-parafoam-command-no-longer-working-after-upgrading-ubuntu-13-04-a.html)

c_dowd April 29, 2013 08:06

paraFoam command no longer working after upgrading to Ubuntu 13.04
 
Hi all.
I suspect this to be a relatively simple error on my part, but I don't know much about linux and googling hasn't helped me, so i'm a bit lost.

I recently upgraded to Ubuntu 13.04, and now everytime i try and run the paraFoam command I get the following error :

Code:

created temporary 'whirl_0.05r_0.01in_4.0w.OpenFOAM'
bytesRead < bytesLeft
bytesRead 0 bytesLeft512
Read float past end of buffer
Read float past end of buffer
bytesRead < bytesLeft
bytesRead 0 bytesLeft512
Read float past end of buffer
Read float past end of buffer
Warning in:
/build/buildd/paraview-3.98.0/Plugins/SciberQuestToolKit/BOVReader.cxx, line 76
This class requires the MPI runtime, you must run ParaView in client-server mode launched via mpiexec.
Warning in:
/build/buildd/paraview-3.98.0/Plugins/SciberQuestToolKit/BOVReader.cxx, line 76
This class requires the MPI runtime, you must run ParaView in client-server mode launched via mpiexec.
ERROR: In /build/buildd/paraview-3.98.0/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx, line 307
vtkSISourceProxy (0x31f8630): Failed to create vtkAdiosPixieReader. Aborting for debugging purposes.

If i run paraview just on its own it seems to work fine. Is the problem obvious, or is there some other way of getting paraview to read openfoam data without running the paraFoam comman?

c_dowd April 29, 2013 08:24

I've also just tried reinstalling openfoam. I still have the same problem.

wilandlane April 29, 2013 10:03

How did you install paraview?
Code:

sudo apt-get install paraview
or
Code:

sudo apt-get install paraviewopenfoam3120
OpenFOAM.org says "For Ubuntu versions 11.10 and 12.04 only," install paraviewopenfoam3120, and "For Ubuntu version 12.10," install paraview. I initially tried paraview (because I figured that it work work for version >= 12.10); however, it did not work. I then removed paraview and installed paraviewopenfoam3120. This version worked.

The only thing I had to do special was change the mirror it was accessing. OpenFOAM.org says to use:
Code:

VERS=$(lsb_release -cs)
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"

but it was giving me trouble since at the time there was no 13.04 version. To get around this, just hardcode the precise version into the command:
Code:

sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu precise main > /etc/apt/sources.list.d/openfoam.list"
Good luck!

c_dowd April 30, 2013 05:29

Thanks for the help! I don't quite have it working yet though. If anyone else is trying this, remember to type:
Code:

sudo apt-get update
My problem now is that when I try and run the paraFoam command i get the error:
Code:

/opt/openfoam220/bin/paraFoam: 267: /opt/openfoam220/bin/paraFoam: paraview: not found
However, I can't work out which bit in the paraFoam file that it's talking about to change to make it go to the older paraview.

fredo490 April 30, 2013 07:32

With Ubuntu 13 and paraview 3.98.0, I get some crash with 3D mesh.

If someone wants a quick solution:
1) remove paraview 3.98.0 (exp1)
2) download the last paraview binary installer (3.98.1) : http://www.paraview.org/paraview/resources/software.php
3) extract everything to your home folder.
4) add an alias to your bash.
At the end of the file, add something like
Code:

alias para='/home/YourName/ParaView-3.98.1-Linux-64bit/bin/paraview'
so you can launch paraview by typing "para" in your terminal.

Eduard May 18, 2013 11:12

Hello all,

the solution is quite simple. The paraFoam is a script and you can run it with parameters. The paraFoam script file you can find in /opt/openfoam220/bin. Simply start the paraView application with paraFoam -builtin command and the application starts as before.

Usage: ${0##*/} [OPTION] [PARAVIEW_OPTION]
options:
-block use blockMesh reader (uses .blockMesh extension)
-builtin use VTK builtin OpenFOAM reader (uses .foam extension)
-case <dir> specify alternative case directory, default is the cwd
-region <name> specify alternative mesh region
-touch only create the file (eg, .blockMesh, .OpenFOAM, etc)
-touchAll create .blockMesh, .OpenFOAM files (and for all regions)
-help print the usage

I hope it will help you.

Eduard

tariq June 23, 2013 01:19

Hi Eduard,
the solution you have given is quiet simple. But as I'm a new user of OpenFOAM and don't have much idea of Ubuntu, couldn't understand your solution clearly. As you have paraFoam script file can be find in /opt/openfoam220/bin, what to after that? Could you please explain a little bit more? :)

Thanks!
Tariq

tariq June 23, 2013 01:21

Quote:

Originally Posted by c_dowd (Post 423847)
I've also just tried reinstalling openfoam. I still have the same problem.

Hi Cameron,

Is paraFoam running in your computer now? If yes, can you please help me installing it? :(

Eduard June 24, 2013 08:13

Hello Tariq,

Once you have paraView installed (use the installation manual on openFoam page) you normally start the application from terminal window using the command paraFoam (note: you must be in your solved task directory). Unfortunately, this does not work at Ubuntu 13.04. However, if you start the paraView by command "paraFoam -builtin", it starts the paraView and loads your calculated task.

I hope it helps you now.

Eduard

tariq June 24, 2013 08:28

Quote:

Originally Posted by Eduard (Post 435603)
Hello Tariq,

Once you have paraView installed (use the installation manual on openFoam page) you normally start the application from terminal window using the command paraFoam (note: you must be in your solved task directory). Unfortunately, this does not work at Ubuntu 13.04. However, if you start the paraView by command "paraFoam -builtin", it starts the paraView and loads your calculated task.

I hope it helps you now.

Eduard

Hi Eduard,
thank you very much, it's working now! :)


All times are GMT -4. The time now is 21:07.