CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Thumbs up Successful Installaton Of OpenFOAM-1.6 and Paraview in Ubuntu 9.04 (http://www.cfd-online.com/Forums/openfoam-installation/67463-thumbs-up-successful-installaton-openfoam-1-6-paraview-ubuntu-9-04-a.html)

AlanR August 15, 2009 17:48

Thumbs up Successful Installaton Of OpenFOAM-1.6 and Paraview in Ubuntu 9.04
 
http://www.cfd-online.com/Forums/ima...tation_pos.gif

After many attempts over the past few weeks, I managed to successfully install OpenFOAM-1.6 and Paraview 3.6.1. I have managed to learn a fair amount about linux along the way. Here's what worked for me: maybe it will save some time for someone else...

First, the OpenFOAM installation instructions in the README file work consistently. The only problem I had on a clean installation of Ubuntu 9.04 (32 bit) was with permissions. This fixed it:
http://http://www.cfd-online.com/Forums/openfoam-installation/67198-openfoam-1-6-permissions-ubuntu-9-04-a.htm Post 2

I have not had problems getting the foamInstallationTest to check out, or running blockmesh and icoFoam on the lid-driven cavity flow tutorial.

ParaView was more of a challenge. After many attempts and reading a lot of posts, I found the installParaView script by Jure.
http://www.cfd-online.com/Forums/ope...ntu-9-04-a.htm Post 58

Before you go off and run the script, I had the problem described in Post 61. I fixed the problem by following Post 66 and recompiling Paraview following the README file instructions (below). Compiling Paraview takes a long time - on the order of 5 hours for the old desktop I'm currently using, so be sure to add the path in Post 66, and make sure you have the correct version of qmake, cmake and gcc before you start. To check for each, us the command qmake --version, cmake --version and gcc --version., and to check the path, echo $PATH.

Compiling Paraview 3.6.1 and the PV3FoamReader module


  • cd $WM_THIRD_PARTY_DIR
  • rm -rf paraview-3.6.1/platforms
  • makeParaView
  • cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
  • ./Allwclean
  • ./Allwmake
Good luck. Thanks to those who helped me, and see you all on other posts. When I get a new 64 bit system, I will probably be back to the Installation forum. :D
AlanR

Of course, I managed to write this in the wrong forum...

http://www.cfd-online.com/Forums/ope...tu-9-04-a.html

Nickul August 16, 2009 19:03

Well I'll have to join you and say that I have successfuly got OpenFOAM 1.6 running on Ubuntu 9.04 , with a bit of help from you guys. Interestingly paraFoam has worked fine for me, I think, having just completed the lid driven tutorial the mesh displays fine.

I was about to say I too installed OpenFOAM on a clean system but I didn't. I was messing around with Paraview first before I came to install OpenFOAM and happened to install an older version, 3.2 using Synaptic..... so perhaps this allievated some troubles??

(this is on the Core i7 chipset , with 64bit Ubuntu)

athlonshi August 18, 2009 22:47

I couldn't open the links
 
Alan:
For some reason I could not open the links in your post. It seems the pages are missing.
Could you please indicate the title of the post so that I can search? Thanks!
Yu

taufiq August 19, 2009 22:42

He refer to this thread:
http://www.cfd-online.com/Forums/ope...tu-9-04-a.html

and this thread:
OpenFOAM Install Script

For me Installation of OpenFoam-1.6 and ParaView on Ubuntu 9.04 is pretty straight forward, i documented the process in my labs website here.

athlonshi August 20, 2009 10:06

Thanks for your reply!
Yu

nanogecko September 20, 2009 10:21

Quote:

Originally Posted by taufiq (Post 226897)
He refer to this thread:
http://www.cfd-online.com/Forums/ope...tu-9-04-a.html

and this thread:
OpenFOAM Install Script

For me Installation of OpenFoam-1.6 and ParaView on Ubuntu 9.04 is pretty straight forward, i documented the process in my labs website here.

Taufiq. I used the instructions on your website. Worked perfectly. Thank you for that.

AlanR September 21, 2009 01:29

Clean Install
 
I decided to use an old laptop for OpenFoam. I installed Ubuntu 9.04, downloaded and installed OF 1.6 and ran the foamInstallationTest. Next, I used Synaptic to search and install libqt4-dev and build essential. I let Synaptic update and install everything. After that, I ran the cavity tutorial and paraFoam opened ParaView. ParaView looks better with Qt 4.5 - the screen fonts all work correctly.
So, before trying any of the scripts, try it the easy way (following the instructions in the README file). If ParaView doesn't work, then the scripts are very helpful.

Alan

taufiq September 23, 2009 07:29

Glad it helped you nanogecko :)

Caltech Brian December 18, 2009 12:14

Quote:

Originally Posted by AlanR (Post 226471)
http://www.cfd-online.com/Forums/ima...tation_pos.gif

After many attempts over the past few weeks, I managed to successfully install OpenFOAM-1.6 and Paraview 3.6.1. I have managed to learn a fair amount about linux along the way. Here's what worked for me: maybe it will save some time for someone else...

First, the OpenFOAM installation instructions in the README file work consistently. The only problem I had on a clean installation of Ubuntu 9.04 (32 bit) was with permissions. This fixed it:
http://http://www.cfd-online.com/Forums/openfoam-installation/67198-openfoam-1-6-permissions-ubuntu-9-04-a.htm Post 2

I have not had problems getting the foamInstallationTest to check out, or running blockmesh and icoFoam on the lid-driven cavity flow tutorial.

ParaView was more of a challenge. After many attempts and reading a lot of posts, I found the installParaView script by Jure.
http://www.cfd-online.com/Forums/ope...ntu-9-04-a.htm Post 58

Before you go off and run the script, I had the problem described in Post 61. I fixed the problem by following Post 66 and recompiling Paraview following the README file instructions (below). Compiling Paraview takes a long time - on the order of 5 hours for the old desktop I'm currently using, so be sure to add the path in Post 66, and make sure you have the correct version of qmake, cmake and gcc before you start. To check for each, us the command qmake --version, cmake --version and gcc --version., and to check the path, echo $PATH.

Compiling Paraview 3.6.1 and the PV3FoamReader module


  • cd $WM_THIRD_PARTY_DIR
  • rm -rf paraview-3.6.1/platforms
  • makeParaView
  • cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
  • ./Allwclean
  • ./Allwmake
Good luck. Thanks to those who helped me, and see you all on other posts. When I get a new 64 bit system, I will probably be back to the Installation forum. :D
AlanR

Of course, I managed to write this in the wrong forum...

http://www.cfd-online.com/Forums/ope...tu-9-04-a.html

AlanR,

I am running Ubuntu 9.04 and my makefile is generating an internal compiler error on wmkdep. Any clues?

Brian

-----
gcc -m32 -Wall -O3 -fPIC dirToString.c -o /home/brian/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linuxGcc/dirToString
flex wmkdep.l
gcc -m32 -Wall -O3 -fPIC lex.yy.c -o /home/brian/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linuxGcc/wmkdep
lex.yy.c:1393: warning: ‘yyunput’ defined but not used
lex.yy.c:1436: warning: ‘input’ defined but not used
wmkdep.l: In function ‘yy_scan_bytes’:
wmkdep.l:463: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions
----

gcc version: 4.3.3


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