Computational Fluid Dynamics: Tutorial: Meshing
Computational Fluid Dynamics: Tutorial: Meshing
Dynamics
Tutorial 2 Meshing
Dr. Andrew Cashman
2/7/2014
In this tutorial we will develop meshing techniques for various complexities of geometries.
The analyst will need to be familiar with both global and local meshing settings.
Meshing is one of the most important steps in a numerical simulation and accuracy of
results can be extremely sensitive to mesh quality and density. Knowledge of the flow
characteristics is essential to develop a detailed mesh in areas where complex flow or
gradients may exist, while a courser mesh could be applied to areas not of concern to the
analyst. A poor quality mesh can also affect the convergence of the simulation.
In general, a mesh is generated using an
iterative procedure, where initial meshes
are improved based on mesh quality
checks, convergence issues, or preliminary
post processing results. Global commands
are initially specified and local mesh
settings are then applied where refined
mesh or inflation layers may be required.
Open the ANSYS Meshing from workbench once geometry has been added to the project.
The Outline tree on the left hand side contains three default sections:
Geometry Contains the bodies present in the solid model. If
multiple bodies are present, a contact region is automatically
created between those parts. Each part is meshed
independently (resulting in a non-conformal mesh). A grid
interface can be defined in Fluent for the faces at the contact
region.
Coordinate Systems Contains the default and user defined systems
Mesh Contains the meshing operations displayed in order in which they are
inserted. Clicking on Mesh presents another menu underneath the outline tree
called Details of Mesh. These details are the global commands.
Dr. A. Cashman
MECH9002
Page 1
Sizing
The sizing menu controls some important control functions for the mesh sizing conditions
that will be employed in the meshing process. The Advanced Sizing Functions control the
growth and distribution of mesh in important regions of high curvature or close proximity of
surfaces. The schematic below explains the performance of the five setting options:
Other important settings in this menu are the Max and Min Size and Face Size settings.
These can be adjusted if the selected relevance centre does not develop a course or fine
enough mesh. A handy guideline is available for these settings as the mouse pointer can be
used to demonstrate the approximate sizes of these settings as shown below.
Dr. A. Cashman
MECH9002
Page 2
The growth ratio may also be defined in the sizing menu. This dictates the size of adjacent
cells and should be kept relatively small. Good meshing practice should not result in small
elements directly beside relatively large elements.
Inflation
Inflation extrudes faces normal to a boundary to increase the mesh resolution in order to
resolve viscous boundary layer in fluid dynamics problems. The three options for inflation
are:
None
Program Controlled All the faces selected for inflation except those scoped in
named selections, faces with manual inflation defined, faces in contact regions and
faces in symmetry.
All Faces in chosen Named Selection Allows inflation layers from faces grouped in
one named selection.
The inflation option may also be set to one of Smooth Transition, First Layer Thickness, Total
Thickness, First Aspect Ratio, or Last Aspect Ratio.
Assembly Meshing
The assembly meshing menu allows the user to define various methods of generating the
mesh. This process will then act as a single mesh for the whole model. The different options
are:
CutCell CutCell results in a Cartesian mesh and tetrahedron cells
Tetrahedrons Results in a tet mesh and also creates prisms if inflation is specified.
Different methods have different benefits for various geometries and experience is the best
method of learning the advantages and disadvantages of each. These methods will be
explored in Workshop 2.
Defeaturing
This gives the user the capability to remove small geometry features meeting the tolerance
using Pinch and/or Automatic Mesh based defeaturing controls in order to improve the
mesh quality.
Statistics
Statistics should always be reviewed after a mesh has been generated. The number of nodes
and cells are presented, which may give an indication of simulation times. More
Dr. A. Cashman
MECH9002
Page 3
Dr. A. Cashman
MECH9002
Page 4