OpenFOAM: Difference between revisions
m r2.7.3) (Robot: Adding zh:OpenFOAM |
Wanttoknow (talk | contribs) Add pics; Add author. |
||
Line 2: | Line 2: | ||
| name = OpenFOAM |
| name = OpenFOAM |
||
| logo = |
| logo = |
||
| screenshot = |
| screenshot = [[File:Screenshot OpenFOAM-2.1.x gnome-terminal.png|200px]] |
||
| caption = |
| caption = OpenFOAM running in a [[Terminal emulator|terminal]] |
||
| author = |
| author = Henry Weller |
||
| developer = The OpenFOAM |
| developer = The OpenFOAM Team |
||
| released = 10 December 2004 |
| released = 10 December 2004 |
||
| latest release version = 2.1.1 |
| latest release version = 2.1.1 |
||
| latest release date = 31 May 2012 |
| latest release date = 31 May 2012 |
||
| operating system = [[Unix]]/[[Linux]] |
| operating system = [[Unix]]/[[Linux]] |
||
| genre = |
| genre = [[Computational fluid dynamics]], [[Simulation software]] |
||
| license = [[GNU General Public License]] |
| license = [[GNU General Public License]] |
||
| website = [http://www.openfoam.org www.openfoam.org] |
| website = [http://www.openfoam.org www.openfoam.org] |
||
Line 82: | Line 82: | ||
OpenFOAM solvers include<ref>[http://www.openfoam.com/features/ OpenFOAM features]</ref>: |
OpenFOAM solvers include<ref>[http://www.openfoam.com/features/ OpenFOAM features]</ref>: |
||
[[File:Screenshot_OpenFOAM_smallPoolFire2D_ParaView_3.12.0.png|350px|thumb|Simulation of burning [[Methane]]. The [[Graphical user interface]] is [[ParaView]].]] |
|||
* Basic CFD solvers |
* Basic CFD solvers |
Revision as of 15:40, 24 July 2012
![]() OpenFOAM running in a terminal | |
Original author(s) | Henry Weller |
---|---|
Developer(s) | The OpenFOAM Team |
Initial release | 10 December 2004 |
Stable release | 2.1.1
/ 31 May 2012 |
Repository | |
Operating system | Unix/Linux |
Type | Computational fluid dynamics, Simulation software |
License | GNU General Public License |
Website | www.openfoam.org |
OpenFOAM (Open Source Field Operation and Manipulation) is a C++ toolbox for the development of customized numerical solvers, and pre-/post-processing utilities for the solution of continuum mechanics problems, including computational fluid dynamics (CFD). The code is released as free and open source software under the GNU General Public License. It is maintained by The OpenFOAM Foundation,[1] which is sponsored by Silicon Graphics International, the owner of the trademark to the name OpenFOAM.
History
The original development of OpenFOAM started in the late 1980s at Imperial College, London, to develop a more powerful and flexible general simulation platform than the de-facto standard at the time, FORTRAN. This led to the choice of C++ as programming language, due to its highest modularity and object oriented features. The predecessor, FOAM, was sold by UK company Nabla Ltd. before being released as open source in 2004.[2] On 15 August 2011, OpenCFD announced its acquisition by Silicon Graphics International (SGI).[3]
OpenFOAM was one of the first major scientific packages written in C++[citation needed]. It has also been the first major general-purpose CFD package to use polyhedral cells[citation needed].
Distinguishing Features
Syntax
One distinguishing feature of OpenFOAM is its syntax for tensor operations and partial differential equations that closely resembles the equations being solved. For example the equation[4]
is represented by the code
solve
(
fvm::ddt(rho,U)
+ fvm::div(phi,U)
- fvm::laplacian(mu,U)
==
- fvc::grad(p)
);
This syntax, achieved through the use of object oriented programming and operator overloading, enables users to create custom solvers with relative ease. However, code customization becomes more challenging with increasing depth into the OpenFOAM library, owing to a lack of documentation, and heavy use of template metaprogramming.
Extensibility
Users can create custom objects, such as boundary conditions or turbulence models, that will work with existing solvers without having to modify or recompile the existing source code. OpenFOAM accomplishes this by combining virtual constructors with the use of simplified base classes as interfaces. As a result, this gives OpenFOAM good extensibility qualities. OpenFOAM refers to this capability as run-time selection[5]
Structure of OpenFOAM
OpenFOAM is constituted by a large base library, which offers the core capabilities of the code:
- Tensor and field operations
- Discretization of partial differential equations using a human-readable syntax
- Solution of linear systems[6]
- Solution of ordinary differential equations[7]
- Automatic parallelization of high-level operations
- Dynamic mesh[8]
- General physical models
The capabilities provided by the library are then used to develop applications. Applications are written using the high-level syntax introduced by OpenFOAM, which aims at reproducing the conventional mathematical notation. Two categories of applications exist:
- Solvers: they perform the actual calculation to solve a specific continuum mechanics problem
- Utilities: they are used to prepare the mesh, set-up the simulation case, process the results, and to perform operations other than solving the problem under examination
Each application provides specific capabilities: for example the application called blockMesh is used to generate meshes from an input file provided by the user, while another application called icoFoam solves the Navier-Stokes equations for an incompressible laminar flow.
Finally, a set of third-party packages are used to provide parallel functionality (i.e.OpenMPI) and graphical post-processing (ParaView).
Capabilities
OpenFOAM solvers include[14]:
![](http://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Screenshot_OpenFOAM_smallPoolFire2D_ParaView_3.12.0.png/350px-Screenshot_OpenFOAM_smallPoolFire2D_ParaView_3.12.0.png)
- Basic CFD solvers
- Incompressible flow with RANS and LES capabilities[15]
- Compressible flow solvers with RANS and LES capabilities[16]
- Buoyancy-driven flow solvers[17]
- DNS and LES
- Multiphase flow solvers[18]
- Particle-tracking solvers
- Solvers for combustion problems[19]
- Solvers for conjugate heat transfer[20]
- Molecular dynamics solvers[21]
- Direct Simulation Monte Carlo solvers[22]
- Electromagnetics solvers[23]
- Solid dynamics solvers[24]
In addition to the standard solvers, OpenFOAM's syntax lends itself to the easy creation of custom solvers.
OpenFOAM utilities are subdivided into:
- Mesh utilities
- Mesh generation: they generate computational grids starting either from an input file (blockMesh), or from a generic geometry specified as STL file, which is meshed automatically with hex-dominant grids (snappyHexMesh)
- Mesh conversion: they convert grids generated using other tools to the OpenFOAM format
- Mesh manipulation: they perform specific operations on the mesh such as localized refinement, definition of regions, and others
- Parallel processing utilities: they provide tools to decompose, reconstruct and re-distribute the computational case to perform parallel calculations
- Pre-processing utilities: tools to prepare the simulation cases
- Post-processing utilities: tools to process the results of simulation cases, including a plugin to interface OpenFOAM and ParaView.
- Surface utilities
- Thermophysical utilities
License
OpenFOAM is free and open source software, released under the GNU General Public License version 3.[25]
Advantages and Disadvantages
Advantages
- Friendly syntax for partial differential equations
- Unstructured polyhedral grid capabilities
- Automatic parallelization of applications written using OpenFOAM high-level syntax
- Wide range of applications and models ready to use
- Commercial support and training provided by the developers
- No license costs
Disadvantages
- Absence of an integrated graphical user interface (stand-alone proprietary options are available)
- The Programmer's guide does not provide sufficient details, making the learning curve steeper
- The lack of maintained documentation makes it difficult for the new users
Forks and adaptations
Free software
- blueCFD is a cross-compiled version of OpenFOAM that runs on Windows operating systems, and is derived from OpenFlow. The package also includes additional tools and functionality useful for OpenFOAM. It is produced by blueCAPE.[26]
- FreeFOAM[27] is geared towards freeing OpenFOAM from its system dependence, making it more portable and user-friendly for installation. The project closely tracks the official releases from OpenCFD and does not include additional functionality. CMake is used as a build system.
- OpenFlow is a source code patch for a cross-compiled distribution of OpenFOAM that runs on Windows operating systems. The OpenFOAM components in blueCFD are derived from the OpenFlow source code. It is produced by Symscape.[28]
- OpenFOAM-extend[29] is maintained by Wikki Ltd.[30] This fork has a large repository of community-generated contributions, much of which can be installed into the official version of OpenFOAM with minimal effort.[31] It is developed in parallel to the official version of OpenFOAM, incorporating its latest versions, although these are released one or two years later.
Software available for purchase
- Caedium is a unified simulation environment produced by Symscape. The Caedium RANS Flow add-on[32] provides a graphical user interface for OpenFOAM case setup, solution steering, and post processing.
- CastNet is a proprietary modelling and simulation environment produced by DHCAE Tools.[33] The application includes a graphical user interface front-end for OpenFOAM.
- ICON FOAMpro CFD is maintained by ICON Process & Consulting Ltd.[34] It is developed mostly around automotive applications through collaboration with the Volkswagen Group,[35] and Ford Motor Co.[36] This fork includes community-generated content as well as ICON-specific developments.
Alternative software
Free and open source software
- Stanford University Unstructured (SU2)[37]
- Code Saturne (GPL)
- FreeCFD[38]
- Gerris Flow Solver[39]
- OpenFVM[40]
- CLAWPACK[41]
Proprietary software
References
- ^ The OpenFOAM Foundation homepage
- ^ OpenFOAM Release History
- ^ http://www.sgi.com/company_info/newsroom/press_releases/2011/august/opencfd.html
- ^ Creating solvers in OpenFOAM
- ^ OpenFOAM's run-time selection mechanism explained
- ^ Linear system solvers in OpenFOAM
- ^ Ordinary differential equation solvers in OpenFOAM
- ^ Dynamic mesh in OpenFOAM
- ^ Rheological models in OpenFOAM
- ^ Thermophysical models in OpenFOAM
- ^ Turbulence models in OpenFOAM
- ^ Chemical reactions and kinetics models in OpenFOAM
- ^ Lagrangian particle tracking in OpenFOAM
- ^ OpenFOAM features
- ^ OpenFOAM incompressible flow solvers
- ^ OpenFOAM Compressible flow solvers
- ^ OpenFOAM buoyancy-driven flow solvers
- ^ Multiphase flow solvers
- ^ OpenFOAM solvers for combustion
- ^ OpenFOAM solvers for conjugate heat transfer
- ^ OpenFOAM molecular dynamics solvers
- ^ OpenFOAM Direct Simulation Monte Carlo solvers
- ^ OpenFOAM Electromagnetics solvers
- ^ OpenFOAM solid dynamics solvers
- ^ http://www.openfoam.org/licence.php OpenFOAM Licensing Page
- ^ blueCAPE's homepage
- ^ FreeFOAM Home Page
- ^ OpenFlow source code patch
- ^ OpenFOAM-extend Project Home Page
- ^ Wikki Ltd.
- ^ Solvers, Utilities, and Other contributions
- ^ Caedium RANS Flow add-on
- ^ DHCAE Tools homepage
- ^ ICON FOAMpro Process
- ^ ICON VWG SAE paper
- ^ ICON FORD SAE paper
- ^ SU2 homepage
- ^ FreeCFD homepage
- ^ Gerris homepage
- ^ OpenFVM homepage
- ^ [depts.washington.edu/clawpack]
External links
Official Resources
Community resources
- OpenFOAM Forum at CFD Online
- OpenFOAM wiki
- FOAM CFD web site, by one of the original developers of the code, who is not associated with OpenCFD.
- A Blog about OpenFOAM in Chinese