Jump to content

OpenFOAM

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dftyapo (talk | contribs) at 18:28, 8 July 2019 (Correcting errors concerning the original author, latest release and stating the OpenFOAM Foundation as the copyright holder of OpenFOAM). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

OpenFOAM
Original author(s)Henry Weller
Developer(s)OpenCFD Ltd.[1] / CFD Direct Ltd.[2] / Wikki Ltd.[3]
Initial release10 December 2004; 20 years ago (2004-12-10)[4]
Stable release
v7 / 8 July 2019 (2019-07-08)[5]
Repository
Written inC++ / C
Operating systemUnix / Linux / Windows
TypeComputational fluid dynamics, simulation software, fluid structure interaction
LicenseGPLv3
Websiteopenfoam.org

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, most prominently including computational fluid dynamics (CFD).

There are three main versions of OpenFOAM software that are released as free and open-source software under the GNU General Public License Version 3:

  1. OpenFOAM Foundation released by OpenFOAM Foundation, the copyright holder of the OpenFOAM code,
  2. ESI fork version released every 6 months by ESI-OpenCFD Ltd., and
  3. The FOAM-Extend Project fork released by Wikki Ltd..

In addition to the above main forks, there are several variants of software maintained and released for specific applications by other entities based on the OpenFOAM technologies: to name but a few: blueCFD®-Core, SIMSCALE, and iconCFD.

OpenFOAM has been released by OpenCFD Ltd. since 2004, the name OpenFOAM was registered as a trademark by the OpenCFD Ltd in 2007,[6] and grants use of its OpenFOAM trademark by Third Parties on a licence basis. ESI Group and OpenFOAM Foundation Ltd are currently permitted to use the Name and agreed Domain Name.

History

Flow simulation using OpenFOAM and ParaView for visualization

The name FOAM has been claimed to appear for the first time as a post-processing tool written by Charlie Hill in the early 90s in Prof. David Gosman's group in Imperial College London.[7]

Nevertheless, as a continuum mechanics / computational fluid dynamics tool, the first development of FOAM (which had became OpenFOAM later on) was initiated by Henry Weller at the same institute by using the C++ programming language rather than the de facto standard programming language FORTRAN of the time to develop a powerful and flexible general simulation platform. From this initiation to the founding of a company called Nabla Ltd, (predominantly) Henry Weller and Hrvoje Jasak carried out the basic development of the software for almost a decade.[8] For a few years, FOAM was sold as a commercial code by Nabla Ltd.[9] However, in 2004 FOAM was released under GPL and was renamed to OpenFOAM.

In 2004, Nabla Ltd was folded. Immediately afterwards, Henry Weller, Chris Greenshields and Mattijs Janssens founded OpenCFD Ltd to develop and release OpenFOAM.[10] At the same time, Hrvoje Jasak founded the consulting company Wikki Ltd [11] and maintained a fork of OpenFOAM called openfoam-extend, later renamed to foam-extend.

On 8 August 2011, OpenCFD was acquired by Silicon Graphics International (SGI).[12] On 12 September 2012, the ESI Group announced the acquisition of OpenCFD Ltd and the OpenFOAM trademark from SGI.[13]

In 2014, Weller and Greenshields left the ESI Group, and founded the CFD Direct Ltd,[14] and forked the official OpenFOAM version on behalf of the OpenFOAM Foundation. OpenFOAM Foundation whose directors are Henry Weller, Chris Greenshields, and Cristel de Rouvray (the CEO of the ESI Group) handed the maintenance of the OpenFOAM-Foundation fork to the CFD Direct.

The following figure summarises the chronological and common development of the main three variants of OpenFOAM software, whereat the arrows show the directions of functionality transfers, namely:

  1. The official OpenFOAM (trademark) version mainly developed and maintained by ESI-OpenCFD Ltd. with a date-of-release identifier (e.g. v1906),
  2. The OpenFOAM-Foundation fork mainly maintained by CFD Direct Ltd. sequence based identifier (e.g. 6.0),
  3. The FOAM-Extend Project fork mainly maintained by Wikki Ltd..
OpenFOAM fork release history, and merge directions between forks
OpenFOAM fork release history, and merge directions between forks

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,[15] the equation

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.[16]

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[17]
  • Solution of ordinary differential equations[18]
  • Automatic parallelization of high-level operations
  • Dynamic mesh[19]
  • General physical models
    • Rheological models[20]
    • Thermodynamic models and database[21]
    • Turbulence models[22]
    • Chemical reaction and kinetics models[23]
    • Lagrangian particle tracking methods[24]
    • Radiative heat transfer models
    • Multi-reference frame and single-reference frame methodologies

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 (OpenMPI) and graphical post-processing (ParaView).

Capabilities

Simulation of burning Methane. The Graphical user interface is ParaView.

OpenFOAM solvers include:[25]

  • Basic CFD solvers
  • Incompressible flow with RANS and LES capabilities[26]
  • Compressible flow solvers with RANS and LES capabilities[27]
  • Buoyancy-driven flow solvers[28]
  • DNS and LES
  • Multiphase flow solvers[29]
  • Particle-tracking solvers
  • Solvers for combustion problems[30]
  • Solvers for conjugate heat transfer[31]
  • Molecular dynamics solvers[32]
  • Direct simulation Monte Carlo solvers[33]
  • Electromagnetics solvers[34]
  • Solid dynamics solvers[35]

In addition to the standard solvers, OpenFOAM 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.[36]

Advantages and disadvantages

Advantages

  • Friendly syntax for partial differential equations
  • Fully documented source code[37]
  • 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

  • The development community suffers from fragmentation, giving rise to numerous forked projects.
  • 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 progress slow if you need to write new applications or add functionality

GUI and software tools integrated with OpenFOAM

  • FEATool Multiphysics[38] A physics simulation toolbox and GUI for MATLAB.
  • HELYX-OS[39]
  • iconCFD[40]
  • InsightCAE[41] is an open source project for creating automated simulation workflows which can be controlled from a GUI ("vertical apps"). OpenFOAM is supported as the primary backend for CFD simulations.
  • MantiumFlow[42] - a CLI and GUI tool which automates CFD pre and post-processing, turning simulations into Apps ("vertical apps").
  • SimFlow[43]
  • SimScale[44]
  • simulationHub[45] - online platform with automated cloud based CFD Apps ("vertical apps"), specifically developed for Design engineer
  • SwiftBloc[46] and SwiftSnap[47]
  • Visual-CFD[48] is an advanced, intelligent environment for OpenFOAM including Pre and Post modules with process Automation/Customization features
  • preCICE[49] is an open-source coupling library for partitioned multi-physics simulations.

See also

  • ParaView an open-source multiple-platform application for interactive scientific visualization

References

  1. ^ "The open source CFD toolbox". OpenFOAM. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  2. ^ "CFD Direct - The Architects of OpenFOAM". CFD Direct. Archived from the original on 27 March 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  3. ^ "Wikki Ltd".
  4. ^ "OpenFOAM Version 1.0". Archived from the original on 7 June 2017. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  5. ^ "OpenFOAM® History". {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  6. ^ OpenCFD. "OpenFOAM® - Official home of The Open Source Computational Fluid Dynamics (CFD) Toolbox". www.openfoam.com. Archived from the original on 22 September 2016. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  7. ^ "Original OpenFOAM authors". CFD-Online. Retrieved 28 June 2019.
  8. ^ Chen, Goong; Xiong, Qingang; Morris, Philip J.; Paterson, Eric G.; Sergeev, Alexey; Wang, Yi-Ching (2014). "OpenFOAM for Computational Fluid Dynamics". Notices of the American Mathematical Society. 61 (4): 354–363. doi:10.1090/noti1095.
  9. ^ "OpenFOAM". CFD-Online. Retrieved 28 June 2019.
  10. ^ Greenshields, Chris (3 April 2016). "Release History". openfoam.org. Archived from the original on 29 July 2017. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  11. ^ "Wikki Ltd - About Us". {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  12. ^ "Press Releases: SGI Acquires OpenCFD Ltd., the Leader In Open Source Computational Fluid Dynamics (CFD) Software". SGI. Archived from the original on 6 December 2012. Retrieved 18 December 2012. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  13. ^ "Acquisition of OpenCFD Ltd., The leader in Open Source software in Computational Fluid Dynamics". ESI Group. 11 September 2012. Archived from the original on 6 December 2012. Retrieved 18 December 2012. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  14. ^ "OpenFOAM". CFD Direct. 25 March 2015. Archived from the original on 29 March 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  15. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  16. ^ OpenFOAM's run-time selection mechanism explained Archived 8 January 2014 at the Wayback Machine
  17. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  18. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  19. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 27 March 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  20. ^ "OpenFOAM v5 User Guide: 7.3 Transport/rheology models". cfd.direct. 2 March 2017. Archived from the original on 19 March 2016. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  21. ^ "OpenFOAM v5 User Guide: 7.1 Thermophysical models". cfd.direct. 2 March 2017. Archived from the original on 19 March 2016. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  22. ^ "Turbulence Modelling - OpenFOAM - CFD Direct". cfd.direct. Archived from the original on 9 August 2016. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  23. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  24. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  25. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 21 March 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  26. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  27. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  28. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  29. ^ "Multiphase Flows - OpenFOAM - CFD Direct". cfd.direct. Archived from the original on 9 August 2016. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  30. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  31. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  32. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  33. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  34. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  35. ^ "OpenFOAM Features - CFD Direct". openfoam.org. Archived from the original on 2 April 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  36. ^ Greenshields, Chris (28 April 2016). "Free Software Licence". openfoam.org. Archived from the original on 9 June 2012. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  37. ^ "OpenFOAM: Free, Open Source Software from the OpenFOAM Foundation". cpp.openfoam.org.
  38. ^ "FEATool 1.8 with OpenFOAM MATLAB CFD GUI Integration". featool.com. Retrieved 18 May 2018.
  39. ^ "HELYX-OS GUI for OpenFOAM | ENGYS". engys.com. Retrieved 15 January 2018.
  40. ^ Administrator. "Setup: iconCFD Process". iconcfd.com. Retrieved 15 January 2018.
  41. ^ "Open Source Engineering Software - silentdynamics". silentdynamics. Retrieved 7 June 2018.
  42. ^ "CFD simulation software using OpenFOAM® made as simple as possible". MantiumFlow. Retrieved 27 August 2018.
  43. ^ "simFlow CFD Software - OpenFOAM® GUI". simFlow CFD. Retrieved 15 January 2018.
  44. ^ "Open Source Solvers Integrated with SimScale". SimScale. Retrieved 15 January 2018.
  45. ^ "Components used in simulationHub". Retrieved 7 April 2019.
  46. ^ "Contrib/SwiftBlock - OpenFOAMWiki". openfoamwiki.net. Retrieved 15 January 2018.
  47. ^ "Contrib/SwiftSnap - OpenFOAMWiki". openfoamwiki.net. Retrieved 15 January 2018.
  48. ^ "Visual-CFD for OpenFOAM®". openfoam.com. Retrieved 5 May 2018.
  49. ^ "preCICE". Retrieved 24 March 2019.

Official resources

Community resources

Other resources