Skip to content

How to compile and Install OpenFOAM 1.6

April 30, 2011


To get the sources you will need to do the following

cd ~/OpenFOAM/
git clone
cd OpenFOAM-1.6.x
git pull

Step 2:

Download Third party source from

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

Step 3:

In ~/OpenFOAM/OpenFOAM-1.6.x/etc/ change the line (line no 98)




Step 4:

Next source the OF setting by

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

Step 5:

Next step is to compile OF.

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


Compile the ThirdParty stuff

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

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


Thats it. You have done.

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: