You are on page 1of 64

OpenFOAM Workshop

Yamur Glkanat
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..

Introduction to OpenFOAM

23.01.2014

Two development lines for OpenFOAM

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

Introduction to OpenFOAM

23.01.2014

History

Late 1980s: Imperial College, Prof. David Gosmans 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

Introduction to OpenFOAM

23.01.2014

Capabilities

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, postprocessing, etc.

Solvers : Designed for specific classes of problems, e.g.,


incompressible flow, compressible flow, multiphase flow, etc.
Introduction to OpenFOAM

23.01.2014

File Structure

Introduction to OpenFOAM

23.01.2014

Applications = Solvers + Utilities

Solvers

Utilities

For solving a specific continuum


mechanics problem with a specific
system of PDEs.

For performing tasks that


involve data handling and
manipulation

eg. Meshing, case setup, solution


monitoring, data export etc.

eg. CFD, Stress Analysis etc.

Exploring the OpenFOAM environment

23.01.2014

Location of applications source code

Allwmake

solvers

used to compile all the


applications

contains the source code of


the solvers

utilities

test

contains the source code


of the utilities

contains the source code for


testing specific features of
OpenFOAM

Exploring the OpenFOAM environment

23.01.2014

Solvers in OpenFOAM

Solvers in OpenFOAM

Exploring the OpenFOAM environment

23.01.2014

Frequently Used Standart Solvers

Exploring the OpenFOAM environment

23.01.2014

10

Frequently Used Standart Solvers

Exploring the OpenFOAM environment

23.01.2014

11

Frequently Used Standart Solvers

Exploring the OpenFOAM environment

23.01.2014

12

icoFOAM Solver

Exploring the OpenFOAM environment

23.01.2014

13

Utilities in OpenFOAM

Utilities in OpenFOAM

Exploring the OpenFOAM environment

23.01.2014

14

Frequently Used Standart Utilities

Exploring the OpenFOAM environment

23.01.2014

15

Frequently Used Standart Utilities

Exploring the OpenFOAM environment

23.01.2014

16

Frequently Used Standart Utilities

Exploring the OpenFOAM environment

23.01.2014

17

Frequently Used Standart Utilities

Exploring the OpenFOAM environment

23.01.2014

18

A Simple Example

The Lid-driven Cavity Tutorial

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

A Simple Example

23.01.2014

19

Overview: Description of the Problem

A Simple Example

23.01.2014

20

Overview: Description of the Problem

A Simple Example

23.01.2014

21

Part 1: Pre-processing

A Simple Example

23.01.2014

22

Part 1: Pre-processing

A Simple Example

23.01.2014

23

Part 1: Pre-processing

A Simple Example

23.01.2014

24

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

25

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

26

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

27

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

28

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

29

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

30

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

31

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

32

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

33

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

34

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

35

Part 1: Pre-processing Mesh Generation

A Simple Example

23.01.2014

36

Part 2: Initial and Boundary Conditions

A Simple Example

23.01.2014

37

Dimensional Units

A Simple Example

23.01.2014

38

Part 2: Initial and Boundary Conditions

A Simple Example

23.01.2014

39

Part 2: Initial and Boundary Conditions

A Simple Example

23.01.2014

40

Part 3: Physical Properties

A Simple Example

23.01.2014

41

Part 4: Solver Controls

A Simple Example

23.01.2014

42

Part 4: Solver Controls

A Simple Example

23.01.2014

43

Part 4: Solver Controls - fvSchemes

A Simple Example

23.01.2014

44

Numerical schemes

A Simple Example

23.01.2014

45

Interpolation schemes

A Simple Example

23.01.2014

46

Surface normal gradient schemes

A Simple Example

23.01.2014

47

Gradient schemes

A Simple Example

23.01.2014

48

Divergence schemes

A Simple Example

23.01.2014

49

Laplacian schemes

A Simple Example

23.01.2014

50

Time schemes

A Simple Example

23.01.2014

51

Part 4: Solver Controls - fvSolution

A Simple Example

23.01.2014

52

Linear solver control

A Simple Example

23.01.2014

53

Preconditioned conjugate gradient solvers

A Simple Example

23.01.2014

54

Smooth solvers

A Simple Example

23.01.2014

55

Smooth solvers

A Simple Example

23.01.2014

56

Part 5: Processing

A Simple Example

23.01.2014

57

Part 5: Post Processing

A Simple Example

23.01.2014

58

References

References

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

Wiki

(http://www.cfd-online.com/Forum/)

(http://openfoamwiki.net)

23.01.2014

59

Q&A

You might also like