Académique Documents
Professionnel Documents
Culture Documents
2
Preprocessing Workflow
Preprocessing
Meshing
and Solution
Geometry
Import / Geometry
Creation Cleanup /
Modifications
3
Mesh Process & Course Plan
Global
Controls
Module 3
Mesh
Quality
Module 5
4
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
5
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
6
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
8
Outline
9
Details View
10
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
11
Hexa vs. Tetra
12
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
13
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
14
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
15
Meshing – 3D Geometry (2)
• Second Meshing Approach (mainly for CFD users)
16
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.).
18
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”:
20
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.
21
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
22
Usability: Folders for Meshing Controls in R17.0
23
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
26
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
27
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
28
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
29
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
30
Workshop 1.1 CFD – ANSYS WB Meshing Basics
31
Workshop 1.1 FEA – ANSYS WB Meshing Basics
32
Introduction to ANSYS Meshing
34
Preprocessing Workflow
Geometry Creation
Geometry
OR Meshing Solver
Operations
Geometry Import
35
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.
36
Inserting Methods
37
Tetrahedrons Method
Method Behavior
• Generates tetrahedral elements - two algorithms are
available:
• Patch Conforming
• Patch Independent
38
Tetrahedrons Method: Patch Conforming
Access
• Insert Method and set to Tetrahedrons
– Additional drop down box for algorithm choice
appears - Set to Patch Conforming
39
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
43
Tetrahedrons Method: Control
Patch Independent
• Sizing
– Sizing for the Patch Independent algorithm
defined in Patch Independent Details
– Automatic curvature & proximity
refinement option
44
Tetrahedrons Method: Control
Patch Independent
• Defeaturing Control
– Set Mesh Based Defeaturing On
– Set Defeaturing Tolerance
– Assign Named Selections to
selectively preserve geometry
45
Tetrahedrons Method: Application
Examples
46
Hex Meshing
47
Introduction
Tet Mesh
Hex Meshing Elements: 48K
48
Sweep Meshing
49
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
52
Sweep Meshing
53
Sweep Meshing
55
Sweep Meshing
Example 2
T Junction Geometry
Unsweepable
Decomposed in
CAD/DM
Sweepable!
56
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
57
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
59
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)
60
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
62
2D Meshing
63
Methods for 2D Meshing
Automatic Triangles
• Patch Conforming Methods
– Automatic Method (Quadrilateral
Dominant) & Triangles
Multizone Multizone
Quad/Tri Quad
65
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
66
Meshing Multiple Bodies
67
Selective Meshing
68
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
69
Selective Meshing
Contents
• Hex Dominant Meshing
• Sweep Meshing Biasing & Complex Geometry
• Surface Meshing with Inflation
• Mesh Connections
• Shell Meshing
• Patch Independent Tetrahedrons - Transition
73
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
74
Hex Dominant Meshing
• Example:
75
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
76
Hex Dominant Meshing
Example:
Higher no. of
elements
Geometry with
valve inside
Lower no. of
elements
77
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
78
Sweep Meshing
Control: Type
Element size in
swept direction
2mm
Sweep Element Size
No. of elements in
Sweepable Geometry swept direction: 10
79
Sweep Meshing
Uniform mesh
No Bias
Cells are
concentrated on
Sweepable Geometry one side
With Bias
Sweep Meshing : Complex geometry
81
Tetrahedrons Method: Patch Independent
Transition
• Effect of Smooth Transition
• Smooth transition uses advanced
front meshing technique
82