Difference between revisions of "Installation/Outdated/Howto install OpenFOAM-1.6.x (git repository version)"
|Line 59:||Line 59:|
Revision as of 12:36, 2 September 2009
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
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
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)
Next source the OF settings
Your session should now be set up to run OF-1.6 (but there won't be anything to run yet)
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 ./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
When it finishes (hopefully) you should have a completely working installation.