Professional Documents
Culture Documents
• Ozen Engineering, Inc. helps solve challenging and multidisciplinary engineering problems with
industry leading computational simulation technologies
• We provide advanced
• Multi-Physics FEA
• Computational Fluid Dynamics (CFD) simulations
INTRODUCTION TO ANSYS MESHING
• In this lecture we will learn:
– Process for pre-processing using ANSYS tools
– What is the ANSYS Meshing?
– Meshing Fundamentals
– How to launch ANSYS Meshing?
– ANSYS Meshing interface
– Geometry concepts
– Meshing methods
PREPROCESSING WORKFLOW
Import/
Geometry
Geometry Meshing Solver
Modifications
Creation
Sketches and
3D Operations Meshing Methods
Planes
Booleans, Hybrid Mesh: Tet,
3D Operations Decompose, etc. Prisms, Pyramids
Sizing, Controls,
etc.
WHAT IS ANSYS MESHING
• ANSYS Meshing is a component of ANSYS Workbench
– Meshing platform
– Combines and builds on strengths of preprocessing offerings from ANSYS:
• ICEM CFD, TGRID (Fluent Meshing), CFX-Mesh, Gambit
• 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
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
MESHING PROCESS IN ANSYS MESHING
Double click
Mesh in the
System
or right click
and select
Edit
GRAPHICS USER INTERFACE
Toolbars
Worksheet
Details view
Section Planes
Message window
Entity Details Bar Units Bar
OUTLINE
• Three default sections
– Geometry
• Bodies
– Coordinate Systems
• Default global & user defined systems
– Mesh
• Meshing operations (controls & methods)
– displayed in the order in which they are inserted
In the tree
• Right clicking on any object
• launches a context sensitive menu
• Example: contains commands to generate, preview, clear mesh etc.
DETAILS VIEW
• Accessing Object Details
– Select an object (in the Outline)
• Related information to that object are displayed in the Details View below
• Ex: Select a body (“Fluid”) in the Outline
– Details of “Fluid” : contains graphical and geometric details
• To access meshing details
– Click the Mesh object or any of the inserted objects
Independent faces
GEOMETRY CONFIGURATION – MULTI-BODY PARTS
– Geometry composed of multiple bodies in a part
• Depend on ‘Shared Topology method’ (in DM)
– None
» Results in a none connection between the bodies (similar to multiple parts)
– Automatic
Faces in contact imprinted & fused Results in Conformal Common face acts
Form a single face shared between the 2 bodies mesh as ‘Interior’
GEOMETRY CONFIGURATION – MULTIPLE – BODY PARTS
– Geometry composed of multiple bodies in a part
– Imprints
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
MESHING – 3D GEOMETRY
• 3D cell Types
• First Meshing Approach
Part/Body Methods
• Tetrahedrons.
Part/Body based − Tetras only
• Meshing occurs at part or • Sweep.
body level.
− Prisms &
• Meshing Methods are
hexahedrons
scoped to individual bodies.
• MultiZone.
• Method assignment can be
− Mainly hexahedron
automatic or manual.
• Bodies contained in one • Hex Dominant
part are conformally − Not for CFD
meshed. • Automatic.
− Combines any types
MESHING – 3D GEOMETRY
• Second Meshing Approach
Sketches and
3D Operations Meshing Methods
Planes
Booleans, Hybrid Mesh: Tet,
3D Operations Decompose, etc. Prisms, Pyramids
Sizing, Controls,
etc.
WHICH METHOD TO CHOOSE?
High aspect ratio cells Cells refined around
• Why Multiple Methods? (Inflation) near wall to capture small geometric details
• Choice depends on : boundary layer gradients and complex flow
– Physics
– Geometry
– Resources
To access it To access it
• Insert Method • Insert Method
• Set to Tetrahedrons • Set to Tetrahedrons
• Set to Patch Conforming • Set to Patch Independent
TETRAHEDRONS METHOD : CONTROL
• Choice of surface
mesher algorithm
in global controls
TETRAHEDRONS METHOD : CONTROL
Defeaturing Control
• Set Mesh Based Defeaturing On
• Set Defeaturing Tolerance
• Assign Named Selections to selectively preserve
geometry
Delaunay mesh - smooth growth rate Octree mesh . approximate growth rate
• Initial Requirements
– Clean geometry
– May require geometric
decomposition
SWEEP MESHING
Note
• Specifying both Source & Target accelerate
meshing Generation of wedges
& hex elements
SWEEP MESHING
• Limitations
X For multibody parts only one division allowed
across the sweep
X Inflation not allowed
X Sweep bias not allowed
Source Faces imprinted
on Target
SWEEP MESHING
Use of Inflation
• Defined on source face ( NOT on target one)
• From boundary edges (2D)
• Swept through volume
• Identification method
• Right click on mesh object
• Outline tree Sweepable bodies in
• Select : Sweepable Bodies green color
Unsweepable
Sweep Mesh
• Decompose bodies into multi-simple topological
shapes
• Perform decomposition in CAD/DM
MULTIZONE MESHING
To access it
• Insert Method Set to Multizone
MULTIZONE MESHING
Hexa - Prism
MULTIZONE MESHING
To access it
• Default method
• Insert method Set to Automatic
2D MESHING Automatic Triangles
Control
• Mapped Surface Meshes
• Local mesh controls
• Fully Mapped surface meshes
• Specified edge sizing/intervals
Inflation
• Boundary edges are inflated
• Global & local inflation controls are supported
2D MESH SOLVER GUIDELINES
• For axisymmetric applications y 0 and make sure • Thin Block for Planar 2D
that the domain is axisymmetric about x axis
• Thin Wedge (< 5°) for 2D Axis-symmetric
• In ANSYS Meshing, by default, a thickness is
defined for a surface body and is visible when the
view is 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
SELECTIVE MESHING
• What is ?
– Selectively picking bodies and meshing them incrementally
• Why ?
– Bodies can be meshed individually
– Mesh seeding from meshed bodies influences neighboring bodies (user has control)
– Automated meshing can be used at any time to mesh all remaining bodies
– When controls are added, only affected body meshes require remeshing
– Selective body updating
– Extensive mesh method interoperability
SELECTIVE MESHING
Meshing first the pipe then the block
Local Meshing
Clear meshes on individual bodies
Generate meshes on individual bodies
• 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 Meshing first the block then the pipe
affected body
• Select body(s)
• Right click
SELECTIVE MESHING
Example : Meshing cylinder first and then block
Recording Mesh Operations
• Use it to record the order of meshing to automate
future use
• Right click Mesh in the
Outline to access it
• A Worksheet is generated
• Record mesh operations as ordered steps
• Named Selections are automatically created for
each meshed body for reference in the Worksheet
SELECTIVE MESHING
Example :
Geometric
change to block
GLOBAL MESH CONTROLS
• In this section, we will learn about:
– Introduction to Global Mesh Controls
– Defaults
– General Sizing Controls & Advanced Size Functions
– Global Inflation
– Assembly Meshing Controls
– Statistics
PREPROCESSING WORKFLOW
Import/
Geometry
Geometry Meshing Solver
Modifications
Creation
Sketches and
3D Operations Meshing Methods
Planes
Booleans, Hybrid Mesh: Tet,
3D Operations Decompose, etc. Prisms, Pyramids
Sizing, Controls,
etc.
MESHING PROCESS IN ANSYS MESHING
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 Smart defaults !
regions with curvatures and proximity
of surfaces
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
– Numer of CPUs for Parallel Part Meshing
– Shape Checking
– Element midside nodes
• Defeaturing
– Pinch based
– Automatic Mesh Based
• Statistics
– Mesh statistics, Quality criteria
GLOBAL MESH CONTROLS (3)
DEFAULTS
• Four options under “Physics Preference”
– CFD, Mechanical, Explicit and Electromagnetic
• Three options under “Solver Preference” when CFD is selected:
– Fluent, CFX and POLYFLOW
• 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
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. Unavailable for Assembly Meshing
– Proximity and Curvature
– Curvature
– Proximity
– Fixed
• When CutCell Meshing is active with ‘Proximity’ or ‘Proximity and
Curvature’ Advanced Size Function (ASF), Proximity Size Function
Sources control is displayed to specify the regions of proximity between
“Edges”, “Faces” or “Faces and Edges” in the computation of Proximity
ASF
SIZING : ADVANCED SIZING FUNCTION EXAMPLES
Min Size
Growth Rate =
Mesh size: 1.3
Fast Slow
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° to 12°
• Not available for Cutcell meshing
Preview Inflation
is available only
with Pre Algorithm
• Surface mesh is inflated first, then rest of
the volume mesh grows
Pre
• Default method for Patch Conforming
Tetrahedrons
INFLATION: AUTOMATIC INFLATION EXAMPLE
MultiZone Cutcell
INFLATION : ADVANCED OPTIONS
Collision Avoidance: Control to detect proximity regions and adjust the cells in the
inflation layer.
• None
• Does not check for proximity regions
• Layer Compression (Default for Fluent)
• Compresses inflation layers in the proximity regions
• Maintains the given number of layers in the proximity regions
• May stair-step if needed (will give a warning)
Sketches and
3D Operations Meshing Methods
Planes
Booleans, Hybrid Mesh: Tet,
3D Operations Decompose, etc. Prisms, Pyramids
Sizing, Controls,
etc.
MESHING PROCESS IN ANSYS MESHING
LOCAL MESH CONTROLS
Non-CutCell meshing local 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 CutCell meshing local controls
• Pinch - For Vertex and Edge
• Inflation - For Edge and Face
Sizing Type:
Number of Divisions Edge meshed with Edge meshed with 10
constant element size of elements
60mm
Soft Hard
Number of Division = 4 Number of Division = 4
SIZING : FACES & BODY (VOLUME)
• Element Size • Element Size
•Defines the maximum element size on the •Defines the maximum cell size on the Body
face
SIZING : SPHERE OF INFLUENCE
• On Vertex • On Bodies
• Available with or without • Available with or without
Advanced Size Functions Advanced Size Functions
• Sets the average element size • Constant element size is applied
around the selected vertex within the confines of a sphere
• Inputs: • Use coordinate system to define
– Sphere radius and Element size the center of the Sphere
– Center of the sphere is defined by a model
vertex
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
– Not available for CutCell meshing
Line BOIs
Without BOIs
MAPPED FACE MESHING
• Creates structured meshes on selected mappable surfaces
– Mapped Face Meshing with advanced control is supported for
• Sweep, Patch Conforming, Hexa Dominant
• Quad Dominant and Triangles
– Mapped Face Meshing with basic control is supported for
• MultiZone
• Uniform Quad/Tri and Uniform Quad If Mapped Face Meshing fails, ( ) icon
appears adjacent to corresponding object in
– RMB on Mesh and Show/Mappable Faces to display all the Tree outline. The mesh will still be created
but will ignore this control.
mappable faces
MAPPED FACE MESHING: INTERNAL NO. OF DIVISIONS
• If face is defined by two loops, then the “Internal Number of Divisions”
field is activated
– User can specify the number of divisions across the annular region
– Also useful for defining number of divisions along sweeping direction for Multizone
when there are no side edges
Matching face
mesh
Sketches and
3D Operations Meshing Methods
Planes
Booleans, Hybrid Mesh: Tet,
3D Operations Decompose, etc. Prisms, Pyramids
• Example showing
difference between a
mesh with cells failing
the quality criteria and
a good mesh
• Unphysical values in
vicinity of poor quality
cells
IMPACT OF THE MESH QUALITY ON THE SOLUTION
Mesh 1 VzMIN≈-90ft/min
VzMAX≈600ft/min
VzMIN≈-100ft/min
VzMAX≈400ft/min
GRID DEPENDENCY
x8
• Solution run with
multiple meshes DP 0 DP 3
• Note : For all runs the
computed Y+ is valid for
wall function (first cell
not in laminar zone)
2%
GRID DEPENDENCY
• Hexa cells can be stretched in
stream direction to reduce
number of cells
• Bias defined on inlet and outlet
walls
• Bias defined on inlet edges
Meshing parameters
• Sizing Function On / Off
• Min size too large
• Inflation parameters Mesh setting change
– Total height
– Maximum angle
• Hard sizing
Meshing methods
• Patch conformal or patch independent tetra Mesh setting change
• Sweep or Multizone
• Cutcell
VIRTUAL TOPOLOGY
When to use? Without VT With VT
Restrictions
• Limited to “developable” surfaces
• Virtual Faces cannot form a closed region
automatically manually
AUTOMATIC VIRTUAL TOPOLOGY
• Automatically creating Virtual Faces
– Left Click Virtual Topology in Model Tree
– Set Behaviour in Details
• Controls aggressiveness of automatic VT algorithm
• Low: merges only the worst faces (and edges)
• Medium & High: try to merge more faces
– Select if Face Edges shall be merged
– Right Click Virtual Topology and click Generate Virtual Cells
• Manually creating a Virtual Face
– RMB on Model tree and select Insert Virtual Topology
– Select Virtual Topology from the Tree Outline
– Pick faces or edges, RMB and Insert Virtual Cell
Access
• Assembly Meshing is accessible only when Tetrahedrons
Physics and Solver Preferences are set to
CFD and Fluent respectively
• To activate, replace None by Cutcell or
Tetrahedrons
ASSEMBLY MESHING - CUTCELL
• CutCell Behavior
– Cartesian meshing method designed for
the ANSYS FLUENT solver
– Generates a majority of hex cells
• Some wedges, tets and pyramids at
boundaries to capture geometry
• During transfer to Fluent hexa cells at
size transition are converted into
Polyhedra
– Supports Inflation
• Post-inflation (TGrid algorithm)
– Baffles not supported
– High inflation may fail
• Cutcell mesh generated first,
inflation generated second (Post)
ASSEMBLY MESHING - TETRAHEDRONS
• Tetrahedrons Behavior
– Generates a Patch Independent tetra mesh
with automatic defeaturing
– Following steps occur in background
• Generate CutCell
• Delete volume mesh
• Triangulate surface mesh and
improve
• Fill with tetra mesh
– Compatible with inflation
• Pre-inflation
– Algorithm similar to Tetra
Patch Conformal
ASSEMBLY MESHING - CONTROLS
• Controls
– Set Advanced Size Functions
• Proximity SF Sources : 'edges',
‘faces’ or ‘edges and faces’
• Define correct Min Size (details
next slide)
– Inflation defined by Global or Local
controls
• Combined Global & Local not
supported
• Program Control acts on Fluid
bodies only
– Bodies can be set as Fluid in
Body properties
• For Virtual Bodies, only automatic
Program Controlled inflation can
be used
– Define Feature and Tesselation controls
(see next slide)
– Apply any required local size controls
– Statistics
ASSEMBLY MESHING - CONTROLS Example 1. Min Size too
large compared to the size
of the geometric detail
– Feature Capture
• Program Controlled : default
which sets feature angle = 40
• Feature Angle : user angle to
define features to recover
– 0 to capture all
– Tessellation (faceting) refinement
• Program Controlled - default
which sets tessellation refinement
to 10% of the value of smallest
global min size
• Absolute Tolerance – user defined
tolerance
– Must be set to 5-10% of Incorrect tessellation may lead to
smallest size (global min leakage
sizes or local hard sizing)
• None - Sets tessellation
refinement to the CAD program or
DesignModeler default setting
STAY AHEAD DURING CHALLENGING TIMES