Installation/Outdated/Howto compile OpenFOAM the easy way

From OpenFOAMWiki
< Installation‎ | Outdated
Revision as of 00:23, 5 July 2008 by Alberto (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1 Introduction

This is a step-by-step guide that tries to make the installation of OpenFOAM development version as easy as possible. It is extracted from the detailed post of Jaswinder Pal Singh that you can read here [1].

1.1 Notes

  • The guide provides information on how to compile the development version of OpenFOAM, without visualization tools. For more information please refer to the detailed compilation procedure.
  • This procedure is known to know with OpenFOAM 1.4.1 on openSUSE 10.3 and 11.0

2 Preparation

  • Open the SVN repository in your browser and find the URL to the most recent version of OpenFOAM-dev available in the repository or of the one you want to install. For example, for OpenFOAM 1.4.1, the URL is
 
http://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.4.1-dev/
  • Use svn checkout command to download the files contained in the repository to your workstation:
 
svn co http://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.4.1-dev/
  • Be sure to have the following directory structure in your home directory:
 
OpenFOAM
 |_OpenFOAM-1.4.1-dev
 |_linux (linux64 for 64 bit systems)
   |_gcc-4.2.1 (or the version of gcc you downloaded)
   |_java (the actual directory name depends on the version of java)