Successful Installaton Of OpenFOAM-1.6 and Paraview in Ubuntu 9.04
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
AlanR |
Quote:
I am new to linux and have been attempting for the last few weeks to complete the OpenFOAM-1.6 installation on Ubuntu 9.04. I first attempted to follow the README file as mentioned, and then tried various installation guides I found on other sites, but with no luck. I have downloaded the "___.gtgz" files, and used the "tar" command to extract them. But, then I believe I am incorrectly completing steps 2 and 4. I would greatly appreciate if you could offer any additional comments on getting OpenFOAM installed. Thanks. |
Hi Jason,
Where do you exactly get stuck? Do you get error messages and if so, what do they say? Cheers, Gijs |
Quote:
After some searching online, I came across this guide: http://energy.tf.itb.ac.id/index.php...904?format=pdf On step "9" I try to update the environment variables using the listed command. After doing this I get the following message in my terminal. "Warning in /home/jason/OpenFOAM/OpenFOAM-1.6/etc/settings.sh: Cannot find /home/jason/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux installation. Please install this compiler version or if you wish to use the system compiler, change the 'compilerInstall' setting to 'System' in this file " I was unsure how to install that compiler version, so I edited the "settings.sh" file so that line 98 was set to 'System'. I thought this worked as I didn't receive any more errors. But, when I attempt step "14" to test a tutorial file, I receive this error: bash: blockMesh: command not found I feel I am overlooking something easy. Thanks! |
Jason,
Do you have a 32 bit or 64 bit processor? My instructions are for a 32 bit. I haven't attempted installing OpenFOAM 64 bit yet. I think there was a problem with the ThirdParty files. Gcc 4.3.3 is one of the programs that gets installed in the ThirdParty directory. You might want to delete and reinstall the ThirdParty General and binaries. If you are using a 64 bit machine, there are posts with specific instructions. They are somewhat different than the 32 bit. If you are using a 32 bit, I suggest you go back to the installation script files by Jure. You can either run them, or just read through them and do the steps yourself. There is a script for installing the OpenFOAM files and a second one for Paraview. Good luck, Alan |
Hi Jason,
Yes, it might be that settings.sh cannot find /home/jason/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux, because it is actually /home/jason/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64 or /home/jason/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux-64 :). Rgds, Gijs |
Hey.
If it is any help to you, I've compiled my way of installing OpenFOAM on Ubuntu 9.04 into a script (link here) which seems to work. Maybe it can help/inspire you in solving your problem (?) Cheers, Mads |
Quote:
Yes, I am using a 64-bit machine. I have been attempting to run it through a Sun VirtualBox just to get the basics of the software before doing a full Linux install on my pc. |
Quote:
|
It seems I am actually running the 32-bit version of Ubuntu. I made a mistake in the file I installed on the virtualbox. I have been trying to run through the posted script, after it didn't load correctly I started manually copy-pasting each line into the terminal. I am getting the following message:
jason@jason-laptop:~$ git clone git://repo.or.cz/OpenFOAM-1.6.x.git Initialized empty Git repository in /home/jason/OpenFOAM-1.6.x/.git/ repo.or.cz[0: 62.24.64.27]: errno=Connection timed out fatal: unable to connect a socket (Connection timed out) I am guessing this is attempting to connect to a site that is no longer still active. |
I finally got OpenFOAM successfully installed, but I am afraid to admit what my issue was :). Thanks for the help everyone!
|
So, just for the record, what was the issue? :)
|
Oops, I am a bit late here. Answer to the above question about 32/64 bit. Yes the script was only for 32 bit. I made a new one for 64 bit which I haven't been able to test, though.
32 bit install script 64 bit install script /Mads |
Quote:
I thought I downloaded and installed the 64-bit version of Ubuntu on my emulator, so I proceeded to attempt the 64-bit installation of OpenFOAM. In reality I actually installed the 32-bit version of Ubuntu... apparently 64-bit software is not compatible with a 32-bit OS ;). |
I use ubuntu 8.10, 32 bit in my laptop
can this script installing OF-1.6 Thanks. |
Hamcer,
have you tried my script on Ubuntu 8.10? /Mads |
hello Mads,
yes it workes fine, but i have an another question , i can't use the python shell in paraview, it said : not shell python available, have u an idea? Thanks |
Hi Hamdi.
No, I am not sure about that one. A long-shot-solution, if you haven't installed python yet (check with the command: which python) is to install python (duh! :-) ): sudo apt-get install python but if it is some kind of binding between paraview and python that doesn't work, I don't know the solution. /Mads |
Quote:
Bernhard |
Thank you Bernhard for this repply,
I can use the python shell in paraview given by ubuntu synaptyc, but i loose paraFoam which load the openFoam tutorials (examples). In the paraview given with openFoam i keep paraFoam, but i can't use python shell in it, if you have the solution , tel me in details please since I'm not an expert in linux. thank you again. Nacer. |
Quote:
./makeParaView -python to get python-support. Maybe you'll have to specify the location of the python-library, but I have no Ubuntu so you'll have to ask a fellow Ubuntist |
Hi Bernhard,
I 'll try to do this, thanks again Nacer. |
All times are GMT -4. The time now is 11:59. |