Difference between revisions of "OpenFOAM"

From ArchWiki
Jump to: navigation, search
m (add ja link)
 
(20 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
[[Category:Mathematics and science]]
 
[[Category:Mathematics and science]]
{{stub}}
+
[[ja:OpenFOAM]]
==Overview==
 
 
 
 
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.
 
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.
 
For more information on OpenFOAM and the OpenFOAM Foundation, please see http://www.openfoam.com and http://www.openfoam.org respectively.
  
==Basic Installation==
+
== 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 https://aur.archlinux.org/packages.php?ID=27886. For most users, this will be everything needed to get an installation up and running.
 
  
==Prerequisites==
+
If you do not plan on doing development tasks with OpenFOAM, there is an updated version of the program available in the [[AUR]] package {{AUR|openfoam}} and git versions {{AUR|openfoam2.4-git}} or {{AUR|openfoam3.0-git}}. For most users, this will be everything needed to get an installation up and running.
* [http://www.archlinux.org/packages/?q=openmpi OpenMPI]
+
 
* [http://www.archlinux.org/packages/?q=paraview Paraview]
+
An '''openfoam3.0.1''' package is also available from the unofficial [[Unofficial user repositories#home_Minerva_W_Science_Arch_Extra|home_Minerva_W_Science_Arch_Extra]] repository. Development and older versions are planned to be added as of April 2016.
* [https://aur.archlinux.org/packages.php?ID=16983 Parmetis]
+
 
* [https://aur.archlinux.org/packages.php?ID=7438 Scotch]
+
== Development installation ==
* [https://aur.archlinux.org/packages.php?ID=41841 Scotch-OpenMPI]
 
  
==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:
 
For installation of OpenFOAM in a development environment, the process is fairly straight forward on Arch Linux. The basic steps are as follows:
  
Line 26: Line 21:
 
# Test OpenFOAM installation
 
# Test OpenFOAM installation
  
===Obtain Source Files===
+
=== Prerequisites ===
====Latest Stable Release====
+
 
===Environment Variables===
+
* {{Pkg|openmpi}}
 +
* {{AUR|paraview}}
 +
* {{AUR|parmetis}}
 +
* {{AUR|scotch}}
 +
* {{Pkg|boost-libs}}
 +
* {{Pkg|boost}}
 +
 
 +
=== Obtain source files ===
 +
 
 +
==== Latest stable release ====
 +
 
 +
{{Expansion|TODO}}
 +
 
 +
=== 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.
 
Paste the following code into your ~/.bashrc file. Whenever you want to run OpenFOAM you just have to type of20x to initialize the environment.
 +
 
{{bc|# OpenFOAM Install
 
{{bc|# OpenFOAM Install
export FOAM_INST_DIR $HOME/.OpenFOAM
+
export FOAM_INST_DIR='$HOME/.OpenFOAM'
alias of20x 'source $FOAM_INST_DIR/OpenFOAM-2.0.x/etc/bashrc'}}
+
alias of20x='source $FOAM_INST_DIR/OpenFOAM-2.0.x/etc/bashrc'}}

Latest revision as of 06:42, 13 August 2016

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 package openfoamAUR and git versions openfoam2.4-gitAUR or openfoam3.0-gitAUR. For most users, this will be everything needed to get an installation up and running.

An openfoam3.0.1 package is also available from the unofficial home_Minerva_W_Science_Arch_Extra repository. Development and older versions are planned to be added as of April 2016.

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

Prerequisites

Obtain source files

Latest stable release

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: TODO (Discuss in Talk:OpenFOAM#)

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
export FOAM_INST_DIR='$HOME/.OpenFOAM'
alias of20x='source $FOAM_INST_DIR/OpenFOAM-2.0.x/etc/bashrc'