Professional Documents
Culture Documents
Mesh Generation in CFD: Abhishek Jain
Mesh Generation in CFD: Abhishek Jain
Abhishek Jain
abhishek@zeusnumerix.com
© Zeus Numerix
3
Build Computational Create suitable Boundary Conditions &
Domain Mesh Initial conditions
© Zeus Numerix
Solution of discrete
Interpret solution Plot flow Field equations
Importance of mesh
• The grid
• Stores discrete values for the field variables
• Helps in the evaluation of partial derivatives (structured meshes)
• Helps in calculation of numerical flux / interpolations using basis
functions (unstructured meshes)
• It affects
• Correctness of physics
• Accuracy of solution
• Overall efficiency of simulation such as CPU time
• In fact, in terms of wall clock time and human
efforts mesh generation is half simulation done!
© Zeus Numerix
What meshes are required?
Hybrid
meshes
© Zeus Numerix
Patched Grids
Domain is covered with sub-domain each with rectangular topology
Grids in each blocks are created independently
Grids are smoothened inside the block and also across the block
Block 1 Block 1
The circumcircle criteria : A triangulation for N > 2 site is Delaunay if and only if
the circumcircle of every interior triangle is point-free
D D
A A
Delaunay Triangulation
Non-nearest neighbour
edge
Minimal roughness Property
Suppose a property fi is given at all vertices Vi , where i = 1 to N
Any triangulation will produce piecewise linear interpolation surface for this data
© Zeus Numerix
Locate triangle
containing X
X
Subdivide triangle
Recursively check
adjoining triangles to
ensure empty-circle
© Zeus Numerix
property.
The boundary points of domain are rarely adequate for unstructured meshes.
How do insert additional nodes in the domain.
Criteria
• Insert points at
random
X
© Zeus Numerix
Initial Triangulation
© Zeus Numerix
Recovering Triangulation
Recover boundary
Delete outside triangles
© Zeus Numerix
Advancing
A
Front Node
B
Insertion
Edges
Edges
Boundary Intersection
© Zeus Numerix
Boundary Intersection
Nodes and edges introduced where Delaunay edges
© Zeus Numerix
intersect boundary
Delaunay Triangulation in action
Boundary Constrained
Local Swapping
© Zeus Numerix
Local Swapping
© Zeus Numerix
Local Swapping
© Zeus Numerix
Local Swapping
© Zeus Numerix
Local Swapping
© Zeus Numerix
Advancing
/ppw
front Domain :
© Zeus Numerix
A B
Advancing front Algorithm
• Determine whether element formed with the trial point crosses any
edge.
• If yes, select a new trial point and try again.
• Add the new point, edges and triangles to the respective lists. Delete
base edge from the front and add new edge(s) to the front till front is
empty Case C
Case A Case B
New front
Trial point
Case Deleting vertices Deleting edges Adding vertices Adding edges Included angle
© Zeus Numerix
initial front
C
Trial point
Step 1:
A B
Create a list of vertices, edges and triangles
Consider boundary as the initial front. Advance the front by creating a triangle
in the domain with an edge (say AB). Locate vertex C (trial point) for the
© Zeus Numerix
purpose.
Vertex added
C’ D
r
Triangle
added
Delete one edge, add one vertex, add two edges and add one triangle from / to
the respective lists
© Zeus Numerix
Choose a new advancing front (A’ B’). Determine if trial point C’ is within radius
r (= /ppw) , if not, accept D.
Advancing Front (contd.)
deleted
Edge
Triangle Triangle
1 added 2 added
Edge
deleted
Step 3 :
Delete two edges, add one edge and add one triangle to the respective lists
© Zeus Numerix
Step 4 :
Delete two edges, add one edge and add one triangle to the respective lists
© Zeus Numerix
Advancing Front (contd.)
Step 5 :
Delete one edge, add two edges and add one triangle to the respective lists
© Zeus Numerix
Note that so far only one vertex has been added to the list of vertices
Advancing Front (contd.)
Step 6 :
Delete four edges, delete four vertices and add two triangles
Where multiple choices are available, use best quality (closest shape to
© Zeus Numerix
equilateral) triangle
r
C
B
Step 7:
Advantages:
Method can be used for surfaces and volume though a lot of modification is
required
Anisotropic grids can be produced
Disadvantages
Grid quality is not high
Advancing fronts collide to produce poor grids
© Zeus Numerix
Hybrid Meshes
Hybrid Methods
Discretize Boundary
© Zeus Numerix
Hybrid Mesh Through Advancing Front
Convex
Corner Concave Corner
© Zeus Numerix
Closure
the purpose.
Thank You!
© Zeus Numerix
3 November 2014 60
© Zeus Numerix
Questions?