CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   New openfoam installation (

fivos March 31, 2009 04:41

New openfoam installation
Hi everyone,
I would like to use OpenFoam for fluid modelling. Unfortunately I am new to linux and I have just made a new installation of the Ubuntu 8.10 64-bit. I am trying to find how exactly to install OpenFoam, but the installation guide in the openfoam web page ( is not very detailed. I' ve read several other guides but I still feel confused. Can someone who has installed it succesfully, please explain me the exact procedure of the installation? I have downloaded the 64-bit version of the openfoam and third party software. What else do I need to download? Also where can I find the Qt library 4.3.x.? In synaptic I only found the Qt4.4. Is there any detailed guide on the internet?
Any help will be appreciated.

santos March 31, 2009 05:26

Hi Fivos,

1 - Create the OpenFOAM main directory:
mkdir ~/OpenFOAM

2 - Unpack OpenFOAM-1.5.General, OpenFOAM-1.5.linux64, ThirdParty.General and ThirdParty.linux64 (in this order):
cd ~/OpenFOAM
tar xzf OpenFOAM-1.5.General.gtgz
tar xzf OpenFOAM-1.5.linux64GccDPOpt.gtgz
tar xzf ThirdParty.General.gtgz
tar xzf ThirdParty.linux64Gcc.gtgz

3 - Edit your ~/.bashrc file:
gedit ~/.bashrc
<add this at the bottom of the file>
. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
<save the file and exit>

4 - Source the updated bashrc file:
. ~/.bashrc

5 - Test your OpenFOAM installation:
cd icoFoam/cavity

Jose Santos

fivos March 31, 2009 14:18

Dear Jose Santos,
Could you please be more specific at the 4th step (4 - Source the updated bashrc file:
. ~/.bashrc)? How can I do that ?
First of all the bashrc file I have to modify is located at ~/OpenFOAM/OpenFOAM-1.5/etc
is that correct? After modifying that file I typed the command you mentioned
(. ~/.bashrc) but it does nothing, it says No such file or directory.
Any ideas for that?

Thanks in advance.

louisgag March 31, 2009 15:06


You do not have to edit the ~/OpenFOAM/OpenFOAM-1.5/etcbashrc file


3 - Edit your ~/.bashrc file:
gedit ~/.bashrc
<add this at the bottom of the file>
. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
<save the file and exit>
In ubuntu 8.10 you'll have to actually create the ~/.bashrc file

then restart the terminal and run foamInstallationTest to check for missing software

have fun


sushant April 1, 2009 03:19

About Qt: you shouldn't worry about 4.4, I was able to successfully build and run Paraview (the bundled version) even with Qt 4.4.3. When you run paraFoam you'll come to know whether Paraview is up and running fine. :)


fivos April 1, 2009 03:58

Thanks everyone I installed it (the foam installation test doesnt give errors, so I hope it is ok).

All times are GMT -4. The time now is 18:13.