Upload
phungdat
View
231
Download
3
Embed Size (px)
Citation preview
OpenFOAM Workshop
Yağmur Gülkanat
Res.Assist.
Introduction to OpenFOAM
What is OpenFOAM?
• FOAM = Field Operation And Manipulation
• OpenFOAM is a free-to-use open-source numerical simulation software with
extensive CFD and multi-physics capabilities
• Free-to-use means using the software without paying for license and support,
including massively parallel computers: free CFD license!
• Toolbox for Computational Mechanics, primarily CFD
• Open-source, written in C++
• Generic and programmable
• Solves of discrete partial differential eqns on unstructed grids
• Finite volume, finite element, lagrangian particle tracking, and more..
23.01.2014Introduction to OpenFOAM 2
Two development lines for OpenFOAM
23.01.2014Introduction to OpenFOAM 3
OpenCFD Ltd. (2004)
acquired by SGI (2011)
Led by Henry Weller
openfoam.com
Wikki Ltd. (2004)
Led by Hrvoje Jasak
Extend Project
extend-project.de
History
23.01.2014Introduction to OpenFOAM 4
• Late 1980’s: Imperial College, Prof. David Gosman’s research group
• 1996: H. Jasak. PhD Thesis, Imperial College, University of London (1st PhD thesis on OF)
• 2000-2004: Nabla, Ltd, markets commercial product, FOAM
• 2004: Nabla makes OpenFOAM GPL
• 2004: OpenCFD, Ltd (Henry Weller) and Wikki, Ltd (Hrv Jasak)
• Jan 2006: 1st OpenFOAM Workshop
• Nov 2007: 1st OpenFOAM Conference (Open-source CFD Conference)
• 2009: FOAM Documentation Project was shut-down
• Aug 2011: SGI purchases OpenCFD, Ltd.
• Sep 2012: ESI Group purchases OpenCFD from SGI
Capabilities
23.01.2014Introduction to OpenFOAM 5
• OpenFOAM is a CFD Toolbox written in C++
Software :
Liberal use of C++ abstraction
Run-time selection of libraries
Five basic classes
Libraries : Numerical algorithms and physical models
Utilities: Meshing, pre-processing, parallel computing, post-
processing, etc.
Solvers : Designed for specific classes of problems, e.g.,
incompressible flow, compressible flow, multiphase flow, etc.
File Structure
23.01.2014Introduction to OpenFOAM 6
Applications = Solvers + Utilities
23.01.2014Exploring the OpenFOAM environment 7
eg. CFD, Stress Analysis etc. eg. Meshing, case setup, solution monitoring, data export etc.
Solvers
For solving a specific continuum mechanics problem with a specific
system of PDEs.
Utilities
For performing tasks that involve data handling and
manipulation
Location of applications’ source code
23.01.2014Exploring the OpenFOAM environment 8
utilities
• contains the source code of the utilities
test
• contains the source code for testing specific features of OpenFOAM
solvers
• contains the source code of the solvers
Allwmake
• used to compile all the applications
Solvers in OpenFOAM
Solvers in OpenFOAM
23.01.2014Exploring the OpenFOAM environment 9
Frequently Used Standart Solvers
23.01.2014Exploring the OpenFOAM environment 10
Frequently Used Standart Solvers
23.01.2014Exploring the OpenFOAM environment 11
Frequently Used Standart Solvers
23.01.2014Exploring the OpenFOAM environment 12
icoFOAM Solver
23.01.2014Exploring the OpenFOAM environment 13
Utilities in OpenFOAM
Utilities in OpenFOAM
23.01.2014Exploring the OpenFOAM environment 14
Frequently Used Standart Utilities
23.01.2014Exploring the OpenFOAM environment 15
Frequently Used Standart Utilities
23.01.2014Exploring the OpenFOAM environment 16
Frequently Used Standart Utilities
23.01.2014Exploring the OpenFOAM environment 17
Frequently Used Standart Utilities
23.01.2014Exploring the OpenFOAM environment 18
A Simple Example
The Lid-driven Cavity Tutorial
23.01.2014A Simple Example 19
Problem Contents
• Overview: Description of the problem
• Part 1: Mesh Generation
• Part 2: Initial & Boundary Conditions
• Part 3: Setting Physical Properties
• Part 4: Solver Control
Overview: Description of the Problem
23.01.2014A Simple Example 20
Overview: Description of the Problem
23.01.2014A Simple Example 21
Part 1: Pre-processing
23.01.2014A Simple Example 22
Part 1: Pre-processing
23.01.2014A Simple Example 23
Part 1: Pre-processing
23.01.2014A Simple Example 24
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 25
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 26
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 27
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 28
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 29
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 30
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 31
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 32
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 33
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 34
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 35
Part 1: Pre-processing – Mesh Generation
23.01.2014A Simple Example 36
Part 2: Initial and Boundary Conditions
23.01.2014A Simple Example 37
Dimensional Units
23.01.2014A Simple Example 38
Part 2: Initial and Boundary Conditions
23.01.2014A Simple Example 39
Part 2: Initial and Boundary Conditions
23.01.2014A Simple Example 40
Part 3: Physical Properties
23.01.2014A Simple Example 41
Part 4: Solver Controls
23.01.2014A Simple Example 42
Part 4: Solver Controls
23.01.2014A Simple Example 43
Part 4: Solver Controls - fvSchemes
23.01.2014A Simple Example 44
Numerical schemes
23.01.2014A Simple Example 45
Interpolation schemes
23.01.2014A Simple Example 46
Surface normal gradient schemes
23.01.2014A Simple Example 47
Gradient schemes
23.01.2014A Simple Example 48
Divergence schemes
23.01.2014A Simple Example 49
Laplacian schemes
23.01.2014A Simple Example 50
Time schemes
23.01.2014A Simple Example 51
Part 4: Solver Controls - fvSolution
23.01.2014A Simple Example 52
Linear solver control
23.01.2014A Simple Example 53
Preconditioned conjugate gradient solvers
23.01.2014A Simple Example 54
Smooth solvers
23.01.2014A Simple Example 55
Smooth solvers
23.01.2014A Simple Example 56
Part 5: Processing
23.01.2014A Simple Example 57
Part 5: Post Processing
23.01.2014A Simple Example 58
References
23.01.2014References 59
• OpenFOAM® Documentation, http://www.openfoam.org/docs/
• Nilsson, H. (2009), http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2009
PhD course in CFD with OpenSource software.
• David A. Boger (2011), Getting Started with OpenFOAM ®,
6th OpenFOAM Workshop
• User Forum (http://www.cfd-online.com/Forum/)
• Wiki (http://openfoamwiki.net)
Q & A