Back

OpenFOAM

Description

OpenFOAM is numerical library for Continuum Mechanics simulations. Written in C++ and using an object-oriented approach, OpenFOAM provides a flexible simulation platform by mimicking the form of partial differential equations in software. The library provides extensive capabilities in pre-configured solvers, utilities and libraries, with massive parallelism in a domain decomposition model. OpenFOAM is freely available and open source, licensed under the GNU General Public Licence. For more information about OpenFOAM, see the OpenFOAM home page by OpenCFD Ltd (ESI Group).

OpenFOAM®  is a registered trade mark of OpenCFD Limited, the producer of the OpenFOAM software.

Several different versions of OpenFOAM are installed on following CSC's servers

  • Sisu
  • Taito

Versions

Current version of OpenFOAM is 2.3.x and it is available at CSC on Sisu and Taito servers. Some previous (2.0 →) versions are also available on the servers.

Usage

Initialization of OpenFOAM

An environment for OpenFOAM usage can be created by following the instruction given here.

How to get started

User should read the manual available on OpenFOAM home page (see over).  These manuals include all required information for the start, such as tutorials.

For to test the OpenFOAM environment on Hippu, one may run the Lid-driven cavity flow tutorial (see the OpenFOAM User Guide) following these instructions.

Compiling your own solver

Instructions for how to create an own solver by modifying an existing solver, are given here.

Running OpenFOAM in batch mode

Full instructions for usage of CSC's computing servers, including detailed information about the batch job executions, are available in CSC's server manuals Taito User Guide and Sisu User Guide.

Examples of parallel batch runs on Taito and Sisu servers

To launch OpenFOAM, here version 2.2.x, give the commands

 %> module load openfoam
%> openfoam-2.2.x
%> run

then, move to run directory, create a new case subrirectory, and move there

On Taito server:
%> mkdir ofParTaito
%> cd ofParTaito

On Sisu server:
%> mkdir ofParSisu
%> cd ofParSisu

Extract the case files for OpenFOAM run

On Taito server:
%> tar xf /appl/fluid/openfoamParallelTaito.tar

On Sisu server:
%> tar xf /appl/fluid/openfoamParallelSisu.tar

Proceed following the instructions given in README file extracted. Case files includes also a batch job file.

 

More information

For more information, send an email to CSC's Service Desk, servicedesk (at) csc.fi.

References

Support