Difference between revisions of "OpenFOAM"
From ONELAB
(→ONELAB models) |
|||
Line 1: | Line 1: | ||
− | = Introduction = | + | == Introduction == |
− | |||
[http://www.openfoam.com OpenFOAM] is a free, open source CFD software package developed by OpenCFD Ltd at ESI Group and distributed by the OpenFOAM Foundation. | [http://www.openfoam.com OpenFOAM] is a free, open source CFD software package developed by OpenCFD Ltd at ESI Group and distributed by the OpenFOAM Foundation. | ||
Line 9: | Line 8: | ||
and proceed with the Instructions of the next section. | and proceed with the Instructions of the next section. | ||
− | = Installation = | + | == Installation == |
The Virtual machine is configured so that Gmsh and OpenFOAM can be installed straightforwardly. | The Virtual machine is configured so that Gmsh and OpenFOAM can be installed straightforwardly. | ||
Line 34: | Line 33: | ||
:<code>getFoamModels.sh</code>. | :<code>getFoamModels.sh</code>. | ||
− | = ONELAB models = | + | == ONELAB models == |
* [[Valve|Valve]] : CFD analysis of a valve | * [[Valve|Valve]] : CFD analysis of a valve | ||
* [[TutorialCFD|Tutorial]] : a didactic tutorial for CFD students | * [[TutorialCFD|Tutorial]] : a didactic tutorial for CFD students |
Revision as of 11:51, 22 October 2014
Introduction
OpenFOAM is a free, open source CFD software package developed by OpenCFD Ltd at ESI Group and distributed by the OpenFOAM Foundation. To test ONELAB models working with OpenFOAM, a working installation of OpenFOAM on your system is needed. The easiest way to do so, is to install first the generic ONELAB virtual machine by following these instructions. When done, log in into the virtual machine (username: "olvm", passwd: olvm) and proceed with the Instructions of the next section.
Installation
The Virtual machine is configured so that Gmsh and OpenFOAM can be installed straightforwardly. You have to be online. Proceed as follows.
- Step 1 - Download installation scripts
- Open a terminal by clicking on the "terminal" icon in the launcher panel and issue the command
install_scripts.sh
- Step 2 - Install Gmsh and Onelab
- Then the command
install_gmsh.sh
- downloads the nightly-build of Gmsh from http://geuz.org/gmsh, install it, and place a Gmsh icon on the Desktop.
- Step 3 - Install OpenFOAM
- The command
install_foam.sh
- installs OpenFOAM 2.30 from http://www.openfoam.org. Simply answer "Y" or "y" when asked to.
After these 3 steps, you have a woking installation of Gmsh and OPenFOAM on the virtual machine.
- Step 4 - Download model examples
- The model examples detailed in the next section are downloaded in a directory named
FOAMMODELS
with the command getFoamModels.sh
.