Installation/Outdated/Howto install OpenFOAM-1.6.x (git repository version)

From OpenFOAMWiki
< Installation‎ | Outdated
Revision as of 03:11, 3 September 2009 by Hoogs (Talk | contribs)

Note that this howto applies to downloading and compiling openfoam from the git (development) repository. To install the binary version please see the instructions at http://www.opencfd.co.uk/openfoam/linux.html

1 Instructions

1.1 Unpacking

To get the sources you will need to do the following

cd ~/OpenFOAM/
git clone http://repo.or.cz/r/OpenFOAM-1.6.x.git/
cd OpenFOAM-1.6.x
git pull

You will also need to install the ThirdParty source, from http://www.opencfd.co.uk/openfoam/linux.html, make sure you get the right version (ie 32 or 64 bit)

To install this you need to unpack this file in the OpenFOAM directory (the code below assumes that the tar file is in ~/OpenFOAM/

cd ~/OpenFOAM/
tar -zxf ThirdParty-1.6.General.gtgz

1.2 Set-up

Before compiling you will need to set up the openfoam environment. Firstly - set wmake to use the system compiler

in ~/OpenFOAM/OpenFOAM-1.6.x/etc/settings.sh change the line (line no 98)

compilerInstall=OpenFOAM

to

compilerInstall=System

Next source the OF settings

. ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc

Your session should now be set up to run OF-1.6 (but there won't be anything to run yet)

1.3 Compiling

Next step is to compile OF.

Set the number of processors to use, in this case 4

export WM_NCOMPPROCS=4

Compile the ThirdParty stuff

cd ~/OpenFOAM/
ln -s ThirdParty-1.6 ThirdParty-1.6.x
cd ThirdParty-1.6.x
./Allwmake

Assuming you have no errors, we can now compile OpenFOAM re-source the settings (to pick up newly created directories)

cd ~/OpenFOAM/OpenFOAM-1.6.x
. etc/bashrc

Then compile away

./Allwmake

When it finishes (hopefully) you should have a completely working installation.

2 User experiences

2.1 x86_64

2.1.1 OpenSuSE

1.6.x on 11.1 |