A Brief Introduction To Mesh Generation
A Brief Introduction To Mesh Generation
mesh generation
Josep Sarrate
2
Layout of the course
3
Why do we need meshes?
No mesh
No simulation
4
Why do we need meshes?
5
1. Why do we need meshes?
Set boundary and initial conditions Set boundary and initial conditions
Refine / Remesh
Error estimation
Error > ε
Error < ε
Visualization Visualization
6
Layout of the course
7
2. Geometry description
• How are geometries described?
• CAD (brep)
• Tessellation
8
2. Geometry description
Remove imprints or
extrusions
Remove holes
10
2. Geometry description
peated entities
Remove repeated
12
2. Geometry description
Discrete Model
▪ The geometry and the mesh of the model are represented by
entities.
▪ In both cases it is of the major importance to take into
account:
• The topological relationship between entities
• The geometrical relationship between entities
13
2. Geometry description
14
2. Geometry description
15
2. Geometry description
Curves:
bounded by two points
16
2. Geometry description
Curves:
bounded by two points
Surfaces:
closet set of curves
17
2. Geometry description
Curves:
bounded by two points
Surfaces:
closet set of curves
Volumes:
closet set of surfaces
18
2. Geometry description
Curves:
bounded by two points
Surfaces:
closet set of curves
Volumes:
closet set of surfaces
19
2. Geometry description
Curves:
bounded by two points
Surfaces: Edges:
closet set of curves Orientation of a curve w.r.t. a loop
Volumes:
closet set of surfaces
20
2. Geometry description
Curves:
bounded by two points
Surfaces: Edges:
closet set of curves Orientation of a curve w.r.t. a loop
Volumes:
closet set of surfaces
Shell:
oriented set of surfaces
comprising a volume
21
2. Geometry description
Curves:
bounded by two points
Surfaces: Edges:
closet set of curves Orientation of a curve w.r.t. a loop
Volumes:
closet set of surfaces
Shell:
oriented set of durfaces Face:
comprising a volume oriented surface w.r.t. a shell
22
2. Geometry description
Curves:
bounded by two points
Surfaces: Edges:
closet set of curves Orientation of a curve w.r.t. a loop
Volumes:
closet set of surfaces
Solid:
Shell:
oriented set of surfaces Face: Body (group):
comprising a volume oriented surface w.r.t. a shell Collection of solids
23
2. Geometry description
Volume 1
Volume 2
Surface 11
Surface 1 Surface 2 Surface 3 Surface 4 Surface 5 Surface 6 Surface 7
Volume 2
24
2. Geometry description
Volume 1
Volume 2
Surface 11
Surface 1 Surface 2 Surface 3 Surface 4 Surface 5 Surface 6
Volume 2
25
2. Geometry description
27
3. Classification of mesh generation methods
▪ Type of meshes: depending on the number of adjacent elements to
each inner node
Structured mesh (constant) Unstructured mesh (non-constant)
Structured vs unstructured
Domain must verify some constraints Valid for arbitrary domains
More restrictive for dealing with non-constant More flexible for dealing with non-constant
element size element size
Preferable for aligning elements with boundaries Can be used for aligning elements with
/ material properties boundaries / material properties
Easier to develop More complex to develop
28
3. Classification of mesh generation methods
Conformal vs non-conformal
Flexible / restrictive for dealing with non- More flexible for dealing with non-
constant element size constant element size
More usual in industry Less usual in industry
29
3. Classification of mesh generation methods
▪ 3D mixed meshes
▪ Other 3D elements
▪ 3D mixed meshes
▪ Other 3D elements
Initial
Mesh points Mesh curves Mesh surfaces Mesh volumes
(adapted/healed)
(0-D entities) (1-D entities) (2-D entities) (3-D entities)
CAD model
33
3. Classification of mesh generation methods
Mapped Elliptic
Structured
Hyperbolic
Quads/Hex
Sub-mapping
Decomposition Sweeping
Octree based
35
4. Structured mesh generation methods
Properties:
• Limited applicability
• High quality meshes
• Implemented in several environments
37
3
4. Structured mesh generation methods
▪ Properties
• Smooth meshes
• Control on the orthogonality of the mesh edges
• Require solving numerically a PDE (cost)
38
4. Structured mesh generation methods
▪ Determine a coordinate transformation that maps
the body-fitted non-uniform non-orthogonal physical space (x,y,z)
We require that:
• Any point of the computational space is mapped to a unique point of the physical space
(one-to-one)
• Each point of the physical space is the image of a point in the computational space (onto)
We assume that mapping is smooth and that the Jacobian is not null
39
4. Structured mesh generation methods
The most common elliptic PDE used for grid generation is the Poisson
equation:
where P(ξ,η) and Q(ξ,η) are used to control the distribution of points:
P(ξ,η)>0 the points are attracted to the “right”
P(ξ,η)<0 the points are attracted to the “left”
Q(ξ,η)>0 the points are attracted to the “top”
Q(ξ,η)<0 the points are attracted to the “bottom”
But this is not our objective !!!
Our goal is to create a mesh in the physical domain by performing all the
computations in the uniform rectangular space.
40
4. Structured mesh generation methods
▪ Our goal is to create a mesh in the physical domain by performing all the
computations in the uniform rectangular space.
▪ Since function is invertible we can define the inverse
transformation
where and
41
4. Structured mesh generation methods
▪ Laplacian method can be modified in order to control the shape of the grid
Image from http://rtech-engineering.com Image from J. P. Steinbrenner & J.R. Chawner Image from R. Schalps , S. Shahpar & V. Gümmer
42
4. Structured mesh generation methods
▪ Properties:
• Fast (compared with PDE based methods)
• Direct control on the node location
• Less control on the grid smoothness
43
4. Structured mesh generation methods
▪ Mapping definition
Computational domain Physical domain
with
being
is a structured mesh
44
4. Structured mesh generation methods
▪ Linear TFI in 2D
For the linear TFI the blending functions are (other types can be used: cubic Hermite,)
Finally, the transfinite mapping as the Boolean sum of the two interpolation
45
4. Structured mesh generation methods
▪ Grid spacing control
• The spacing between points in the physical domain is controlled by blending
functions: and
• Two approaches are used to control the spacing between points:
• Design a blending function to generate the desired grid concentration
• To define an intermediate control domain between the computational and physical
domains
• We define the intermediate
diate control space according
accord to
Control domain
46
4. Structured mesh generation methods
▪ There exist a wide range of functions to define the intermediate space (the
spacing of grid points).
▪ One of the simplest choices is the
e single-exponential
gle-exponential function
sing
A=-3 A=0 A= 3
47
4. Structured mesh generation methods
▪ Submapping
A method to decompose and mesh a “blocky” geometry into
simple pieces that are equivalent to a quadrilateral (2D) or a box
(3D)
Properties:
• Full automatic decomposition
• Fast
• The decomposition leads to a compatible meshing of blocks
48
4. Structured mesh generation methods
49
4. Structured mesh generation methods
▪ Two representations of the geometry are used:
• The physical space is the initial representation of the geometry
• The computational space is a representation of the initial
geometry in which each edge is parallel to the coordinate axes.
F D C
F E
A
B
C A B
D
Physical domain Computational domain
50
4. Structured mesh generation methods
▪ Vertex classification: End End
-i
+j
▪ End: Inner angle close to 90º. +i
-j Corner
▪ Side: Inner angle close to 180º End
+j
▪ Corner: Inner angle close to 270º.
+i
▪ Reversal: Inner angle close to 360º
End End
End End
-i
0o 90o 180o 270o 360o Reversal
-j +j
End Side Corner Reversal End
+j +j
+i +i
End End
▪ Edge classification
51
4. Structured mesh generation methods
▪ For a structured mesh, we impose the compatibility conditions:
52
4. Structured mesh generation methods
▪ Creation of the computational domain: once the number of intervals on each
edge is computed we have to create them in the computational space
▪ Selecting a cutting edge: the start of a cutting edge will be a node classified as
corner or reversal
The cutting edge will be horizontal or vertical (the shortest one is selected)
53
4. Structured mesh generation methods
▪ Splitting the domain: once a cutting edge is found, we proceed to split the
y, iterate the process
domain and, recursively, p p
on each part
The process of decomposition ends when there are no corner nor reversal nodes
▪ Discretization of each subdomain: we mesh each subdomain of the geometry
using a classical structured mesh generator, for example TFI
54
4. Structured mesh generation methods
▪ Advanced issues
• Domains with holes: how to locate them?
side end
end side
How to classify these vertices?
Is it a correct classification?
55
4. Structured mesh generation methods
▪ Some examples
56
4. Structured mesh generation methods
▪ Some
me examples
57
4. Structured mesh generation methods
▪ Sweeping
A method to decompose and mesh extrusion domains
Extrusion Volume: a surface is swept along a path.
This volume is delimited by:
• Source surface
• Target surface (#logical facesS = #logical facesT)
Linking sides (4 logical faces, #lateral faces =
#logical facesS)
Classification
One-to-one sweeping Many-to-one sweeping Many-to-many sweeping
Properties:
• Full automatic decomposition
• The decomposition leads to a compatible meshing of blocks
• Fast
58
4. Structured mesh generation methods
Source surface
Inner layers
There is not a underlying surface defining the inner Target surface mesh
layers Mapped from the source surface
The inner layers are defined by mesh
1. one outer loop There is an underlying geometry
2. as many inner loops as inner holes describing the surface (usually
The inner layers are created using a weighted from the CAD model)
interpolation
1- From the cap meshes
2. Layer by layer (in an advancing front manner)
59
4. Structured mesh generation methods
60
4. Structured mesh generation methods
· Initial surface and sweep path
60
4. Structured mesh generation methods
· Initial surface and sweep path
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
· Target surface mesh
(projected using least-squares or
other methods)
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
· Target surface mesh
(projected using least-squares or
other methods)
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
· Target surface mesh
(projected using least-squares or
other methods)
· Linking sides meshes
(structured, TFI)
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
· Target surface mesh
(projected using least-squares or
other methods)
· Linking sides meshes
(structured, TFI)
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
· Target surface mesh
(projected using least-squares or
other methods)
· Linking sides meshes
(structured, TFI)
· 3D mesh
60
4. Structured mesh generation methods
· Initial surface and sweep path
· Sweep volume
· 0D mesh
· 1D mesh
· 2D mesh
· Source surface mesh
(unstructured)
· Target surface mesh
(projected using least-squares or
other methods)
· Linking sides meshes
(structured, TFI)
· 3D mesh
· inner nodes
(projected using least-squares or
other methods)
and 3D elements
60
4. Structured mesh generation methods
▪ Some examples: one-to-one sweep meshes
61
4. Structured mesh generation methods
▪ Some examples: many-to-many meshes
62
4. Structured mesh generation methods
▪ Some examples: many-to-many meshes
63
4. Structured mesh generation methods
▪ Some examples: many-to-many meshes
64
Layout of the course
65
5. Unstructured mesh generation methods
▪ Classification
• Methods for triangular and tetrahedral meshes
• Tree-based methods
• Advancing front
• Delaunay
• Combined approaches (Advancing-front Delaunay approach)
• Methods for quadrilateral and hexahedral meshes
• Indirect methods
• Qmorh / Hmorph
• Blossom-quad
• Direct methods
• Grid based
• Medial axis
• Paving / Plastering
• Cross field
66
5.a. triangular and tetrahedral meshing
▪ Classification
• Tree-based methods
• Use trees to describe the geometry
• Geometry details and size field are caught by tree refinement
• Use templates to catch the geometry
• Advancing-front methods
• Starting at the boundaries, new layers of elements are added (outside-to-inside-
approach)
• High quality meshes (specially for boundary layers)
• Efficient and robust
• Delaunay methods:
• Given an initial triangulation, new nodes are added according to Delaunay criteria
(therefore, the connectivity is updated)
• Theoretical results about the minimum angle of the triangulation
• Efficient and robust
• Combined approaches (Advancing-front Delaunay approach)
• Increase the efficiency (intersection checking routine, ) and robustness (merging
fronts, ) of the advancing-front method
68
5.a. triangular and tetrahedral meshing
▪ Octree-based methods
• How it works?
• Basic steps
• Create the tree
• Generate the mesh
• element size compatibility
• boundary compatibility
• cell subdivision (templates)
• Optimize the mesh
69
5.a. triangular and tetrahedral meshing
▪ What’s a tree?
Hierarchic data structure (used here to localize points in space)
Branch (parental quad)
Leaf (terminal quad)
Root quad
71
5.a. triangular and tetrahedral meshing
72
5.a. triangular and tetrahedral meshing
• Boundary cells
• We only mesh the inner part of the mesh
• Compatibility between the boundary and cell
• Global smoothing (no new nodes or elements !!!)
73
5.a. triangular and tetrahedral meshing
▪ Examples
74
5.a. triangular and tetrahedral meshing
75
5.a. triangular and tetrahedral meshing
▪ Main algorithm
1. Data input (boundary mesh, T, and element-size field)
2. Initialization of the front, F, with T
3. Analysis of the front F as long as F is not empty
• Select a front entry, f (based on a criterion)
• Determine the best point position Popt
• Determine if a point P exists in the current mesh that should be used
instead of Popt
• Generate element K using f and Popt
• Check if element K intersects any mesh entity.
4. Update the front and the current mesh
• Remove f from front F and any entity of F used to form K
• Add those entities of the new element K that belongs to the new front
• Update the current mesh T
5. If the front is not empty, return to step 3
6. Mesh optimization
76
5.a. triangular and tetrahedral meshing
▪ Algorithm illustration
77
5.a. triangular and tetrahedral meshing
• Processing time.
• Extensive searching,
hing, sorting and checking routines
• Efficient data structure: efficient access to the “neighborhood” of
given entity (Alternating Digital Tree, ADT)
• Quality.
• No theoretical results on the quality of the final mesh
• Isotropic and anisotropic meshes
78
5.a. triangular and tetrahedral meshing
▪ Some examples
▪ Some examples
▪ Some examples
Images from
Y. Ito et al
80
5.a. triangular and tetrahedral meshing
81
5.a. triangular and tetrahedral meshing
Theoretical properties
Empty Circle criterion: The circumcircle around every triangle of the DT contains no
vertices of the triangulation other than the three vertices that define the triangle
Min circumcircle criterion: The DT minimizes the largest circumcircle that can be
constructed around any triangle
82
5.a. triangular and tetrahedral meshing
Algorithms
•Topological flipping Algorithms. They generate a Delaunay
triangulation without using the Voronoi diagram
Lawson C.L. (1977)
Issues:
• Insertion point criterion
Chew P.L. (1993)
Weatherill N.P. (1993)
Rupert (1995)
Borouchaki H.& George PL. (1997)
Algorithm:
1. Form initial triangulation using boundary
boundary points and outer box
2. Replace an undesired element (bad or large) by inserting its
circumcenter, and split it into three triangles
3. If any of the circumcircle these triangles contain the opposite corner node
of a neighbouring triangle flip the diagonals
4. For every new triangle created by flipping the circumcircle test also has
to be carried out
5. Repeat until mesh is good
Properties:
• Will converge with high element qualities in 2-D
• Does not extend to 3D
85
5.a. triangular and tetrahedral meshing
•Incremental algorithms (point insertion algorithms).
Insertion polygon method (Bowyer – Watson, 1981)
Algorithm:
1. Form initial triangulation using boundary points and outer box
2. Replace an undesired element (bad or large) by inserting its
circumcenter
3. Identify all triangles such that the new point falls inside their circumcenter
(this enclosed polygon is called the insertion polygon)
4. Retriangulate the insertion polygon
5. Repeat until mesh is good
1
5.a. triangular and tetrahedral meshing
•Incremental algorithms (point insertion algorithms).
Insertion polygon method (Bowyer – Watson, 1981)
Algorithm:
Properties:
• Will converge with high element qualities in 2-D
• Extends to 3D
• Very fast – time almost linear in number of nodes
2
5.a. triangular and tetrahedral meshing
87
5.a. triangular and tetrahedral meshing
Geometric predicates:
The two well-known predicates needed for Dealunay triangulations are:
• The orientation test
Decides on which side of the line Decides on which side of the plane oriented by
defined by two points lies a third point three non-aligned points lies a third point
r
t q t q
p p
88
5.a. triangular and tetrahedral meshing
• The in-sphere test
Given three positive oriented points, decides Given four positive oriented points, decides
when a fourth point lies inside the when a fifth point lies inside the
circumscribing circle of the three points circumscribing sphere of the four points
r r
t t
s
p q p q
89
5.a. triangular and tetrahedral meshing
To make the incremental algorithms more robust it is needed to
incorporate:
90
5.a. triangular and tetrahedral meshing
Boundary recovery (Constrained Delaunay)
y)
For non-convex domains Dalaunay triangulation
may not conform to the boundary or might not
respect a given set of edges
91
5.a. triangular and tetrahedral meshing
▪ Some examples
92
5.a. triangular and tetrahedral meshing
▪ Some examples
93
5.a. triangular and tetrahedral meshing
▪ Some examples
93
5.a. triangular and tetrahedral meshing
▪ Some examples
93
5.a. triangular and tetrahedral meshing
▪ Some example
▪ Some example
▪ Some example
▪ Some example
95
5
5.b. Quadrilateral and hexahedral meshing
▪ Classification
• Indirect methods
• Tri/tet Combine
• Qmorph, Hmorph
• Blossom
• Direct methods
• Grid based methods: quadtrees (2D),
D), octrees (3D)
• Medial axis
• Advancing front methods: Paving (2D), Plastering
g (3D)
(3D)
• Partition methods: Gen4U
• Cross field methods
• Dual methods
• Whisker Weaving
• Sheet manipulation
96
5.b. Quadrilateral and hexahedral meshing
▪ Indirect methods
• All methods work well for 2D problems
• Do not guarantee a full unstructured hex mesh in 3D
▪ Tri/Tet combine
• Two triangles can be combined to generate a quad
▪ Qmorph / Hmorph
• Uses an advancing front approach
• Local swaps applied to improve resulting quad
• Any number of triangles merged to create a quad
• Hex dominant meshes in 3D
▪ Qmorph / Hmorph
• Uses an advancing front approach
• Local swaps applied to improve resulting quad
• Any number of triangles merged to create a quad
• Hex dominant meshes in 3D
▪ Qmorph / Hmorph
• Uses an advancing front approach
• Local swaps applied to improve resulting quad
• Any number of triangles merged to create a quad
• Hex dominant meshes in 3D
▪ Qmorph / Hmorph
• Uses an advancing front approach
• Local swaps applied to improve resulting quad
• Any number of triangles merged to create a quad
• Hex dominant meshes in 3D
▪ Qmorph / Hmorph
• Uses an advancing front approach
• Local swaps applied to improve resulting quad
• Any number of triangles merged to create a quad
• Hex dominant meshes in 3D
▪ Qmorph / Hmorph
• Uses an advancing front approach
• Local swaps applied to improve resulting quad
• Any number of triangles merged to create a quad
• Hex dominant meshes in 3D
98
5.b. Quadrilateral and hexahedral meshing
1. Generate regular grid of
▪ Grid based methods quads/hexes on the interior of
model
2. Mark inner elements that do
not touch the boundary.
3. Remove elements outside
the domain
4. Fit elements to the boundary
by projecting interior faces
towards the surfaces
Note that:
• Lower quality elements near
boundary
• Non-boundary conforming
• Extended to 3D. However low
quality elements may appear at
the boundary (on going
research)
99
5.b. Quadrilateral and hexahedral meshing
100
5.b. Quadrilateral and hexahedral meshing
▪ Medial axis
• The Medial Axis (or skeleton) of a 2D region is defined as the
locus of the center of all the maximal inscribed circle of the
object.
Each part can be meshed Medial axis is sensitive to Degeneration to a line Degeneration
with a compatible quad small boundary to a point
mesh perturbations
102
5.b. Quadrilateral and hexahedral meshing
▪ Some examples
104
5.b. Quadrilateral and hexahedral meshing
104
5.b. Quadrilateral and hexahedral meshing
104
5.b. Quadrilateral and hexahedral meshing
104
5.b. Quadrilateral and hexahedral meshing
104
5.b. Quadrilateral and hexahedral meshing
104
5.b. Quadrilateral and hexahedral meshing
104
5.b. Quadrilateral and hexahedral meshing
▪ Advantages:
• Fully automatic
• High quality meshes near the boundary
• Boundary meshes are respected (compatibility)
▪ Drawbacks
• May lead to mixed meshes in 3D
• Time consuming
104
5.b. Quadrilateral and hexahedral meshing
▪ Main operation
• Node classification
expanding
• Node location
• Wedge insertion (expanding areas)
contracting contracting
• Tuck formation (contracting areas)
• Seaming
• Front collision
105
5.b. Quadrilateral and hexahedral meshing
▪ Node classification
• Definition of node types from the internal angles
Side
Reversal
Corner
End
106
5.b. Quadrilateral and hexahedral meshing
▪ Node location
108
5.b. Quadrilateral and hexahedral meshing
Node Ni+1 is
Contraction of size Two quadrilateral merged with node The front is
of the element elements are Ni-1 and a new smoothed after tuck
sides removed quadrilateral formation
element is formed
109
5.b. Quadrilateral and hexahedral meshing
▪ Seaming
110
5.b. Quadrilateral and hexahedral meshing
▪ Extends to 3D (PLASTERING)
• Fails to generate a fully unstructured hex mesh for some
geometries
• Hex meshes are too much constrained !
111
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
112
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
113
5.b. Quadrilateral and hexahedral meshing
▪ Unconstrained Plastering
• Unmeshed boundary
• Layers advance inward from the boundaries
▪ Advantages:
• Fully automatic
• High quality meshes near the boundary
▪ Drawbacks
• May lead to mixed meshes
• Time consuming
113
5.b. Quadrilateral and hexahedral meshing
114
5.b. Quadrilateral and hexahedral meshing
114
5.b. Quadrilateral and hexahedral meshing
114
5.b. Quadrilateral and hexahedral meshing
114
5.b. Quadrilateral and hexahedral meshing
115
5.b. Quadrilateral and hexahedral meshing
118
6. Mesh optimization and mesh adaption
▪ Summary
• Mesh optimization
• Quality measures
• Topological mesh optimization techniques
• Tri / Tets
• Quad / Hexes
• Mesh smoothing techniques
• Geometry based methods
• Optimization based methods
• Mesh adaption
• Basic concepts
• Embedded adaption
• New mesh generation
119
6. Mesh optimization and mesh adaption
▪ Quality measures
• Element quality. A continuous strictly monotonic function
▪ maximum for an ideal element and minimum for degenerated elements
120
6. Mesh optimization and mesh adaption
▪ Examples
▪ Ratio between the inradius and the longest edge
▪ Ratio between the inradius and the circumradius
Singular
Ideal
Singular
Ideal
Invalid Valid
121
6. Mesh optimization and mesh adaption
Singular
▪ Algebraic quality measures
We can compute fS
Ideal
Quality
y
Singular
Shape Distortion
Ideal
Shape Quality
Invalid Valid
122
6. Mesh optimization and mesh adaption
123
6. Mesh optimization and mesh adaption
▪ Triangles (1/2)
• Edge swapping. Swap the shared edge of two triangles forming
a convex quadrilateral. It is the only local topological operator in
two dimensions.
▪ Triangles (2/2)
• Edge suppression. Replace an edge by a node
125
6. Mesh optimization and mesh adaption
▪ Quadrilaterals
• Node suppression. Suppress all nodes with only to adjacent
quadrilaterals (doublet).
• Element removal.
• Edge removal.
126
6. Mesh optimization and mesh adaption
boundary
127
6. Mesh optimization and mesh adaption
▪ Tetrahedra
• Face swapping. Each inner face separates two tetrahedra, 5
nodes. There are two configurations:
• Inner tetrahedra. From 2 to 3 tetrahedra adding interior edge.
▪ Hexahedra
• Doublet. 2 quadrilateral faces sharing 2 edges !!
doublet face
doublet node
doublet face
doublet face
doublet node
doublet face
2 quadrilaterals 2 hexahedra
doublet
?
129
6. Mesh optimization and mesh adaption
▪ Hexahedra
• Pillowing (nonlocal in 3D):
• For every doublet face find shrink set
• Shrink sets
• Connect
130
6. Mesh optimization and mesh adaption
131
6. Mesh optimization and mesh adaption
▪ Mesh smoothing
▪ Objective: Improve the quality of the mesh by changing the
location of nodes (no topological modifications)
▪ Classification:
• Laplacian like methods
• Based on mechanical analogies
• Optimization based methods
132
6. Mesh optimization and mesh adaption
▪ Laplacian smoothing
• General overview
• A number of smoothing techniques are lumped under this name
• It is the most commonly used and the simplest smoothing method.
• It can be applied to 2D (plane and surfaces) and 3D geometries.
• Advantages:
• This method is inexpensive to compute
• Drawbacks:
• It does not guarantee an improvement in the mesh quality
• Sometimes generate poor quality meshes
• Sometimes generate meshes with tangled elements (inner nodes
move out of the domain)
133
6. Mesh optimization and mesh adaption
▪ Laplacian smoothing
• For a structured and regular mesh:
134
6. Mesh optimization and mesh adaption
135
6. Mesh optimization and mesh adaption
ω=0 ω=1
Laplacian method Isoparametric method
137
6. Mesh optimization and mesh adaption
▪ Smart Laplacian
• No effort is made to ensure that mesh quality is improved
• Poor elements (even tangled elements) can be generated
• If
138
6. Mesh optimization and mesh adaption
Shape Distortion
Shape Quality
139
6. Mesh optimization and mesh adaption
Singular
No Barriers !!!
Can be used in a continuous
optimization procedure !!!
Ideal
Untangle capabilities !!!
140
Layout of the course
1. Why do we need meshes?
2. Geometry description
3. Classification of mesh generation methods
4. Structured mesh generation methods
5. Unstructured mesh generation methods
6. Mesh optimization and mesh adaption
7. Concluding remarks
141
8. Concluding remarks
▪ Mesh generation is
• a required step in the numerical simulation process
has a major impact in industry
• directly related to the geometry representation (CAD model,
images, )
• directly related to the physics of the problem
• directly related to the numerical method used in the
simulation
• a thrilling research field where engineering and
mathematical skills are combined
• a path that we are paving
Torture
Painful process
Innocuous treatment
Pleasant experience
142
8. Concluding remarks
143
8. Concluding remarks
▪ Suggested readings
• Thompson J.F., Soni B.K., Weatherill N.P, Handbook of Grid
Generation, CRC Press, 1999
• Frey P., George P.L., Mesh Generation, John Wiley & Sons,
2000
• George P.L., Borouchaki H., Delaunay Triangulation and
Meshing, Hermes, Paris, 1998
• Lo, S.H., Finite Element Mesh Generation. London: CRC Press,
2015
• Topping B.H.V., Muylle J., Putanowicz R. Cheng B., Finite
Element Mesh Generation, Saxe-Coburg Publications, 2004
• Knupp P., Steinberg S., Fundamentals of Grid Generation, CRC
Press, 1993
• International Meshing Roundtable (http://imr.sandia.gov/)
144
nk y o u !
T h a
145