Difference between revisions of "Installation/Outdated/Howto install OpenFOAM-1.6.x (git repository version)"

From OpenFOAMWiki
(Undo revision 8835 by Tsomerville (Talk))
(redirected links to web.archive.org and dropped the duplicate link)
 
(6 intermediate revisions by 4 users not shown)
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] '''
+
{{VersionInfo}} {{Version1.6.x}}
 +
'''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://web.archive.org/web/20091130152116/http://www.opencfd.co.uk/openfoam/linux.html http://www.opencfd.co.uk/openfoam/linux.html (via web.archive.org)] '''
  
== 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 11: Line 14:
 
</pre>
 
</pre>
  
You will also need to install the ThirdParty source, from [http://www.opencfd.co.uk/openfoam/linux.html http://www.opencfd.co.uk/openfoam/linux.html], make sure you get the right version (ie 32 or 64 bit)
+
You will also need to install the ThirdParty source, from [http://web.archive.org/web/20091130152116/http://www.opencfd.co.uk/openfoam/linux.html http://www.opencfd.co.uk/openfoam/linux.html (via web.archive.org)], 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 <tt>~/OpenFOAM/</tt>
 
To install this you need to unpack this file in the OpenFOAM directory (the code below assumes that the tar file is in <tt>~/OpenFOAM/</tt>
Line 20: Line 23:
 
</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 42:
 
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 71:
  
 
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]] |
 +
 +
[[Category:Tutorials]]
 +
[[Category:Installing OpenFOAM - Outdated Instructions]]

Latest revision as of 23:04, 8 May 2016

Valid versions: OF Version 16x.png 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 (via web.archive.org)

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 (via web.archive.org), 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 |