Difference between revisions of "OpenFOAM"

From ArchWiki
Jump to: navigation, search
m (+ i18n)
Line 1: Line 1:
[[Category:Mathematics and science (English)]]
[[Category:Mathematics and science (English)]]

Revision as of 09:36, 23 March 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی


The OpenFOAM® (Open Field Operation and Manipulation) CFD Toolbox is a free, open source CFD software package produced by OpenCFD Ltd. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electromagnetics. It includes tools for meshing, notably snappyHexMesh, a parallelised mesher for complex CAD geometries, and for pre- and post-processing. Almost everything (including meshing, and pre- and post-processing) runs in parallel as standard, enabling users to take full advantage of computer hardware at their disposal.

For more information on OpenFOAM and the OpenFOAM Foundation, please see http://www.openfoam.com and http://www.openfoam.org respectively.

Basic Installation

If you do not plan on doing development tasks with OpenFOAM, there is an updated version of the program available in the AUR at http://aur.archlinux.org/packages.php?ID=27886. For most users, this will be everything needed to get an installation up and running.


Development Installation

For installation of OpenFOAM in a development environment, the process is fairly straight forward on Arch Linux. The basic steps are as follows:

  1. Obtain source files from OpenFOAM
  2. Prepare build directory
  3. Create Preference File and Set Environment Variables for your installation
  4. Compile OpenFOAM sources
  5. Test OpenFOAM installation

Obtain Source Files

Latest Stable Release

Environment Variables

Paste the following code into your ~/.bashrc file. Whenever you want to run OpenFOAM you just have to type of20x to initialize the environment.

# OpenFOAM Install
alias of20x 'source $FOAM_INST_DIR/OpenFOAM-2.0.x/etc/bashrc'