Lecture 8 - Hexa Meshing
Lecture 8 - Hexa Meshing
Lecture 8 - Hexa Meshing
Hexa Meshing
14.5 Release
Introduction to ANSYS
ICEM CFD
© 2012 ANSYS, Inc. April 1, 2013 1 Release 14.5
What is Blocking?
A hexa mesh is created by first making a “blocking”
• A blocking breaks down a geometry into large brick-shapes and structures the
direction of grid lines by the arrangement of the blocks
• Each “block” is easily meshed with a pure Cartesian mesh
– Some blocks can be defined as “swept” and be unstructured along one face
• Block entities (faces, edges, and vertices) are projected onto the geometry
• The blocking is saved to an independent file, and can be loaded onto a
different geometry
Mesh with
projection
Blocking
Mesh without
Geometry projection
Geometry
Curve Edge
Point
Face
Surfaces
– 2D Planar
• One 2D block on XY
plane around entire 2D
geometry
• First rotate geometry to
XY plane
• No surfaces required
– 2D Surface Blocking
• Discussed next slide
© 2012 ANSYS, Inc. April 1, 2013 7 Release 14.5
Initialize Blocking-2D Surface
• 2D Surface Blocking
– Each surface becomes one 2D block
– Free blocks – fully unstructured
• Most robust
– Mapped – structured
• Aligned mesh along 4 block boundary edges
Geometry 2D blocking
Unstructured
– Must Build Diagnostic Topology first
• It needs the connectivity information
– Can always convert blocks between free and mapped
afterward: Edit Block > Convert Block Type
© 2012 ANSYS, Inc. April 1, 2013 8 Release 14.5
Structuring Blocking to Fit Geometry
Top down approach Split the block to capture
the underlying shape
Start with
one block
which
encloses the
entire
geometry
Delete unused
blocks
– 2D Pipe Junction
– Watch the instructor
Ratio 2 = 1.5
Arrow
Ratio 1 = 1.5 indicates
side 1
17 meshing
and side
laws Spacing 1 = 1.0
Side 1 2
Side 1 (base of
arrow) params
Requested Actual
Side 2 (head
of arrow)
params
No Face
projection projection
Using the
File>Blocking>Save
… menu only writes
the mesh to disk
Pre-Mesh>Convert
to…” a mesh from the
model tree saves and
immediately loads the
mesh
No O-grid O-grid
5 blocks in 2D
7 blocks in 3D
Select specific
blocks or around
Note: Internal block has all internal (blue) edges and
face, edge, or vertex
vertices
© 2012 ANSYS, Inc. April 1, 2013 21 Release 14.5
Ogrid – Adding Edges/Faces
• Adding faces during O-grid creation
– O-grid “passes through” the selected block faces
– In general, add faces on the “flat parts”
– Adding a face actually adds blocks on both sides of the face
O-grid passes
through this face
Half O-
grid (C-
grid)
• Examples of uses
– Pipe ends
– Symmetry planes
– Complex
geometries O-grid passes
through this face
© 2012 ANSYS, Inc. April 1, 2013 22 Release 14.5
Ogrid – Adding Multiple Edges/Faces
• Any number of faces can be added around a selected block
– If all the faces are added around a block, the result is no
change since the O-grid passes through all the faces
Quarter O-
grid (L-grid)
Quarter O-
grids can be
used to block
triangular
shapes
Seen as a C-
grid in one
direction and
an L-grid in
another
direction
Before O-grid
This mesh can be improved by using an O-grid Right mouse click on the histogram
– An example of bad mesh in the block corners to access options like show, replot,
or done
1 2 4 3:1
Original
VORFN
1
2
2
1
© 2012 ANSYS, Inc. April 1, 2013 31 Release 14.5
Extrude Face
• Select block face (select face or use two corner
method)
– Interactive
• Drag with the pointer
– Extrude a Fixed distance 2 corner method
• Enter distance
– Extrude along curve
• Select curve
Select
face
Set z
Select these coordinate
vertices z of vertices
© 2012 ANSYS, Inc. April 1, 2013 Z-dir 33 Release 14.5
Align Vertices
Align multiple vertices in one plane with vertices in
another plane (or split dimension)
– Select Along edge direction, then select the edge that
connects the two planes, or runs approximately normal
to the split plane that you want to move inside
– Select Reference vertex, then select any vertex in the
plane you want to align to. These vertices will remain
fixed
– Select the plane to allow vertex movement within (XY,
YZ, XZ, or User Defined). The User Defined plane must
be specified with a normal vector, such as (1 1 0)
– Apply Select any of
these vertices
as reference
Rotate
Number of nodes in
circumferential
direction
Extrudes points into
curves and curves
into surfaces where Surface mesh
3D geometry doesn’t and scan planes
exist
© 2012 ANSYS, Inc. April 1, 2013 35 Release 14.5
Create Block – Hexa (Vertex Locations)
• Create block types
– Hexa
• 8 vertices or locations (selection order is
important) (Choose a vector direction and do the
same order on opposite faces)
• 2 faces
– Quarter O-grid (Y-grid)
– Degenerate
5
1
Select 8
2 6
vertices
3 7
4 8
Select
2 faces
1
2 5
6
3
4
7
8
Press
middle
button
Degenerate Quarter-O-Grid
Select
edge
Example: meshing
around knife-edge
wings
Select
these
two
vertices
o
21.1765
(360/17)
Base (0 0 0) Axis (0 0 1)
© 2012 ANSYS, Inc. April 1, 2013 42 Release 14.5
Periodicity in Blocking
Vertices then made periodic in blocking
– Select Edit Block -> Periodic Vertices -> Create
– Select pairs of vertices at a time
– The second vertex of each pair will move to the
periodic position of the first vertex
– When you move one vertex, its pair will move
with it
– Subsequent splits will also be periodic
– Visually verify with RMB on Vertices ->
Periodic, and Faces -> Periodic Faces in model
tree
– A face becomes periodic only if its 4 corner
vertices are periodic
Subsequent splits
are also periodic
© 2012 ANSYS, Inc. April 1, 2013 43 Release 14.5
2 Ways of Blocking the Same Geometry
• Creating a fork by Merge vertices
Delete
block
Merge 2
more
vertex
Merge 2
pairs
vertex pairs
© 2012 ANSYS, Inc. April 1, 2013 44 Release 14.5
2 Ways of Blocking the Same Geometry
• Creating a fork by Extrude faces
split Move
Two
quarter vertices
Delete
O-grids blocks
One
quarter
O-grid
One
quarter
O-grid
splits
Single block with
Single block Single block with multiple splits and
with o-grid 5 splits and o-grid o-grid
© 2012 ANSYS, Inc. April 1, 2013 48 Release 14.5
Workshop 8.4
– Elbow Geometry
– Decide on blocking topology to fit
the tube and also the inner port
hole
– Use of O-grids to model the port
hole and to create the boundary
layer and improve element quality
in the large pipe bend