Difference between revisions of "OpenFOAM"

From ONELAB
Jump to: navigation, search
(Created page with "= Introduction = [http://www.csc.fi/english/pages/elmer Elmer] is an open source (GPL) computational tool for multi-physics problems. It is developed by CSC in collaboration...")
 
(Installation)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Introduction =
+
== Introduction ==
  
[http://www.csc.fi/english/pages/elmer Elmer] is an open source (GPL) computational tool for multi-physics problems.
+
[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.
It is developed by CSC in collaboration with Finnish universities, research laboratories and industry.
+
To test ONELAB models working with OpenFOAM, a working installation of OpenFOAM on your system is needed.  
To test ONELAB models working with OpenFOAM, you shall need a working installation of the code.
+
The easiest way to do so, is to install first the [[ONELAB virtual machine|ONELAB virtual machine]]  
The easiest way to do so, is to install first the generic [[ONELAB virtual machine|ONELAB virtual machine]] on your system
 
 
by following [[ONELAB virtual machine|these instructions]].
 
by following [[ONELAB virtual machine|these instructions]].
 
When done, log in into the virtual machine (username: "olvm", passwd: olvm)  
 
When done, log in into the virtual machine (username: "olvm", passwd: olvm)  
and proceed with the installation of Elmer, and the download of benchmark ONELAB models.
+
and proceed with the Instructions of the next section.
Instructions to do so are given in the next section.
 
  
= Installation =
+
== Installation ==
  
The Virtual machine is configured so that Gmsh and OpenFOAM can be installed straightforwardly by issuing simple commands in a terminal.
+
The Virtual machine is configured so OpenFOAM can be installed straightforwardly.
Proceed as follows.
+
You have to be online. Proceed as follows.
  
;Step 1 - Download installation scripts
+
;Step 1 - Install OpenFOAM
:Open a terminal by clicking on the "terminal" icon in the launcher panel and issue the command
+
:Open a terminal and issue the command
:<code>install_scripts.sh</code>
 
 
 
;Step 2 - Install Gmsh and Onelab
 
:Then the command
 
:<code>install_gmsh.sh</code>
 
:downloads the nightly-build of Gmsh from http://geuz.org/gmsh, install it, and place a Gmsh icon on the Desktop.
 
 
 
;Step 3 - Install Elmer
 
:The command
 
 
:<code>install_foam.sh</code>
 
:<code>install_foam.sh</code>
:downloads the source code of Elmer and compile it on the virtual machine. This may take several minutes.
+
:which installs OpenFOAM 2.30 from http://www.openfoam.org. Simply answer "Y" or "y" when asked to. The installations takes a few minutes.  
  
After these 3 steps, you have a woking installation of Gmsh and OPenFOAM on the virtual machine.  
+
;Step 2 - Download model examples
 +
:The model examples detailed in the next section are downloaded in a directory named <code>FOAMMODELS</code> with the command
 +
:<code>getFoamModels.sh</code>.
  
;Step 4 - Download model examples
+
== ONELAB models ==
:The model examples detailed in the next section are downloaded in a directory named <code>ELMERMODELS</code> with the command
 
:<code>getFoamModels.sh</code>.
 
  
= ONELAB models =
+
* [[Valve|Valve]] : CFD analysis of a valve
 +
* [[TutorialCFD|Tutorial]] : a didactic tutorial for CFD students

Latest revision as of 15:58, 21 January 2015

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 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 OpenFOAM can be installed straightforwardly. You have to be online. Proceed as follows.

Step 1 - Install OpenFOAM
Open a terminal and issue the command
install_foam.sh
which installs OpenFOAM 2.30 from http://www.openfoam.org. Simply answer "Y" or "y" when asked to. The installations takes a few minutes.
Step 2 - Download model examples
The model examples detailed in the next section are downloaded in a directory named FOAMMODELS with the command
getFoamModels.sh.

ONELAB models

  • Valve : CFD analysis of a valve
  • Tutorial : a didactic tutorial for CFD students