CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

How to install Open Foam 15

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 8, 2010, 01:52
Question How to install Open Foam 15
New Member
Join Date: Mar 2010
Posts: 13
Rep Power: 7
madhukar_nal is on a distinguished road
I am eager to learn open Foam..So can anybody tell me...How to install open Foam with detail.
At present I am working on Gridgen,Gambit,Ansys ICEM, Catia & Fluent, in National aerospace Laboratories-Bangalore...Now I am Planning to get exposure about Open Foam.
So anybody inform me to how to install Open Foam & its directories...
Thanking You,

madhukar_nal is offline   Reply With Quote

Old   June 8, 2010, 02:42
New Member
Join Date: Apr 2010
Posts: 13
Rep Power: 7
samsi is on a distinguished road
Hello, look at the following link: OpenFOAM-1.6 install cookbook Maybe this can help you...
samsi is offline   Reply With Quote

Old   June 8, 2010, 06:13
New Member
Join Date: Apr 2010
Posts: 6
Rep Power: 7
Gobinath is on a distinguished road
OpenFOAM-1.6 Installation on Ubuntu 9.04

OpenFOAM is an opensource Computational Fluid Dynamic Toolbox. The latest release can be found here.

Download OpenFOAM-1.6.General.gtgz , OpenFOAM-1.6.linux64GccDPOpt.gtgz , ThirdParty-1.6.General.gtgz , and ThirdParty-1.6.linux64Gcc.gtgz from download page above (choose your linux platform).

Make OpenFOAM directory on your home directory, using this command in the terminal (LINUX is CasE SensiTiVE!):

mkdir $HOME/OpenFOAM
move all four downloaded files from step 1 into the new directory
in the terminal, move into the new directory

extract all downloaded files using:

tar -xzf OpenFOAM-1.6.General.gtgz
tar -xzf OpenFOAM-1.6.linux64GccDPOpt.gtgz
tar -xzf ThirdParty-1.6.General.gtgz
tar -xzf ThirdParty-1.6.linux64Gcc.gtgz
Change the permission of OpenFOAM folder with these commands; replace (username) with your username

sudo chown -R (username) $HOME/OpenFOAM/
sudo chmod -R 755 $HOME/OpenFOAM/
edit .bashrc file with gedit

sudo gedit $HOME/.bashrc
insert this line to the .bashrc file (there is a dot and a space before the dollar sign, include them!), save, close

. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
back in the terminal, run commands to update the environment variables:

. $HOME/.bashrc
test the installation:

For paraView to work, first you need to install Qt4-Assistant: Applications>>Add/Remove.. then search for Qt4-Assistant, install it
For getting started, make your OpenFOAM user directory from terminal:

mkdir -p $FOAM_RUN/run
Copy the tutorials to your user's run directory

cp -r $WM_PROJECT_DIR/tutorials $FOAM_RUN
Try first example, the incompressible laminar flow in a cavity

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
Gobinath is offline   Reply With Quote

Old   June 8, 2010, 06:18
New Member
Join Date: Apr 2010
Posts: 6
Rep Power: 7
Gobinath is on a distinguished road
Installation of OpenFOAM 1.6 on Ubuntu 9.10

OpenFOAM is another open source CFD software. In order to install OpenFOAM onto Ubuntu 9.10, the following packages are necessary.

cmake g++ flex++ bison python qt4-designer binutils-dev zlib1g-dev

Use apt-get to install them before trying to install and use OpenFOAM.

:/$ sudo apt-get install cmake g++ flex++ bison python qt4-designer binutils-dev zlib1g-dev

A very brief introduction on the compilation

1. Download the related packages, including the source pack and the binary pack. Double precision is recommended.

2. Create a directory OpenFOAM under $HOME (or at other locations if you prefer), move the downloaded packages into it, and then execute

# ship into $HOME/OpenFOAM/
:/$ tar xzvf OpenFOAM-1.6.General.gtgz
:/$ tar xzvf ThirdParty-1.6.General.gtgz
:/$ tar xzvf OpenFOAM-1.6.linuxGccDPOpt.gtgz
:/$ tar xzvf ThirdParty-1.6.linuxGcc.gtgz

3. After the files extracted, source the file OpenFOAM-1.6/etc/bashrc.

# at $HOME/OpenFOAM/
:/$ source OpenFOAM-1.6/etc/bashrc

For convenience, a sentence could be incorporated into the user config file ~/.bashrc to avoid executing the command above manually in the future.

source $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc

4. Compile ParaView. Ship into OpenFOAM/ThirdParty-1.6 and execute

sh makeParaView

5. Link OpenFOAM ParaView reader and ParaView.

:/$ cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
:/$ ./Allwclean
:/$ ./Allwmake
Gobinath is offline   Reply With Quote


open foam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19

All times are GMT -4. The time now is 15:56.