CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How to install Open Foam 15

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2010, 02:52
Question How to install Open Foam 15
  #1
New Member
 
Madhukar@NAL
Join Date: Mar 2010
Posts: 13
Rep Power: 16
madhukar_nal is on a distinguished road
Hi,
I am eager to learn open Foam..So can anybody tell me...How to install open Foam with procedure...in 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.C.G
madhukar_nal is offline   Reply With Quote

Old   June 8, 2010, 03:42
Default
  #2
New Member
 
Join Date: Apr 2010
Posts: 13
Rep Power: 15
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, 07:13
Default
  #3
New Member
 
Gobinath
Join Date: Apr 2010
Posts: 6
Rep Power: 15
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

cd $HOME/OpenFOAM
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:

$HOME/OpenFOAM/OpenFOAM-1.6/bin/foamInstallationTest
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
blockMesh
icoFoam
paraFoam
Gobinath is offline   Reply With Quote

Old   June 8, 2010, 07:18
Default
  #4
New Member
 
Gobinath
Join Date: Apr 2010
Posts: 6
Rep Power: 15
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

Reply

Tags
open foam

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 05:46.