Difference between revisions of "OpenFOAM"

From OpenFOAMWiki
Line 55: Line 55:
 
== Notes ==
 
== Notes ==
 
<references/>
 
<references/>
[[Category:OpenFOAM overview]]
+
[[Category:OpenFOAM overview| ]]

Revision as of 14:58, 30 June 2010

OpenFOAM is an open source software suite written in C++, designed primarily around three-dimensional continuum mechanics, although its capabilities extend beyond this. The library headers for OpenFOAM use their own syntax and operators to build a framework for fully-realized vector field mathematics in three-dimensional Cartesian coordinates. Tensors are also fully supported in these operations, although tensor calculus is not included.

1 What's FOAM got to do with it?

In this world, many acronyms cleverly spell what they are about. Make no mistake, OpenFOAM is not one of those acronyms. Indeed several oddly chosen acronyms can be found within OpenFOAM's reach. For instance, the combined PISO and SIMPLE solver is has the unfortunate name "pimpleFoam". FOAM itself stands for Field Operation and Manipulation, referring to the mathematical nature of the code, not bubbly frothiness. So it really has nothing to do with foam... unless, of course, you are using it to model foam. Perhaps the developers were more concerned about what went into the code, rather than what to call it.

2 Origins

OpenFOAM, originally called FOAM, was proprietary software developed by Nabla Ltd., somehow associated with TFD Chalmers University, in Sweden. In 2004 Nabla Ltd. ceased operation and released FOAM as open source under GNU General Public License, under the name "OpenFOAM". At this point two independent companies were created:

Both of these companies were started by some of FOAM's original developers and have nothing to do with one another[1]. Each company maintains their own variation of OpenFOAM.

3 OpenFOAM variations

Although there are several variations to OpenFOAM, the two main ones are those maintained by Wikki Ltd. and OpenCFD Ltd.:

  • Official OpenFOAM (closed to community contributions); and
  • OpenFOAM-extend (open to community contributions).

3.1 Official OpenFOAM

The Official OpenFOAM project is maintained by OpenCFD Ltd.. It is usually referred to by the latest version number followed by 'X' (for example, 1.6-X). The official OpenFOAM is closed to community contributions, therefore it is missing the vast complement of community-contributed capabilities. Some community-contributions are compatible with the latest Official OpenFOAM, but must be installed manually.

Some features are available in the Official OpenFOAM that are not available in OpenFOAM-extend. However, OpenFOAM-extend has consistently incorporated these changes into its source code, albeit one or two years later. At present, features that only appear in the Official OpenFOAM include:

  • runtime selectable turbulence wall functions - alternate wall functions can be used without rewriting the turbulence models;
  • density-based thermophysical model - allows for the full energy equation with liquids; and
  • Boussinesq buoyancy SIMPLE solver.

The full list is located here.

3.2 OpenFOAM-extend

The OpenFOAM-extend project is maintained by Wikki Ltd.. It is usually referred to by the latest version number, followed by 'dev' (for example 1.5-dev).

NOTE: Usually dev refers to a developmental version which will eventually become part of the release. In OpenFOAM, this is not the case: 'dev' is the name of the core component of the OpenFOAM-extend project.

This project is open to community contributions, and therefore has a vast library of capabilities unmatched by the Official OpenFOAM project, including:

  • GGI interfaces - useful for rotating reference frames, and stitching together multiple meshes;
  • groovyBC - allows arbitrary boundary conditions to be specified, without requiring coding / compiling;
  • newer rectangular matrix solvers' and
  • pyFOAM - a front end that makes managing OpenFOAM cases easier, i.e. it makes available many features that users of other software suites take for granted, such as:
    • easily changing the case setup; and
    • plotting the residuals on a graph as the solver is running.

The Official OpenFOAM and OpenFOAM-extend are two different open source projects. The only reason they have not diverged is because OpenFOAM-extend continues to adapt the new releases of Official OpenFOAM into its own code. Therefore, new features appearing in Official OpenFOAM eventually become part of OpenFOAM-extend. These adaptations can take one or two years. This practice continues[2].

3.3 Other variations

Other variations include:

4 Notes

  1. [1]
  2. [2]