Difference between revisions of "Installation/Outdated/Howto install OpenFOAM-1.6.x (git repository version)"
Tsomerville (Talk | contribs) (Undo revision 8835 by Tsomerville (Talk)) |
(Added user experience section) |
||
Line 1: | Line 1: | ||
'''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 http://www.opencfd.co.uk/openfoam/linux.html] ''' | '''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 http://www.opencfd.co.uk/openfoam/linux.html] ''' | ||
− | == Unpacking == | + | =Instructions= |
+ | |||
+ | ==Unpacking== | ||
To get the sources you will need to do the following | To get the sources you will need to do the following | ||
Line 20: | Line 22: | ||
</pre> | </pre> | ||
− | == Set-up == | + | ==Set-up== |
Before compiling you will need to set up the openfoam environment. Firstly - set wmake to use the system compiler | Before compiling you will need to set up the openfoam environment. Firstly - set wmake to use the system compiler | ||
Line 39: | Line 41: | ||
Your session should now be set up to run OF-1.6 (but there won't be anything to run yet) | Your session should now be set up to run OF-1.6 (but there won't be anything to run yet) | ||
− | == Compiling == | + | ==Compiling== |
Next step is to compile OF. | Next step is to compile OF. | ||
Line 68: | Line 70: | ||
When it finishes (hopefully) you should have a completely working installation. | When it finishes (hopefully) you should have a completely working installation. | ||
+ | |||
+ | =User experiences= | ||
+ | |||
+ | ==x86_64== | ||
+ | ===OpenSuSE=== | ||
+ | [[User:Hoogs/Installation#1.6.x|1.6.x on 11.1]] | |
Revision as of 02:11, 3 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
Contents
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.