mesh considerations chapter 5. training manual may 15, 2001 inventory #001477 5-2 mesh...
DESCRIPTION
Training Manual May 15, 2001 Inventory # Finite Element Mesh Rapid Change in Element size is not good. –Can occur with free meshing. Aspect Ratio — depends on local behavior of solution. –10:1 in regions with significant gradients may be high. 100:1 in regions without gradients may be fine. Included Angles — Approximate recommended limits. –25 < Angle < 155 –Acceptable included angles depend upon variable gradients in the region.TRANSCRIPT
MESH CONSIDERATIONS
Chapter 5
May 15, 2001Inventory
#0014775-2
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualMesh Considerations
• Mesh used affects both solution accuracy and level of computational effort.
• Typical CFD meshes require more elements than typical solid mechanics problems.
• Concentrate mesh density toward steep gradient regions.– Wall boundary layer– Shear layer– Separation regions– Shock waves
• Transitions from high-to-low mesh density regions should be gradual to avoid numerical instabilities.
• 3-D element shapes may be mixed.
May 15, 2001Inventory
#0014775-3
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualFinite Element Mesh
• Rapid Change in Element size is not good.– Can occur with free meshing.
• Aspect Ratio — depends on local behavior of solution.– 10:1 in regions with significant gradients may be high.
100:1 in regions without gradients may be fine.• Included Angles — Approximate recommended limits.
– 25 < Angle < 155– Acceptable included angles depend upon variable gradients in the
region.
May 15, 2001Inventory
#0014775-4
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualFinite Element Model Problems
• Un-referenced nodes– Some geometry with nodes not connected into elements– Free Meshing Difficulty– Generally must clear area/volume & remesh
• Element Errors– Duplicate elements– Overlapping volumes– Degenerate elements– Unsupported element generated– Bad Shapes Generated
May 15, 2001Inventory
#0014775-5
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualExamples of Poor Meshes
Incompatibility - the faces of adjacent elements must line up. The faces of adjacent elements must match up. If they do not, unspecified boundaries result.
1
May 15, 2001Inventory
#0014775-6
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualAnother Example of Poor Meshing
Change in element size is too great.
1
May 15, 2001Inventory
#0014775-7
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualFree Meshing
Free meshes are usually not a problem; this one shows too great a change in element size.
1
May 15, 2001Inventory
#0014775-8
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
1
Triangles and Quadrilaterals
Both of the meshes shown use the same lesize commands. The quadrilateral mesh is preferred because it enables better resolution at a boundary.
May 15, 2001Inventory
#0014775-9
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualPipe Cross Section
1
A pipe cross section using a center square.
Using a center square,the pattern allows for mesh refinement towards the pipe walls.
Element sizing near the “center square" is not quite uniform.
A quarter of a circle can be free meshed with all hexes.
May require use of higher order quadrature for element integration
May 15, 2001Inventory
#0014775-10
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualAnother Pipe Cross Section
1
This mesh pattern which uses more volumes and enables more uniform spacing near the center.
May 15, 2001Inventory
#0014775-11
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualMixing Triangles and Quadrilaterals
1
An example of using triangles to provide a transition in the number of elements in the transverse direction.
Note that the mesh is not as good near the walls in the triangle region.
May 15, 2001Inventory
#0014775-12
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
Mixing Triangles and Quadrilaterals (continued)
1
Using boundary areas preserves the ability to control the boundary layer spacing with a mapped quad mesh.
May 15, 2001Inventory
#0014775-13
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualUsing the Mesh Tool
• The preceding cross sections can be extruded or swept into the third dimension to create a mesh with Hexahedral and, where necessary, Wedge elements.
• It may not always be possible to create a mapped mesh• The mesh tool is useful to mesh irregular areas or volumes
– These can also be extruded into three dimensions
May 15, 2001Inventory
#0014775-14
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualLayered Meshing
• Generates line-graded free meshes in 2D for:– lines with small variation in element size along line– steep transition in element size and number normal to line
• Use Mesh Tool• Specifications
– Desired element size at the wall– Thickness of inner LAYER1 (uniformly sized elements)
• Distance or number of rows– Thickness of outer transitional region - LAYER2
• Size of elements increases by transition factor to global element size
May 15, 2001Inventory
#0014775-15
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
Layered Meshing Controls
Mesh Tool
May 15, 2001Inventory
#0014775-16
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualControls for a Very Fine Mesh...
• Global Distance between lines: 1.0
• Size at wall: .01• LAYER1 Size factor is 3.0• LAYER2 1.5
May 15, 2001Inventory
#0014775-17
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
1.0
… Resulting In A Very Fine Mesh
May 15, 2001Inventory
#0014775-18
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualComments on the Layered Mesh...
• Note that this mesh, although quite fine at the walls, is not optimized for this duct configuration. Generally in these cases higher aspect ratio elements would be used near the walls.
• The layered meshing is most appropriate for curved surfaces such as cylinders in cross flow.
May 15, 2001Inventory
#0014775-19
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualAlternate Example
• Same wall element size: .01• Inner Layer 1 element thick• Size factor of 4 for transitional
layer
May 15, 2001Inventory
#0014775-20
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualAlternate Mesh
May 15, 2001Inventory
#0014775-21
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualFree Meshing - Quads
• Smartsizing is available
Settings!
May 15, 2001Inventory
#0014775-22
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
Circle (r=10) - Smartsize = 6 (Default - no esize)
May 15, 2001Inventory
#0014775-23
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualCircle (R=10) - Smartsize = 1 (Finest)
But this has four elements with included angles near 180o
May 15, 2001Inventory
#0014775-24
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualAdjustments
• Prep7 > Checking Ctrls > Shape Checking: CHANGE SETTINGS
• To use this feature, one must temporarily redefine element as a shell 63….
May 15, 2001Inventory
#0014775-25
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualWith 150 degrees specified
May 15, 2001Inventory
#0014775-26
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualMore Quad Free Meshing
• Half Circle : r = 10• Esize: 0.5• Smartsize : Default (6)
May 15, 2001Inventory
#0014775-27
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualMesh Refinement
• Convenient when mesh is NOT mapped• Take the previous mesh and do a minimum
refinement at the outer edge….• Choose Refine “at Lines”• Click Refine• The Picker Appears (then pick lines)• Generally use minimum refinement in the
resulting dialog box...
May 15, 2001Inventory
#0014775-28
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualResulting refinement...
May 15, 2001Inventory
#0014775-29
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualMesh Tool and Transition elements
• Another pipe cross section – Use two cylinders, one solid and one hollow…. – Glue them together– Further operation necessary to control radial spacing
May 15, 2001Inventory
#0014775-30
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualPreparation
• Rotate the working plane 90 about the X axis and divide the two volumes into four.
• Add the lines together as shown (picture shows only the front lines merged)
May 15, 2001Inventory
#0014775-31
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualSome line sizing
• Set the four azimuthal lines to 20 divisions apiece.
• In the radial direction, use 15 elements with a spacing ratio of 4. Flip the lines if necessary to get small elements near the outer edge.
May 15, 2001Inventory
#0014775-32
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualThe Cross section
• Using the mesh tool, mesh the outer regions with a mapped quadrilateral mesh
• Mesh the inner two areas with a free triangle mesh
May 15, 2001Inventory
#0014775-33
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualSweeping
• Set the number of divisions (and ratio) in the axial direction and then sweep the mesh… • It is best to combine the lines and copy the line divisions to the back areas before doing the sweeping.• You may allow ANSYS to choose the source and target areas.
May 15, 2001Inventory
#0014775-34
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualThe Result
• Quadrilaterals > Hexahedrals• Triangles > Wedges
May 15, 2001Inventory
#0014775-35
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualTransition Elements: More
• In this case it is possible to map mesh hexahedrals directly in the two outer volumes.
• The inner volumes could then be meshed with tetrahedral elements.
• Pyramid elements would be automatically created to provide the transition between the hexahedral and tetrahedral faces.
• The extrusion of the cross section involving wedges is probably preferable if long aspect ratio elements are to be created. (I.e. the pipe is long….)
May 15, 2001Inventory
#0014775-36
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
Three Dimensional MeshingIntersection of Two Pipes• The World Itself is quite three - dimensional• In this Example two intersecting cylinders are created
– Large annular cylinder – Smaller inlet region
• Goal: Mesh each cylinder with only Hexahedral elements• Techniques illustrated
– Solid Modeling Boolean Operations– Sweeping process
• Display the grid of the working plane. Set the working plane to a spacing of 1.0, a snap increment of 1.0, and have it extend 10 units in all directions
May 15, 2001Inventory
#0014775-37
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 1 : Create The Annular Cylinder
• Choose the isometric viewInner Radius is 3
• Outer radius is 7• Stretch out from z = 0 to
some distance such as z=50.. (“back up” the view as necessary …..)
• The Result…
May 15, 2001Inventory
#0014775-38
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 2: Add the Inlet
• 1 - Move working plane to 0,0,4 .– It is convenient to align with the global
cartesian axes first….• 2 - Rotate WP +90 about Y axis• 3 - Create Solid cylinder with center y=5
units up from origin of working plane, stretch to radius of 2 and then pull to local z = 15
May 15, 2001Inventory
#0014775-39
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualResult of Step 2…..
• At this point, the two cylinders occupy some of the same volume.• The overlap must be eliminated.
May 15, 2001Inventory
#0014775-40
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 3: Split the Small Inlet
• Preprocessor> (Modeling) Operate>Divide> Volume by Area• Pick Volume (OK)• Pick Area (OK)
Note when Using Picker:Keep depressed until correct item is highlighted
The Inlet cylinder is being trimmed by the surface of the middle cylinder
May 15, 2001Inventory
#0014775-41
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualResult of Division
• Adjust the display:– Colors from Utility Menu > Plot
Ctrls > Numbering… (turn on volume numbers)
– Change view via Utility Menu > Device Options: Vector Mode
– Plot Volumes
May 15, 2001Inventory
#0014775-42
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 4: Delete the Extra Volume
• Preprocessor >(Modeling) Delete> Volumes and Below….• Volume 2 has been replaced by Volumes 3 and 4. The volume
inside the big cylinder is now deleted.• Pick the one shown and OK
Note that from revision to revision, changes in the way boolean operations are performed may change entity numbering schemes...
May 15, 2001Inventory
#0014775-43
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualGeometry Modifications
• Divide the annular cylinder into two cylinders:– Move the working plane to z = 8 (Step 5)– This enables meshing most of the annular cylinder with a mapped
mesh– Divide the resulting two annular cylinders at y=0 into a top half and a
bottom half (Step 6)• Using the area of the inlet which projects onto the surface of the
annular cylinder, make a volume which extends back through the cylinder (Step 7)
• Overlap this volume with the cylinder and the Inlet (Step 8)• Delete the resulting extra volume (Volumes and Below) (Step 8)• Details of performing these steps follows…..
May 15, 2001Inventory
#0014775-44
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 5: Divide Cylinder
• Realign working plane (WP) with global cartesian coordinate system and then offset to 0,0,8.
• Then divide the Annular Cylinder by the working plane
May 15, 2001Inventory
#0014775-45
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
Step 6: Divide the Two annular cylinders• Rotate WP 90Deg about X axis• Divide both new cylinders by WP.• Result: 5 volumes• Turn off wireframe
May 15, 2001Inventory
#0014775-46
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
Step 7: Make Volume by Projecting Area through Cylinder• Preprocessor >Operate > Extrude >
-Areas- along Normal..• Choose area where the inlet
cylinder has been split in two (use isometric view…)
• Make sure to use a negative value, making sure it is enough to penetrate the annular cylinder completely
May 15, 2001Inventory
#0014775-47
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
Solid model has now been properly connected
Step 8: Clean up the Volumes
• OVERLAP the two Volumes highlighted
• Delete the “extra” volume (and below)
May 15, 2001Inventory
#0014775-48
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
The Four Volumes Near the Intersection
This is the region of interest…. The remainder of the annular cylinder is left to the student !There should be 6 volumes all told.
May 15, 2001Inventory
#0014775-49
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 9: Line Combinations
• Select the Two Annular volumes near the intersection• Add lines (LCOMB) - delete existing lines (Operate > Add)
Generally, it will be best to combine the lines to make 180 degree sections where ever two 90m degree segments occur.
May 15, 2001Inventory
#0014775-50
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 10: Line Divisions
• Mesh divisions - Annular Cylinder (Meshtool-Lines-Set)– 20 Azimuthal– 14 Axial– 10 Radial
• Before MeshingDefine Element types2D and 3D– 63,141
May 15, 2001Inventory
#0014775-51
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 11: Mesh sweeping
• Source Area• Target Area
– Larger one is source
• Set ESIZE 0.4
First Mesh the SourceArea, then perform sweep
May 15, 2001Inventory
#0014775-52
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
• Esize 0.4
• Pick larger area as Source to ensure proper element size…
• Target
• Source
Second Sweep
May 15, 2001Inventory
#0014775-53
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualSweeping Through Annular Volumes..
• Meshtool• Select
– Volume– Source Area– Target Area
• Options Box Available• It is possible to mesh the target
area first to see what mesh will be extruded. It is later deleted.
May 15, 2001Inventory
#0014775-54
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualResulting mesh patterns
• Now the surface of the “plug” will be used to sweep through the inlet volume Q2
May 15, 2001Inventory
#0014775-55
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training Manual
• These two areas must be mapped meshed before the sweeping operation…
• Set number of divisions along cylinder to 18.
(In some cases, it is not necessary to mesh the side areas…)
Step 12: Mesh Division for Small Inlet ….
May 15, 2001Inventory
#0014775-56
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 13: Mesh via Pick Corners...
• The mapped mesh is created through the Mesh Tool - “Pick Corners”
• The same four corners for each of the two areas:
May 15, 2001Inventory
#0014775-57
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualSurface Mesh of the Inlet
• A 2D non-planar element type such as Shell63 should be defined so that a surface mesh can be created.
• Resulting surface Mesh
May 15, 2001Inventory
#0014775-58
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualStep 14: Mesh Inlet via Sweep
• Use Option to Clear Areas afterward
• Meshtool – Sweep– Hex/Wedge– Auto Pick
• In this case, ANSYS can automatically pick the source and target areas…..
May 15, 2001Inventory
#0014775-59
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualResulting Mesh So Far !!!
May 15, 2001Inventory
#0014775-60
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualThe Underside
• The line divisions have already been done….
May 15, 2001Inventory
#0014775-61
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualVoila!!
May 15, 2001Inventory
#0014775-62
CFD A
NA
LYSIS 5.7CFD
AN
ALYSIS 5.7
Training ManualNotes
• The meshing of the other two volumes of the annular area is straightforward and is left to the student…
• This mesh can now easily be used for a mixing analysis following the application of the appropriate solid model boundary conditions.
• The “the Back End” of the annular cylinder can be made an inlet or a wall, and a velocity applied to the small inlet…
• Challenge to the User– Mesh the same configuration with a combination of hexahedral and
tetrahedral elements….