Introduction To Meshing
Introduction To Meshing
Prepared By:
Mostafa Mahmood
Session objectives:-
• After this session you should be able to:-
1. Learn what is mesh.
2. Difference between structured & unstructured mesh and when to use each.
3. Mesh element types for 3D and 2D.
4. Learn and be able to apply different meshing methods.
What is Mesh?
• Structured meshes are meshes with implicit • Unstructured meshes are meshes with general
connectivity whose structure allows for easy connectivity (GCON) whose structure is random and
identification of elements and nodes. Often structured therefore the connectivity of elements must be
meshes have orthogonal quadrilateral (2D) or defined and stored. GCON element types are non-
hexahedral (3D) elements. orthogonal, such as triangles (2D) and tetrahedra (3D)
• Structured meshes allow programmers to enumerate • Unstructured meshes require programmers to map
the nodes in such a way that any adjacent elements or more data to each node, such as adjacency lists and
nodes can be called upon without knowing any coordinate lists.
connectivity information. It is also possible to access
coordinates easily because the size of each element
does not vary element to element.
❖ When to use each mesh type?
To answer ask yourself:
• Do you have a complex geometry in which the geometric shape is key
to the design?
• Do you have localized regions of your model that require a higher
resolution mesh?
NO YES
Structured mesh advantages Unstructured mesh advantages
2D elements 3D elements
tri Quad
Mesh Types
Tetra Mesh
Can be generated quickly, automatically, and for complicated geometry
Mesh Types
• Hex Mesh
• Fewer elements required to resolve physics for most CFD
applications
• This hexahedral mesh, which provides the same resolution of flow physics, has LESS
than half the amount of nodes as the Tet-mesh)
Meshing Methods for 2D geometry
• There are four different meshing methods in the ANSYS Meshing
Platform for 2D Geometry which can be applied to Surface Bodies or
Shells:
Automatic Method
Quadrilateral Dominant
All Triangles
Uniform Quad/Tri
Uniform Quad
Meshing Methods for 3D geometry
• There are five different meshing methods in the ANSYS Meshing
Application for 3D Geometry:
• – Automatic
• – Tetrahedrons
• Patch Conforming
• Patch Independent
• Sweep Meshing
• Multizone
• Hex dominant
• Cutcell for CFD ( not discussed)
Sweep Method
• Allows for inflation layer (boundary layer resolution) for CFD
• Produces Hexes and/or Prisms Body must be Sweepable
• Single Source, Single Target
• Inflation can yield pure hex or prisms
Tetrahedron method
• Generates tetrahedron elements which are capable of capturing the curvatures and hard geometric
details with good element quality.
The more no of elements The more accurate results you can get
UT
The more no of elements The more computational resources are needed
What isTarget?
So, How to reach the same higher accuracy using smaller no. of element and lower in cost
• Refinement
• Where in the domain are the most complex stress/flow gradients?
These areas will require higher densities of mesh elements.
Mesh Specification
• Efficiency
• Greater numbers of elements require more compute resource (memory /
processing time). Balance the fidelity of the simulation with available resources.
• Refine (smaller cells) for high solution gradients and fine geometric detail.
• Coarse mesh (larger cells) elsewhere.
Mesh Specification
• Quality
• In areas of high geometric complexity mesh elements can become
distorted. Poor quality elements can lead to poor quality results or,
in some cases, no results at all!
• There are a number of methods for measuring mesh element
quality (mesh metrics*). For example, one important metric is the
element ‘Skewness’. Skewness is a measure of the relative
distortion of an element compared to its ideal shape and is scaled
from
0 (Excellent) to 1 (Unacceptable).
Mesh Metric
• Displays Mesh Metrics graph for the element
quality distribution
• Different element types are plotted with
different color bars
• Can be accessed through menu bar using
Metric Graph button
This example illustrates an unconverged thermal field in a manifold solid casting. On closer inspection it is
clear that the simulation is unable to resolve a sensible data field in the region of poor quality elements.
The example with good quality elements demonstrates no problems in the solution field. The ANSYS
Meshing Application provides many tools to help maximize mesh quality