+ All Categories
Home > Documents > Open foam basic introduction.pdf

Open foam basic introduction.pdf

Date post: 06-Jul-2018
Category:
Upload: darren-pinto
View: 227 times
Download: 0 times
Share this document with a friend

of 64

Transcript
  • 8/17/2019 Open foam basic introduction.pdf

    1/64

    OpenFOAM Workshop

    Yağmur Gülkanat

    Res.Assist.

  • 8/17/2019 Open foam basic introduction.pdf

    2/64

    Introduction to OpenFOAM

  • 8/17/2019 Open foam basic introduction.pdf

    3/64

    What is OpenFOAM?

    • FOAM = Field Operation And Manipulation

    • OpenFOAM is a free-to-use open-source numerical simulation software withextensive 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

  • 8/17/2019 Open foam basic introduction.pdf

    4/64

    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

  • 8/17/2019 Open foam basic introduction.pdf

    5/64

    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

  • 8/17/2019 Open foam basic introduction.pdf

    6/64

    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.

  • 8/17/2019 Open foam basic introduction.pdf

    7/64

    File Structure

    23.01.2014Introduction to OpenFOAM 6

  • 8/17/2019 Open foam basic introduction.pdf

    8/64

     Applications = Solvers + Utilities

    23.01.2014Exploring the OpenFOAM environment 7

    eg. CFD, Stress Analysis etc. eg. Meshing, case setup, solutionmonitoring, data export etc.

    Solvers

    For solving a specific continuummechanics problem with a specific

    system of PDEs.

    Utilities

    For performing tasks thatinvolve data handling and

    manipulation

  • 8/17/2019 Open foam basic introduction.pdf

    9/64

    Location of applications’ source code

    23.01.2014Exploring the OpenFOAM environment 8

    utilities

    • contains the source codeof the utilities

    test

    • contains the source code fortesting specific features ofOpenFOAM

    solvers

    • contains the source code ofthe solvers

    Allwmake

    • used to compile all theapplications

  • 8/17/2019 Open foam basic introduction.pdf

    10/64

    Solvers in OpenFOAM

  • 8/17/2019 Open foam basic introduction.pdf

    11/64

    Solvers in OpenFOAM

    23.01.2014Exploring the OpenFOAM environment 9

  • 8/17/2019 Open foam basic introduction.pdf

    12/64

    Frequently Used Standart Solvers

    23.01.2014Exploring the OpenFOAM environment 10

  • 8/17/2019 Open foam basic introduction.pdf

    13/64

    Frequently Used Standart Solvers

    23.01.2014Exploring the OpenFOAM environment 11

  • 8/17/2019 Open foam basic introduction.pdf

    14/64

    Frequently Used Standart Solvers

    23.01.2014Exploring the OpenFOAM environment 12

  • 8/17/2019 Open foam basic introduction.pdf

    15/64

  • 8/17/2019 Open foam basic introduction.pdf

    16/64

  • 8/17/2019 Open foam basic introduction.pdf

    17/64

    Utilities in OpenFOAM

    23.01.2014Exploring the OpenFOAM environment 14

  • 8/17/2019 Open foam basic introduction.pdf

    18/64

    Frequently Used Standart Utilities

    23.01.2014Exploring the OpenFOAM environment 15

  • 8/17/2019 Open foam basic introduction.pdf

    19/64

    Frequently Used Standart Utilities

    23.01.2014Exploring the OpenFOAM environment 16

  • 8/17/2019 Open foam basic introduction.pdf

    20/64

    Frequently Used Standart Utilities

    23.01.2014Exploring the OpenFOAM environment 17

  • 8/17/2019 Open foam basic introduction.pdf

    21/64

    Frequently Used Standart Utilities

    23.01.2014Exploring the OpenFOAM environment 18

  • 8/17/2019 Open foam basic introduction.pdf

    22/64

  • 8/17/2019 Open foam basic introduction.pdf

    23/64

    The Lid-driven Cavity Tutorial

    23.01.2014 A 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

  • 8/17/2019 Open foam basic introduction.pdf

    24/64

    Overview: Description of the Problem

    23.01.2014 A Simple Example 20

  • 8/17/2019 Open foam basic introduction.pdf

    25/64

    Overview: Description of the Problem

    23.01.2014 A Simple Example 21

  • 8/17/2019 Open foam basic introduction.pdf

    26/64

    Part 1: Pre-processing

    23.01.2014 A Simple Example 22

  • 8/17/2019 Open foam basic introduction.pdf

    27/64

    Part 1: Pre-processing

    23.01.2014 A Simple Example 23

  • 8/17/2019 Open foam basic introduction.pdf

    28/64

    Part 1: Pre-processing

    23.01.2014 A Simple Example 24

  • 8/17/2019 Open foam basic introduction.pdf

    29/64

  • 8/17/2019 Open foam basic introduction.pdf

    30/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 26

  • 8/17/2019 Open foam basic introduction.pdf

    31/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 27

  • 8/17/2019 Open foam basic introduction.pdf

    32/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 28

  • 8/17/2019 Open foam basic introduction.pdf

    33/64

  • 8/17/2019 Open foam basic introduction.pdf

    34/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 30

  • 8/17/2019 Open foam basic introduction.pdf

    35/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 31

  • 8/17/2019 Open foam basic introduction.pdf

    36/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 32

  • 8/17/2019 Open foam basic introduction.pdf

    37/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 33

  • 8/17/2019 Open foam basic introduction.pdf

    38/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 34

  • 8/17/2019 Open foam basic introduction.pdf

    39/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 35

  • 8/17/2019 Open foam basic introduction.pdf

    40/64

    Part 1: Pre-processing – Mesh Generation

    23.01.2014 A Simple Example 36

  • 8/17/2019 Open foam basic introduction.pdf

    41/64

    Part 2: Initial and Boundary Conditions

    23.01.2014 A Simple Example 37

    Di i l U it

  • 8/17/2019 Open foam basic introduction.pdf

    42/64

    Dimensional Units

    23.01.2014 A Simple Example 38

  • 8/17/2019 Open foam basic introduction.pdf

    43/64

    Part 2: Initial and Boundary Conditions

    23.01.2014 A Simple Example 39

    2 C

  • 8/17/2019 Open foam basic introduction.pdf

    44/64

    Part 2: Initial and Boundary Conditions

    23.01.2014 A Simple Example 40

    P t 3 Ph i l P ti

  • 8/17/2019 Open foam basic introduction.pdf

    45/64

    Part 3: Physical Properties

    23.01.2014 A Simple Example 41

    P t 4 S l C t l

  • 8/17/2019 Open foam basic introduction.pdf

    46/64

    Part 4: Solver Controls

    23.01.2014 A Simple Example 42

    P t 4 S l C t l

  • 8/17/2019 Open foam basic introduction.pdf

    47/64

    Part 4: Solver Controls

    23.01.2014 A Simple Example 43

    P t 4 S l C t l f S h

  • 8/17/2019 Open foam basic introduction.pdf

    48/64

    Part 4: Solver Controls - fvSchemes

    23.01.2014 A Simple Example 44

    Numerical schemes

  • 8/17/2019 Open foam basic introduction.pdf

    49/64

    Numerical schemes

    23.01.2014 A Simple Example 45

    Interpolation schemes

  • 8/17/2019 Open foam basic introduction.pdf

    50/64

    Interpolation schemes

    23.01.2014 A Simple Example 46

    Surface normal gradient schemes

  • 8/17/2019 Open foam basic introduction.pdf

    51/64

    Surface normal gradient schemes

    23.01.2014 A Simple Example 47

    Gradient schemes

  • 8/17/2019 Open foam basic introduction.pdf

    52/64

    Gradient schemes

    23.01.2014 A Simple Example 48

    Divergence schemes

  • 8/17/2019 Open foam basic introduction.pdf

    53/64

    Divergence schemes

    23.01.2014 A Simple Example 49

    Laplacian schemes

  • 8/17/2019 Open foam basic introduction.pdf

    54/64

    Laplacian schemes

    23.01.2014 A Simple Example 50

    Time schemes

  • 8/17/2019 Open foam basic introduction.pdf

    55/64

    Time schemes

    23.01.2014 A Simple Example 51

    Part 4: Solver Controls fvSolution

  • 8/17/2019 Open foam basic introduction.pdf

    56/64

    Part 4: Solver Controls - fvSolution

    23.01.2014 A Simple Example 52

    Linear solver control

  • 8/17/2019 Open foam basic introduction.pdf

    57/64

    Linear solver control

    23.01.2014 A Simple Example 53

    Preconditioned conjugate gradient solvers

  • 8/17/2019 Open foam basic introduction.pdf

    58/64

    Preconditioned conjugate gradient solvers

    23.01.2014 A Simple Example 54

    Smooth solvers

  • 8/17/2019 Open foam basic introduction.pdf

    59/64

    Smooth solvers

    23.01.2014 A Simple Example 55

    Smooth solvers

  • 8/17/2019 Open foam basic introduction.pdf

    60/64

    Smooth solvers

    23.01.2014 A Simple Example 56

    Part 5: Processing

  • 8/17/2019 Open foam basic introduction.pdf

    61/64

    Part 5: Processing

    23.01.2014 A Simple Example 57

    Part 5: Post Processing

  • 8/17/2019 Open foam basic introduction.pdf

    62/64

    Part 5: Post Processing

    23.01.2014 A Simple Example 58

    References

  • 8/17/2019 Open foam basic introduction.pdf

    63/64

    References

    23.01.2014References 59

    •   OpenFOAM® Documentation, http://www.openfoam.org/docs/ 

    • Nilsson, H. (2009), http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2009PhD 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)

    http://www.openfoam.org/docs/http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2009http://www.cfd-online.com/Forum/http://openfoamwiki.net/http://openfoamwiki.net/http://www.cfd-online.com/Forum/http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2009http://www.openfoam.org/docs/

  • 8/17/2019 Open foam basic introduction.pdf

    64/64

    Q & A


Recommended