lecture # 04 grid generation

49
Grid Generation – An Overview Lecture # 04 Grid Generation JetWings 1

Upload: maheshj90

Post on 10-Apr-2015

229 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Lecture # 04 Grid Generation

Grid Generation – An Overview

Lecture # 04 Grid Generation

JetWings 1

Page 2: Lecture # 04 Grid Generation

What a Grid is?

• A mesh/grid is an artificial geometric construction that facilitates the spatial discretization of the governing equations to be solved.

• The mesh determines the locations in the field where the variables will be evaluated and the stencil of the discrete equations.

Lecture # 04 Grid Generation

JetWings 2

Page 3: Lecture # 04 Grid Generation

The Importance

• The final accuracy and efficiency of any numerical solution are highly dependent on the particular meshing strategy and mesh density distribution employed.

• A good matching of the strengths and weaknesses of the grid generation and flow solution techniques and a strong and favourable interplay between the two is the key to an efficient overall numerical solution.

Lecture # 04 Grid Generation

JetWings 3

Page 4: Lecture # 04 Grid Generation

Classification of Meshing Strategies

• Structured Mesh – Physical location of any mesh point and the identity of its neighbours are known implicitly. Physical locations may have to be stored.

• Unstructured Mesh – Physical location of a mesh point and the identity of its neighbours, i.e., the connectivity of the mesh are to be determined explicitly.

• Hybrid Mesh – A combination of the two above.

• Gridless Mesh– A set of disconnected points distributed throughout the field.

Lecture # 04 Grid Generation

JetWings 4

Page 5: Lecture # 04 Grid Generation

Structured Mesh

• Cartesian Mesh– Mesh generation is trivial. The grid points and their connectivity are known implicitly. Methods can be extended to complex geometries using cut-cell approach.

• Body-Fitted Mesh– Grid lines/surfaces conform to the boundary lines/surfaces. A warped or mapped Cartesian-type mesh where the boundaries of the mesh coincide exactly with the the boundaries of the physical domain. Physical location of the mesh points must be stored but the identity of the neighbours known implicitly.

Lecture # 04 Grid Generation

JetWings 5

Page 6: Lecture # 04 Grid Generation

Structured Mesh – Contd. • Overset Mesh– Multiple overlapping grids

to discretize the domain, the solver interpolates values between the various grids in the regions of overlap.

• Block-Structured Mesh – The domain is decomposed into a number of topologically simpler domains and each domain is meshed independently with a structured grid.

Lecture # 04 Grid Generation

JetWings 6

Page 7: Lecture # 04 Grid Generation

Single block structured mesh about a wing configuration

Lecture # 04 Grid Generation

JetWings 7

Page 8: Lecture # 04 Grid Generation

An overset grid for a complex geometry

Lecture # 04 Grid Generation

JetWings 8

Page 9: Lecture # 04 Grid Generation

A multi-block structured grid

Lecture # 04 Grid Generation

JetWings 9

Page 10: Lecture # 04 Grid Generation

Grid Generation Methods

Lecture # 04 Grid Generation

JetWings 10

Page 11: Lecture # 04 Grid Generation

Structured Grid Generation

• Algebraic Methods – Geometric data of the Cartesian coordinates in the interior of a domain are generated from specified values at the boundaries through interpolations or specific functions of the curvilinear coordinates.

• PDE Mapping Methods– Mapping by solving PDEs with the dependent and independent variables being the physical domain coordinates and transformed computational domain coordinates respectively.

Lecture # 04 Grid Generation

JetWings 11

Page 12: Lecture # 04 Grid Generation

Algebraic Methods• Domain Vertex Method– utilize tensor

products of unidirectional FEM interpolation functions (Lagrangian, Hermite or Spline) for two or three dimensions.

( ) ( ) ( ) ( )

( ) ( )

ˆ ˆ ˆ , 1,2,3, , , 1,2

, , , 1,2,3, 1,....,8

i L M N iLMN

i N iN

x x i LMN

or

x x i N

ξ η ζ

ξηζ

=Φ Φ Φ = =

=Φ = =

Lecture # 04 Grid Generation

JetWings 12

Page 13: Lecture # 04 Grid Generation

Algebraic Methods – Contd.

• Transfinite Interpolation – tensor products of unidirectional interpolation but with all sides of the boundaries interpolated and matched. The corner nodes are also matched.

• Steps (2-dimensions)1. Pick four points on Gwhich are

identified as the images of the four corners of

Lecture # 04 Grid Generation

JetWings 13

Page 14: Lecture # 04 Grid Generation

TFI – Contd.2. The resulting four curve segments are identified as

the graphs of the four vector valued functions F(0,h), F(1,h), F(x,0) and F(x,1) – the 4 segments of the physical boundary are images of the 4 sides of the computational domain.

3. A bilinearly blended transfinite function U(x, h) is constructed using (Boolean sum projection) the four F functions that maps the boundary of the computational domain to that of the physical domain.

4. Check for univalency criteria – nonsingular Jacobian

Lecture # 04 Grid Generation

JetWings 14

Page 15: Lecture # 04 Grid Generation

TFI – Contd.• The univalent function matches F on

the boundary of and interpolates to F at a finite set of points.

:U Ω → ΩΓ

( ) ( ) [ ] ( ) ( ) ( ) ( ) ( ) ( )[ ]( ) ( ) ( ) ( ) ( ) ( )( ) ( ) ( ) ( ) ( ) ( )( ) ( )[ ] ( ) ( )

1 1 2 2

1 1 2 2

0, 1,

,0 ,1

N M NM

U F F F F

F F F

F F F

F F

ξ η ξ η η ξ ξ η

ξ η ξ η ξ ηη ξ η ξ η ξξ η ξ η

= ℘ ⊕℘ =℘ +℘ −℘ ℘

℘ =Φ +Φ

℘ =Φ +Φ

℘ ℘ =Φ Φ

Lecture # 04 Grid Generation

JetWings 15

Page 16: Lecture # 04 Grid Generation

b

Physical domain

Transformed computational domain

Transfinite interpolation

Lecture # 04 Grid Generation

JetWings 16

Page 17: Lecture # 04 Grid Generation

FNM match the function at four corners but not on all boundaries

Lecture # 04 Grid Generation

JetWings 17

Page 18: Lecture # 04 Grid Generation

Parameterization for 2D C-type structured grid

Lecture # 04 Grid Generation

JetWings 18

Page 19: Lecture # 04 Grid Generation

PDE Mapping Methods

• Elliptic Grid Generator – Solution of a set of elliptic PDE, (Laplace or Poisson equations)

Iterative solution in the computational domain to determine the grid coordinates (x,y).

( ) ( ) ( ) ( )( ) ( ) ( ) ( )

2 2 2 2 2

2 2 2 2 2

2

2

x y x x x y y x x y x J Px Qx

x y y x x y y y x y y J Py Qy

η η ξξ ξ η ξ η ξη ξ ξ ηη ξ η

η η ξξ ξ η ξ η ξη ξ ξ ηη ξ η

+ − + + + =− +

+ − + + + =− +

Lecture # 04 Grid Generation

JetWings 19

Page 20: Lecture # 04 Grid Generation

1. Smooth grid point distribution

2. Orthogonality at boundaries

3. Desired clustering using appropriate control functions P and Q

4. Construction of the control functions is often difficult

5. Larger computational time

6. Most widely used

Lecture # 04 Grid Generation

JetWings 20

Page 21: Lecture # 04 Grid Generation

Hyperbolic Grid Generator

• Applicable to open domain problem

• Computationally efficient and less expensive marching type solution

• Inability to match prescribed point distribution on all boundaries

• Hyperbolic PDE for constraints of orthogonality and cell volume/arc length

( )22 2 2 2

0x x y y and

either x y y x V

or x y x y s

ξ η ξ η

ξ η ξ η

ξ ξ η η

+ =

− = ∆

+ + + = ∆

Lecture # 04 Grid Generation

JetWings 21

Page 22: Lecture # 04 Grid Generation

Treatment of doubly and multiply connected domain for O-type grid

Treatment of doubly and multiply connected domain for O type grid

Lecture # 04 Grid Generation

JetWings 22

Page 23: Lecture # 04 Grid Generation

O type elliptic grid with control

Lecture # 04 Grid Generation

JetWings 23

Page 24: Lecture # 04 Grid Generation

Geometry Definition – Surface Modeling & Surface Grid

• Point Sets– Union of ordered point sets that define multiple cross-sections of the geometry. Inaccurate and ambiguous form of surface discretization. Geometry details like small gaps, slope and curvature continuity not preserved.

• B-Rep– Geometry definition by a set of 3 or 4 sided curved surface patches and trimmed surfaces.

Lecture # 04 Grid Generation

JetWings 24

Page 25: Lecture # 04 Grid Generation

Approximation of a surface with hole by two patches and by a single trimmed surface

Lecture # 04 Grid Generation

JetWings 25

Page 26: Lecture # 04 Grid Generation

B-Rep

• Surface Repair – Removal of unrealistic gaps, discontinuities and small overlaps created by the CAD packages – modified input geometry.

• Projection Surface – The surface grid is constructed on a projection surface which is then placed over the collection of surface patches that defines the actual geometry.

Lecture # 04 Grid Generation

JetWings 26

Page 27: Lecture # 04 Grid Generation

Mesh generation on the surface patches

• Physical space approach – grid points must coincide with the actual surface and need to be determined from the actual surface geometry.

• Parametric space approach – 2D meshing problem. To be mapped back to physical space. Possibility of invalid physical surface mesh for highly warped surface or irregular parameterization. Global or quilted patches solely for meshing.

Lecture # 04 Grid Generation

JetWings 27

Page 28: Lecture # 04 Grid Generation

Elliptic Surface Grid• The governing equations are

( ) ( )

1 222 ,11 11 ,22 12 ,12 1 ,1 2 ,2 1 2

2 2 2 2 2 211 11

12 ,1 ,2

,11 ,22 ,12

1 21 2

1ˆ2

, , ,

, , , , , ,

, , , , , , , ,

,

T T

T T T

a r a r a r Pr Pr b b na

a x y x y a x y z a x y z

a x x y y z z r x y z r x y z

r x y z r x y z r x y z

b b ar

ξ η η ξ ξ ξ ξ η η η

ξ η ξ η ξ η ξ ξ ξ η η η

ξξ ξξ ξξ ηη ηη ηη ξη ξη ξη

+ − − − = +

= − = + + = + +

= + + = =

= = =

e principal curvatures

Lecture # 04 Grid Generation

JetWings 28

Page 29: Lecture # 04 Grid Generation

Algebraic Surface Grid• Construction of curves on the surfaces and

surface patches using appropriate basis polynomials and control vectors – NURBS are most widely used.

• Union of the patches is the global surface.

• For valid mesh the curves bordering each patch are to be meshed the same way in all patches containing them.

• Mesh each patch, parametric space preferred.

Lecture # 04 Grid Generation

JetWings 29

Page 30: Lecture # 04 Grid Generation

Structured surface grid on the top surface of a generic hyperplane

Lecture # 04 Grid Generation

JetWings 30

Page 31: Lecture # 04 Grid Generation

Structured surface grid on the bottom surface of the hyperplane

Lecture # 04 Grid Generation

JetWings 31

Page 32: Lecture # 04 Grid Generation

Surface patches created on a hypersonic vehicle for unstructured grid generation

Lecture # 04 Grid Generation

JetWings 32

Page 33: Lecture # 04 Grid Generation

Adaptive Meshing• Mesh point movement or mesh redistribution –

structure and connectivity preserved.1. Spring analogy – each edge a spring, stiffness depends

on the quantity to be minimized.

2. Variational principle – minimization functional containing various solution based criteria as well as grid quality criteria simultaneously.

3. Control functions – modified to produce clustering based on solution gradients or truncation errors.

• Mesh enrichment – addition of extra vertices, structure and connectivity lost.

Lecture # 04 Grid Generation

JetWings 33

Page 34: Lecture # 04 Grid Generation

Unstructured Grid

• Requirement of structure in the mesh removed offering increased flexibility.

• Nodes numbered in any order, and have arbitrary number of neighbours.

• Arbitrary but homogeneous connectivity ⇒Single data structure for the entire mesh unlike block structured mesh.

• Adaptive meshing is easy to implement• Algorithms closely tied to computational

geometry.

Lecture # 04 Grid Generation

JetWings 34

Page 35: Lecture # 04 Grid Generation

Unstructured Grid

• Elements are generally triangles and tetrahedrons – but need not be.

• Two most prevalent mesh generation approaches.

1. Advancing Front Method

2. Delaunay Triangulation Method

Lecture # 04 Grid Generation

JetWings 35

Page 36: Lecture # 04 Grid Generation

Advancing Front Method• Initial Front – union of the edges that discretize the

geometry boundary. This front advances out into the field. A stack or priority queue.

• Selecting an edge from this list, a new point is created based on specified criteria so that an optimal triangle is formed.

• Updating the front – by removing the current edge and adding the two newly created edges depending on their visibility.

• Process terminates when the stack (front) is empty.

Lecture # 04 Grid Generation

JetWings 36

Page 37: Lecture # 04 Grid Generation

Advancing Front Concept. Dotted line is the initial front

Lecture # 04 Grid Generation

JetWings 37

Page 38: Lecture # 04 Grid Generation

Point Selection

Field points are created to produce triangles of optimal shape and size.

1. Specification of parameters

2. Field function or distribution function

3. Background grid

4. Interpolation

5. Cross-over (intersection) with other edges

6. Smaller edge or angle later

7. Smooth variation of triangle sizes

Lecture # 04 Grid Generation

JetWings 38

Page 39: Lecture # 04 Grid Generation

For 3D

1. Initial front is the surface grid (2D triangular mesh on the boundary surfaces.

2. New points ahead of the front to form tetrahedra.

3. Both edge-edge and edge-face intersection check.

Local transformation (edge and/or face swapping) for quality improvement.

Boundary integrity guaranteed

Lecture # 04 Grid Generation

JetWings 39

Page 40: Lecture # 04 Grid Generation

Delaunay Triangulation• Triangulation of a set of points using Delaunay

criterion – “No triangle can contain a point other than its forming vertices within its circumcircle”

Unique triangulation (in 2D) More efficient than AF Boundary integrity lost, boundary to be

recovered Max-min property – maximizes the

smallest angle in the triangulation.

Lecture # 04 Grid Generation

JetWings 40

Page 41: Lecture # 04 Grid Generation

Incremental Delaunay Triangulation

Predetermined mesh points put in a list.

Initial triangulation of just a few triangles to completely cover the domain to be gridded.

Mesh points inserted sequentially into the existing triangulation

Lecture # 04 Grid Generation

JetWings 41

Page 42: Lecture # 04 Grid Generation

Incremental Delaunay Triangulation

Insertion of a new pointinto an existing triangulation is locating and deleting all existing triangles whose circumcircle contain the inserted point. A new triangulation is then constructed by joining the new point to all boundary

vertices of the cavity created. (Bowyer-Watson Algorithm)

Lecture # 04 Grid Generation

JetWings 42

Page 43: Lecture # 04 Grid Generation

Point insertion technique

Lecture # 04 Grid Generation

JetWings 43

Page 44: Lecture # 04 Grid Generation

Automatic Point Placement

• An initial coarse triangulation• A priority queue based on some triangle

parameter.• Field distribution of the parameter as desired.• Triangles in the queue are sequentially examined

and if required a point is inserted at the circumcentre

• New triangles are put in the queue if not acceptable.

Lecture # 04 Grid Generation

JetWings 44

Page 45: Lecture # 04 Grid Generation

Boundary Integrity

• Not guaranteed if the domain is concave. Edges or faces that define the boundary do not form a subset of the triangulation.

• Boundary to be recovered by local transformation (edge and face swapping) and modifying the boundary point resolution.

• Constrained triangulation.

Lecture # 04 Grid Generation

JetWings 45

Page 46: Lecture # 04 Grid Generation

Edge swapping process

Edge-face swapping

Lecture # 04 Grid Generation

JetWings 46

Page 47: Lecture # 04 Grid Generation

Breakthrough of boundary in Delaunay triangulation

Lecture # 04 Grid Generation

JetWings 47

Page 48: Lecture # 04 Grid Generation

Example of a 2D unstructured grid

Lecture # 04 Grid Generation

JetWings 48

Page 49: Lecture # 04 Grid Generation

A tetrahedral unstructured grid for a 3D geometry

Lecture # 04 Grid Generation

JetWings 49