OpenFOAM
OpenFOAM running in a terminal | |
Original author(s) | Henry Weller |
---|---|
Developer(s) | CFD Direct,[1] OpenCFD Ltd[2] |
Initial release | 10 December 2004[3] |
Stable release | 3.0.1 / 15 December 2015[4] |
Written in | C++ |
Operating system | Unix/Linux |
Type | Computational fluid dynamics, simulation software |
License | GPLv3 |
Website |
www |
OpenFOAM (for "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 managed, maintained and distributed by The OpenFOAM Foundation,[5] which is supported by voluntary contributors. The OpenFOAM name is a registered trademark of OpenCFD Ltd[6] and licensed to the OpenFOAM Foundation Ltd.
History
OpenFOAM (originally, FOAM) was created by Henry Weller from 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 modularity and object oriented features. In 2004, Henry Weller, Chris Greenshields and Mattijs Janssens founded OpenCFD Ltd to develop and release OpenFOAM.[7] On 8 August 2011, OpenCFD was acquired by Silicon Graphics International (SGI).[8] At the same time, the copyright of OpenFOAM was transferred to the OpenFOAM Foundation, a newly founded, not-for-profit organisation that manages OpenFOAM and distributes it to the general public. On 12 September 2012, the ESI Group announced the acquisition of OpenCFD Ltd from SGI.[9] In 2014, Weller and Greenshields left ESI Group and continue the development and management of OpenFOAM, on behalf of the OpenFOAM Foundation, at CFD Direct.[10]
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[11]
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[12]
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[13]
- Solution of ordinary differential equations[14]
- Automatic parallelization of high-level operations
- Dynamic mesh[15]
- 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:[21]
- Basic CFD solvers
- Incompressible flow with RANS and LES capabilities[22]
- Compressible flow solvers with RANS and LES capabilities[23]
- Buoyancy-driven flow solvers[24]
- DNS and LES
- Multiphase flow solvers[25]
- Particle-tracking solvers
- Solvers for combustion problems[26]
- Solvers for conjugate heat transfer[27]
- Molecular dynamics solvers[28]
- Direct Simulation Monte Carlo solvers[29]
- Electromagnetics solvers[30]
- Solid dynamics solvers[31]
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.[32]
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 Open Source and proprietary options are available)
- The Programmer's guide does not provide sufficient details, making the learning curve very steep if you need to write new applications or add functionality
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.[33]
- HELYX-OS[34] is an Open Source preprocessing Graphical User Interface (GUI), for meshing and case setup, designed to work with the latest version of OpenFOAM. The GUI is maintained by Engys Ltd[35] using Java+VTK and delivered to the public under the GNU General Public License.
- OpenFlow is a source code patch developed by Symscape 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.[36]
- OpenFOAM-extend[37] is maintained by Wikki Ltd.[38] 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.[39] It is developed in parallel to the official version of OpenFOAM, incorporating its latest versions, although these are released one or two years later.
- simFlow[40] is a fully integrated GUI, for meshing, case preparation and post processing, distributed also as a free version with online documentation.
- SwiftBlock[41] is an Open Source preprocessing Graphical User Interface for the OpenFOAM meshing utility blockMesh. SwiftBlock was originally developed by Karl-Johan Nogenmyr[42] and is an add-on to Blender 3D.
- SwiftSnap[43] is an Open Source preprocessing Graphical User Interface for the OpenFOAM meshing utility snappyHexMesh. SwiftSnap was originally developed by Karl-Johan Nogenmyr[42] and is an add-on to Blender 3D.
- RheologicRemix[44] are OpenFOAM binaries by Rheologic GmbH[45] compiled for officially unsupported platforms like CentOS and Raspbian (ARM) and have been demonstrated to work on Android and Ubuntu phones[46] and the Raspberry Pi.[47]
Software available for purchase
- Caedium is a unified simulation environment produced by Symscape. The Caedium RANS Flow add-on[48] provides a graphical user interface for OpenFOAM case setup, solution steering, and post processing.
- Ciespace CFD is a web-based modeling and simulation environment produced by Ciespace Corporation.[49] The application includes a graphical user interface front-end for OpenFOAM, pre-processing mesh tools, and a collaborative workflow management system that runs from a web browser.
- CONSELF CFD on Cloud is a CFD Web Application developed by CONSELF Srl.[50] The application provides an automated workflow that guides the user from Geometry Upload to Results Analysis, passing through straightforward Mesh Generation and CFD setup. It uses OpenFOAM CFD library and can be accessed from any internet connected device. CONSELF CFD makes unlimited CPU power (HPC) and Co-Working space available through every common browser. The entry subscription, WELCOME Plan, is completely free and without limitations.
- CastNet is a proprietary modelling and simulation environment produced by DHCAE Tools.[51] The application includes a graphical user interface front-end for OpenFOAM.
- HELYX[52] is a fully integrated software suite with proprietary preprocessing Graphical User Interface (GUI), for meshing and case setup, designed to work with an enhanced version of OpenFOAM that is fully documented, supported, and maintained by Engys Ltd.[35]
- simFlow is a fully integrated GUI with meshing, case preparation and post processing capabilities. Supports both Windows and Linux OS.[40]
- SimScale is a 100% web-based engineering simulation platform integrated with open source solvers including OpenFOAM, Code Aster and CalculiX.[53] A free account option for SimScale is available to all users.
- Visual-CFD is a proprietary modelling and simulation environment produced by ESI Group.[54] The environment provides GUI for OpenFOAM case setup, workflow process manager and postprocessing.
Alternative software
- Advanced Simulation Library (AGPL)[55]
- CLAWPACK[56]
- Code Saturne (GPL)
- Coolfluid (LGPLv3)[57]
- COMSOL Multiphysics
- deal.II[58]
- FEATool[59]
- Gerris Flow Solver[60]
- Nektar++
- OpenFVM[61]
- SU2 code (LGPL)[62]
References
- ↑ CFD Direct Ltd
- ↑ OpenCFD Ltd
- ↑ "OpenFOAM Version 1.0".
- ↑ "OpenFOAM Version 3.0.1".
- ↑ The OpenFOAM Foundation homepage
- ↑ OpenCFD homepage
- ↑ OpenFOAM Release History
- ↑ "Press Releases: SGI Acquires OpenCFD Ltd., the Leader In Open Source Computational Fluid Dynamics (CFD) Software". SGI. Retrieved 2012-12-18.
- ↑ "Acquisition of OpenCFD Ltd., The leader in Open Source software in Computational Fluid Dynamics". ESI Group. 2012-09-11. Retrieved 2012-12-18.
- ↑ "OpenFOAM". CFD Direct. 2015-03-25.
- ↑ 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
- ↑ OpenFOAM Licensing Page
- ↑ blueCAPE's homepage
- ↑ HELYX-OS Product Homepage
- 1 2 Engys Ltd
- ↑ OpenFlow source code patch
- ↑ OpenFOAM-extend Project Home Page
- ↑ Wikki Ltd.
- ↑ Solvers, Utilities, and Other contributions
- 1 2 "simFlow homepage". simFlow CFD. Retrieved 2015-09-08.
- ↑ SwiftBlock project homepage
- 1 2 Original SwiftSnap and SwiftBlock announcement
- ↑ SwiftSnap project homepage
- ↑ Rheologic GmbH download page
- ↑ Rheologic GmbH
- ↑ Demonstration site of OpenFOAM under Android and Ubuntu
- ↑ blog about OpenFOAM on Raspberry Pi
- ↑ Caedium RANS Flow add-on
- ↑ Ciespace CFD Product Page
- ↑ "CONSELF | Consulting by Yourself". conself.com. Retrieved 2015-12-11.
- ↑ DHCAE Tools homepage
- ↑ HELYX Graphical User Interface
- ↑ SimScale company website
- ↑ Visual-CFD
- ↑ Advanced Simulation Library Homepage
- ↑ depts.washington.edu/clawpack
- ↑ COOLFluiD homepage
- ↑ deal.II homepage
- ↑ "FEATool: Matlab FEM Finite Element Multiphysics Toolbox". Precise Simulation Ltd. Retrieved 20 November 2015.
- ↑ Gerris homepage
- ↑ OpenFVM homepage
- ↑ SU2 homepage
External links
Official resources
- Official OpenFOAM website
- Download OpenFOAM
- OpenFOAM official documentation
- OpenFOAM bug-reporting system
- Official OpenFOAM+ website
- Download OpenFOAM+
- OpenFOAM+ official documentation
- OpenFOAM+ bug-reporting system
Community resources
Other resources
|
|