Scientific Computing I Grids Strcutured Grids Unstrcutured Grids - - PowerPoint PPT Presentation

scientific computing i
SMART_READER_LITE
LIVE PREVIEW

Scientific Computing I Grids Strcutured Grids Unstrcutured Grids - - PowerPoint PPT Presentation

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Scientific Computing I Grids Strcutured Grids Unstrcutured Grids Module 7: Grid Generation Grid Operations Structured Grids Unstructured Michael Bader


slide-1
SLIDE 1

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Scientific Computing I

Module 7: Grid Generation Michael Bader

Lehrstuhl Informatik V

Winter 2005/2006

slide-2
SLIDE 2

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Grid Generation and Refinement

Numerical treatment of PDE requires approximate description of the computational domain discretization of the domain:

point discretization (finite differences) cell discretization (finite elements/volumes)

main tasks: generating and refining grids or meshes;

xi,j xi−1,j xi+1,j xi,j+1 xi,j−1 hx hy hx hy

slide-3
SLIDE 3

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Grid Generation – Objectives

Objectives: accuracy: accurate (and dense) enough to catch the essential physical phenomena boundary approximation: sufficiently detailed to represent boundaries and boundary conditions computational efficiency: small overhead for handling of data structures, no loss of performance on supercomputers numerical adequacy: features with a negative impact on numerical efficiency should be avoided (angles, distortions)

slide-4
SLIDE 4

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Structured Grids

construction of points or elements follows regular process geometric (coordinates) and topological information (neighbour relations) can be derived

slide-5
SLIDE 5

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Unstructured Grids

(almost) no restrictions, maximum flexibilty completely irregular generation, even random choice is possible explicit storage of basic geometric and topological information

slide-6
SLIDE 6

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Grid Manipulations

grid generation: initial placement of grid points or elements grid adaption: need for (additional) grid points often becomes clear only during the computations requires possibilities of both refinement and coarsening grid partitioning: standard parallelization techniques are based

  • n some decomposition of the underlying

domain

slide-7
SLIDE 7

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Grid Operations

Typical Operations on the Grid: numbering of the nodes/cells

for traversal/processing of the grid for storing the grid for partitioning the grid

identify the neighbours of a node/cell

neighbouring/adjacent nodes/cells/edges due to typical discretization techniques

slide-8
SLIDE 8

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Regular Structured Grids

rectangular/cartesian grids: rectangles (2D) or cuboids (3D) triangular meshes: triangles (2D) or tetrahedra (3D) row-major or column-major traversal and storage

hx hy

slide-9
SLIDE 9

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Transformed Structured Grids

transformation of the unit square to the computational domain regular grid is transformed likewise

(0,0) (1,0) (0,1) (1,1) (ξ(0),η(0)) (ξ(1),η(1)) (ξ(0),η(1)) (ξ(1),η(0))

Variants: algebraic: interpolation-based example: Coons patch PDE-based: solve system of PDEs to obtain (ξ(x,y) and η(x,y)

slide-10
SLIDE 10

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Composite Structured Grids

subdivide (complicated) domain into subdomains of simpler form and use regular meshs on each subdomain at interfaces:

conforming at interface (“glue” required?)

  • verlapping grids (chimera grids)
slide-11
SLIDE 11

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Block Structured Grids

subdivision into logically rectangular subdomains (with logically rectangular local grids) subdomains fit together in an unstructured way, but continuity is ensured (coinciding grid points) popular in computational fluid dynamics

slide-12
SLIDE 12

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Delauney Triangulation

assume: grid points are already obtained – how to define elements? based on Voronoi diagrams Voronoi region around each given grid point: Vi = {P : P−Pi < P−Pj ∀j = i}

P P P P P P

1 2 3 4 5 6

V V V V V V

1 2 3 4 5 6

slide-13
SLIDE 13

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Delauney Triangulation (2)

Algorithm

1

Voronoi region around each given grid point: Vi = {P : P−Pi < P−Pj ∀j = i}

2

connect points that are located in adjacent Voronoi regions

3

leads to set of disjoint triangles (tetrahedra in 3D) Applications: closely related to FEM, typically triangles/tetrahedra very widespread

slide-14
SLIDE 14

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Point Generation

how do we get the grid points? start with a regular grid and refine/modify boundary-based:

start with some boundary point distribution, generate Delaunay triangulation, and subdivide (following suitable rules)

if helpful, add point or lines sources (singularities, bound. layers) Advancing Front methods

slide-15
SLIDE 15

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Advancing Front Methods

advance a front step-by-step towards interior starting from the boundary (starting front)

P P

1 2

P P P

1 2

P

slide-16
SLIDE 16

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Advancing Front Methods (2)

Advancing algorithm:

1

choose an edge on the current front, say PQ

2

create a new point R at equal distance d from P and Q

3

determine all grid points lying within a circle around R, radius r

4

  • rder these points w.r.t. distance from R

5

for all points, form triangles with P and Q; select one of these triangles

6

add triangle to grid (unless: intersections, . . . )

7

update triangulation and front line: add new cell, update edges

slide-17
SLIDE 17

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Adaptive Grids

Characterization of adaptive grids: size of grid cells varies considerably to locally improve accuracy sometimes requirement from numerics Challenge for structured grids: efficient storage/traversal retrieve structural information (neighbours, etc.)

slide-18
SLIDE 18

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Block Adaptive Grids

retain regular structure refinement of entire blocks similar to block structured grids efficient storage and processing but limited w.r.t. adaptivity

slide-19
SLIDE 19

Scientific Computing I Michael Bader Grid Generation and Refinement Basic Types of Grids

Strcutured Grids Unstrcutured Grids

Grid Operations Structured Grids Unstructured Grids Adaptive Grids

Block Adaptive Grids Recursively Structured Adaptive Grids

Recursively Structured Adaptive Grids

based on recursive subdivision of parent cell(s) leads to tree structures quadtree/octree or substructuring of triangles: efficient storage; flexible adaptivity but complicated processing (recursive algorithms)