CFD Lesson Ansys
CFD Lesson Ansys
3
Preprocessing Workflow
Preprocessing
Meshing
and Solution
Geometry
Import / Geometry
Creation Cleanup /
Modifications
4
Mesh Process & Course Plan
Global
Controls
Module 3
Mesh
Quality
Module 5
5
What is ANSYS Meshing
Able to adapt and create Meshes for different Physics and Solvers
• CFD: Fluent, CFX and POLYFLOW
• Mechanical: Explicit dynamics, Implicit
• Electromagnetic
Integrates directly with other WB systems
6
Meshing Fundamentals
Mesh Requirements
• Efficiency & Accuracy
– Refine (smaller cells) for high solution gradients and fine geometric detail.
– Coarse mesh (larger cells) elsewhere.
• Quality
– Solution accuracy & stability deteriorates as mesh cells deviate from ideal
shape
7
Launching ANSYS Meshing
ANSYS Meshing is launched within Workbench
– 2 ways:
From Analysis Systems From Component Systems
Fluid Flow (Fluent), Static Structural,… Mesh
Double click
Mesh in the
System
10
Graphical User Interface
Toolbars
Worksheet
Details view
Section Planes
9
Outline
10
Details View
11
Geometry Configuration – Multiple Parts
• Geometry composed of Multiple parts
– No connection between parts (no face sharing)
Grid interface
- Fluent
‘Contact Region’
Each part Results in Non-conformal interface.
is automatically GGI - CFX
meshed Meshes do not match.
created between
independently No nodes connection.
2 faces Contact -
Mechanical
Independent faces
12
Hexa vs. Tetra
13
Geometry Configuration – Multi-bodyParts
• Geometry composed of multiple bodies in a part
– Depend on ‘Shared Topology method’ (in DM)
• None
– Results in a no connection between the bodies (similar to
multiple parts)
• Automatic
14
Geometry Configuration – Multiple – body Parts
Grid interface
Faces are imprinted Contact Region For identical mesh on these non - Fluent
on each other ➔ is automatically faces, use ‘Match Control’ conformal
‘like’ faces created Results in unconnected mesh interface GGI - CFX
15
Meshing – 3D Geometry (1)
• 3D cell Types
• First Meshing Approach
Part/Body Methods
Part/Body based • Tetrahedrons.
− Tetras only
• Meshing occurs at part or
body level.
• Sweep.
− Prisms & hexahedrons
• Meshing Methods are scoped
to individual bodies. • MultiZone.
− Mainly hexahedron
• Method assignment can be
automatic or manual.
• Hex Dominant
− Not for CFD
• Bodies contained in one part
are conformally meshed. • Automatic.
− Sweep + PC Tet (Depends
on bodies) or PC Tet
16
Meshing – 3D Geometry (2)
• Second Meshing Approach (mainly for CFD users)
17
Diagnostics: Mesh display By Body Connection (New in R17.0)
Default meshdisplay
Turning
wireframe
mode on
19
Named Selections (1)
Named Selections are groups of geometric or finite element entities:
• Named selections can be created either by selecting the desired items and clicking the “Named
Selection” icon in the context toolbar or RMB > Named Selection OR using the named selection
worksheet (shown later).
RMB
• Named selections must be composed of “like” entities (all surfaces or all edges, all nodes, etc.).
19
Named Selections (2)
A new criteria selection can be based on an initial selection:
• Make an initial selection followed by a RMB > “Create Named Selection”.
• Note, initial selection must be a single entity.
− A named selection toolbar provides quick access to basic controls “View > Toolbars > Named
Selections”:
21
Usability: Option to save mesh out to separate file (New in R17.0)
● When “Save Mesh Data in
Separate File” is on the mesh is
saved as a separate file (*.acmo).
● Duplication, Resume, Replace, and
Save will handle the separate
database and acmo files.
● Clear generated data will not
remove the acmo file. Reset will
remove the acmo file.
● Design Points (also w/RSM)
support the separate database and
acmo files.
This functionality is particularly helpful on Linux
to keep file sizes smaller.
22
Usability: Better Meshing Status in R17.0
● Progress is reported as parts are meshed in parallel
● As a part is meshed the topology (edges, faces, bodies) are highlighted to show what is
being worked on
– This can be turned off by unchecking “Highlight”
– If user stops meshing, entity will stay highlighted, allowing user to find problematic geometry easier
23
Usability: Folders for Meshing Controls in R17.0
24
Display Option: Color by quality
• Displays mesh color by quality metrics
• Options to probe quality or show min/max
• Contour band can be adjusted
29
Section Planes (1)
Displays internal elements of the mesh
• Elements on either side of plane can be displayed
• Toggle between cut or whole elements display
• Elements on the plane
Edit Section Plane button can be used to drag section plane to new location
• Clicking on “Edit Section Plane” button will make section plane’s anchor to appear
Multiple section planes are allowed
39
Section Planes (2)
● Shaded section planes (New in R17.0)
– Shaded or hollow section plane
– Plot by body color or same color for section plane
27
Mesh Statistics & Mesh Metrics
• Displays mesh information for Nodes and Elements
• List of quality criteria for the Mesh Metric
– Different physics and different solvers have different requirements for mesh quality
28
Mesh Metric Graph
• 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
29
Mesh Metric Graph Controls
• Elements on Y-Axis can be plotted with two
methods;
– Number of Elements
– Percentage of Volume/Area
• Options to change the range on either axis
• Specify which element types to include in graph
– Tet4 = 4 Node Linear Tetrahedron
– Hex8 = 8 Node Linear Hexahedron
– Wed6 = 6 Node Linear Wedge (Prism)
– Pyr5 = 5 Node Linear Pyramid
– Quad4 = 4 Node Linear Quadrilateral
– Tri3 = 3 Node Linear Triangle
• Te10, Hex20, Wed15, Pyr13, Quad8 & Tri6 non-linear
elements
For more information about the different mesh metrics please consult module 05: Mesh Quality
30
Summary
What have we learnt in this session:
• The global process to run ANSYS Meshing
• On overview of the interface and
• The various Geometry configurations
– Multiple parts
– Multi-body parts And the associated
– Multiple body parts shared topology option
• Meshing methods
– Part/body based
– Assembly meshing
• Section Planes
• Diagnostics & Usability
• Mesh Statistics & Mesh Metrics
• Display option
31
Workshop 1.1 CFD – ANSYS WB Meshing Basics
32
Workshop 1.1 FEA – ANSYS WB Meshing Basics
33
Introduction to ANSYS Meshing
35
Preprocessing Workflow
Geometry Creation
Geometry
OR Meshing Solver
Operations
Geometry Import
36
Methods
Why Multiple Methods? High aspect ratio cells Cells refined around
(Inflation) near wall to small geometric
• Choice can depend on; capture boundary layer details and complex
– Physics gradients flow
– Geometry
– Resources
• Mesh could require just one or a
combination of methods.
• Example – Typical mesh design
based on geometric, physics and
resource considerations.
37
Inserting Methods
38
Tetrahedrons Method
Method Behavior
• Generates tetrahedral elements - two algorithms are
available:
• Patch Conforming
• Patch Independent
39
Tetrahedrons Method: Patch Conforming
Access
• Insert Method and set to Tetrahedrons
– Additional drop down box for algorithm choice
appears - Set to Patch Conforming
40
Tetrahedrons Method: Patch Independent
Patch Conforming
• Sizing
– Mesh sizing for the Patch Conforming algorithm
is defined by Global & Local Controls
– Automatic refinement based on curvature
and/or proximity accessible in Global Controls
• Details of Global & Local Controls covered in
separate lectures
– Choice of surface mesher algorithm in global
controls
Proximity
Curvature
44
Tetrahedrons Method: Control
Patch Independent
• Sizing
– Sizing for the Patch Independent algorithm
defined in Patch Independent Details
– Automatic curvature & proximity
refinement option
45
Tetrahedrons Method: Control
Patch Independent
• Defeaturing Control
– Set Mesh Based Defeaturing On
– Set Defeaturing Tolerance
– Assign Named Selections to
selectively preserve geometry
46
Tetrahedrons Method: Application
Examples
47
Hex Meshing
48
Introduction
Tet Mesh
Hex Meshing Elements: 48K
49
Sweep Meshing
50
Sweep Meshing
Sweep
Path
Rotational Sweeping
• Sweep meshes can also be
created by sweeping a Source
around an axis Target Source
Face Face
• Example: Src/Trg Selection -
Rotational sweep for sector
geometry
– Rotational sweeping requires
both Source & Target to be
selected
53
Sweep Meshing
54
Sweep Meshing
56
Sweep Meshing
Example 2
T Junction Geometry
Unsweepable
Decomposed in
CAD/DM
Sweepable!
57
MultiZone Meshing
Method Behavior
• Based on blocking approach used in ANSYS ICEM
CFD Hexa MultiZone
• Automatically decomposes geometry into blocks Mesh
• Generates structured hex mesh where block
topology permits
– Remaining region (Free Mesh) filled with
unstructured Hexa Core or Tetra or Hexa
Dominant mesh.
• Can select source & target faces automatically
or manually
– Can have multiple source faces
• Compatible with 3D inflation
Access
• Insert Method and set to Multizone
Target faces should also be selected as “Source” for Multizone
Method as mesh is swept from both directions
58
MultiZone Meshing
Example 1
• Single body automatically decomposed into three blocks
• Src/Trg Selection – Automatic
• Results in all hex mesh
• Equivalent to manually decomposing by slicing off upper
and lower cylinders to produce three bodies and
applying sweep methods
60
MultiZone Meshing
Example 2
• Blend on central body, Multizone no longer ableto
create structured block
– Filled according to Free Mesh setting
• Tetra, Hexa Core, Hexa Dominant
• Can specify type of surface mesh using Mapped
Mesh Type (Hexa, Hexa/Prism, Prism)
61
Automatic Method
Automatic Method
Method Behavior
• Combination of Tetrahedron Patch
Conforming and Sweep Method
– Automatically identifies sweepable
bodies and creates sweep mesh
– All non-sweepable bodies meshed
using tetrahedron Patch Conformal
method
• Compatible with inflation
Access
• Default Method where not specified
• Can specify by inserting Method and
setting to Automatic
63
2D Meshing
64
Methods for 2D Meshing
Automatic Triangles
• Patch Conforming Methods
– Automatic Method (Quadrilateral
Dominant) & Triangles
Multizone Multizone
Quad/Tri Quad
66
2D Mesh Solver Guidelines
ANSYS FLUENT ANSYS CFX
• For a 2D analysis in • For 2D analysis in CFX, create a
FLUENT generate the
volume mesh (using Sweep) that is 1
mesh in the XY plane (z=0).
element thick in the symmetry
• For axisymmetric direction, i.e.,
applications y 0 and
make sure that the
• Thin Block for Planar 2D
domain is axisymmetric • Thin Wedge (< 5°) for 2D Axis-
about x axis symmetric
• In ANSYS Meshing, by
default, a thickness is
defined for a surface
body and is visible when
the viewis not normal to
the XY Plane. This is
purely graphical – no
thickness will be present
when the mesh is
exported into the FLUENT
2D solver
67
Meshing Multiple Bodies
68
Selective Meshing
69
Selective Meshing
Local meshing
• Mesh or clear meshes on individualbodies
• Subsequent bodies will use the attached face
mesh
• The meshing results (cell types) will depend on
the meshing order
• Adjust/add controls – able to remesh only
affected body
• Select body(s) right click for context menu
Meshing first the pipe then the block Meshing first the block then the pipe
70
Selective Meshing
Contents
• Hex Dominant Meshing
• Sweep Meshing Biasing & Complex Geometry
• Surface Meshing with Inflation
• Mesh Connections
• Shell Meshing
• Patch Independent Tetrahedrons - Transition
74
Hex Dominant Meshing
• The mesh contains a combination of tet
and pyramid cells with majority of cell
being of hex type
• Useful for bodies which cannot be swept
• Useful for CFD applications not requiring
inflation
• Useful for CFD in the range of
acceptable Skewness or Orthogonal
Quality mesh quality metrics
Access
• RMB on Mesh
• Insert → Method
• Definition → Method
75
Hex Dominant Meshing
• Example:
76
Hex Dominant Meshing
Free (unstructured) Face Mesh Types
• Determines the element shape in the free zone (wherestructured
meshing is not possible)
Options
• Quad/Tri
• All Quad
– May insert triangular elements depending on complexity of geometry
77
Hex Dominant Meshing
Example:
Higher no. of
elements
Geometry with
valve inside
Lower no. of
elements
78
Sweep Meshing
• Control:
• Free (unstructured) Mesh Type
Source face
elements: Only
Quad
Source face
elements: Quad
plus Tri
Type: Quad/Tri
Sweepable Geometry
Source face
elements: Only Tri
79
Sweep Meshing
Control: Type
Element size in
swept direction
2mm
Sweep Element Size
No. of elements in
Sweepable Geometry swept direction: 10
80
Sweep Meshing
Uniform mesh
No Bias
Cells are
concentrated on
Sweepable Geometry one side
With Bias
Sweep Meshing : Complex geometry
82
Tetrahedrons Method: Patch Independent
Transition
• Effect of Smooth Transition
• Smooth transition uses advanced
front meshing technique
83
Introduction to ANSYS Meshing
85
Preprocessing Workflow
Geometry Creation
Geometry
OR Meshing Solver
Operations
Geometry Import
86
Meshing Process in ANSYS Meshing
87
Global Mesh Controls (1)
• Global mesh controls are used to
make global adjustment in the
meshing strategy, which includes
sizing functions, inflation, smoothing,
defeaturing, parameter inputs,
assembly meshing inputs, etc.
• Minimal inputs
– Automatically calculates global
element sizes based on the smallest
geometric entity
– Smart defaults are chosen based on
physics preference
• Makes global adjustments for
required level of mesh refinement
• Advanced Size Functions for resolving
regions with curvatures and
proximity of surfaces
Smart
5 defaults !
Global Mesh Controls (2) Physics Based Settings
• Physics and Solver Preferences
Global Mesh Sizing Controls
• Relevance and Relevance Center
• Advanced Size Functions
• Smoothing and Transition
• Span Angle Center
• Curvature Normal Angle
• Proximity Accuracy and Cells Across Gap
Inflation
• Inflation Option, Inflation Algorithm
• Collision Avoidance
• Maximum Angle, Fillet Ratio, Smoothing
Assembly Meshing
• Activation of CutCell/Tetrahedrons Meshing
Patch Confirming Options
• Activation of Advancing Front Method
Advanced
• Shape Checking
• Element midside nodes
Defeaturing
• Pinch based
• Automatic Mesh Based
Statistics
• Mesh statistics, Quality criteria
89
Global Mesh Controls (3)
90
Defaults
• Four options under “Physics Preference”
– CFD, Mechanical, Explicit and Electromagnetic
• Three options under “Solver Preference” when CFD is
selected:
– Fluent, CFX andPOLYFLOW
• Mesh setting defaults are automatically adjusted to suit the
“Physics Preference” and “Solver Preference”
• Assembly Meshing is active only when Physics Preference is
CFD and Solver Preference is Fluent
91
Defaults : Relevance
Relevance and Relevance Center
• Useful for automatic Global Refinement or Coarsening of
the mesh
Relevance Center
Coarse Medium Fine
92
Sizing : Advanced Sizing Functions
• Controls the growth and distribution of mesh in important
regions of high curvature or close proximity of surfaces
• Five Options:
– Off.
– Proximity and Curvature
– Curvature
– Proximity
– Fixed
Sizing : Advanced Sizing Function (ASF) Examples
94
Sizing : Advanced Sizing Function Examples
ASF: Proximity & Curvature ASF: Fixed ASF: Fixed + Local Sizings
• Combines the effect of • Constant mesh size through • Mesh is refined locally due to
‘Proximity’ and ‘Curvature’ out sizing (on 2 edges for that
size function • No refinement due to example)
curvature or proximity in the • Elsewhere size is defined by
model Max (Face) Size
More computational time • Surface mesh is generated • Transition of cell size is
with specified Max Face defined by Growth Rate
Size
• Volume mesh is generated
with specified Max Size
95
Sizing : Element Size
Element Size
• Element size used for the entire model
– This size will be used for meshing all edges, faces and bodies
• Default value based on Relevance and Initial Size Seed
– User can input required value as per geometry dimensions
96
Sizing : Min and Max Size
Min Size
• Minimum element size that the size function will generate
• Some element sizes may be smaller than this size depending on
the edge length
Max Face Size
• Maximum face size that the size function will generate
Max Size
• Maximum element size that can be grown in the interior of
volume mesh
Min Size
97
Sizing : Growth Rate
• Define the ratio between sizes of adjacent cells
– On surfaces and inside the volumes
Mesh size:
GR = 1.1 : 1,263,297 cells
GR = 1.2 : 587,026 cells
GR = 1.3 : 392,061 cells
98
Sizing : Transition
• Controls the rate at which elements grow
• Two level control for transition
– Slow (Default for CFD, Explicit), produces smooth transitions
– Fast (Default for Mechanical and Electromagnetic), produces more
abrupt transitions
• Hidden for sheet models, ignored for assemblies containing
sheets, when ASF is On
Fast Slow
99
Sizing : Smoothing
• Improves quality by moving locations of nodes with respect to
surrounding nodes
• Three level control for smoothing iterations
– High (Default for Explicit)
– Medium (Default for Mechanical, Electromagnetic and CFD)
– Low
100
Sizing : Span Angle Center
• Controls curvature based refinement for Edges
• Three options and corresponding span angle ranges are
– Coarse: 91° to 60°
– Medium: 75° to 24°
– Fine: 36° to12°
Fine
Medium
Coarse
101
Inflation
Inflation
• Used to generate thin cells adjacent to boundaries
• Required for capture of wall adjacent boundary layers
– Resolve viscous boundary layer in CFD
– Resolve thin air gaps in Electromagnetic analysis
– Resolve high stress concentration regions in Structures
• Cells are created by ‘inflating’ from the surface mesh into the
volume (3d) or inflating from the boundary edge onto the face (2d)
• Options to control growth
102
Inflation : Automatic Inflation
• Three options
– None
• Select this for manual inflation settings using local mesh
controls
– Program Controlled
• All the faces are selected for inflation except:
• Faces scoped to a Named Selection
• Faces with manual inflation defined
• Faces in contact regions
• Faces in symmetry
• Faces that belong to a part or body that has a mesh method
defined that does not support 3D inflation, such as hex-
dominant
• Faces in sheet bodies
– All Faces in chosen Named Selection: can grow inflation
layers from faces grouped in one named selection
103
Inflation : Inflation Options
Five options: All available for PC tets and Assembly meshing
Smooth Transition
Maintains smooth volumetric growth
between each adjacent layer. Total
Smooth thickness depends on the variation of
Smoo
Transition th base surface mesh sizes (Default)
Transition
First Layer Thickness
Maintains constant first cell height
throughout First Layer
Total Thickness Thickness
Maintains constant total height of inflation
layer throughout
Total
Thickness First Aspect Ratio
Controls the heights of the inflation layers
by defining the aspect ratio of the
inflations that are extruded from the
First Aspect
inflation base
Ratio
Last Aspect Ratio
Creates inflation layers using the values
Last Aspect of the first layer height, maximum layers,
Ratio and aspect ratio controls
104
Inflation : Inflation Algorithms
• Two Algorithms
– Post
– Pre
• Patch independent
meshes use Post Post
Preview Inflation
is available only
with Pre Algorithm
Pre
105
Defeaturing
• Removes small geometry features meeting the tolerances
using Pinch or/and Automatic Mesh Based Defeaturing
controls in order to improve the mesh quality. Not all
meshing methods can take advantage of these controls
• Automatic Mesh Based Defeaturing (AMBD) when it is ‘On’,
features smaller than or equal to the value of Defeaturing
Tolerance are removed automatically
106
Statistics
• Option to view the mesh quality metric
• Exhaustive list of quality metrics
• Orthogonal Quality mesh quality metrics
• Option to view the Mesh Metric chart
– Intuitive controls available under Mesh Metric Chart
– Various options to explore under the ‘Controls’
• See Module 5 for details
107
Parallel Statistic Calculations
108
Workshop 3 – Global Mesh Controls
109
Introduction to ANSYS Meshing
110
Local Mesh Controls
• Local mesh controls (Mesh sizing, Refinement, Match control, Inflation, etc)
• How to apply local controls?
• Effect of local controls on mesh
111
Preprocessing Workflow
Geometry Creation
Geometry
OR Meshing Solver
Operations
Geometry Import
112
Meshing Process in ANSYS Meshing
113
Local Mesh Controls
Control the mesh locally
• Depends on the “Mesh Method” used
Local Mesh Controls are:
• Sizing
– For Vertex, Edge, Face and Body
• Contact Sizing
– For Edge and face
• Refinement
– For Vertex, Edge and Face
• Mapped Face Meshing
– For Face
• Match Control
– For Edge and Face
• Pinch
– For Vertex and Edge
• Inflation
– For Edge and Face
114
Sizing
Recommended for locally defining the mesh sizes
You can only scope sizing to one geometry entity type at a time
• For example: you can apply sizing to a number of edges or a number of faces, but not a mix of
edges and faces.
115
Sizing : Edges
Sizing Type:
Element Size
Sizing Type:
Number of Divisions
116
Sizing : Edges
Bias Type and Bias Factor
Specify the grading scheme and factor
• Bias Type: grading of elements towards one end, both ends, or the center
• Bias Option:
– Bias Factor: is the ratio of the largest element to the smallest element
– Smooth Transition: defined by Growth Rate which is ratio of size of an
element with size of previous element. (Growth Rate = Bias Factor^(1(n-1))
117
Sizing : Edges
Behavior
Soft: Sizing will be influenced by global sizing functions such as those based on
proximity and/or curvature as well as local mesh controls
Hard: Size control is strictly adhered to
•Transition between hard edges (or any edge with bias) and adjacentedge
and face meshes may be abrupt
•Hard edges or edges with bias will override Max Face Size and Max Size
properties
Influenced by global
Proximity advanced
Soft size function.
118
Sizing : Faces
Element Size
Defines the maximum element size on the face
Edge curvature is
resolved
119
Sizing : Body (volume)
Element Size
Defines the maximum cell size on the Body
Without Without
body sizing body sizing
120
Sizing : Sphere of Influence
Sphere of Influence : on Vertex
– Available with or without Advanced Size Functions
– Sets the average element size around the selected vertex
– Inputs:
• Sphere radius and Element size
• Center of the sphere is defined by a model vertex
121
Sizing : Sphere of Influence
Sphere of Influence : on Bodies
– Available with or without Advanced Size Functions
– Constant element size is applied within the confines
of a sphere
– Use coordinate system to define the center of the
Sphere
122
Sizing : Bodies of Influence
Bodies of influence (BOI)
– Lines, surfaces and solid bodies can be used to refine
the mesh
– Accessible when ASF is On
Line BOIs
Without BOIs
125
Mapped Face Meshing: Example
E
E E
E E E S
E
E
E
E ES
EE E
E E
126
Mapped Face Meshing: Radial No. of Divisions
• If face is defined by two loops, then the “Radial Number of Divisions”
field is activated
• Specify the number of divisions across the annular region
• Useful for creating number of layers across an annulus
127
Match Control
• Define periodicity on faces (3D) or edges (2D)
• The two faces or edges should be topologically and geometrically the same
• A match control can only be assigned to one unique face/edge pair
• Match controls are not supported with Post Inflation Algorithm
• Match Control with Patch Independent tetrahedrons not supported yet
– Two types of match controls available:
• Cyclic and
• Arbitrary
– Not available for CutCell meshing
Matching face
mesh
128
Match Control: Cyclic
• Define Rotational periodic
Full Model Cut Boundaries Periodic Model
Model is symmetrical at 90° so slice the body along dotted lines in DesignModeler
Selected Faces
for Match control
Matching face
mesh
129
Match Control: Arbitrary
• Two faces or edges to be matched, can be arbitrarily located
130
Pinch
131
Inflation
Used to generate prism layers (as explained in Global settings chapter)
Inflation layer can be applied to faces or bodies using respectively edgesor
faces as the boundary
132
Workshop 4 – Local Mesh Controls
133
Appendix
Contents
• Edge, Face & Body Sizing Options
• Sizing: Sphere of Influence
• Contact Sizing
• Refinement
• Inflation
• Object generator for copying mesh settings to like bodies
134
Edge, Face and Body Sizing Options
Curvature Normal Angle
Maximum allowable angle that one element edge is allowed tospan
Available only when Use Advanced Size Function is set to either On: Proximity and Curvature
or On: Curvature
You can specify a value from 0 to 180 degrees or accept the default. (A value of 0 resets the
option to its default.)
The default is calculated based on the values of the Relevance and Span Angle Center options
Growth Rate
Represents the increase in element edge length with each succeeding layer of elements. (For
example, a growth rate of 1.2 results in a 20% increase in element edge length with each
succeeding layer of elements.)
Available when Use Advanced Size Function is on
Specify a value from 1 to 5 or accept the default
The default is calculated based on the values of the Relevance and Transition options
Must be always lower or equal the global growthrate
135
Sizing : Sphere of Influence
Sphere of Influence : on Edges
– Available only if Advanced Size Function is OFF
– Use coordinate system to define the center of the Sphere
136
Sizing : Sphere of Influence
Sphere of Influence : on Faces
– Available only if Advanced Size Function is OFF
– Elements within the sphere will have given average elemen t size
– Use coordinate system to define the center of the sphere
137
Contact Sizing
• Generates similar-sized elements on contact faces between parts
– Two options
• Element Size. The size of the elements on contact faces respects the value
of Element Size specified
• Relevance. The size of the elements on contact faces are determined
internally by spheres of influence with automatic determination of radius
and size depending on the value of specified Relevance
– Not available for CutCell Meshing
Mesh without
Contact Sizing
138
Contact Sizing
•Note that the mesh is still non-conformal across the contact region
•To insert a Contact Sizing in the Mesh tree select the contact region
from Contacts list and drag it to Mesh object, or use RMB on the
Mesh
139
Refinement
• Valid for only for faces or edges
• Not available for Patch Independent Tetrahedrons, CutCell, Uniform Quad/Tri
Uniform Quad meshing methods
• Refinement is applied after the creation of mesh with rest of the
settings
• Refinement level can vary from 1 (minimal) to 3 (maximum)
• A refinement level of “1” breaks up the edges of the elements into half
– The Refinement control may be automatically suppressed when use inflation
depending on how the inflation/refinement is used. See the user’s Guide for details
140
Inflation
Transition Ratio: Attempts to match the size
of last prism layer with that
of next Tet cell
Growth Rate: It determines the relative
thickness of adjacent inflation
layers
Transition Ratio: 0.5 Transition Ratio: 0.8
Growth Rate: 1.2 Growth Rate: 1.2
143
Object Generator
For copying inflation settings, two sets of entities will be required, first one for “Geometry” on
which inflation needs to be applied and second one for “Boundary”. Here, set of faces for
“Boundary” is grouped in “INF” Named Selection.
144
Introduction to ANSYS Meshing
145
Mesh Quality
What you will learn from this presentation
146
Preprocessing Workflow
Geometry Creation
Geometry
OR Meshing Solver
Operations
Geometry Import
147
Meshing Process in ANSYS Meshing
148
Impact of the Mesh Quality
Good quality mesh means that…
• Mesh quality criteria are within correct range
– Orthogonal quality …
• Mesh is valid for studied physics
– Boundary layer …
• Solution is grid independent
• Important geometric details are wellcaptured
• Example showing
difference between a
mesh with cells
failing the quality
criteria and a good
mesh
• Unphysical values in
vicinity of poor
quality cells
150
Impact of the Mesh Quality on the Solution
• Diffusion example
(max,avg)CSKEW=(0.912,0.291)
(max,avg)CAR=(62.731,7.402)
Mesh 1
VzMIN≈-90ft/min
VzMAX≈600ft/min
VzMIN≈-100ft/min
VzMAX≈400ft/min
Grid Dependency
DP 0 DP 1 DP 2 DP 3 DP 4
Nb Cells 500 3 000 24 000 190 000 x8 1.5 M
2%
152
Grid Dependency
153
Hexa vs. Tetra
154
Mesh Statistics and Mesh Metrics
Displays mesh information for Nodes and Elements
List of quality criteria for the Mesh Metric
• Select the required criteria to get details for quality
• It shows minimum, maximum, average and standard deviation
Different physics and different solvers have different requirements for
mesh quality
Mesh metrics available in ANSYS Meshing include:
– Element Quality
– Aspect Ratio
– Jacobean Ration
– Warping Factor
– Parallel Deviation
– Maximum Corner Angle
– Skewness
– Orthogonal Quality
For Multi-Body Parts, go to corresponding body in Tree Outline
to get its separate mesh statistics per part/body
155
Mesh Quality Metrics
Orthogonal Quality (OQ)
On cell On face
Derived directly from
A1
Fluent solver discretization
A1
c1
• For a cell it is the minimum of: c2 e1
f1
Ai f i Ai ci f2 e2
f3 A2 e3 A2
| Ai || f i | | Ai || ci | c3
computed for each face i A3 A3
Ai ei
For the face it is computed as the minimum of | Ai || ei | computed for each edgeI
Where Ai is the face normal vector and fi is a vector from the centroid of the cell to the centroid
of that face, and ci is a vector from the centroid of the cell to the centroid of the adjacent cell,
where ei is the vector from the centroid of the face to the centroid of the edge
At boundaries and internal walls
ci is ignored in the computations of OQ 0 1
Worst Perfect
156
Mesh Quality Metrics
Optimal (equilateral) cell
Skewness
Two methods for determining skewness:
1. Equilateral Volume deviation:
157
Mesh Quality
Mesh quality recommendations
Low Orthogonal Quality or high skewness values are not recommended
Generally try to keep minimum orthogonal quality > 0.1, or maximum skewness < 0.95.
However these values may be different depending on the physics and the location
of the cell
Fluent reports negative cell volumes if the mesh contains degenerate cells
Skewness mesh metrics spectrum
159
Mesh quality: skewness
• Two methods for determining
skewness:
1. Based on the equilateral
volume: optimal (equilateral) cell
optimal cell size - cell size
• Skewness =
optimal cell size circumcircle
pyramids.
24
Equiangle skewness
• Common measure of quality is based on equiangle skew.
• Definition of equiangle skew:
where:
– max = largest angle in face or cell.
– min = smallest angle in face or cell. max
– e = angle for equiangular face or cell. min
• e.g., 60 for triangle, 90 for square.
• Range of skewness:
0 1
best worst
Mesh quality: smoothness and aspect ratio
• Change in size should be gradual (smooth).
Flow Direction
OK!
28
Grid design guidelines: smoothness
• Change in cell/element size should be gradual (smooth).
• • • xi 1
1.2
xi xi+1 xi
29
Grid design guidelines: total cell count
• More cells can give higher accuracy. The downside is increased
memory and CPU time.
• To keep cell count down:
– Use a non-uniform grid to cluster cells only where they are needed.
– Use solution adaption to further refine only selected areas.
• Cell counts of the order:
– 1E4 are relatively small problems.
– 1E5 are intermediate size problems.
– 1E6 are large. Such problems can be efficiently run using multiple
CPUs, but mesh generation and post-processing may become slow.
– 1E7 are huge and should be avoided if possible. However, they are
common in aerospace and automotive applications.
30
Solution adaption
• How do you ensure adequate grid resolution, when you don’t
necessarily know the flow features? Solution-based grid adaption!
• The grid can be refined or coarsened by the solver based on the
developing flow:
– Solution values.
– Gradients.
– Along a boundary.
– Inside a certain region.
31
Grid adaption
• Grid adaption adds more cells where needed to resolve the flow
field.
• Fluent adapts on cells listed in register. Registers can be defined
based on:
– Gradients of flow or user-defined variables.
– Isovalues of flow or user-defined variables.
– All cells on a boundary.
– All cells in a region.
– Cell volumes or volume changes.
– y+ in cells adjacent to walls.
• To assist adaption process, you can:
– Combine adaption registers.
– Draw contours of adaption function.
– Display cells marked for adaption.
– Limit adaption based on cell size and number of cells.
32
Adaption example: final grid and solution
33
Main sources of errors
• Mesh too coarse.
• High skewness.
• Large jumps in volume between adjacent cells.
• Large aspect ratios.
• Interpolation errors at non-conformal interfaces.
• Inappropriate boundary layer mesh.
34
Smoothness
Checked in solver
• Volume Change in Fluent
– Available in Adapt/Volume
– 3D : σi = Vi / Vnb
Recommendation:
• Expansion Factor in CFX Good: 1.0 < σ < 1.5
– Checked during mesh import Fair: 1.5 < σ < 2.5
– Ratio of largest to smallest element volumes Poor: σ > 5 … 20
surrounding a node
171
Mesh Metric Graph
172
Mesh Metric Graph Controls
For large meshes, it is advisable to switch to geometry mode (click on geometry in the Tree Outline),
create the section plane and then go back to mesh model
174
Mesh Quality Check for CFX
175
Mesh Quality Check for Fluent
Grid check tools available
• Check : Perform various mesh consistency
checks
• Report Quality : lists worse values of
orthogonal quality and aspect ratio
• TUI command mesh/check-verbosity sets
the level of details in the report
176
Factors Affecting Quality
Geometry problems
Geometry cleanup in Design Modeler
• Small edge or
• Gaps Virtual topology & pinch in Meshing
• Sharp angle
Meshing parameters
• Sizing Function On / Off
• Min size too large Mesh setting change
• Inflation parameters
– Total height
– Maximum angle
• Hard sizing
Meshing methods
Mesh setting change
• Patch conformal or patch independent tetra
• Sweep or Multizone
• Cutcell
177
Workshops 5
Automotive Aero
178