using gmsh as a mesh generator and post-processor for … · using gmsh as a mesh generator and...

33
Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm´ an 1 , Thibaud Mouton 2 and Anne Marie Habraken 1,3 1 Department ArGEnCo, division MS 2 F, Materials and Solid Mechanics, Li` ege, Belgium. 2 Department A&M, Conception g´ eom´ etrique assist´ ee par ordinateur, Li` ege, Belgium. 3 Research Director of the Fonds de la Recherche Scientifique-FNRS September 11th, 2013

Upload: lecong

Post on 31-Mar-2018

261 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Using Gmsh as a mesh generator andpost-processor for LAGAMINE

Carlos Felipe Guzman1, Thibaud Mouton2

and Anne Marie Habraken1,3

1Department ArGEnCo, division MS2F, Materials and Solid Mechanics, Liege, Belgium.

2Department A&M, Conception geometrique assistee par ordinateur, Liege, Belgium.

3Research Director of the Fonds de la Recherche Scientifique-FNRS

September 11th, 2013

Page 2: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Contents

1 Introduction

2 Gmsh

3 Examples

4 Post-processing

2

Page 3: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Contents

1 Introduction

2 Gmsh

3 Examples

4 Post-processing

3

Page 4: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Introduction

Physicalphenomena

Mathematicalmodel

ComputationalmethodsPDE FEM

Why a mesh?

Solving PDEs involving the space domain.

Spatial discretization as a support for FE simulations.

PDEs can be solved over a set of conforming geometric entities.

4

Page 5: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Introduction

Variationalformulation

Domaindecomposition

Time inte-gration,. . .FEM

Mesh generation

Domain decomposition is not straightforward!

Quality of discretization ⇒ quality of the FE solution.

How we deal with it in LAGAMINE?

5

Page 6: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Current tools

Geometrydefinition

Meshgeneration

Pre-processing

Solver

Post-processing

GeometryMatlabCATIA

GMaill, GiDMatlabgmsh?

PREPRO

LAGAMINE

DesfinLS-Dyna, GiD

Matlab

6

Page 7: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Proposal

Why not use state-of-art toolsfor mesh generation?

(or for the geometry and the post-processing. . . )

7

Page 8: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Contents

1 Introduction

2 Gmsh

3 Examples

4 Post-processing

8

Page 9: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Gmsh

Automatic 3D finite element meshgenerator with built-in pre- andpost-processing facilities

Overview

Developed by C Geuzaine (ULg) and JF Remacle (UCL)

Simple scripting language

Free, open-source and multi-platform (Windows, Linux, Mac)

More info: http://geuz.org/gmsh/

9

Page 10: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Gmsh

Automatic 3D finite element meshgenerator with built-in pre- andpost-processing facilities

Overview

Developed by C Geuzaine (ULg) and JF Remacle (UCL)

Simple scripting language

Free, open-source and multi-platform (Windows, Linux, Mac)

More info: http://geuz.org/gmsh/

9

Page 11: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

What we can do with Gmsh?

Modules

1 Geometry through BRep or OpenCASCADE.

2 Meshing the main core.

3 Solver . . . interface for solvers.

4 Post-processing scalar, vector and tensor fields.

Meshing

Constraint: 4-nodes and 8-nodes elements.

Structured algorithms: transfinite and extrusion.

Unstructured algorithms: Frontal Delaunay triangular andtetrahedral and frontal quadrilateral mesh generators with size andorientation specifications.

10

Page 12: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

What we can do with Gmsh?

Modules

1 Geometry through BRep or OpenCASCADE.

2 Meshing the main core.

3 Solver . . . interface for solvers.

4 Post-processing scalar, vector and tensor fields.

Meshing

Constraint: 4-nodes and 8-nodes elements.

Structured algorithms: transfinite and extrusion.

Unstructured algorithms: Frontal Delaunay triangular andtetrahedral and frontal quadrilateral mesh generators with size andorientation specifications.

10

Page 13: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

gmsh2lag

Gmsh

Matlab

PREPRO

LAGAMINE

MSH file

LAG file

11

Page 14: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

gmsh2lag

Gmsh

Matlab

PREPRO

LAGAMINE

MSH file

LAG file

11

Page 15: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

gmsh2lag

Gmsh

PREPRO

LAGAMINE

MSH fileLAG file

11

Page 16: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Contents

1 Introduction

2 Gmsh

3 Examples

4 Post-processing

12

Page 17: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Flat specimen with notch

R =2 mm

13

Page 18: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Flat specimen with notch

R =5 mm

13

Page 19: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Flat specimen with notch

R =10 mm

13

Page 20: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Flat specimen with notch

X

Y

L a g a m i n e t e s t f i l e G u z m a n G u r s o n _ D C 0 1 _ D M _ R 1 0

S T R U C T U R E I N I T I A L E

A P P U I S : T O U S

T O U T E S L E S A R E T E S

V U E E N P L A N X Y

R E D U C T . : 0 %

M I N M A XX 0 . 0 0 0 1 0 . 0 0 0Y 0 . 0 0 0 1 9 . 5 3 0Z 0 . 0 0 0 0 . 5 0 0

S E L E C T I O N D E S E L E M E N T ST O U S

D E S F I N 9 . 4 0 6 / 0 9 / 2 0 1 3

13

Page 21: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Mesh qualityDistorsion

14

Page 22: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Mesh qualityρ

ρ ≈ min edge length

max edge length

14

Page 23: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Cylinder with hole

15

Page 24: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Cylinder with hole

15

Page 25: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Butterfly specimen

16

Page 26: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Butterfly specimen

X Y

Z

B u t t e r f l y s p e c i m e n G u z m a n B u t t e r f l y _ m e s h

S T R U C T U R E I N I T I A L E

T O U T E S L E S A R E T E S

P E R S P E C T I V E ( P V , P F , P O ) X Y Z

8 4 3 . 1 5 1 0 1 1 . 7 8 1 1 8 0 . 4 1

0 . 0 0 0 . 0 0 0 . 0 0

0 . 0 0 0 . 0 0 8 4 . 3 1

M I N M A XX - 1 6 . 0 0 0 1 6 . 0 0 0Y - 3 9 . 0 0 0 3 9 . 0 0 0Z - 0 . 5 0 0 0 . 5 0 0

S E L E C T I O N D E S E L E M E N T ST O U S

D E S F I N 9 . 4 0 5 / 0 9 / 2 0 1 3

16

Page 27: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

CAD/CAM STL file

17

Page 28: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Contents

1 Introduction

2 Gmsh

3 Examples

4 Post-processing

18

Page 29: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Post-processing

Capabilities

Scalar, vector or tensor datasets (Iso-values. . . ).

Vector graphics output (gl2ps library), movie making capabilities,about 30 plugins,. . .

Both interactive and scripting interface.

Why with LAGAMINE?

Better capabilities than DesFin (and DREAMS).

Stable development and support.

New formatting for DON and RES files?

19

Page 30: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Post-processing. . . in LAGAMINE

PREPRO

LAGAMINE

SELECT

DESFIN

DON file

RES file

20

Page 31: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Post-processing. . . in LAGAMINE

PREPRO

LAGAMINE

SELECT

DESFIN

DON file

RES file

20

Page 32: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Post-processing. . . in LAGAMINE

PREPRO

LAGAMINE

Gmsh

DON file

RES fileDON file

20

Page 33: Using Gmsh as a mesh generator and post-processor for … · Using Gmsh as a mesh generator and post-processor for LAGAMINE Carlos Felipe Guzm an1, Thibaud Mouton2 and Anne Marie

Using Gmsh as a mesh generator andpost-processor for LAGAMINE

Carlos Felipe Guzman1, Thibaud Mouton2

and Anne Marie Habraken1,3

1Department ArGEnCo, division MS2F, Materials and Solid Mechanics, Liege, Belgium.

2Department A&M, Conception geometrique assistee par ordinateur, Liege, Belgium.

3Research Director of the Fonds de la Recherche Scientifique-FNRS

September 11th, 2013