Mesh Generation in CFD: CFD Open Series Patch 1.86.4
Mesh Generation in CFD: CFD Open Series Patch 1.86.4
Mesh Generation in
CFD
Edited and Adapted by :
Ideen Sadrehaghighi, Ph.D.
Cyliner Head -
(Polyhedral cells) Mixer (SAMM cells)
ANNAPOLIS, MD
2
Figure I Painting by Lu Xinjian - Constellation / Virgo, Dia. 150cm, Acrylic on Canvas, 2015
3
Figure II Artistic Rendering by Lu Xinjian - City DNA /London 200x400, Acrylic on Canvas, 2013
4
Figure III Using Simulation to Understand Avian Nest Design Strategies +FE Mesh Generation Module of
ScanIP to be Used for Conversion of the Segmented 3D Image Data into High Quality Volumetric Meshes,
Courtesy of Simpleware™ Product Group at Synopsys
5
Contents
1 Introduction ................................................................................................................................ 25
1.1 The Black Box Dilemma .................................................................................................................................... 25
Trust the Mesh Generated by the Software, or Take a Proactive Approach? .................. 25
Not All the Meshes Created Equal ..................................................................................... 25
The Mesh Types ................................................................................................................. 26
Regional Meshing .............................................................................................................. 27
Simulation Cost .................................................................................................................. 27
Physics vs. Mesh ................................................................................................................ 28
Meshing Generalities ......................................................................................................... 28
Hybrid Grid Generation Technique Based on Anisotropic Agglomeration Approach ..... 163
[Link] Prism Grid Generation Method Based on Anisotropic Agglomeration Approach ..... 164
[Link].1 Volume Agglomeration .................................................................................... 164
[Link].2 Interface Agglomeration .................................................................................. 165
Multigrid/Parallel Algorithm............................................................................................ 165
Multi-Level Coarser Grid Generation Based on Anisotropic Agglomeration Approach .. 166
Applications and Discussions ........................................................................................... 167
[Link] Subsonic Turbulence Flow over 2D 30P30N Airfoil .................................................... 167
[Link] Transonic Turbulence Flow over ONERA M6 Wing .................................................... 168
[Link] Transonic Turbulence Flow over DLR-F6 Wing-Body Configuration .......................... 169
Concluding Remarks ........................................................................................................ 173
5.7 Recent Advances in Hybrid Mesh Generation and Literature Survey ........................................ 173
Parallel Consideration...................................................................................................... 173
Local Remeshing .............................................................................................................. 173
Background Mesh ............................................................................................................ 174
Boundary Viscous Meshes & Sharp Corners ................................................................... 175
Procedures for Mesh Generation .................................................................................... 175
Dynamic Mesh ................................................................................................................. 177
Adaptation ....................................................................................................................... 178
Special Issues ................................................................................................................... 179
[Link] Centaur® ...................................................................................................................... 179
[Link] Pointwise® ................................................................................................................... 180
5.8 Listing of Available Meshing Software .................................................................................................... 181
5.9 Meshing Challenges for Applied Aerodynamics .................................................................................. 181
Experience ....................................................................................................................... 182
Observations .................................................................................................................... 182
Case Study 5 - Adaptive Hybrid Mesh Refinement for Multiphysics Applications .......... 196
[Link] Adaptive Hybrid Mesh Optimization .......................................................................... 196
[Link] Hybrid Adaptive Meshing ........................................................................................... 198
[Link] Meshing and Load Balancing. ..................................................................................... 200
[Link] Conclusions. ................................................................................................................ 201
6.3 Strategies for Driving Mesh Adaptation in CFD ................................................................................... 201
[Link] Feature-Based Adaption ............................................................................................. 201
[Link] Discretization Error and Recovery-Based Adaption ................................................... 203
[Link] Adjoint-Based Adaption.............................................................................................. 203
[Link] Truncation Error-Based Adaption............................................................................... 203
Current Approach for Performing Mesh Adaptation ...................................................... 203
Case Study - Mesh Adaption Results for 1D Burgers Equation (Re = 32) ........................ 205
6.4 A Solution-Based Adaptive Redistribution Method for Unstructured Meshes....................... 206
Introduction & Literature Survey .................................................................................... 206
Feature Detection ............................................................................................................ 207
Extraction of Solution Feature Surfaces .......................................................................... 208
[Link] Case Study 1 - NACA0012 Wing-Section..................................................................... 209
[Link] Case Study 2 - Capsule Model .................................................................................... 211
List of Tables
Table 3.1 NASA CRM Free-Stream Conditions ................................................................................................ 50
Table 4.1 Nomenclature ........................................................................................................................................... 85
Table 4.2 Comparison of the number of vertices and quality of the mesh for different values of δ
- (Courtesy of [Labbe]) .................................................................................................................................................. 92
Table 5.1 Near-Field Grid Details....................................................................................................................... 149
Table 5.2 Abbreviations......................................................................................................................................... 151
Table 5.3 Currently Available Grid Generation Software ........................................................................ 180
Table 9.1 Dimensions of Domains – (Courtesy of Morgut & Nobile) .................................................. 271
Table 9.2 Grids for Propeller A– (Courtesy of Morgut & Nobile) ......................................................... 271
Table 9.3 Grids for Propeller P5168 – (Courtesy of Morgut & Nobile) .............................................. 271
Table 9.4 Results of Propeller A– (Courtesy of Morgut & Nobile) ....................................................... 273
Table 9.5 Experimental setup of Propeller P5168 ..................................................................................... 274
Table 9.6 Relative Percentage Differences of Computed Values Between Finer and Coarser
Mesh for propeller P5168 – (Courtesy of Morgut & Nobile) ...................................................................... 274
Table 9.7 Grid Convergence – (Courtesy of Samir Vinchurkar & Worth Longest) ........................ 284
Table 9.8 Mesh Densities for Structured Hexahedral and Hybrid Un-Structural Tetrahedral –
(Courtesy of Rousseau et al.) ................................................................................................................................... 293
Table 10.1 Pros & Cons of Different Grid Sensitivity Method (NDV = Number of Design
Variable) ........................................................................................................................................................................... 304
List of Figures
Figure 1.1 Meshes Created using ANSYS Mosaic-Enabled Poly-Hex Core Meshing - Courtesy of
Sheffield Hallam University ......................................................................................................................................... 26
Figure 1.2 Methodology of General Grid Generation .................................................................................... 28
Figure 2.1 Anatomy of commercial CAD Systems .......................................................................................... 31
Figure 2.2 Fighter Airplane F-16 calculation ................................................................................................... 31
Figure 2.3 Example of a CSG Tree ......................................................................................................................... 34
Figure 2.4 Geometry Import and Preparation................................................................................................. 35
Figure 2.5 Different Analysis Require Different Geometric Representations .................................... 36
Figure 2.6 Small Feature (Left) vs Removed (Right) .................................................................................... 36
Figure 3.1 Classification of Grid Generation Algorithms (Courtesy of Steven Owen) .................... 39
Figure 3.2 Domain Topology (O-Type, C-Type, and H-Type; from left to right) ............................... 40
Figure 3.3 Sponge Analogy ...................................................................................................................................... 40
Figure 3.4 Dual Block Grid Topology for a Generic Wing-Fuselage Configuration .......................... 41
Figure 3.5 Multi Block Representation for C-H Mesh Around a Wing ................................................... 42
Figure 3.6 Multi-Block Gridding of Turbine Blade - (Courtesy of GridPro) ....................................... 42
Figure 3.7 Topology and Grid on a Multi-Block Wings via GridPro® ..................................................... 42
Figure 3.8 Schwarz Concept of Iterating Between Domains ..................................................................... 43
Figure 3.9 Domain Decomposition for M6 Wing using TIL Scripts (Courtesy of GridPro) ........... 43
Figure 3.10 Multi-blocking of a wing-fuselage geometry by Ansys 2019-R2..................................... 44
Figure 3.11 Jet-Wing-Flap: Medial Axis Transform (Compression Shock) and Expansion
Features Close to the Geometry – Courtesy of [Ali et al]................................................................................. 47
15
Figure 3.12 Two dimensional jet-wing-flap geometry: (a) the distance field; (b) distance field
wrap and (c) corresponding medial axis (d) hybrid blocking around 2D geometry – Courtesy of
[Ali et al] .............................................................................................................................................................................. 48
Figure 3.13 Hierarchical Geometry Handling Strategy................................................................................ 49
Figure 3.14 NASA CRM Wing-Body-Tail (c) Hybrid Blocking (d) Mesh Cut Section – Courtesy
of [Ali et al.] ........................................................................................................................................................................ 50
Figure 3.15 Jet-Wing-Flap (a) CAD, (b) CAD and the Medial Axis Cut Section, (c) Inner Hybrid
Blocking – Courtesy of [Ali et al] ............................................................................................................................... 51
Figure 3.16 Jet-Wing-Flap with Modified Inner Blocking (To Accommodate Shear Layers) –
Courtesy of [Ali et al]...................................................................................................................................................... 51
Figure 3.17 Engine-Wing-Flap (Top) Schematics Showing Geometric Zones and Domains with
Different Block Topologies (Bottom) Cut Section at z = 0 Plane – Courtesy of [Ali et al]................. 52
Figure 3.18 Examples of Structured grids for Turbine Blade ................................................................... 53
Figure 3.19 Example of Unstructured Tetrahedral Grids ........................................................................... 54
Figure 3.20 Exponential Distribution Functions ........................................................................................... 55
Figure 3.21 Hyperbolic Tangent Distribution Functions ............................................................................ 56
Figure 3.22 Grid for Dual-Block Generic Wing-Fuselage Geometry....................................................... 57
Figure 3.23 Detail of the Splitter C-Mesh, Hub Mesh and the Engine-Core Exit Mesh - Courtesy
of [Shahpar and Lapworth] ......................................................................................................................................... 58
Figure 3.24 Single Passage PADRAM Mesh for the Swept Back OGV - Courtesy of [Shahpar and
Lapworth] ........................................................................................................................................................................... 58
Figure 3.25 Typical Elliptic Grid for an Airfoil with Orthogonality Enforced on the Boundary . 60
Figure 3.26 Orthogonality Adjustments – (Courtesy of Chaitanya Varier) ......................................... 61
Figure 3.27 Euler Solution on a HSCT Wing-Fuselage ................................................................................. 63
Figure 3.28 Folded Grid by Transfinite Interpolation - Smooth Grid by Winslow Functional.... 64
Figure 3.29 1D Weight Function for High Gradient and Curvature........................................................ 66
Figure 3.30 Mesh and Mach Contours for Transonic Flow ........................................................................ 67
Figure 3.31 Grid Adaption and Mack Contours for Supersonic Airfoil ................................................. 68
Figure 4.1 Closing stage of a Moving Front Method ...................................................................................... 69
Figure 4.2 Mesh parameters ................................................................................................................................... 70
Figure 4.3 Surface Mesh of SGI Logo ................................................................................................................... 71
Figure 4.4 States of a front edge – (Courtesy of Owen et al.) .................................................................... 72
Figure 4.5 Steps demonstrating process of generating a quadrilateral from Front NA-NB -
(Courtesy of Owen et al.) .............................................................................................................................................. 73
Figure 4.6 Progression of Q-Morph- (Courtesy of Owen et al.) ................................................................ 74
Figure 4.7 Comparison of Q-Morph with Lee’s Algorithm Illustrating Element Boundary.......... 75
Figure 4.8 Results of Q-Morph Compared with Lee’s (1994) Advancing Front Indirect............... 75
Figure 4.9 Large Transition Mesh for CFD Application - (Courtesy of Owen et al.) ........................ 76
Figure 4.10 Success and failure of the in sphere test of abcd with e. .................................................... 78
Figure 4.11 Relationship Between Delaunay Triangles and the Voronoi Diagram ......................... 79
Figure 4.12 Two-Three Tetrahedral swap ........................................................................................................ 79
Figure 4.13 Robust and Fast way to Detect if point D lies in the Circumcircle of A, B, C ............... 80
Figure 4.14 Delaunay Triangulation (white) and Voronoi Diagram (blue) – Courtesy of
[Labbe]) ............................................................................................................................................................................... 80
Figure 4.15 2D Delaunay Triangulation of a Set of Vertices (Black) Restricted to a Curve
(Blue) .................................................................................................................................................................................... 83
Figure 4.16 Representation of a 3D Metric with Eigenvalues λ1, λ2 and λ3 as an Ellipsoid –
(Courtesy of [Labbe]) ..................................................................................................................................................... 87
Figure 4.17 An anisotropic uniform Delaunay triangulation (orange) and the corresponding
stretched ............................................................................................................................................................................. 89
16
Figure 4.51 (a) Cut of initial tetrahedral mesh of a simple 2-material model (b) Cut of initial
polyhedral mesh showing valid (green) and invalid (red) elements (c) Cut of untangled and
optimized polyhedral mesh (d) Full polyhedral mesh .................................................................................. 121
Figure 4.52 Boundary Layer Prisms Generated on a Cascade of a 2D Triangulation and Dual
Polyhedron ...................................................................................................................................................................... 122
Figure 4.53 3D Concept of Cascading for Boundary Layer ..................................................................... 123
Figure 4.54 Dual Mesh for Mixed Triangular-Quadrilateral Unstructured Mesh ................................ 125
Figure 4.55 Conventional configuration geometry (a), final structural mesh (Courtesy of
Hwang & Martins) ........................................................................................................................................................ 127
Figure 4.56 The Six Steps of the Unstructured Quad Meshing Algorithm ........................................ 128
Figure 4.57 Comparison of traditional voxel mesh with Simpleware mesh preserving
segmented domains without decreasing data resolution............................................................................ 130
Figure 4.58 Mechanical Characterization of Nest Material ..................................................................... 132
Figure 5.1 Hybrid Grid and Steady State Solution ...................................................................................... 134
Figure 5.2 Comparison of different mesh types for RANS Computations......................................... 135
Figure 5.3 Constructions of Hybrid mesh ...................................................................................................... 136
Figure 5.4 Predominantly polyhedral meshing ........................................................................................... 136
Figure 5.5 Polyhedral Cells for HL CRM – Courtesy of Siemens............................................................ 137
Figure 5.6 Combined Volume and Extrusion Layer Meshes ................................................................... 137
Figure 5.7 Meshing Tools in CD-Adapco ......................................................................................................... 138
Figure 5.8 Meshes Generated by a) Proposed Algorithm and b) Leading Commercial
Vendor ............................................................................................................................................................................... 139
Figure 5.9 Adaptive Mesh Refinement Types ............................................................................................... 140
Figure 5.10 An H-refinement mesh about a Shuttle-like body (left) and Computed CP (right) 141
Figure 5.11 Isotropic vs. Anisotropic Meshing............................................................................................. 141
Figure 5.12 Coarsening by Edge Collapsing – Courtesy of [Cavallo]................................................... 143
Figure 5.13 Hierarchy of Successively Coarser Meshes Obtained by Uniform ............................... 144
Figure 5.14 Coarsening ratio for coarsening with and without local Retriangulation. ............... 145
Figure 5.15 3 to 2 and 2 to 3 Swap ................................................................................................................... 146
Figure 5.16 Comparison of Coarse, Medium and Fine Grids: lateral view on fore-body with
Symmetry......................................................................................................................................................................... 149
Figure 5.17 Comparison of SolarChimera5 and Solar Grid at x = 1454 inch plane; Viscous Wall
Surface in Dark .............................................................................................................................................................. 150
Figure 5.18 local dissipation error of drag coefficient on field cut-plane at x =1400 inch;
isometric/downstream view ................................................................................................................................... 150
Figure 5.19 JSM Model with Engine Nacelle.................................................................................................. 152
Figure 5.20 Computational Domain of the HL-CRM Gapped Flaps Model ........................................ 152
Figure 5.21 Computational Domain and Separation of Zones of the JSM Model with Engine
Nacelle ............................................................................................................................................................................... 153
Figure 5.22 Three Locations of Problematic Areas of the JSM Geometry for the Generation of
Boundary Layers ........................................................................................................................................................... 154
Figure 5.23 Batch Mesh setup for the JSM Model with Size Boxes for Local Mesh Control....... 155
Figure 5.24 Resulting Layers for Isotropic Surface Mesh (Top) and Anisotropic (Bottom) ..... 156
Figure 5.25 Close ups of Coarse CRM Gapped Flap Model with Comparison of Tridiagonal
Dominant (Top) vs. Quad Dominant (Bottom) Surface Mesh .................................................................... 157
Figure 5.26 Volume Mesh of the JSM................................................................................................................ 159
Figure 5.27 CL and CD for CRM Geometry at 8 degree AoA using OpenFOAM and STAR-
CCM+ .................................................................................................................................................................................. 160
Figure 5.28 Lift and Drag Coefficients for the JSM Geometry using OpenFOAM and STAR-
CCM+ .................................................................................................................................................................................. 161
18
Figure 5.29 Interface Agglomeration Procedure Wing – Courtesy of [Laiping et al.] ................. 165
Figure 5.30 Initial Hybrid Grids and Coarsen Grids Wing – Courtesy of [Laiping et al.] ........... 166
Figure 5.31 CP Distribution on Solid Wall Wing Courtesy of [Laiping et al.].................................. 167
Figure 5.32 Initial Hybrid Grids and Coarsening Grids over 30P30N Airfoil Wing – Courtesy of
[Laiping et al.] ................................................................................................................................................................ 168
Figure 5.33 Initial Hybrid Grids and Coarsening Grids over ONERA M6 Wing – Courtesy of
[Laiping et al.] ................................................................................................................................................................ 168
Figure 5.34 Close-up Views of Hybrid Grids After Agglomeration Wing – Courtesy of [Laiping
et al.]................................................................................................................................................................................... 169
Figure 5.35 Aerodynamic Force Coefficients for Different Angles of Attack (M∞ = 0.75) Wing –
Courtesy of [Laiping et al.] ....................................................................................................................................... 170
Figure 5.36 Hybrid Grids over DLR-F6-WBNP Configuration Wing – Courtesy of [Laiping et
al.]........................................................................................................................................................................................ 171
Figure 5.37 CP Distributions at Three Typical Sections (M = 0.75, α = 1.0 deg) Wing – Courtesy
of [Laiping et al.]........................................................................................................................................................... 172
Figure 5.38 Local Remeshing .............................................................................................................................. 174
Figure 5.39 Hybrid Mesh on a Wing-Body-Pylon-Nacelle Configuration – Courtesy of
Centrum® ......................................................................................................................................................................... 176
Figure 5.40 Meshing Aircraft Landing & Takeoff – Courtesy of Centaur© ........................................ 180
Figure 5.41 HiLiftPW-3 Experience .................................................................................................................. 182
Figure 6.1 Example Adaptive Grid for Supersonic Wedge Flow ........................................................... 185
Figure 6.2 Schematic image of Adaptive Mesh Refinement .................................................................... 186
Figure 6.3 Octree Data Structure of Adaptive Cartesian Grid Method ............................................... 187
Figure 6.4 Schematic 2D view of angular variation of normal .............................................................. 188
Figure 6.5 Pressure Contours in 2D Backward Step .................................................................................. 188
Figure 6.6 Selected Initial Meshes for the Transient Adaptive Procedure (Meshes 3, 20, 27 and
29) ....................................................................................................................................................................................... 189
Figure 6.7 30P30N Multi-Element Airfoil & close up of slat................................................................... 191
Figure 6.8 2D Fuel Cell Slice & Zoomed........................................................................................................... 191
Figure 6.9 Grid Adaption using Supersonic Flow for an Airfoil (bow shock).................................. 192
Figure 6.10 NACA 0012 Transonic test case: M∞ = 0.8, α=1.25 ............................................................. 192
Figure 6.11 Two-Pass Approach for Parallel Coarsening and Refinement. ........................................... 194
Figure 6.12 Store position, orientation, and surface pressures at selected points in trajectory ........ 194
Figure 6.13 Adapted Mesh Partitioning During Store Dispense ................................................................ 195
Figure 6.14 Inter-Processor Partitioning Based on Laplace Coefficients ......................................... 196
Figure 6.15 Hybrid Icosahedra Surface Mesh (left) and Multi-Material Hybrid Volume Mesh
(right) – (Courtesy of Khamayseh and Almeida)............................................................................................. 197
Figure 6.16 HTTR Multi-Material Geometry, Initial Coarse Mesh (left), Refined Mesh (right) ) –
(Courtesy of Khamayseh and Almeida) ............................................................................................................... 198
Figure 6.17 Orography field (left), r-adaptivity (center) and h-adaptivity (right) for climate
modeling ) – (Courtesy of Khamayseh and Almeida) .................................................................................... 198
Figure 6.18 Coupled orography field transfer with h-adaptivity. Planar orography field
(top), .................................................................................................................................................................................. 199
Figure 6.19 Meshing and Partitioning of Centrifugal Contactor ) – (Courtesy of Khamayseh and
Almeida) ........................................................................................................................................................................... 200
Figure 6.20 Discretization Error in the Drag Coefficient for Transonic Flow over an Airfoil
(Reproduced from Dwight) ...................................................................................................................................... 202
Figure 6.21 Steady-State Burgers Equation for Reynolds Number 32............................................... 205
Figure 6.22 Adaption Schemes Applied to Burgers Equation Left) numerical solutions and
right) local nodal spacing Δx. ................................................................................................................................... 206
19
Figure 9.1 Comparison of Hex (16 K Cells) and Tet (440 K Cells) for a Pipe with 90 Degree
Bend ................................................................................................................................................................................... 267
Figure 9.2 Results of Hex vs Tet Meshes as well as Hybrid Mesh in a Pipe with 90 Degree
Bend ................................................................................................................................................................................... 268
Figure 9.3 Design of Propellers, (left) Propeller P5168, .......................................................................... 270
Figure 9.4 Computational Domain– (Courtesy of Morgut & Nobile) .................................................. 270
Figure 9.5 Meshing for Propeller P5168– (Courtesy of Morgut & Nobile)....................................... 272
Figure 9.6 KT , KQ and η Curves of Propeller A – (Courtesy of Morgut & Nobile) ........................... 273
Figure 9.7 KT and KQ curves of Propeller P5168 – (Courtesy of Morgut & Nobile)....................... 274
Figure 9.8 Flow Around Turbine Blade – (Courtsy of Sasaki et al.) .................................................... 276
Figure 9.9 Geometric Blocking Used (a) Structured Hexahedral (178 Blocks) and (b)
Unstructured Hexahedral (80 Blocks) – (Courtesy of Samir Vinchurkar & Worth Longest)........ 278
Figure 9.10 Four Meshing Styles of the PRB Model (a) Structured Hexahedral, (b) Unstructured
Hexahedral, (c) Prismatic, and (d) Hybrid – (Courtesy of Samir Vinchurkar & Worth Longest) 279
Figure 9.11 Velocity Vectors (a) Structured Hexahedral Mesh with 214 K C.V. (b) Unstructured
Hexahedral Mesh with 318 K, C. V. (c) Prismatic Mesh with 510K C. V, (d) Hybrid Mesh with 608
K C. V. – (Courtesy of Samir Vinchurkar & Worth Longest) ........................................................................ 286
Figure 9.12 Deposition Locations for 10 lm Particles in the Planar Geometry for the (a)
Structured Hexahedral Mesh, (b) Unstructured Hexahedral Mesh, (c) Prismatic Mesh, and (d)
Hybrid Mesh – (Courtesy of Samir Vinchurkar & Worth Longest) .......................................................... 287
Figure 9.13 Boundary Layer Transition Between Prismatic and Volume Elements – (Courtesy
of Rousseau et al.)......................................................................................................................................................... 291
Figure 9.14 Example of a hydraulic turbine spiral case (half domain) .............................................. 292
Figure 9.15 Geometry of the Stay Vanes and Wicket Gates, Left: Geometry A, Right: Geometry B
– (Courtesy of Rousseau et al.) ................................................................................................................................ 292
Figure 9.16 Structured Hexahedral Mesh of the Geometry A on the Symmetrical Surface and
Close Up – (Courtesy of Rousseau et al.) ............................................................................................................. 293
Figure 9.17 Hybrid Tetrahedral Medium Mesh on the Symmetric Surface of the Geometry A
(left) & Mesh in the wake of a Hydraulic Profile (wicket gates trailing edge)(right) – (Courtesy of
Rousseau et al.).............................................................................................................................................................. 294
Figure 9.18 Relative Total Head Loss on the Meridian Plane for the Geometry A with fine mesh,
left: Structured Hexahedral, right: Hybrid Tetrahedral – (Courtesy of Rousseau et al.) ................ 295
Figure 9.19 Meridian Velocity Near a Stay Vane with fine mesh for Geometry A, left: Structured
Hexahedral, right: Hybrid Tetrahedral – (Courtesy of Rousseau et al.) ................................................ 296
Figure 9.20 Meridian Velocity on the Meridian Plane for the Geometry B – (Courtesy of
Rousseau et al.).............................................................................................................................................................. 297
Figure 10.1 B-Spline Approximation of NACA0012 (left) and RAE2822 (right) Airfoils ........... 301
Figure 10.2 Six Control Point Representation of a Generic Airfoil ...................................................... 301
Figure 10.3 Free Form Deformation (FFD) for Volume Grid with Control Points (Courtesy of
Kenway et al.) ................................................................................................................................................................. 302
Figure 10.4 Sample Grid and Grid Sensitivity............................................................................................... 303
Figure 10.5 Effects of Mesh Density on Solution Domain ........................................................................ 305
Figure 10.6 Mesh Independence ........................................................................................................................ 306
Figure 11.1 Predicted Mesh Quality (Volume, Aspect Ratio, and Stretch) ....................................... 308
Figure 11.2 A simple Demonstration of How a Poor Mesh from a Cell Geometry Perspective 310
Figure 11.3 Using Kestrel one can Show a Correlation Between Mesh and Solution Quality .. 311
Figure 11.4 Concept of Orthogonality in Cells .............................................................................................. 312
Figure 11.5 Skewness and Warpage................................................................................................................. 313
Figure 11.6 Tetrahedral Volume ........................................................................................................................ 313
Figure 11.7 Triangulation of a polygon ........................................................................................................... 314
21
Contributors
Roy Koomullil, Bharat Soni, Rajkeshar Singh ,”A comprehensive generalized mesh system for
CFD applications”, Mathematics and Computers in Simulation 78 (2008).
Narayan, K. Lalit. Computer Aided Design and Manufacturing. New Delhi, 2008.
Duggal, Vijay. Cadd Primer: A General Guide to Computer Aided Design and Drafting-Cadd,
Mailmax Pub. ISBN 978-0962916595, 2000.
Christophe Geuzaine, Emilie Marchandise , and Jean-Francois Remacle, “An introduction to
Geometrical Modelling and Mesh Generation”, The Gmsh Companion.
Butlin, G., Stops C., “CAD Data Repair”, Proc. 5th Int. Meshing Roundtable, pp. 7-12, 1996.
Mezentsev, A.A. and Woehler, T., “Methods and algorithms of automated CAD repair for
incremental surface meshing”, Proc. 8th Int. Meshing Roundtable, Sandia report SAND 99-
2288, pp. 299-309, 1999.
Ribo, R., Bugeda, G. and Onate, E., “Some algorithms to correct a geometry in order to create a
finite element mesh”, Computers and Structures, 80:1399-1408, 2002.
Richardson LF. Weather prediction by numerical process. Cambridge: Cambridge University
Press; 1921.
Edelsbrunner H. “Geometry and topology for mesh generation”, Cambridge: Cambridge
university, 2001.
Baker, T., “Mesh generation: Art or science?” MAE Department, Princeton University,
Princeton, NJ.
Steven J. Owen, “A Survey of Unstructured Mesh Generation Technology”, Carnegie Mellon
University, PA.
Steven Owen: Introduction to unstructured mesh generation, 2005. Baker, T.,J., “Mesh
generation: Art or science?”, MAE Department, Princeton University, Princeton, NJ.
Bauer F, Garabedian P, Korn D. Supercritical wing sections I, Lecture Notes in Economics and
Mathematical Systems, vol. 66. Berlin: Springer; 1972.
Moretti G.”Grid generation using classical techniques”. Proceedings of the NASA Langley
workshop on numerical grid generation techniques, Langley, VA, October, 1980.
Caughey DA, “A systematic procedure for generating useful conformal mappings”, Int J Num
Meth Eng 1978.
Eriksson LE,”Generation of boundary-conforming grids around wing-body configurations
using transfinite interpolation”, AIAA J 1982; 20:1313–20.
An overview of Grid Pro/az3000 for automated grid generation.
22
H.L. De Cougny and MS. Shephard, 'Local modification tools for adaptive mesh enrichment and
their parallelization', Scientific Computation Research Center, RPI, NY.
Zhang Laiping, Zhao Zhong W. Huang and R. D. Russell, Moving mesh strategy based on a gradient
flow equation for two-dimensional problems, SIAM J. Sci. Comput. 20(3), 998 (1999).
Hector D. Ceniceros and Thomas Y. Hou, “An Efficient Dynamically Adaptive Mesh for
Potentially Singular Solutions”, Journal of Computational Physics 172, 609–639 (2001).
Yaxun Liu and Costas D. Sarris, “Dynamically Adaptive Mesh Refinement FDTD: A Stable And
Efficient Technique For Time-Domain Simulations”, Department of Electrical and Computer
Engineering University of Toronto, Toronto, ON, M5S 3G4, Canada.
Chang Xinghua, He Xin, “A 3D hybrid grid generation technique and a multigrid/parallel
algorithm based on anisotropic agglomeration approach”, Chinese J of Aeronautics, 2013.
Lars Tysell, “Hybrid grid generation for viscous flow computations around complex
geometries”, Technical Reports from Royal Institute of Technology, Department of Mechanics,
Stockholm, Sweden, 2010.
L¨ohner, R., A parallel Advancing Front Grid Generation Scheme. Paper AIAA 2000.
Larwood, B., Weatherill, N. P., Hassan, O. & Morgan, K. 2003, Domain Decomposition Approach
for Parallel Unstructured Mesh Generation. International Journal for Numerical Methods in
Engineering, 2003.
Weatherill, N. P., Hassan, O., Morgan, K., Jones, J. & Larwood, B., “Towards Fully Parallel
Aerospace Simulations on Unstructured Meshes”. International Journal for Numerical Methods
in Engineering, 2001.
Ito, Y., Murayama, M., Yamamoto, K., Shih, A. & Soni, B., Development of a Grid Generator to
Support 3-D Multizone Navier-Stokes Analysis. Paper AIAA-2008-7180.
Eliasson, P., Nordstr¨om, J., Peng, S-H. & Tysell, L.,”Effect of Edge-based Discretization Schemes
in Computations of the DLR F6 Wing-Body Configuration”. Paper AIAA-2008-4153.
Berglind, T., Numerical Simulation of Store Separation for Quasi-Steady Flow. FOI-R-2761-SE,
FOI, Swedish Defense Research Agency, 2009.
Berglind, T., Peng, S-H. & Tysell, L., FoT25: Studies of Embedded Weapons Bays - Summary
Report. FOI-R-2775-SE, FOI, Swedish Defense Research Agency, 2009.
Zaib Ali, James Tyacke, Paul G. Tucker, Shahrokh Shahparb, “Block topology generation for
structured multi-block meshing with hierarchical geometry handling”, 25th International
Meshing Roundtable (IMR25), 2016.
Jeffrey Slotnick, “Meshing Challenges for Applied Aerodynamics”, Boeing, January 2019.
Shahrokh Shahpar and Leigh Lapworth, “PADRAM: Parametric Design And Rapid Meshing
System For Turbomachinery Optimization”, Proceedings of ASME Turbo Expo 2003, USA.
Marco Lanfrit, “Best practice guidelines for handling Automotive External Aerodynamics with
FLUENT”, Fluent Deutschland GmbH, Birkenweg 14a, 64295 Darmstadt/Germany.
John Chawner, Pointwise, Inc.
Michael Turner, “High-Order Mesh Generation For CFD Solvers”, Imperial College London,
Faculty of Engineering Department of Aeronautics, A thesis submitted for the Degree of
Doctor of Philosophy, 2017.
24
25
1 Introduction
Figure 1.1 Meshes Created using ANSYS Mosaic-Enabled Poly-Hex Core Meshing - Courtesy of
Sheffield Hallam University
27
mesh and tweak it they can take control,” says Wade. Figure 1.1 shows meshes were created using
ANSYS Mosaic-enabled Poly-Hex core meshing that automatically combines disparate meshes with
polyhedral elements for fast, accurate flow resolution. ANSYS Fluent provides Mosaic-enabled
meshing as part of a single-window, task-based workflow. Image courtesy of Sheffield Hallam
University, Centre for Sports Engineering Research; and ANSYS.
Regional Meshing
The relatively new startup OnScale recently began offering on-demand multi-physics simulation
from the browser. Some firms like Rescale offer high-performance computing (HPC) resources
needed to run simulation, but not the software. By contrast, OnScale offers both the hardware and
the multi-physics solver required to process jobs. “We offer automatic meshing as well as user-
defined meshing. Users can define the level of fidelity desired,” explains Gerald Harvey, OnScale’s
founder and VP of engineering. “OnScale gives you the ability to refine the grid and apply finer
meshes in specific regions.” Not every corner, section or region in your geometry needs fine meshing.
With simple geometry, a coarse mesh with fewer elements may suffice. But in certain regions where
curvature, contact and joints create complex stress concentrations or flow patterns, a finer mesh
(simply put, a higher number of meshes to cover the area) is warranted. Advanced simulation
programs usually offer tools to specify how to treat these regions. Even in programs that target
design engineers, some tools may be available to treat these regions differently.“ In Altair FEA
products like SimLab, you can perform automatic local mesh refinement,” says Eder. “So you can run
an analysis, review the results, then automatically refine the mesh in areas of high strain energy error
density for subsequent runs. In [expert-targeted] HyperMesh, you also have many more manual
mesh refinement options.”
Simulation Cost
OnScale’s Harvey suggests running a mesh study to understand the correlation between the stress
effects and the mesh types and mesh density chosen. This can offer clues on how meshing affects the
FEA results. “Every engineer should conduct a mesh convergence study test the meshes with some
key performance indicators (KPIs) to find a happy medium,” says Harvey. “Suppose you’re looking at
the design of a bracket. Then look at how the different meshes affect the bend angle of the bracket,
for example.” Calculating simulation cost is complex, in part due to the mix of licensing policies in the
market. But fundamentally, two parameters are involved: the time it takes and the hardware it uses.
The need to find simplified meshes (as simple as possible without infringing on the accuracy of
results) largely stems from the desire to keep these two parameters as low as possible. “If you have
a simple solid part and you put 3D meshes on it, it takes more times than necessary to run,” notes
Eder. In such a case, running simulation in a 2D cross-section of the geometry may be much more
efficient. “And think of how many iterations you plan to run, because you’ll be paying that penalty for
every single run,” he adds.
ANSYS’ Wade points out that most solvers prefer hexahedral elements or quad surface mesh because
“they fill the space very efficiently and using such elements when transient or explicit analysis is
required can give massive gains in solve times (minimizing CPU effort for calculations). Hex elements
can follow the flow direction better as well, which has some accuracy benefits. Tetrahedra, polys and
other unstructured methods are very popular because they don’t require the decomposition
(chopping up) of the space like a hex mesh; as a result, they are excellent for automation and really
minimize manual effort.” Another tip from Karimi’s article: “Don’t fill the domain with a ridiculous
number of tetrahedrons. So many times, I see meshing engineers filling up their CFD [computational
fluid dynamics] domains [the target region for fluid analysis] with a large number of tetrahedrons
and then struggling to get simulation results on time.” Certain programs are equipped to make the
mesh selection easier. “With OnScale, you can conduct a study on a sweep of design, with mesh being
28
one of the variables,” Harvey points out. “In OnScale, the run wouldn’t cost you significantly, because
it would be a one-off cost. And the payback is well worth it.”
Meshing Generalities
A pre-processing step for the computational field simulation is the discretization of the domain of
interest and is called mesh generation. The process of mesh generation can be broadly classified into
two categories based on the topology of the elements that fill the domain. These two basic categories
are known as structured and unstructured meshes. The different types of meshes have their
advantages and disadvantages in terms of both solution accuracy and the complexity of the mesh
generation process. A structured mesh is defined as a set of hexahedral elements with an implicit
connectivity of the points in the mesh. The structured mesh generation for complex geometries is a
time-consuming task due to the possible need of breaking the domain manually into several blocks
depending on the nature of the geometry. An unstructured mesh is defined as a set of elements,
commonly tetrahedrons, with an explicitly defined connectivity. The unstructured mesh generation
process involves two basic steps: point creation and definition of connectivity between these points.
Flexibility and automation make the unstructured mesh a favorable choice although solution
accuracy may be relatively unfavorable compared to the structured mesh due to the presence of
skewed elements in sensitive regions like boundary layers.
In an attempt to combine the advantages of both structured and unstructured meshes, another
approach in practice is hybrid mesh generation. In a hybrid mesh, the viscous region is filled with
prismatic or hexahedral cells while the rest of the domain is filled with tetrahedral cells. It has been
observed that a hybrid mesh in viscous regions creates a lesser number of elements than a completely
unstructured mesh with a similar resolution. This type of mesh has no restrictions on the number of
edges or faces on a cell, which makes it extremely flexible for topological adaptation. It is given that
unstructured mesh has an advantage over the structured mesh in handling complex geometries,
mesh adaptation using local refinement and de-refinements, moving mesh capability by locally
repairing the bad quality elements, and load balancing using appropriate graph partitioning
algorithms. In the case of a non-matched block-to-block boundary, interpolation issues have to be
handled properly to satisfy the conservation principles. However, the structured mesh has a better
accuracy for viscous calculations due to the fact that it can handle cells with very high aspect ratio
cells in the boundary layer2. Precipitate of most grid generation procedure can be summarized as
Figure 1.2 provided that everything goes according to plan.
2Roy Koomullil, Bharat Soni, Rajkeshar Singh ,”A comprehensive generalized mesh system for CFD applications”,
Mathematics and Computers in Simulation 78 (2008) 605–617.
30
Computer-Aided Design (CAD) is the use of computer systems (or workstations) to aid in the
creation, modification, analysis, or optimization of a design3. CAD software is used to increase the
productivity of the designer, improve the quality of design, improve communications through
documentation, and to create a database for manufacturing. CAD output is often in the form of
electronic files for print, machining, or other manufacturing operations. The term CADD (for
Computer Aided Design and Drafting) is also used4. CAD may be used to design curves and figures
in two-dimensional (2D) space; or curves, surfaces, and solids in three-dimensional (3D) space. CAD
is an important industrial art extensively used in many applications, including automotive,
shipbuilding, and aerospace industries, industrial and architectural design, prosthetics, and many
more. CAD is also widely used to produce computer animation for special effects in movies,
advertising and technical manuals, often called DCC digital content creation. The modern ubiquity
and power of computers means that even perfume bottles and shampoo dispensers are designed
using techniques unheard of by engineers of the 1960s. Because of its enormous economic
importance, CAD has been a major driving force for research in computational geometry, computer
graphics (both hardware and software), and discrete differential geometry5.
CAD is an important industrial art extensively used in many applications, including automotive,
shipbuilding, and aerospace industries, industrial and architectural design, prosthetics, and many
more. CAD is also widely used to produce computer animation for special effects in movies,
advertising and technical manuals, often called DCC digital content creation. The modern ubiquity
and power of computers means that even perfume bottles and shampoo dispensers are designed
using techniques unheard of by engineers of the 1960s. Because of its enormous economic
importance, CAD has been a major driving force for research in computational geometry, computer
graphics (both hardware and software), and discrete differential geometry6.
3 Narayan, K. Lalit (2008). Computer Aided Design and Manufacturing. New Delhi: Prentice Hall of India. p. 3.
4 Duggal, Vijay (2000). Cadd Primer: A General Guide to Computer Aided Design and Drafting-Cadd, Mailmax
Pub. ISBN 978-0962916595.
5 Wikipedia.
6 Same Source.
31
Feature-Based Modeling
Features are defined to be parametric shapes associated with attributes such as intrinsic geometric
parameters (length, width, depth etc.), position and orientation, geometric tolerances, material
properties, and references to other features. Feature-based modelers allow operations such as
creating holes, fillets, chamfers, bosses, and pockets to be associated with specific edges and faces.
When the edges or faces move because of a regeneration, the feature operation moves along with it,
keeping the original relationships.
Constraint-Based Modeling
There are two types of constraints. Dimensional constraints are used to specify distances between
items. Geometric constraints define positional relationships between entities in the model in terms
of the geometry. Examples of geometric constraints include tangency, parallelism, symmetry,
concentricity. Constraint-based modeling allows the engineer or designer to incorporate intelligence
8Christophe Geuzaine, Emilie Marchandise , and Jean-Francois Remacle, “An introduction to Geometrical
Modelling and Mesh Generation”, The Gmsh Companion.
33
into the design. The initial sketch of a two-dimensional profile in constraint-based solid modeling
does not need to be created with a great deal of accuracy. It just needs to represent the basic geometry
of the cross section. The exact size and shape of the profile is defined through assigning enough
parameters to fully constrain it.
Parametric Modeling
Parametric modeling means that parameters of the model may be modified to change the geometry
of the model. A dimension is a simple example of a parameter. When a dimension is changed, the
geometry of the part is updated. Thus, the parameter drives the geometry. An additional feature of
parametric modeling is that parameters can reference other parameters through relations or
equations. The power of this approach is that when one dimension is modified, all linked dimensions
are updated according to specified mathematical relations, instead of having to update all related
dimensions individually.
History-Based Modeling
The last aspect of solid modeling is that the order in which parts are created is critical. This is known
as history-based modeling. For example, a hole cannot be created before a solid volume of material
in which the hole occurs has been modeled. If the solid volume is deleted, then the hole is deleted
with it. This is known as a parent-child relation. The child (hole) cannot exist without the parent
(solid volume) existing first. Parent-child relations are critical to maintaining design intent in a part.
Most solid modeling software recognizes that if you delete a feature with a hole in it, you do not want
the hole to remain floating around without being attached to the feature. Consequently, careful
thought and planning of the base feature and initial additional features can have a significant effect
on the ease of adding subsequent features and making modifications.
Associative Modeling
The associative character of solid modeling software causes modifications in one object to \ripple
though" all associated objects. For instance, suppose that you change the diameter of a hole on the
engineering drawing that was created based on your original solid model. The diameter of the hole
will be automatically changed in the solid model of the part, too. In addition, the diameter of the hole
will be updated on any assembly that includes that part. Similarly, changing the dimension in the part
model will automatically result in updated values of that dimension in the drawing or assembly
incorporating the part. This aspect of solid model software makes the modification of parts much
easier and less prone to error. As a result of being feature based, constraint based, parametric, history
based, and associative, modern solid modeling software captures \design intent", not just the design.
This comes about because the solid modeling software incorporates engineering knowledge into the
solid model with features, constraints, and relationships that preserve the intended geometric
relationships in the model.
Basic Primitives
The standard CSG basic primitives are the sphere, the torus, the parallelepiped (block), the cylinder
and the cone. All those primitives defined bounded closed orientable domains. All basic primitives
are defined in the world system of coordinates. Rigid motions (rotations, translations) and scaling
can be applied to re-position the primitives.
34
Regularized Boolean
Operators
Each primitive divides the
3D space into two parts: the
one that is inside the
primitive and the one that is
outside. The closure of a
primitive is the surface that
separates its interior with its
exterior. It is easy to think a
primitive as a set where
standard Boolean
operations like union,
intersection and difference
can be defined. Basic
primitives can be combined
using Boolean operations.
Three Boolean operators are
defined. Consider two
primitives A and B.
The Union A ⋃ B
operation returns of
all the points x ∈ R3
that are either inside
A or inside B. Figure 2.3 Example of a CSG Tree
The Intersection A ⋂
B operation returns of all the points x ∈ R3 that are both inside A and inside B.
The Difference A n B operation returns of all the points x ∈ R3 that are inside A and outside B.
Regularized Boolean operators differ from the set-theoretic ones in that dangling lower dimensional
structures are eliminated, all remaining faces, edges and vertices belonging to the closure of the
resulting volume.
9 Mark W. Beall1, Joe Walsh2, Mark S. Shephard, “Accessing CAD Geometry For Mesh Generation”.
35
CAD geometry for mesh generation and will review several of the issues associated with accessing
CAD geometry for mesh generation. The techniques for CAD geometry access to be reviewed include:
Translation & Healing, Discrete Representations, Direct Geometry Access, and Unified Topology
Accessing Geometry Directly. The intent of this paper is to provide an overview to the alternative
approaches and how they address the specific issues related to accessing CAD geometry for mesh
generation. It is not the intent of this paper to provide detailed algorithms related to accessing or
repairing CAD data. There are several issues associated with effective and efficient access of CAD
geometry for mesh generation. This section will provide a quick overview of several of the major
issues and the ramifications that this issues have on mesh generation. In summary, the geometry
import can be devised in three steps, following [Yasuda]10 for HL CRM mesh development, where
CFLOW compromises a grid generator and flow solver.
10Hidemasa Yasuda, Taku Nagata, Atsushi Tajima, Akio Ochi, “KHI Contribution to GMGW-1”, Kawasaki, 1st
Geometry and Mesh Generation Workshop Denver, CO June 3-4, 2017.
36
Dis-Featuring
Disfeaturing is one of the most complex issues associated with CAD geometry access for mesh
generation. Indeed one of the major issues that the CAD and CAE software industries have
encountered is developing a consistent definition of a feature. For the purposes of this paper we will
classify features into two main groups. The first group of features will be called “intended features”.
Intended features are features that were explicitly defined as features in the model that drive the
resulting geometry. In this case a feature-based modeling system was used to create a model which
contains intended features. Intended features can only be created by feature-based modeling
systems and can be suppressed by the original modeling system. The second group of features will
be called “artifact features”. Artifact features are features that are created indirectly by the modeling
process. One example of artifact features is the creation of engineering features such as holes by a
modeling system that is not feature-based. The second example of artifact features is the creation
of recognizable patterns of geometry / topology data that create a valid design model but also create
difficulties associated with mesh generation. Artifact features can be created from any modeling
system and cannot be suppressed in the original modeling system. Figure 2.6 illustrates small
features removed from geometry.
Part of the complexity associated with CAD geometry access for mesh generation is due to the fact
that historically analyses are performed too late in the design process and the design model contains
more details than are appropriate for analysis. Moving the analysis earlier in the design process will
help to reduce, but will not remove, the need for defeating. Since multiple analysis types may be
required for any design state there remains a need for defeating to various levels to support the range
of analysis to be performed.
“Dirty” Geometry
Dirty geometry has been one of the most nagging issues related to geometry access. Dirty geometry
consists of gaps, overlaps and other incompatibilities in the model preventing the model from being
valid. These incompatibilities do not exist in the native CAD system and are introduced from
translating the native CAD geometry to another format. Differences in representations, methods and
tolerances between modeling engines create dirty geometry. Translators must then heal or repair
the geometry to represent it as a valid model in the non-native system11-12-13. Note that without
knowledge of the modeling system tolerances and methods, there is no a priori means to ensure a
healing process will successfully recover the correct model representation.
Non-Manifold Geometry
A non-manifold geometry is a 3D shape that cannot be unfolded into a 2D surface with all its normal
pointing the same direction. Examples include Multiply connected geometry, Several surfaces
connected to a single vertex, Internal faces, Disconnected vertices and edges etc. The non-
manifold geometry is problematic in mesh generation sense and should be avoided or resolved prior
to that.
11 Butlin, G., Stops C., “CAD Data Repair”, Proc. 5th Int. Meshing Roundtable, pp. 7-12, 1996.
12 Mezentsev, A.A. and Woehler, T., “Methods and algorithms of automated CAD repair for incremental surface
meshing”, Proc. 8th Int. Meshing Roundtable, Sandia report SAND 99-2288, pp. 299-309, 1999.
13 Ribo, R., Bugeda, G. and Onate, E., “Some algorithms to correct a geometry in order to create a finite element
14 Richardson LF. Weather prediction by numerical process. Cambridge: Cambridge University Press; 1921.
15 Edelsbrunner H. “Geometry and topology for mesh generation”, Cambridge: Cambridge university, 2001.
16 Baker, T., “Mesh generation: Art or science?” MAE Department, Princeton University, Princeton, NJ.
17 Steven J. Owen, “A Survey of Unstructured Mesh Generation Technology”, Carnegie Mellon University, PA.
18 Introduction: An Initial Guide to CFD and to this Volume; page 1, 2007.
19 Steven Owen: Introduction to unstructured mesh generation, 2005.
39
Structured Grid
Complex Variables (Restricted to 2D)
Algebraic Techniques (TFI)
PDE Methods (PDE)
Unstructured Grid
Delany Triangulation
Advancing Front
Octree Method
Hybrid Meshes
Overset Meshes
Cartesian Meshes
Adaptive Grids
Structured
Unstructured
Figure 3.2 Domain Topology (O-Type, C-Type, and H-Type; from left to right)
20Julian Marcon, Michael Turner, and Joaquim Peiro, “High-order curvilinear hybrid mesh generation for CFD
simulations”, Imperial College London, South Kensington Campus, London SW7 2AZ, United Kingdom.
41
cylinder and connect the two end of sponge together. Clearly the original Cartesian grid now becomes
a curvilinear grid fitted the cylinder. But the rectangle logical form of grid lattice is still preserved21.
Figure 3.3 spectacles a simply connected (as oppose to multiple connected) region which obviously
results in O type grid. Since the difference formulae were applied in mapped space it was necessary
to transform the partial differential equations to the coordinate system associated with the mapping.
Conformal maps lead to a new set of fairly straightforward equations without messy cross-derivative
terms. In addition, the orthogonality and smoothness properties of review of conformal mapping
meshes obtained in this manner produce a high quality mesh in physical space. Perhaps the first
published application of conformal mapping to (CFD) is circle plane mapping that transforms the
space exterior to an airfoil onto the interior of the unit circle. This particular conformal mapping
technique extends back a long way but its use for creating suitable meshes was a novel application.
The same mapping was later used by [Bauer et al.]22 when they developed the first transonic flow
code for solving the full potential equation. Other conformal mappings were developed to handle
axisymmetric inlets and airfoil/slat combinations. A comprehensive techniques for mesh generation
Figure 3.4 Dual Block Grid Topology for a Generic Wing-Fuselage Configuration
21Baker, T.,J., “Mesh generation: Art or science?”, MAE Department, Princeton University, Princeton, NJ.
22Bauer F, Garabedian P, Korn D. Supercritical wing sections I, Lecture Notes in Economics and Mathematical
Systems, vol. 66. Berlin: Springer; 1972.
42
has been given by Moretti23. Another useful reference is the paper by24.
23 Moretti G.”Grid generation using classical techniques”. Proceedings of the NASA Langley workshop on
numerical grid generation techniques, Langley, VA, October, 1980.
24 CaugheyDA, “A systematic procedure for generating useful conformal mappings”, Int J Num Meth Eng. 1978.
43
smaller blocks (essentially an ultra-coarse mesh) and then generate separate meshes in each
individual block. Figure 3.5 illustrates this idea by showing a schematic of a three block
decomposition for the region around a wing. In this example, one would use an H–H-mesh
combination in blocks 1 and 3, and a C–H-mesh combination in block 2. A block corresponds to a sub
domain that is
geometrically much
simpler than the full
configuration and which Iterate
can therefore be easily
meshed either by solving
a partial differential
equation or, alternatively, Figure 3.8 Schwarz Concept of Iterating Between Domains
by an algebraic method . 25
It is, in fact, common practice nowadays to create the mesh in any particular block by an algebraic
method such as transfinite interpolation and then smooth the mesh by some iterations of an elliptic
solver. A slightly more complicated topology of a dual Block for generic airplane configuration shown
on Figure 3.4. An example showing a multi block conformal mapping for a M6 and Reference-H
wings is illustrated in Figure 3.7 (a) and Figure 3.7 (b). Another example of multi-block structure
gridding for a Turbine Blade is giving by Figure 3.6. GridPro© has developed a Topology Input
Language (TIL) which can be used for similar geometries with minimal effort26. The domain
decomposition is in essence a “divide and conquer” technique for arriving at the solution of problem
defined over a domain from the solution of related problems posed on subdomains. The main reason
is that the solution of the subdomain is qualitatively or quantitatively “easier” than the original one.
Other factors are memory concern as well as that the subdomain can be solved with the aid of parallel
programing. The issue of domain
decomposition is vast and it involves a
lot of math such as Schwarz concept27.
He purposed that simply:
the topology later. But there is no free launch! There is usually a script which should be run prior to
DD. An example would be GridPro® which is runes a TIL (Topology Input Language) script, written
in C. The DD obtained using a TIL for an M6 wing is shown in Figure 3.9. Other venders have their
own scripts or input data depending. Another example is Pointwise® which uses Glyph or newer
Glyph2 as a scripting for the geometry. There are generally two methods for generating the grid; Top
to Bottom (TTB) and inversely Bottom to Top (BTT). A new arrivals from the same vendor is ANSYS
19.2 which is Mosaic technology automatically combines a variety of boundary layer meshes using
high-quality polyhedral meshes. Figure 3.10 displays a multi-blocking of wing fuselage geometry
using Ansys 2019-R2.
While most of unstructured mesh engines use the TTB approaches, majority of structured ones are
adapted to BTT. Some might think that multi-blocking approach is too tedious which of course is true.
But the reward is in complete control of grid and its quality, something which is usually hard to come
by in automated unstructured grid generates.
28Zaib Ali, James Tyacke, Paul G. Tucker, Shahrokh Shahparb, “Block topology generation for structured multi-
block meshing with hierarchical geometry handling”, 25th International Meshing Roundtable (IMR25), 2016.
45
the modern day design challenges demand the computational analysis of more realistic geometries.
Aeroengine domains, for example, involving the fan, outlet guide vanes, gearbox shaft and nozzle
coupled with wing, flap and pylon are now being used for flow simulations. Meshing such multiply
linked and more diverse geometries requires significant user intervention, or writing of templates as
part of a library. Thus, an automatic or semiautomatic blocking strategy can be beneficial to reduce
the CFD design cycle time and could be a better alternative to the unstructured or hybrid meshing
methods.
Fully automatic 3D block topology generation is a complex problem and currently there is no ideal
block topology algorithm with all the desired features for structured mesh generation. However
various automatic blocking approaches have been proposed with varying levels of automation and
geometric complexity handling. This include approaches based on medial axis29-30,
paving/plastering31-32 and more recently methods based on cross/frame field The medial axis
transform (MAT) based algorithms for the domain decomposition have been presented in. Here the
medial axis is generated using the Voronoi based method. A subdivision is created resulting in one
block for each medial vertex, medial edge and medial face. A midpoint subdivision is then used for
meshing the blocks. An alternative has been presented by [Rigby]33 called the ‘TopMaker’ approach,
which makes use of medial vertices and parts of medial axis to block the domain. Medial vertices are
defined as the points which are equidistant from three locations form the domain boundary.
Consequently, six types of medial edges and appropriate rules are defined for creating the blocks.
Further enhancements have been included to produce a good quality mesh however this technique
has yet to be extended for 3D.
Distance field based approaches are also widely used for the medial axis approximation and domain
decomposition34-35. A hybrid approach called differential MAT or d-MAT approach is presented in
[Xia and Tucker]36-37. Here, the hyperbolic-natured eikonal, level set equation is used to calculate the
distance field38. Medial axis point clouds are then extracted from the Laplacian or Hessian
determinant of the distance field. A thinning algorithm is then used for thinning the point clouds into
curves and surfaces. For illustration of the model, please refer to [Ali et al.]39.
Recent advancements in mesh generation are the methods based on the cross-fields (frame fields in
3D). A cross field is defined by assigning a set of four unit vectors to points at the discrete locations.
These unit vectors form a regular cross on the tangent plane. Thus the size and the orientation of the
quadrilateral cells can be specified by the cross field. A number of approaches have been put forward
29 T. Tam, C. Armstrong, 2D finite element mesh generation by medial axis subdivision, Adv. Eng. Software (1991).
30 D. Sheehy, C. Armstrong, D. Robinson, Computing the medial surface of a solid from a domain Delaunay
triangulation, ACM Symposium on Solid Modeling Foundations and Applications, 1995.
31 T. D. Blacker, R. J. Myers, Seams and wedges in Plastering: A 3D hexahedral mesh generation algorithm,
generation, Proceedings of 14th International Meshing Roundtable, Sandia National Lab, 2005.
33 D. Rigby, “A technique for automatic multi-block topology generation using the medial axis”, NASA/CR
FEDSM2003-45527 (2004).
34 P.-E. Danielsson, “Euclidean distance mapping, Computer Graphics and image processing”, (1980).
35 J. Vleugels, M. Overmars, Approximating generalized Voronoi diagrams in any dimension (1995). Technical
block meshing with hierarchical geometry handling”, 25th International Meshing Roundtable (IMR25), 2016.
46
for 2D and 3D cross field based domain decomposition and mesh generation. To generate the block
topology, the partitioning created by connecting the cross-field streamlines to the singularities can
be used. The resulting blocks of the cross field can then be mapped to a grid. The cross field approach
towards domain decomposition and mesh generation is novel and efficient but quite complex and
expensive. [LayTracks3D]40, is a hybrid hexahedral meshing method combining medial axis based
decomposition and the advancing front method. This technique produces good quality hexahedral
meshes but degenerate cells can be formed around the sharp concave features.
[Malcevic]41 presents another automated blocking strategy based on a Cartesian fitting method.
While preserving the topology definition, a forward geometry simplification is performed followed
by fitting the model into a Cartesian framework. The next step is blocking the domain after which the
blocked model is mapped back on to the original geometry. Further operations such as removing
singularities by J-grid wrapping are performed to enhance the mesh quality. This technique has been
applied for meshing the end-wall cavities found in turbomachinery. This technique is very simple and
but has only been demonstrated for 2D cases so far. The method sometimes produces some
unnecessary mesh clustering across the block interfaces. An assessment of various automatic block
topology generation techniques surveyed above has been performed in42-43. The comparison has
been carried out using an adjoint based error analysis of the meshes generated by these block
topologies. It is found that, in general, the medial axis based approaches provide optimal blocking
and yields better accuracy in computing the functional of interest. Mostly, domains having internal
flows were used for this assessment. However, the medial axis based methods may not always yield
an optimal block topology when dealing with complex 3D geometries and external flows. To
overcome this limitation, a hybrid blocking technique is illustrated which makes use of the distance
field iso-surface in addition to the medial axis transform. This is demonstrated using a wing-body-
tail and a jet-wing-flap configurations. In addition to that, to reduce the meshing effort, a hierarchical
geometry handling approach is also defined and applied to an engine-wing-flap configuration. These
approaches are described next.
Hybrid Blocking
Consider an aero-engine jet-wing-flap (JWF) domain with a far-field as shown in the Figure 3.11.
The medial axis close to the JWF geometry is shown in the enlarged view of 2D slice of domain in the
Figure 3.11. Here the distance field and the corresponding medial axis is computed with respect to
the geometry and the cylindrical far-field thus avoiding effect of the inlet and exit boundaries. The
solid lines represent the shock features i.e. the medial axis and the dashed lines show the expansion
features. Following this medial axis branches and even connecting the hanging and expansion
features, a poor quality blocking would be achieved. This is also because, to generate small branches
of the medial axis between the internal aero engine geometry parts would have to be combined with
very large branches between the aero engine and the far-field.
To overcome this limitation, the distance field function d can be used. An iso surface (contour in 2D)
of d is wrapped around the geometry to facilitate the MAT based block topology generation. The wall
distance computation is an intermediate step in the distance field based medial axis approximation
and hence is available for use without any extra cost. Thus using an iso surface of the distance field
instead of the far field for the medial axis computation can significantly improve the medial axis based
40 W. R. Quadros, LayTracks3D: a new approach to meshing general solids using medial axis transform, Procedia
Engineering 82 (2014).
41 I. Malcevic, Automated blocking for structured CFD gridding with an application to turbomachinery secondary
flows, 20th AIAA Computational Fluid Dynamics Conference, Honolulu, Hawaii, 2011.
42 Z. Ali, P. G. Tucker, Multiblock structured mesh generation for turbomachinery flows, Proceedings of the 22nd
blocking. The hybrid blocking procedure is described below with the help of a simple 2D JWF
geometry. The extension of this methodology to the 3D cases also follows the same procedure as
demonstrated later.
Figure 3.11 Jet-Wing-Flap: Medial Axis Transform (Compression Shock) and Expansion Features Close
to the Geometry – Courtesy of [Ali et al]
1. The distance field is computed around the domain of interest as shown in the Figure 3.12
(a). An exact equation for the wall distance d is the hyperbolic eikonal equation which
models the front propagation from the surface at unit velocity.
|∇d| = 1 + Γ ∇2 d
Eq. 3.1
where Γ −→ 0 yielding viscosity solutions. The first arrival time of the front for a unit velocity
is equal to the wall distance. The eikonal equation is solved using a fast marching method44.
A suitable iso surface is then extracted from d. This iso surface selection is currently arbitrary
but it can be linked to a criteria. For example, the width of the shear layer regions in the jet
wake can dictate this selection upstream or it could be based upon the dimensionless wall
distance y+ value. The iso surface acts like a virtual geometry or a wrap around the real
domain (see Figure 3.12 (b)).
2. The next step is approximation of the medial axis between the geometry and the distance
field wrap. The Voronoi diagram based algorithm of [Dey and Zhao]45 is used here for the
medial axis approximation. This algorithm provides a more stable and continuous medial axis
for complex 3D domains than the voxel thinning approach. The input to this program is the
point cloud data of the geometry and the distance field iso surface. It makes use of the
44 H. Xia, P. Tucker, Finite volume distance field and its application to medial axis transforms, International
Journal for Numerical Methods in Engineering 82(1) (2010).
45 T. K. Dey, W. Zhao, Approximate medial axis as a Voronoi subcomplex, Computer-Aided Design 36 (2004).
48
observation that certain Voronoi facets are positioned close to the medial axis if their dual
Delaunay edges tilt away from the surface or are very long. Hence, the angle condition and
the ratio condition are defined to filter such tilted and long Delaunay edges and the medial
axis is approximated. Let VP be the Voronoi diagram for a dense point set P from a smooth
compact surface S ⊂ R3. This Vornoi diagram is a cell complex comprising of Voronoi cells Vp
p ∈ P and their facets, edges and vertices. Also, for each point x ∈ S ,
Vp = x ∈ ℝ3 ‖p − x‖ ≤ ‖q − x ‖ , ∀q ≠ p
Eq. 3.2
where p and q are any two points in P. Let DP be the Delaunay triangulation of P and dual to
the Voronoi complex. The Delaunay triangles incident to point p which are dual to the Voronoi
edges intersected by a tangent plane at p are used to construct the criteria. All the Delaunay
edges that make relatively large angle with the planes of the triangles are filtered. If the angle
between the vector tpq from p to q and the normal nptu to a triangle ptu is less than a threshold
angle π/2 − θ for all the triangles, then that associated Delaunay edge is filtered i.e.
π
max ∠ 𝐧𝐩𝐭𝐮 , t pq < −θ
2
Eq. 3.3
gives good results. The ratio condition is based on the comparison of the length of the
Delaunay edges with the circum-radii of the triangles. Thus those Delaunay edges are filtered
which satisfy the criteria:
‖p − q‖
min >ρ
r
Eq. 3.4
Where ∥p − q∥ defines the length of a Delaunay edge and ρ is the circum-radius of a triangle
ptu. A value of ρ = 8 is normally used for dense point clouds. The medial axis is generated as
a continuous surface which can be imported into the mesh generator. The medial axis for the
JWF slice is shown in the Figure 3.12 (c).
3. To complete the blocking process, additional rules as described in the Section 1 are manually
used. Applying the rules, for example to the 2D JWF slice, the expansion features are
connected to the nearest medial vertex or otherwise the medial axis as shown in the Figure
3.12 (d).
Figure 3.12 Two dimensional jet-wing-flap geometry: (a) the distance field; (b) distance field wrap and
(c) corresponding medial axis (d) hybrid blocking around 2D geometry – Courtesy of [Ali et al]
49
4. Once the critical parts of the domain have been blocked using the medial axis, the far-field
region can be partitioned using simple Cartesian fitting or H-type blocks. This is shown, for
example, in Figure 3.12 (d) with the green lines. This resulting domain decomposition is
significantly better than the one obtained initially shown in the Figure 3.11. There can still
be some regions where the block topology is unsatisfactory. Such areas must be manually
altered. Hence, a semi-automatic blocking process arises. The mesh is then generated in the
commercial program Pointwise.
46 T. Cao, P. Hield, P. G. Tucker, Hierarchical immersed boundary method with smeared geometry, 54th AIAA
Aerospace Sciences Meeting, AIAA Science and Technology Forum and Exposition, 2016, pp. 2016–2130.
47 T. Cao, N. R. Vadlamani, P. G. Tucker, A. R. Smith, M. Slaby, C. T. J. Sheaf, Fan-intake interaction under high
incidence, Proc. of ASME Turbo Expo, Seoul, South Korea, 2016. ASME Paper Number GT2016–56561.
50
kp kp kp
Fp,x = Vx Vrel , Fp,θ = Vθ Vrel , Fp,r = VV
s s s r rel
k n 𝑉𝜃 k n 𝑉𝑥
Fn,x = f (Vx Vθ , α) , Fn,θ = f (Vx Vθ , α)
s 𝑉𝑟𝑒𝑙 s 𝑉𝑟𝑒𝑙
Eq. 3.5
Here, Vx, Vθ and Vr are the axial, tangential and radial velocity components. Vrel is the magnitude of the
fluid velocity relative to the blade. Kp and Kn are calibration constants. Also, α and s are the local blade
metal angle and blade pitch respectively. The above equations can also be modified to produce local
blockage terms.
Results
[Link] NASA CRM Wing-Body-Tail
In this section, the hybrid blocking is applied to partition the domain around a 3D NASA Common
Research Model (CRM) horizontal wing-body-tail configuration. This model represents a modern,
transonic and commercial aircraft designed to cruise at M∞ = 0.85 and CL = 0.5. The geometric and
aerodynamic details about the model as described. Further information
can be obtained from the development by [Ali et al.]48. The medial axis M∞ 0.85
around the wing and tail also provides a block topology similar to O- Ptotal 201326.9 Pa
type or C-type meshes. To assist the blocking, expansion features at the Ttotal 310.93 k
trailing edges of the wing and the tail are joined to the nearest medial
axis . After the blocking around the geometry is complete, the far-field Table 3.1 NASA CRM
domain partitioning is carried out. The region is partitioned to create a Free-Stream Conditions
H-type mesh. The block topology around the model is shown in the
Figure 3.14 NASA CRM Wing-Body-Tail (c) Hybrid Blocking (d) Mesh Cut Section – Courtesy of [Ali et
al.]
48Zaib Ali, James Tyacke, Paul G. Tucker, Shahrokh Shahparb, “Block topology generation for structured multi-
block meshing with hierarchical geometry handling”, 25th International Meshing Roundtable (IMR25), 2016.
51
Figure 3.14 (c). The volume and the surface mesh cuts are displayed in the Figure 3.14 (d). The
NASA CRM configuration has been the test case for the 4th and 5th AIAA CFD drag prediction
workshops49. The aim of the workshop is to assess the state-of-the-art in the CFD methods for aircraft
aerodynamic analysis. Here, we use the same flow conditions as given in the workshop to compute
the flow around the test case. The result of MAT based topology was to create 256 blocks in 2 minutes,
and gridding in 6 minutes. The simulations are performed in HYDRA which is an unstructured, finite
volume, edge-based and compressible flow solver using MUSCL based flux differencing.
Figure 3.15 Jet-Wing-Flap (a) CAD, (b) CAD and the Medial Axis Cut Section, (c) Inner Hybrid Blocking –
Courtesy of [Ali et al]
The simulation is carried out at M∞ = 0.85 and CL = 0.5 with Re = 5 × 106 based on the reference chord
length Cref = 7.00532 m. Table 3.1 describes the free-stream flow conditions. A coarse mesh of
approximately 4 million cells is used. The first grid node from the wall is located at y+ ≈ 1. The Spalart
Allmaras (SA) turbulence model is
used for this simulation. The flow
angle for this mesh to gain CL = 0.5 is
α = 2.36 deg.
[Link] Jet-Wing-Flap
In this section, the 3D jet-wing-flap
case is presented. The geometry
comprises of co-axial nozzle, pylon
and a wing with a flap as shown in the
Figure 3.15 (a). This realistic aero-
engine geometry has been used for
detailed computational aero-
acoustics analysis,. The pylon adds
complexity to the otherwise
cylindrical nozzle topology along with
the wing and the flap. Hence, blocking
such a case demands significant user
insight. After wrapping the distance
field, the medial axis is approximated.
This is shown in the Figure 3.15 (b). Figure 3.16 Jet-Wing-Flap with Modified Inner Blocking (To
To simplify the blocking procedure, Accommodate Shear Layers) – Courtesy of [Ali et al]
small medial axis branches are
Wahls, et al., Summary of the Fourth AIAA CFD Drag Prediction Workshop (2010). AIAA Paper No. AIAA-2010.
52
removed for this case. This is followed by the inner blocking aided by the rules which is shown in the
Figure 3.15 (c). The far-field domain decomposition can be then be carried out at this stage.
However, one of the aims for the aero-acoustic jet simulations is to properly resolve the shear layers
in the far-field. This requires a good quality mesh aligned with the shear layer regions. The current
block topology as shown in the Figure 3.15 (c) is non-optimal for properly resolving the shear
layers produced by the bypass and the core flows. Hence a manual alteration of the blocking around
the pylon and the core flow exhaust is performed.
The modified inner block topology with the far-field decomposition are shown in the Figure 3.16.
A RANS simulation using the SST k − ω is carried out on the mesh generated by the hybrid blocking.
The first grid node from the wall is located at y+ ≈ 1. The two cases presented above show how the
hybrid blocking approach can be effectively used to decompose and mesh the complex geometries.
The medial axis based domain decompositions also provide meshes having better flow alignment
when compared to other partitioning methods e.g. Cartesian fitting and cross field based techniques.
Figure 3.17 Engine-Wing-Flap (Top) Schematics Showing Geometric Zones and Domains with Different
Block Topologies (Bottom) Cut Section at z = 0 Plane – Courtesy of [Ali et al]
53
Hence, this technique further enhances the scope and applicability of these MAT based blocking
methods. Also, the blocking templates could be generated using this approach which can speed up
the mesh generation process and aid an inexperienced CFD user.
[Link] Engine-Wing-Flap
In the last section, a coaxial nozzle with pylon and wing geometry was presented which makes the
rear or downstream part of the aero-engine. To carry out a more realistic simulation, the front engine
part containing the axisymmetric intake, hub and splitter geometry is added to this rear part using
the overset mesh at the interface. This procedure avoids re-blocking the domains to have a cell to cell
match between the two zones. Also, a smeared fan geometry is used where the fan is modeled using
the BFM (see the schematic in Figure 3.17 (Top)). The other downstream components are
imprinted and treated again with the BFM but with localized sources. These internal geometry
components include the downstream vanes, gearbox shaft, and the engine supporting A-frames. Thus
using a hierarchical geometry handling approach, a complex domain can be readily meshed and
analyzed for in a design optimization cycle. A cut section of the mesh at z=0 plane is shown in the
Figure 3.17 (Bottom). The total mesh size is 50 million. The internal geometry in the front part is
modeled using a body force model which has been extended to include the local blockage and wakes
modeling. This is done by adding local enhanced source terms to generate wake zones, which is
similar to adding the source terms in the IBM for simulating geometry or boundary on a non-
conformal Cartesian mesh.
Complex Variables
Complex variables techniques have the advantage that the transformation used are analytic as
opposed to those methods that are entirely numerical. Unfortunately, complex variable method are
restricted to two dimension. For this reason, the technique has limited applicability and will not be
covered here. For details readers should refer to Churchill50, Moretti, and Davis.
N
ξ M
η
r( , ) n r(ξ n , η) ψ m r( , m )
n 1 I m 1 J
Eq. 3.6
N M
ξ η
n 1 m 1
n ψ m r(ξ n , ηm )
I J
Where now the "blending" functions, φn and ψm, are any functions which satisfy the cardinality
conditions:
ξ η
n L δ nL n, L 1,2,..., N and ψ m L δ mL m, L 1,2,...., M
I J
Eq. 3.7
ξ − Xi
Exp [(Bi−1 ) −1
Xi − Xi−1 ]
r(ξ) = Yi + [Yi − Yi−1 ] for Xi−1 ≤ ξ ≤ Xi
Exp (Bi−1 ) − 1
The exponential function, while reasonable, is not the best choice when the variation in grid spacing
is large. The truncation error associated with the metric coefficients is proportional to the rate of
change of grid spacing. A large variation in grid spacing, such as the one resulting from exponential
function, would increase the truncation error, hence, attributing to the solution inaccuracies. A
suggested alternative to exponential function has been the usage of hyperbolic sine function given as
51 Joe
F. Thompson, Z. U. A. Warsi, C. Wayne Mastin, “Numerical Grid Generation -Foundations and Applications”,
North Holland, 1985.
56
ξ − Xi
sinh [(Bi−1 )
Xi − Xi−1 ]
r(ξ) = Yi + [Yi − Yi−1 ] for Xi−1 ≤ ξ ≤ Xi
sinh (Bi−1 )
(B ) ξ − Xi
tanh [ i−1 ( − 1)]
2 Xi − Xi−1
r(ξ) = Yi + [Yi − Yi−1 ] for Xi−1 ≤ ξ ≤ Xi
Bi−1
tanh [ ]
2
w here 0 ≤ X𝑖 , Y𝑖 ≤ 1 , 0 ≤ ξ , r(ξ) ≤ 1 , i =2, , , , m
Eq. 3.10
The hyperbolic tangent, as revealed in Figure 3.21, gives more uniform distribution on the inside
as well as on the outside of the boundary layer to capture the non-viscous effects of the solution. Such
overall improvement, makes the hyperbolic tangent a prime candidate for grid point
distribution in viscous flow analysis, as publicized in Figure 3.22 for a generic wing-fuselage. A
numerical approximation can be used to compute the grid-point distribution on a boundary curve.
This approach is widely used for complex configurations and care must be taken to insure
monotonicity of the distribution. For example, the natural cubic spline is C2 continuous and offers
great flexibility in grid spacing control. However, some oscillations can be inadvertently introduced
into the control function. The problem can be avoided by using a smoothing cubic spline technique
and specifying the amount of smoothing as well as control points. Another choice would be the usage
of a lower order polynomial such as Monotonic Rational Quadratic Spline (MRQS) which is always
monotonic and smooth. Other advantage of MRQS over cubic spline is that it is an explicit scheme and
57
η−α
β + 1 1−α
(2α + β) [ ] + 2α − β
β−1
y= η−α where 1< β <∞ and 0 ≤ α ≤1
β+1 1−α
(2α + 1) {1 + [ ] }
β−1
Eq. 3.11
Where η is the non-dimensional grid point distribution in the computational plane which varies
between zero and 1, β is the clustering function, more clustering is achieved by letting βto approach
1 and α is a non-dimensional quantity that indicates which grid location the clustering should be
attracted to, e.g. a value of 0.5 ensures clustering is uniformly done at both ends. Figure 3.24 (a)
shows the PADRAM mesh topology for a single OGV mesh. Note that the upstream and downstream
H-mesh can also be rotated to align the mesh with the blade inlet and exit metal angles. Tip Gaps Tip
clearance is often required for shroud less rotor blades such as fans, compressors and some turbines
as well as hub clearance for cantilevered stator blades. Tip leakage flows are often poorly resolved.
If the number of points in the tip clearance is too low, then the complex physical phenomena that
occur there cannot be accurately modelled. It has been found that the flow solution can be sensitive
how the gap is modelled and in some solvers the geometry is changed to alleviate the problem, e.g.
sheared H-meshes often use the so called “pinched” tip gap. However, PADRAM models the gap in a
consistent way that meshes the blade geometry. Once the O-grid is generated with the outer domain
of the blade, the grid corresponding to the solid part of the domain is constructed using the same
boundary node distribution. It is important to keep the mesh spacing in the inner and outer part of
the wall as close as possible to each other. Figure 3.24 (b) shows a typical tip gap mesh for a
52Peter Eiseman and Robert E. Smith, “Applications of Algebraic Grid Generation”, April 1990.
53Shahrokh Shahpar and Leigh Lapworth, “PADRAM: Parametric Design And Rapid Meshing System For
Turbomachinery Optimization”, Proceedings of ASME Turbo Expo 2003, USA.
58
compressor rotor generated in PADRAM (the tip gap has been increased to 5% span for
demonstration). PADRAM can construct a viscous mesh for the complete bypass assembly consisting
of 52 different staggered and three types over and under cambered OGVS, pylon, RDF and a splitter
in a matter of minutes. The details of the mesh near the OGV, Pylon, RDF and the splitter are shown
in Figure 3.23. For complete details, please see the work by [ Shahpar and Lapworth]54.
Figure 3.23 Detail of the Splitter C-Mesh, Hub Mesh and the Engine-Core Exit Mesh - Courtesy of
[Shahpar and Lapworth]
54Shahrokh Shahpar and Leigh Lapworth, “PADRAM: Parametric Design And Rapid Meshing System For
Turbomachinery Optimization”, Proceedings of ASME Turbo Expo 2003, USA.
59
PDE Smoother
Like algebraic methods, differential equation methods are also used to generate grids. Grid
construction can be done using all three classes of partial differential equations. The generation of
field values of a function from boundary values can be done in various ways, e.g., by interpolation
between the boundaries, etc., as is discussed previously. The solution of such a boundary-value
problem, however, is a classic problem of partial differential equations, so that it is logical to take the
coordinates to be solutions of a system of partial differential equations. If the coordinate points
(and/or slopes) are specified on the entire closed boundary of the physical region, the equations must
be elliptic, while if the specification is on only a portion of the boundary the equations would be
parabolic or hyperbolic. This latter case would occur, for instance, when an inner boundary of a
physical region is specified, but a surrounding outer boundary is arbitrary. The present chapter,
however, treats the general case of a completely specified boundary, which requires an elliptic partial
differential system.
Where (ξ, η) are the coordinates in the computational domain. Control functions are computed using
the boundary point spacing, r, and then interpolated to the inner points55. The forcing terms (P, Q)
are computed as:
r 2 r r 2 r
ξ ξ 2 η η2
P 2
, Q 2 Eq. 3.13
r r
ξ η
Once P and Q are obtained at each boundary the values for the inner points are obtained using a linear
interpolating along lines of constant ξ and η:
P , (1 η) P1 ηP2 0 ξ 1
Q , (1 ξ) Q1 ξQ 2
Eq. 3.14
0 η 1
Grid control of orthogonality at boundaries is introduced adding a second term in P and Q as:
55Thomas P., and Middlecoff J., ”Direct control of the Grid Point Distribution in Meshes Generated by Elliptic
Equations”, AIAA Journal Vol. 18, No. 6., 1980.
60
r 2 r r 2 r r 2 r r 2 r
ξ ξ 2 ξ η2 η η η ξ 2
2
P 2
λ 2
, Q 2
λ 2 Eq. 3.15
r r r r
ξ η η ξ
Where 0 < λ < 1 is a factor that relaxes the orthogonality at the boundaries. It has been observed that
the range λ∈ [0.4-0.7] produces optimal results for our configurations. The elliptic PDEs are solved
using a multi-grid method and the
smoother is based on a point-wise
Newton solver. When the forcing terms
are used the convergence of the
algorithm deteriorates slightly56. An
important property in regard to
coordinate system generation is the
inherent smoothness that prevails in
the solutions of elliptic systems.
Furthermore, boundary slope
discontinuities are not propagated into
the field. Finally, the smoothing Figure 3.25 Typical Elliptic Grid for an Airfoil with
tendencies of elliptic operators, and the Orthogonality Enforced on the Boundary
extremum principles, allow grids to be
generated for any configurations without overlap of grid lines (see Figure 3.25). There are thus a
number of advantages to using a system of elliptic partial differential equations as a means of
coordinate system generation. A disadvantage, of course, is that a system of partial differential
equations must be solved to generate the coordinate system.
56 Sorenson R. L. and Steger J. L. Numerical Generation of Two dimensional Grids by the Use of Poisson Equations
with Grid Control, in Numerical Grid Generation Techniques, R. E Smith, ed.. NASA CP 2166, NASA Langley
Research Center, Hampton, VA, USA, 1980.
57 Chaitanya Varier 2017.
58 M. Farrashkhalvat and J.P. Miles, “Basic Structured Grid Generation”, An imprint of Elsevier Science Linacre
House, Jordan Hill, Oxford OX2 8DP, 200 Wheeler Rd, Burlington MA 01803, First published 2003.
61
(a) Before
(b) After
[Link].4 Extension to 3D
If we wished to extend the elliptic solver to 3D, we would need to develop equations for transitioning
from a curvilinear coordinate system (ξ, η, ς) to a 3D Cartesian coordinate system (x, y, z). Using the
same elliptic model as before, we get the 3D version of the Winslow equations where each of the
metric tensor coefficients is determined by taking the cofactors of the contravariant tensor matrix.
The contravariant tensor matrix is used to obtain the coefficients for the Winslow equations, which
are the inverse of the Laplace equations as stated before. In general, if we wish to extend our elliptic
mesh solver to n dimensions, then we will have n sets of equations each with n!/(2(n - 2)! + n terms.
This renders the problem gradually more and more difficult to solve for higher dimensions with the
existing elliptic scheme, implying that a different type of PDE might be needed in these cases. Another
complication that arises in higher dimensions is adjusting grid lines to enforce orthogonality. Using
the aforementioned algorithm for adjusting grid lines to achieve either complete or partial
orthogonality on the boundary, we would need to iteratively solve three sets of two linear equations
for each node in the mesh, as well as solve three trigonometric equations per iteration to compute
the tangents. An excellent short web-cast from Pointwise© (right click here) is available regarding
their development in structured meshing for an axial rotor blade.
Orthogonality Metrics
Standard deviation of angles
Mean angle
Maximum deviation from 90 degrees
Percentage of angles within x degrees from 90 degrees (x can be set as a constant in
the code)
coordinates, Numerical Grid Generation Techniques". NASA conference publication 2166: 463–478.
63
x ξ y η x η yξ I Eq. 3.16
dξ 0 ξ x dx ξ y dy Eq.
3.17
For ξ and η surfaces to be perpendicular Figure 3.27 Euler Solution on a HSCT Wing-Fuselage
the equation becomes:
x ξ y η yξ y η 0 Eq. 3.18
The problem associated with such system of equations is the specification of I. Poor selection of I
may lead to shock and discontinuous propagation of this information throughout the mesh. While
mesh being orthogonal is generated very rapidly which comes out as an advantage with this method.
Figure 3.27 displays a C-O type hyperbolic grid around an HSCT wing-fuselage configuration, with
pressure contours mapped using an Euler solution and M∞ = 2.4.
Variational Method
These methods have evolved from elliptic grid generation. To solve an elliptic PDE is often equivalent
to minimizing a functional. Variational methods has been used for improving quality of a given grid63.
In the vibrational methods, a grid functional is defined. Grid functional is an algebraic expression of
the position vectors of the internal nodes of a mesh. Optimization of the grid functional may result in
a grid with desired properties such as orthogonal grid lines, equal cell areas, linear or parallelogram
63 J.F. Thompson, B.K. Soni and N.P. Weatherill. Handbook of Grid Generation. CRC Press, 1998.
64
cells and untangled mesh. There are many algebraic functional for grid generation and optimization.
For example, algebraic grid generation methods such as Transfinite Interpolations though, one of
simplest method of grid generation, but can produce folded grids for curved domains as seen in the
Figure 3.28. One other disadvantage of algebraic grid generation is that boundary discontinuity can
prorogate inside the domain. As indicated in Figure 3.28, Winslow functional smooth the grid, and
removes the folded grid lines. There are far too many algebraic functional for grid generation
optimization as reader should check with64.
Figure 3.28 Folded Grid by Transfinite Interpolation - Smooth Grid by Winslow Functional
64 Sanjay Kumar Khattri, “Grid Generation and Adaptation by Functional”, Department of Mathematics,
University of Bergen, Norway.
65 Michael Turner, “High-Order Mesh Generation For CFD Solvers”, Imperial College London, Faculty of
Engineering Department of Aeronautics, A thesis submitted for the Degree of Doctor of Philosophy, 2017.
65
minimization of an energy functional, which takes as its arguments the mesh displacement and its
derivatives. However, the use of this approach in high-order mesh generation has remained mostly
unnoted, asides from brief remarks.
A means of distributing points over the field in an orderly fashion, so that neighbors may be
easily identified and data can be stored and handled efficiently.
A means of communication between points so that a smooth distribution is maintained as
points shift their position.
A means of representing continuous functions by discrete values on a collection of points with
sufficient accuracy, and a means for evaluation of the error in this representation.
A means for communicating the need for a redistribution of points in the light of the error
evaluation, and a means of controlling this redistribution.
Several considerations are involved here, some of which are conflicting. The points must concentrate,
and yet no region can be allowed to become devoid of points. The distribution also must retain a
sufficient degree of smoothness, and the grid must not become too skewed, else the truncation error
will be increased as noted. This means that points must not move independently, but rather each
point must somehow be coupled at least to its neighbors. Also, the grid points must not move too far
or too fast, else oscillations may occur. Finally the solution error, or other driving measure, must be
sensed, and there must be a mechanism for translating this into motion of the grid. The need for a
mutual influence among the points calls to mind either some elliptic system, thinking continuously,
of some sort of attraction (repulsion) between points, thinking discretely. Both approaches have been
taken with some success, and both are discussed below. It should be noted that the use of an
adaptive grid may not necessarily increase the computer time, even though more computations
are necessary, since convergence properties of the solution may be improved, and certainly
fewer points will be required. With the time derivatives at fixed values of the physical coordinates
transformed to time derivatives taken at fixed values of the curvilinear coordinates, no interpolation
is required when the adaptive grid moves. Thus the first derivative transformation given the chain
rule is given by
∂A ∂A ∂x
( ) =( ) + ∇A. ( ) or
∂t ξ,η,ζ ∂t x,y,z ∂t ξ,η,ζ
3
∂A ∂A ∂A ∂xi
( ) =( ) +∑ ( )
∂t ξ,η,ζ ∂t x,y,z ∂xi ⏟∂t
i=1
mesh movement
Eq. 3.19
66 Joe F. Thompson,
J., F., Warsi, Z., U., A., Mastin, .W. “Numerical Grid Generation; Foundations and Applications”,
North-Holland Book, 1995.
66
The computation thus can be done on a fixed grid in the transformed space, without need of
interpolation, even though the grid points are in motion in physical space. The influence of the motion
of the grid points registered through the grid speeds, (xi)t, appearing in the transformed time
derivative. This is the appropriate approach when the grid evolves with the solution at each Time
step. Some methods, however, change the grid only at selected time steps, and here interpolation
must be used to transfer the values from the old grid to the new since the grid movement is not
continuous. A combination of the weight functions given by Eq. 3.19 provides the desired tendency
toward concentration both in regions of high gradient and near extrema. The effect of the inclusion
of the curvature illustrated below:
1/2 2A
A
2
x 2
w (1 β 2 K )1 α 2 where K
x A 2
3/2
1
x
Eq. 3.20
Where α and β are parameters to be specified. Clearly, concentration near high gradients is
emphasized by large values of α , while concentration near extrema (or other regions of large
curvature) is emphasized by large β. (see Figure 3.29).
67Feng Liu, Shanhong Ji, and Guojun Liao,” An Adaptive Grid Method and Its Application to Steady Euler Flow
Calculations”, Siam J. Sci. Comput. C° 1998 Society For Industrial And Applied Mathematics Vol. 20, No. 3.
67
applied to computing the flow field over an airfoil. Figure 3.30 shows the initial C-mesh of an NACA
0012 airfoil and the adaptive one on the right, with their respective Mach contours. Two flow cases
were calculated over the initial grid. The first is a transonic case with free stream Mach number, M1
= 0.85 and an angle of attack, α = 1 where Left is without mesh adaption and Right is with. There is
one strong shock wave on the upper side of the airfoil and a weaker one on the lower side. It can be
seen from Figure 3.30 that the computed shock waves are rather thick. Shock waves zero thickness
in the inviscid limit. To get better computational results, particularly to capture the shock waves
more accurately, one would like to concentrate grid points around the shock waves. The deformation
method is applied to get a new grid with prescribed distribution of cell sizes based on gradients of
the flow field. The adaptive criterion here is to detect the shock waves. This suggests choosing the
monitor function f of the form:
1
C1 (1 C2P) Eq. 3.21
f
Where P is the pressure and C1and C2 are constants. It can be seen that grid points are clustered
closely in the areas where the two shock waves occur, although grid lines are somewhat skewed in
the clustered regions because the deformation method does not guarantee orthogonality. However,
since our flow solver is based on a finite volume scheme which does not require the use of an
orthogonal grid, we are content with the locally reduced cell sizes.
Another test case is the supersonic flow over the same airfoil with a free stream Mach number M ∞ =
1.5, and α= 0. As can be seen, a strong bow shock wave appears in front of the airfoil leading edge. In
addition, there are two weak shocks emanating from the trailing edge of the airfoil the Mach number
distribution computed on the adapted grid. It can be seen that a sharper front of the bow shock is
captured compared with that on the initial un-adapted grid. The resolution of the two trailing edge
shocks is also slightly increased. The computational time needed for the grid adaptation and the flow
solver for the supersonic case is the same as that for the transonic case. (See Figure 3.31).
Figure 3.31 Grid Adaption and Mack Contours for Supersonic Airfoil
69
The 1980s was witnessed the rapid development of alternative meshing techniques. The most
prominent of these are the unstructured methods based on triangles in 2D and tetrahedral in 3D.
Some of the earliest ideas for generating triangular meshes over planar regions can be found in a
review by Thacker68. It is interesting to note that until the mid-1980s little effort had been applied
to the problem of computing aerodynamic flow fields on meshes of triangles or tetrahedral. The first
attempts to solve the flow around a complete aircraft by means of a finite element solution on a
tetrahedral mesh are described in the papers of [Bristeau et al.] and [ Jameson et al.]. There are three
essentially different approaches to generating triangular or tetrahedral meshes, the Moving
(Advancing) front technique69, Delaunay base methods70,71,72 and the Octree approach73. Moving
front and Delaunay based methods create a triangulation that matches a prescribed boundary (a
specified set of points and edges in 2D, a specified set of points and triangular faces in 3D). The Octree
method, however, determines the boundary discretization as part of the domain meshing procedure
and is thus closely related to the Cartesian approach. Each method is discussed below.
68 Thacker WC. A brief review of techniques for generating irregular computational grids. Intentional Journal
Numerical Meth Eng. 1980; 15:1335–41.
69 Lo SH. A new mesh generation scheme for arbitrary planar domains. Int J Numer Meth Eng 1985;21:1403–2
70 Baker TJ. Three dimensional mesh generation by triangulation of arbitrary point sets, AIAA 8th CFD conference.
second international conference on num grid gen comp fluid dyn, Miami, FL, 1988. p. 589–97.
73 YerryMA, Shephard MS., “Automatic three-dimensional mesh generation by the modified Octree technique”,
practice, there is rarely any difficulty in completing the process for a planar triangulation. In three
dimensions, however, the remaining region of space can have an extremely complicated shape which
may not yield to an acceptable covering by tetrahedral elements, thus preventing the volume
triangulation from filling the entire region to be meshed.
The basic methodology is based on action performed for a certain boundary image as described by
geometric rules or tests. These rules (2D and 3D) are to optimize the shape of the new element in
the advancing front method. Each methodology depends on these rule, its complexity, and how they
been applied. Therefore, the algorithm has to check the rules stored in data structures. The code
complexity is independent of the number of rules. The algorithm is complicated, but well defined and
can be, at least theoretically, implemented failsafe. Especially in 3D, the choice of the concrete rules
is based on heuristics, which is put into an easily maintainable rule description data-base74.
The computational domain is modeled through the use of cubic splines which are defined by some
control points. Close to singularities extra care must be taken in the definition of these points in order
to avoid failure (Thompson et al., 1999). As
a “pre-processing” stage, before the mesh
generation begins, we must first build an
initial and very coarse triangular
background mesh that covers the whole
domain. This coarser mesh is used only to
provide a piecewise linear spatial
distribution of the nodal parameters over
the mesh to be constructed. Typically,
elements of the generated mesh will have
a projected length of δ2 in the direction
parallel to α2 a and a projected length of St
δ2 in the direction normal to α2 a (see
Figure 4.2), with St being the stretching
factor. During the generation process, the
local values of these parameters will be
obtained by a linear interpolation over the
triangles of the background mesh. Figure 4.2 Mesh parameters
74 Joachim Sch¨ober, “NETGEN An advancing front 2D/3D-mesh generator based on abstract rules”, Computing
and Visualization in Science, 1:41–52 (1997).
75 Paulo Roberto M. Lyra, Darlan Karlo E. de Carvalho, “A Computational Methodology for Automatic Two-
Dimensional Anisotropic Mesh Generation and Adaptation”, Methodology for Automatic Two-Dimensional
Anisotropic Mesh Generation and Adaptation.
71
The boundary of the domain is represented by the union of boundary segments forming closed loops.
External boundaries are defined in an anti-clockwise fashion while inner boundaries are set in a
clockwise manner. As described previously, the generation of a triangular mesh by the advancing
front technique begins by the discretization of the boundary of the domain. New points are created
according to the mesh parameters which are interpolated from those of the background mesh. At the
beginning of the process, the generation front is made by a set of linear segments connecting the
boundary nodes. With the initial front defined, one segment is chosen and, in general, a triangle is
created through the insertion of an internal node or by simply connecting existing nodes. New
triangles are built following the same procedure. During the process any segment available to build
a new triangle is set as “active” and the others which are set as “non-active” are removed from the
generation front. Therefore the boundary segments are not modified during the mesh generation.
The procedure continues until the whole domain is discretized. When solving problems which
develop some essentially one dimensional features at certain regions (e.g. boundary layer, shocks,
etc.) it is not very efficient to use uniform isotropic meshes. In these cases, it is important to have the
possibility to define a direction and a stretching factor for the elements close to such regions. At least
for linear triangular elements, the use of anisotropic meshes can be extremely important in terms of
computational effort and accuracy. To generate an anisotropic triangulation of the desired domain,
it is used a transformation T which is a function of the mesh parameters, i.e. αi , i = 1, 2. This
transformation76, is given by,
N
1
T(α i , δi ) (α i α i ) Eq. 4.1
i 1 δ i
where X denotes the tensor product of two vectors and N is the number of dimensions, here, N = 2.
The effect of this transformation is to map the physical domain into a normalized domain, where a
mesh is generated in which the elements are approximately equilateral with unit average size.
Applying the inverse of this transformation T-1,
we end up with a directional stretched mesh
dictated by the mesh parameters, which are
defined either by the analyst or by the mesh
adaptive procedure. This mesh generator
provides an accurate geometric modeling and
high quality meshes, where the high level of
control of the distribution of local mesh
parameters eases the incorporation of mesh
adaptation strategies. The quality of the meshes is
strongly influenced by the mesh optimization
stage. A specific mesh improvement strategy for
highly anisotropic meshes and the definition of an
adequate sequence of mesh enhancement
procedures are incorporated into the code.
Several other modifications have been introduced
in the original code in order to incorporate the
flexibility to deal with predefined multi-domains
and automatically defined sub-regions, to build Figure 4.3 Surface Mesh of SGI Logo
boundary layer meshes, to make possible
76Peiró, J., Peraire, J. and Morgan, K., 1994, “{FELISA SYSTEM}: Reference Manual Part1 - Basic Theory”,
University of Wales Swansea Report CR/821/94.
72
generating quadrilateral and mixed meshes and the automatic definition of which domains or sub-
regions should be filled up by triangular or by quadrilateral elements. These features will be fully
described in the correspondent sections. Figure 4.3 shows an triangulation of SGI logo by [Rypl and
Bittnar].
77Steven J. Owen, Matthew. Staten, Scott A. Canann and Sunil Saigal, “Advancing Front Quadrilateral Meshing
Using Triangle Transformations”, Conference Paper · January 1998.
73
interface between quadrilateral elements in the final mesh and triangle elements in the initial
triangle mesh. This process can be further subdivided into the following sub-steps:
Check for Special Cases. Before proceeding to construct a quadrilateral from the current
front, several special case scenarios are checked. These include situations where large
transitions or small angles exist local to the front. In these cases a seam, or transition seam
operation is performed.
Side Edge Definition. Using the front edge as the initial base edge of the quadrilateral, side
edges are defined. Side edges may be defined by using an existing edge in the initial triangle
mesh, by swapping the diagonal of adjacent triangles, or by splitting triangles to create a new
edge. In Figure 4.5 (b), side edge NB-NC shows the use of an existing edge, while the side
edge NA-ND was formed from a local swap operation.
Top Edge Recovery. The final edge on the quadrilateral is created by an edge recovery
process. During this process, the local triangulation is modified by using local edge swaps to
enforce an edge between the two nodes at the ends of the two side edges. Edge NC-ND in
Figure 4.5 (c) was formed from a single swap operation. Any number of swaps may be
required to form the top edge.
Quadrilateral Formation. Merging any triangles bounded by the front edge and the newly
created side edges and top edge as shown in Figure 4.5 (d) forms the final quadrilateral.
Local Smoothing. The mesh is smoothed locally to improve both quadrilateral and triangle
element quality as shown in Figure 4.5 (e).
Local Front Reclassification. The front is advanced by removing edges from the front that
have two quadrilateral adjacencies and adding edges to the front that have one triangle and
one quadrilateral adjacency. New front edges are classified by state. Existing fronts that may
have been adjusted in the smoothing process are reclassified.
Figure 4.5 Steps demonstrating process of generating a quadrilateral from Front NA-NB - (Courtesy of
Owen et al.)
74
Front edge processing continues until all edges on the front have been depleted, in which case an all
quadrilateral mesh will remain, assuming an even number of initial front edges. When an odd number
of boundary intervals is provided, a single triangle must be generated, usually towards the interior
of the mesh.
Figure 4.8 Results of Q-Morph Compared with Lee’s (1994) Advancing Front Indirect
Method on Toroidal Surface- (Courtesy of Owen et al.)
Figure 4.7 Comparison of Q-Morph with Lee’s Algorithm Illustrating Element Boundary
Alignment - (Courtesy of Owen et al.)
transitions, provision is made in Q-Morph to mesh loops with smaller elements before those with
76
larger elements. The mesh is completed in Figure 4.6 (h) after a final pass of cleanup and smoothing.
Figure 4.8 and compares Q-Morph against Lee’s (1994) quad meshing algorithm, which uses an
indirect method, coupled with an advancing front scheme to combine triangles into quadrilaterals.
The toroidal surface of Figure 4.8 is composed of four surface patches represented as rational B-
Splines. Q Morph utilizes projection and geometric evaluation routines as part of the local and final
smoothing procedures to maintain nodal locations on the three-dimensional surface. Both Figure
4.8 (a) and (b) were generated using the same initial triangle mesh as well as the same cleanup and
smoothing procedures. Despite using an advancing front scheme, Lee’s algorithm shown in Figure
4.8 (b), has difficulty maintaining well-aligned rows of elements introducing many irregular internal
nodes.
Figure 4.9 Large Transition Mesh for CFD Application - (Courtesy of Owen et al.)
Figure 4.7 further illustrates the ability of the Q-Morph algorithm to generate well-aligned rows of
elements parallel to a complex domain boundary, while still maintaining the required element size
transitions. Figure 4.9 demonstrates the use of Q-Morph with a planar surface requiring a high
degree of transition. Figure 4.9 (a) shows the partially completed quad mesh with two layers of
quads placed. Figure 4.9 (b) shows the same area after final cleanup and smoothing. In order to
maintain a specified nodal density near the top of the area, a sizing function (Owen,1997) was used
during the triangle meshing process. The algorithm’s ability to maintain the desired mesh density
while still enforcing well-aligned rows of elements transitioning quickly to larger size elements is
demonstrated in this example. For further and complete analysis, please consult the work by [Owen
77
et al.]78.
[Link] Conclusion
The Q-Morph algorithm is an indirect quadrilateral meshing algorithm that utilizes an advancing
front approach to transform triangles into quadrilaterals. It generates an all-quadrilateral mesh,
provided the number of intervals on the boundary is even. The resulting mesh has few irregular
internal nodes and produces elements whose contours, in general, follow the boundary of the
domain. Overall element quality is excellent. The Q-Morph algorithm borrows many of its techniques
from the paving method (Blacker,1991; Cass,1996) but adapts them for use as an indirect method,
operating on an existing set of triangles. In so doing, it is able to improve upon the paving technique
by resolving some of its inherent difficulties. The intersection problem, common to most direct
methods of advancing front meshing, is eliminated by relying on the topology of the initial triangle
mesh to close opposing fronts. Improvements also include facility for handling individual element
placement through the use of states for classifying front edges. Facility for handling transition in
element sizes has also been addressed through the use of sizing information provided by the initial
triangle mesh and the definition of specific transformations that enable improved mesh transitions.
Additionally, the initial triangle mesh provides information that reduces the cost of direct evaluations
on three dimensional surface geometry.
78 Steven J. Owen, Matthew. Staten, Scott A. Canann and Sunil Saigal, “Advancing Front Quadrilateral Meshing
Using Triangle Transformations”, Conference Paper · January 1998.
79 Delaunay, Boris (1934). "Sur la sphère vide". Bulletin de l'Académie des Sciences de l'URSS, Classe des sciences
From the definition of circumsphere of a triangulation, it follows that every k-simplex of D(S) has an
empty circumsphere. If k = d, then the circumsphere of s is unique, else s has infinitely many
circumspheres.
It belongs to only one tetrahedron and therefore belongs to the boundary of the convex hull
It belongs to two tetrahedral abcd and abce, and e lies on the exterior of the circumsphere of
abcd.
[Link] Compactness
In R2, the Delaunay triangulation maximizes the minimum angle in the triangulation and minimizes
the largest circumcircle. This max-min angle optimality was discovered by Lawson. These properties
of the Delaunay triangulation in R2 do not generalize to three and higher dimensions. A useful
property of the Delaunay triangulation that holds in all dimensions, including three, is the
containment radius. In R3, the containment radius is defined as the radius of the smallest sphere
containing the tetrahedron. This is called the min-containment sphere and note that this need not
necessarily be the circumsphere of the tetrahedron. [Rajan] showed that the Delaunay triangulation
in R3 minimizes the containment radius of its tetrahedral. This makes it the most compact
triangulation in R3.
Algorithms
Many algorithms for computing Delaunay triangulations rely on fast operations for detecting when a
point is within a triangle's circumcircle and an efficient data structure for storing triangles and edges.
In two dimensions, one way to detect if point D lies in the circumcircle of A, B, C is to evaluate the
determinant:
79
Ax Ay A 2x A 2y 1
Bx By B2x B2y 1
0 Eq. 4.2
Cx Cy C 2x C 2y 1
Dx Dy D 2x D 2y 1
Figure 4.11 Relationship Between Delaunay Triangles and the Voronoi Diagram
As shown in Figure 4.13 when A, B and C are sorted in a counterclockwise order, this determinant
is positive if and only if D lies inside the circumcircle. The majority of Delaunay based methods exploit
an incremental algorithm that starts with an initial triangulation of just a few points. The complete
triangulation is generated by introducing points and locally reconstructing the triangulation after
each point insertion. A particularly attractive feature of this approach is the opportunity to place new
points at specified locations with the aim of
retaining, or possibly improving, the quality
of the mesh82. The main difficulty is the
need to ensure surface integrity. Most
methods allow the boundary points to be
inserted into the volume triangulation
unchecked, reestablishing the surface
edges and faces by a series of edge/face
swaps and the occasional introduction of an
extra point. The left hand side of Figure
Figure 4.12 Two-Three Tetrahedral swap
4.12 illustrates a simplified complex
formed by two tetrahedral which share a
common face. If this face is removed and an edge is inserted connecting the vertices A and B one
obtains three tetrahedral (shown on the right hand side of Figure 4.12 which occupy the same
Advantages
Figure 4.13 Robust and Fast way to
The important advantage of triangulation techniques is the Detect if point D lies in the
higher degree of automation that is achieved in the meshing Circumcircle of A, B, C
process. It can be shown, for example, that a Delaunay mesh
can be generated to conform to any prescribed boundary in 2D84. The situation in 3D is much more
complicated and no similar mathematical guarantee exists. The method has, nevertheless, been
brought to a high level of automation and current tetrahedral mesh generators will reliably create
good quality isotropic meshes if they are provided with a good quality surface triangulation85-86.
Delaunay triangulation is a concept that extends back well before the emergence of mesh
generation87. Together with its geometric dual, the Voronoı diagram, it has proved to be a fertile
Figure 4.14 Delaunay Triangulation (white) and Voronoi Diagram (blue) – Courtesy of [Labbe])
83 Baker T.J., “Triangulations, mesh generation and point placement strategies”, Caughey DA, Hafez MM, editors.
“Frontiers of computational fluid dynamics”, New York: Wiley, 1994, pp. 101–15.
84 Lee DT, Lin AK. Generalized Delaunay triangulation for planar graphs. Discrete Comput Geom 1986;1: 201–
85 George PL, Borouchaki H. Delaunay triangulation and meshing. Hermes; 1998.
86 Baker TJ, Vassberg JC. Tetrahedral mesh generation and optimization. 6th Iinternational conference on
specifications. part I algorithms. Finite Elem. Anal. Des. 25, 1-2 (1997), 61–83.
82
proposed by [Boissonnat et al.]96, who introduced the framework of locally uniform anisotropic
meshes. In their algorithm, the star of each vertex v is composed of simplices that are Delaunay for
the metric at v. Each star is built independently and the stars are stitched together in the hope of
creating an anisotropic mesh. The star structure was first introduced by [Shewchuk]97 to handle
moving vertices in finite element meshes and considering stretched stars was first proposed by
[Schoen]. Two stretched stars may be combinatorically incompatible, a configuration called an
inconsistency. [Boissonnat et al.] proved that inconsistencies can be resolved by inserting Steiner
points, yielding an anisotropic triangulation. The algorithm works in any dimension, can handle
complex geometries and provides guarantees on the quality of the simplices of the triangulation.
Voronoi Diagrams
The well-known duality between the Euclidean Voronoi diagram and its associated Delaunay
triangulation has inspired authors to compute anisotropic Voronoi diagrams, with the hope of
obtaining a dual anisotropic triangulation. The approaches of[ Labelle and Shewchuk]98 and [Du and
Wang]99 aim at approximating the geodesic distance between a seed and a point of the domain by
considering that the metric is constant and equal to the metric at the seed (in the case of [Labelle and
Shewchuk]100) or at the point (in the case of [Du and Wang ]). Contrary to the isotropic setting, the
dual of an anisotropic Voronoi diagram is not necessarily a triangulation and inverted elements can
be present in the dual triangulation. The algorithms were initially introduced for two-dimensional
(Labelle and Shewchuk) and surface (Du and Wang) domains and have since then been studied and
extended by various authors. The approach of Labelle and Shewchuk was shown to be theoretically
sound in 2D, but the approach of the proof does not extend to higher dimensions. This result was
extended to surfaces by [Cheng et al.]101 by locally approximating the surface with a plane and then
using a density argument similar to the proof of [Canas and Gortler]. Centroid Voronoi tessellations,
which are Voronoi diagrams for which the seeds are the centers of mass of their associated Voronoi
cell, are known to create elements of good quality. The famous Lloyd algorithm iteratively moves the
seeds to the center of mass of their respective cell and recomputed the Voronoi diagram of this new
seed set. This algorithm was modified to be used in the anisotropic Voronoi diagram of Du and Wang,
but the process is computationally expensive.
96 Boissonnat, J.-D., Wormser,C., and Yvinec, M. Locally uniform anisotropic meshing. Proceedings of the twenty-
fourth annual symposium on Computational geometry (2008), ACM, pp. 270–277.
97 Shewchuk, R. Star splaying: an algorithm for repairing Delaunay triangulations and convex hulls. Proceedings
of the 21st annual symposium on Computational geometry (New York, NY, USA, 2005.
98 Labelle, F., and Shewchuk, J. R. Anisotropic Voronoi diagrams and guaranteed-quality anisotropic mesh
generation. Proceedings of the 19th annual symposium on Computational geometry (New York, NY, USA, 2003,
99 Du, Q., and Wang, D. Anisotropic centroidal Voronoi tessellations and their applications. SIAM Journal on
generation. Proceedings of the 19th annual symposium on Computational geometry (New York, NY, USA, 2003).
101 Cheng, S.-W., Dey, T. K., Ramos, E. A., and Wenger, R. Anisotropic surface meshing. Proceedings of the
restricted Delaunay triangulations have often been used to create provably correct refinement
algorithms in the case of surfaces. It was however proven by [Boissonnat, Guibas and Oudot]102 that
this does not extended to higher-dimensional settings. Nevertheless, restricted Delaunay
triangulations will be consistently used in the refinement algorithms considered. Figure 4.15
represents 2D Delaunay triangulation of a set of vertices (black) restricted to a curve (blue). Voronoi
edges are represented in teal, and in pink if they intersect the curve. The Voronoi vertices are marked
with orange circles. Restricted Delaunay edges are drawn in yellow, and restricted Delaunay triangles
are drawn in green.
Figure 4.15 2D Delaunay Triangulation of a Set of Vertices (Black) Restricted to a Curve (Blue)
Boissonnat, J.-D., Guibas, L. J., and Oudot, S. Y. Manifold reconstruction in arbitrary dimensions using witness
102
anisotropic mesh generation are heuristic. With this observation in mind, we seek to develop
methods that are both provable, robust, and practical [Labbe]103.
1 Algorithms based on the concepts of the Delaunay triangulation and the Voronoi
diagram,
2 Algorithms based on an embedding of the input domain to simplify the problem,
3 Algorithms based on the optimization of particles.
The different approaches that we consider here are all based upon extending the notions of Voronoi
diagrams and Delaunay triangulations to the anisotropic setting. We hope to benefit from the
known results and theoretical soundness of the isotropic Delaunay triangulation and Voronoi
diagram to generate anisotropic meshes with provable and practical meshing techniques. As all our
methods are based upon the same structures, we dedicate a chapter to introducing the notions that
will be used throughout this thesis. Our main chapters follow a logical progression, with each method
taking more metric information into account to determine the connectivity and placement of points
than the previous ones.
We begin with a thorough practical investigation of the framework of locally uniform anisotropic
meshes, a theoretically sound meshing technique proposed by [Boissonnat et al.]108 that is based on
the idea of constructing at each point a triangulation that is well adapted to the local metric. The
theoretical aspect of their approach has been extensively described, but its practicality is
comparatively lesser known. We detail our implementation, which is both more robust and faster
than the one previously presented in the short experiment investigation of the algorithm for surfaces,
investigate the role of the numerous parameters, and give some results. Limitations of the approach
are then exposed, along with our attempts to address those. In the Euclidean setting, the Delaunay
triangulation of a point set can be constructed by first generating the Voronoi diagram of the point
set and then computing the dual of this diagram. Anisotropic Voronoi diagrams have been considered
to build anisotropic triangulations, however the dual of an anisotropic Voronoi diagram is not
necessarily a valid triangulation and elements can be inverted. Different distances are possible to
create such anisotropic Voronoi diagrams.
103 Mael Rouxel-Labbe, “Anisotropic mesh generation”, Université Côte d’Azur, 2016.
104 Mael Rouxel-Labbe, “Anisotropic mesh generation”, Université Côte d’Azur, 2016.
105 Boissonnat, J.-D., Chazal, F., and Yvinec, M. Geometry and Topology Inference. in preparation.
106 Mael Rouxel-Labbe, “Anisotropic mesh generation”, Université Côte d’Azur, 2016.
107 M. Rouxel-Labbéa, M. Wintraeckenb, J.D. Boissonnatb, “Discretized Riemannian Delaunay triangulations”,
.(2014).
85
Along with the introduction of their anisotropic distance, [Labelle and Shewchuk]109 presented a
refinement algorithm that generates a point set for which their anisotropic Voronoi diagram has a
valid dual triangulation. However, their method is limited to the setting of planar domains. We give
requirements on point sets such that the dual of the anisotropic Voronoi diagram is a nice
triangulation and propose a refinement algorithm to generate such point set. Our proof links
anisotropic Voronoi diagrams built using the distance of [Labelle and Shewchuk]110 with the
framework of locally uniform anisotropic meshes, relating along the way the concepts of quasi-
cosphericity (used in locally uniform anisotropic meshes) and of protection of a point set. The second
part of this chapter introduces a refinement algorithm based on the combination of the alternative
point of view of the anisotropic Voronoi diagram as the restriction of a high-dimensional power
diagram to a fixed paraboloid manifold and the tangential Delaunay complex, a structure used in
manifold reconstruction that is well-adapted to the high-dimensional setting. We detail our
implementation, study its theoretical grounds and investigate the practicality of the algorithm.
Anisotropic Voronoi diagrams studied by previous authors compute and compare distances using a
fixed metric, justifying this approximation by invoking the computational and time complexity of
computing geodesics in a domain endowed with a metric field. To better facilitate, Table 4.1 is the
list of symbols used.
Ω Domain
P Point set
G Metric
F Square root of a metric
λi , vi Eigenvalues and eigenvectors of a metric
φ(G1,G2) Distortion between two metrics G1 and G2
g0 Uniform metric field
g Arbitrary metric field
dG Distance with respect to the metric G
‖.‖G Norm with respect to the metric G
dE Distance with respect to the Euclidean metric E
dg Geodesic distance with respect to the metric field g
Vord(P) Voronoi diagram of P using the distance d
Del(P) Abstract Delaunay complex of the point set P
DelG(P) Delaunay complex of the point set P with respect to G
Delg0(P) Delaunay complex of the point set P with respect to g0 (uniform metric field)
Sp Star of p
Svp Restricted volume star of p
Svp Restricted surface star of p
109 Labelle, F., and Shewchuk, J. R. Anisotropic Voronoi diagrams and guaranteed-quality anisotropic mesh
generation. Proceedings of the nineteenth annual symposium on Computational geometry (New York, NY, USA,
2003), ACM Press, pp. 191–200.
110 see Previous.
111 Preparata, F. P., and Shamos, M. Computational geometry: an introduction. Springer Science & Business 2012.
86
of Delaunay triangulation to the anisotropic setting either by adapting the famous Bowyer-Watson
algorithm [Mavriplis] , [Borouchaki], [Dobrzynski], [Alauzet] or as the dual of an anisotropic Voronoi
diagram (see Labelle and Shewchuk112, [Du and Wang]113. However, neither class of method offer in
all dimensions the theoretical guarantees nor the practical robustness that we are interested in. A
theoretically sound framework for Delaunay-based anisotropic meshes was introduced by
[Boissonnat et al.], called locally uniform anisotropic meshes. Locally uniform anisotropic meshes
are simplicial complexes in which the star of each vertex is Delaunay for the metric attached to the
vertex. The use of anisotropic stars, inspired by the works of [Shewchuk] and [Schoen], is combined
with the sliver removal techniques proposed by [Li and Teng ]. These techniques are adapted to the
anisotropic setting to construct a star-based refinement algorithm that cleverly selects refinement
points. The algorithm works in any dimension and offers guarantees on its termination and on the
quality (size and shape) of the final simplexes.
While the theoretical aspect of the approach has been thoroughly studied, its practicality is
comparatively not as well explored. This chapter intends to fill this gap and presents a
comprehensive empirical study of the algorithm. We first recall the required theoretical basis and
detail some minor changes brought to the theory after practical experimentation. We then dive in the
heuristic analysis of the behavior of the algorithm and its parameters and propose some
improvements. A strong focus is put on the phenomenon of inconsistencies, which turns out to be a
real issue of the algorithm. We introduce an implementation of the anisotropic Delaunay refinement
algorithm introduced by [Boissonnat et al.]. We specifically detail the technical issues, and their
solution, that arise when aiming for efficiency. This implementation of the star set is completely new
and results in significant improvements in terms of computational speed, robustness and genericity
over the former implementation that was used in. The empirical study of our implementation and of
the algorithm is comprehensive and produce (minor) theoretical improvements. We investigate the
practicality of the algorithm, analyze its limitations and propose various fixes that attempt to remedy
these limitations.
112 Labelle, F., and Shewchuk, J. R. Anisotropic Voronoi diagrams and guaranteed-quality anisotropic mesh
generation. Proceedings of the nineteenth annual symposium on Computational geometry, NY, 2003.
113 Du, Q., and Wang, D. Anisotropic centroid Voronoi tessellations and their applications. SIAM Journal on
specifications. part I algorithms. Finite Elem. Anal. Des. 25, 1-2 (1997), 61–83.
115 Diaz, M. C., Hecht, F., Mohammadi, B., and Pironneau, O. Anisotropic unstructured mesh adaptation for flows
Using this norm, the distance between two points p and q in Ω can be measured in the metric G as
[Link].3 Distortion
The notions of metrics and metric fields are introduced to convey the stretching of spaces. To create
a solid theoretical framework, it is required to be able to express how differently two metrics see
distances and geometrical objects. For this purpose, [Labelle and Shewchuk] introduced the concept
of distortion between two metrics. We recall here their definition. Properties and limitations as well
as a new alternative that remedy those shortcomings are proposed by [Labelle and Shewchuk]
introduced the concept of distortion between two points p and q of Ω as
118 Preparata, F. P., and Shamos, M. Computational geometry: an introduction. Springer Science & Business, 2012.
88
required theoretical basis and detail some minor changes brought to the theory after practical
experimentation. We then dive in the heuristic analysis of the behavior of the algorithm and its
parameters and propose some improvements. We introduce an implementation of the anisotropic
Delaunay refinement algorithm introduced by [Boissonnat et al.]119. This implementation of the star
set is completely new and results in significant improvements in terms of computational speed,
robustness and genericity over the former implementation that was used. The empirical study of our
implementation and of the algorithm is comprehensive and produce (minor) theoretical
improvements. We investigate the practicality of the algorithm, analyze its limitations and propose
various fixes that attempt to remedy these limitations. Attempts have been made to extend the
notion of Delaunay triangulation to the anisotropic setting either by adapting the famous Bowyer-
Watson algorithm [Mavriplis]120, [Borouchaki]121, [Dobrzynski]122, [Alauzet]123or as the dual of an
anisotropic Voronoi diagram [Labelle and Shewchuk]124, [Du and Wang]125. However, neither class
of method offer in all dimensions the theoretical guarantees nor the practical robustness that we are
interested in. A theoretically sound framework for Delaunay-based anisotropic meshes was
introduced by [Boissonnat et al.]126, called locally uniform anisotropic meshes. Locally uniform
anisotropic meshes are simplicial complexes in which the star of each vertex is Delaunay for the
metric attached to the vertex. The use of anisotropic stars, inspired by the works of [Shewchuk]127
and [Schoen]128, is combined with the sliver removal techniques proposed by [Li and Teng]129-130.
These techniques are adapted to the anisotropic setting to construct a star-based refinement
algorithm that cleverly selects refinement points. The algorithm works in any dimension and offers
guarantees on its termination and on the quality (size and shape) of the final simplexes.
119 Boissonnat, J.-D., Wormser, C., and Yvinec, M. Locally uniform anisotropic meshing. Proceedings of the
twenty-fourth annual symposium on Computational geometry (2008), ACM, pp. 270–277.
120 Mavriplis, D. J. Adaptive mesh generation for viscous flows using triangulation. Journal of computational
specifications. part Ialgorithms. Finite Elem. Anal. Des. 25, 1-2 (1997), 61–83.
122 Dobrzynski, C., and Frey, P. Anisotropic Delaunay mesh adaptation for unsteady simulations. Proceedings of
generation. Proceedings of the 19th annual symposium on Computational geometry (New York, NY, USA, 2003),
ACM Press, pp. 191–200.
125 Du, Q., and Wang, D. Anisotropic centroid Voronoi tessellations and their applications. SIAM Journal on
of the twenty-first annual symposium on Computational geometry (New York, NY, USA, 2005).
128 Schoen, J. Robust, guaranteed-quality anisotropic mesh generation. M.S. thesis, UC at Berkeley, 2008.
129 Li, X.-Y. Sliver-free Three Dimensional Delaunay Mesh Generation. PhD thesis, University of Illinois at Urbana
points P, like the Voronoi diagram or a simplex circumcircle, can therefore be obtained for the metric
Gp by the following set of operations. First, compute the transformed point set. Then, compute the
construction with the Euclidean norm on and transform the result back through . The triangulation
is thus simply the image through the stretching transformation F−1p of the Euclidean Delaunay
triangulation Del(Fp(P)) where Fp(P) = {Fppi, pi ∈ P}. As explained before, a sphere in metric space
is an ellipsoid in the Euclidean space. Each simplex of a uniformly anisotropic Delaunay triangulation
Delp(P) thus possesses an empty circumscribing ellipsoid, the inverse-transformed Delaunay ball
from metric to Euclidean space (see Figure 4.17).
Figure 4.17 An anisotropic uniform Delaunay triangulation (orange) and the corresponding stretched
Delaunay balls and circumcenters (black circles) - (Courtesy of [Labbe])
The central idea of the framework of locally uniform anisotropic meshes is to approximate at each
vertex p a given arbitrary metric field g by the uniform metric defined by extending Gp over the
domain. Similarly to the way affine functions are locally good approximations of a generic continuous
function, the approximation of an arbitrary metric field by a uniform metric will be accurate as long
we stay in a small neighborhood. At each vertex, a Delaunay triangulation that conforms to the
uniform metric field of that vertex is constructed. These independent triangulations can under some
density conditions be combined to obtain a final triangulation of the domain.
simplex has n + 1
different Delaunay
balls, one with respect
to the metric of each
vertex of the simplex.
Consequently, there are
in general
inconsistencies among
the stars of the sites: a
simplex τ appearing in
the stars of some of its
vertices, may not
appear in the stars of all
of them (Figure 4.18).
If a simplex is involved
in such configuration, it
is said to be Figure 4.18 Two stars Sp and Sq forming an inconsistent
inconsistent. Stars configuration - (Courtesy of [Labbe])
containing such
simplexes are inconsistent stars and a star set with at least one inconsistent star is also said to be
inconsistent. Oppositely, a star whose simplexes are consistent is said to be consistent and a star set
is if all of its stars are consistent. The main idea of the algorithm is to refine the set of sites P while
maintaining the set of stars S(P) until each star Sp in S(P) is composed of simplexes that are well
shaped and well sized in the metric Gp, and until there are no more inconsistencies among the stars.
Once a consistent star set is achieved (which is proven to happen), all the stars can be stitched into a
single triangulation: a locally uniform anisotropic mesh that conforms to the specified metric field
and offers guarantees on the quality of the simplexes.
[Link].1 Parameter φ0
The rule with the highest priority in the algorithm is the distortion rule, which bounds the maximal
distortion in a simplex to be at most φ0, with the intent of increasing the odds of finding a valid
solution when the Pick_valid procedure is called later in the algorithm. The value φ0 has naturally a
strong impact over both the computation time and the final mesh: if φ0 is chosen too large, the
Pick_valid procedure will be at first largely unsuccessful, causing many unsuccessful and costly
insertions till the sampling increases and valid points are be found. Oppositely, if φ0 is chosen too
91
small, simplexes might be refined even if they already satisfy all other criteria including consistency
which is pointless and costly and thus undesirable.
To determine what is the optimal value forφ0, we look at the number of vertices in a final mesh, the
number of calls to the Pick_valid procedure and their success percentage, and the computation time
for various values of φ0. All the parameters except for φ0 are kept constant and the sizing constraint
r0 is chosen large enough as to only be responsible for a negligible number of vertices added. The
domain is a square of side 4 and centered on c = (0 , 0) endowed with the hyperbolic shock. Results
are shown in Figure 4.19 (left). For the sake of completeness, we also consider a three-dimensional
domain, a cube of side 3 and centered on c = {1.5, 1.5, 1.5}, endowed with a unidimensional shock
metric field. Since the goal is to compare the influence of φ0 for the refinement of cells, we disable
the refinement of surface stars and construct a pure volume mesh. Results can be found in Figure
4.19 (right). These experiments provide a lot of interesting and unexpected information:
The success percentage of the Pick_valid procedure increases when φ0 decreases, as the
theory predicts. However, a low value of φ0 will very quickly be responsible for the insertion
of an exceptionally large number of vertices (red curves).
The final number of points is greater whenever φ0 is used than when it is not (blue curves).
However small φ0 is, there are still inconsistencies that appear (the teal curves show the
number of vertices inserted to solve inconsistencies), proving that the Pick_valid procedure
is a necessary part of the algorithm. Even more interestingly, they add a relatively constant
number of vertices, indicating that the distortion rules did not help.
Figure 4.19 Influence of the Parameter ψ0 in a 2D (shown on the left) and 3D Domain (shown
on the right) - (Courtesy of [Labbe])
again, the number of points added by the inconsistency queue (that can be roughly computed as the
difference of the green and blue curve) is more or less constant, even when the number of points
inserted for the size rule is important. The shape parameter ρ0 and its corresponding rule ensure that
all simplexes satisfy shape requirements, which is both useful in itself but also improve the odds of
finding valid solutions in the Pick_valid procedure. This parameter has, in practice, very little
influence and the corresponding rule is very rarely called upon. This can be seen as a consequence
from the fact that Rules 1 and 2 (distortion and size) insert the circumcenter, an already appropriate
choice to create meshes of good quality.
A
Q = 4√3
ph
Eq. 4.7
where A is the area of the triangle, p the perimeter and h the longest edge (all computed in the metric).
For cells, we use the quality estimation of [Frey and George]132
V2
Q = 216√3 3
𝐴Σ
Eq, 4.8
where V is the volume of the tetrahedron, and A∑ the sum of the areas of the four facets (all compute
in the metric). Both these quality measures live between 0 and 1, with 1 signaling the highest quality.
Results are detailed in Table 4.2. As expected, more solutions are available in the pick valid algorithm
when the picking region is enlarged, resulting in smaller meshes. However, the metric is followed
more loosely and the simplexes of the meshes have lower quality. Note that in extreme cases –δ close
Table 4.2 Comparison of the number of vertices and quality of the mesh for different values
of δ - (Courtesy of [Labbe])
131 Zhong, Z., Guo, X., Wang, W., Lévy, B., Sun, F., Liu, Y., and Mao, W. Particle-based anisotropic surface meshing.
ACM Trans. Graph. 32, 4 (2013).
132 Frey, P., and George, P. L. Mesh generation: Application to finite elements. Hermes Science, 2008.
93
to 1 – the final number of vertices starts to increase again, as the refinement points are often not
creating satisfying elements with respect to other criteria, such as the shape. The parameter β is
assigned the value 2.5 by default, but changing this value (within 1 to 5) has barely any influence on
the outcome.
[Link].4 Parameters σ0
The parameter σ0 controls the maximal slivery of the simplexes. A majority of inconsistencies do not
stem from slivery quasi-cosphericities, and thus this parameter has little influence on the outcome.
By increasing its value, one simply trades the removal of inconsistencies for the removal of silvers,
but the result stays the same. Furthermore, the slivery and inconsistent queue both rely on the
Pick_valid procedure to insert a point and thus there is no difference in the running time of the
algorithm either.
[Link].3 Starred
Our first example uses the Starred metric field, detailed in Appendix A of [Labbe]133. The anisotropy
of this metric field varies between 1 and 10. The Starred metric field possesses long compared to the
prescribed size of the elements – regions of straight anisotropy, and regions where the metric field is
rotating (and the anisotropy ratio is lower) in between, thus providing a good first example of an
arbitrary metric field. The domain is a square of side 10, centered on the origin. Figure 4.20- A
square of side 10 and centered on the origin, endowed with the Starred metric field (left). The final
mesh is composed of 47126 vertices and 94366 triangles. On the right, a zoom on one of the rotating
regions. The algorithm terminates without any issue and the size and shape criteria are solved
133 Mael Rouxel-Labbe, “Anisotropic mesh generation”, Université Côte d’Azur, 2016.
94
quickly (4499 vertices are needed). However, the resolution of inconsistencies is difficult and
requires around 40000 additional vertices. While regions where the metric field is rotating are
clearly suffering from inconsistencies, regions where the metric field is straight fare only slightly
better and also require many vertex insertions to solve inconsistencies.
Figure 4.20 A square of side 10 and centered on the origin, endowed with the “Starred” metric field
(left) - (Courtesy of [Labbe])
[Link].4 Hyperbolic
The hyperbolic shock metric field has already been used several times in previous sections and its
definition is detailed. This metric field is characterized by an anisotropy ratio that varies between 1
and 15 and is interesting as its anisotropy ratio does not vary (too much) along the shock, despite the
shock being shaped like a sinusoidal curve. We shall refer to the regions of the shock where the
Figure 4.21 Anisotropic Triangulation of a Rectangle Endowed with the Hyperbolic Shock
Metric Field - (Courtesy of [Labbe])
95
eigenvectors change rapidly as the“turns”. In these turns, the process of generating a good
anisotropic mesh is difficult as the eigenvectors of the metrics are changing rapidly. As larger meshes
have already been produced in other sections and very dense refinement was observed at the turns,
we here zoom on one of these
regions. The result is shown in
Figure 4.21. The size and shape
constraints are quickly satisfied
and only require around 414
vertices, but the final mesh is
composed of 4621 vertices.
Indeed, the resolution of
inconsistencies is difficult
especially within the shock and
many vertices are required to
obtain a consistent mesh despite a
relatively low maximum
anisotropy ratio. Consequently,
the metric field is honored (and
consequently the sizing field is
too), but simplexes are often much
smaller and then resolution of
inconsistencies much longer than
what we hoped for.
[Link].5 Swirl
The Swirl metric field aims to
represent a whirling phenomenon.
Figure 4.22 A square of side 6 and centered on the origin,
Contrary to the two previous endowed with the “Swirl” metric field - (Courtesy of Labbé et al.)
metric fields, the Swirl metric field
has a relatively constant anisotropy ratio and is rotating almost everywhere. Figure 4.22 shows the
mesh obtained by our implementation for a square of side 6 endowed with this metric field. The
result exhibits the same issues as in the previous experiments: the resolution of inconsistencies is
difficult and many vertices are required to solve inconsistencies after all other criteria are satisfied.
[Link].7 Optimization
Optimization is often used to improve the quality of a triangulation. Centroid Voronoi tessellations
are Voronoi diagrams whose generators are also the centroids (centers of mass) of their respective
cells. The famous Lloyd algorithm134 iteratively moves the seeds to the center of mass of their
respective cell and recomputed the Voronoi diagram of this new seed set. We approximate the
Riemannian Voronoi center of mass of a cell V with the following formula:
134 S. Lloyd, Least squares quantization in pcm, IEEE Trans. Inf. Theo. 28 (2006) 129–137.
96
∑i ci |t i |gi
cg =
∑i|t i |gi
Eq. 4.9
where |ti|gi is the area of the triangle ti in the metric gi and the ti make a partition of V. The canvas
conveniently provides this decomposition of a geodesic Voronoi cell in small triangles, making the
approximation of cg accurate. The formula in Eq. 4.9 does not extend to surfaces as the result of the
weighted sum might not lie on the domain. In that setting, we use a process similar to [Wang et al.]135.
As its Euclidean counterpart, this algorithm comes with no guarantees (not even for termination) but
works well in practice. In Figure 4.23, the initial SRDT of 4000 seeds has been optimized with 100
iterations. The metric field is well captured with few elements, especially in the rotational region.
Figure 4.23 The optimized SRDT of 4000 seeds in a planar domain endowed with a hyperbolic shock
induced metric field (left). On the right, a zoom on a rotational region of the metric field shows the
difference between pre- (above) and post- (bottom) optimization – (Courtesy of Labbé et al.)
135X. Wang, X. Ying, Y.-J. Liu, S.-Q. Xin, W. Wang, X. Gu, W. Mueller-Wittig, Y. He, Intrinsic computation of
centroidal Voronoi tessellation (CVT) on meshes, Computer-Aided Design 58 (2015) 51–61.
97
domains. Even in this simpler setting, the computation of geodesic distances and paths is still a
complex problem to which much work has been dedicated in the last decades. Despite many studies,
geodesic distances still cannot be obtained exactly for most domains endowed with an arbitrary
metric field. Nevertheless, we introduce a discrete structure that is, under some conditions,
combinatorically equivalent to the Riemannian Voronoi diagram and whose duals are triangulations.
136In the case of an isotropic canvas, increasing the anisotropy of a cell increases the number of vertices
required to properly capture it (left and middle). This is not the case if the canvas can be anisotropic (left and
right).
98
Figure 4.25 Unit Sphere Endowed with the Hyperbolic Metric field - (Courtesy of [Labbe])
By definition, the Riemannian Voronoi diagram captures the metric field more accurately than other
methods that typically only consider the metric at the vertices. This additional input of information
allows us to construct curved Riemannian Delaunay triangulations, but also has a positive influence
on the straight realization of the diagram. Figure 4.25 shows the different structures involved in our
algorithm during the generation of an anisotropic meshes for the sphere endowed with a hyperbolic
shock metric field137. On the left is the canvas (an isotropic triangulation here); the middle sphere
shows the discrete Riemannian Voronoi
diagram computed upon this canvas; finally,
the right picture shows the dual of the
discrete diagram, an anisotropic
triangulation. Contrary to the previous
approaches introduced and investigated no
over-refinement is observed, including in
the regions where the eigenvectors of the
metric field are rotating (where the shock
turns). The final mesh has slightly fewer
than 4000 vertices, which is the number of
vertices that was required by our locally
uniform anisotropic meshes to generate a
mesh of a only small region of that domain.
137 The unit sphere endowed with the hyperbolic metric field (approximately 4000 vertices). Isotropic canvas
(left), discrete Riemannian Voronoi diagram (center), and straight Riemannian Delaunay triangulation (right).
99
induced anisotropic metric field. In the computation of the curvature metric field, the value ǫ = 0.7 is
used (see Section A.2.1 in Appendix A of [Labbe]138). The curvature of the simplexes is noticeable
and the metric field is well captured with only few curved Riemannian simplexes. Comparatively, a
straight dual would require more elements to obtain the same approximation Figure 4.27 shows
the curved Riemannian Delaunay triangulation dual of the Riemannian Voronoi diagram for the
hyperbolic shock metric field. We obtain an aesthetically pleasing curved mesh that conforms closely
to the metric field.
Figure 4.27 Discrete Riemannian Voronoi Diagram (top) and Curved Riemannian Delaunay
Triangulation (bottom) Endowed with the Hyperbolic Shock Metric Field - (Courtesy of
[Labbe])
138 Mael Rouxel-Labbe, “Anisotropic mesh generation”, Université Côte d’Azur, 2016.
100
[Link] Conclusion
We have presented an empirical study of the locally uniform anisotropic meshes framework,
introduced by [Boissonnat et al]139. During this study, we have introduced minor changes to the
theory and provided a robust and generic implementation of the algorithm. While the algorithm is
simple to understand, the computation speed of a naive implementation would be unreasonable. We
presented an implementation of the algorithm that is both robust and fast, which is more difficult to
achieve. The theoretical requirements are demanding, but in practice both the geodesic and straight
edge duals require relatively few points to become embedded triangulations, even with nontrivial,
highly distorted metric fields. The RVD and its duals are shown to be particularly well suited to
capture the metric field in regions where it is both anisotropic and rotational. No preprocessing or
smoothing of the metric field is required, a technique that is often used and results in noticeable loss
of anisotropy in this type of region140.
(a) (b)
139 Boissonnat, J.-D., Wormser, C., and Yvinec, M. Locally uniform anisotropic meshing. Proceedings of the
twenty-fourth annual symposium on Computational geometry (2008), ACM, pp. 270–277.
140 M. Rouxel-Labbé, M. Wintraeckenb, J.D. Boissonnat, “Discretized Riemannian Delaunay triangulations”, 25th
boundary surface and likewise the quality of the surface triangulation can be very poor. This can be
a considerable handicap since an accurate implementation of the boundary conditions often
requires a good quality mesh near the boundary. For high Reynolds number Navier Stokes
computations, which must capture the flow details inside thin boundary layers, the lack of a
good quality mesh near a
boundary causes
considerable difficulties.
One way to alleviate these
problems is to build a good
quality mesh in the near
field by extrusion of
hexahedra, prisms or
tetrahedral off the
boundary surface and then
merge this extruded mesh
with an Octree based mesh
at a position that is some
way off the boundary 141,142.
It is best when creating an
octree mesh to do the
following:
Perform volume
meshing
Improve the quality
of the volume mesh
using Edit Mesh
options
Create prism layers
for boundary layer
near the walls Figure 4.29 A close-up view of Nasty Cheese a well-known test-case
featuring 30◦ Dihedral angles – (Courtesy’s of [Mar´echal])
Improve the total
mesh quality using
Edit Mesh options.
The paper by [Mar´echal]143 presents advances made in terms of sharp angles meshing, non-
manifold geometries, based on all-hexahedral mesh. An example showing sharp feature is revealed
on Figure 4.29.
141 Karman SL, “SPLITFLOW: a 3-D unstructured Cartesian/prismatic grid CFD code for complex geometries”,
AIAA 33rd aerospace sciences meeting, Reno, NV. AIAA paper 95-0853, 1995.
142 Shaw JA, Stokes S, Lucking MA, “The rapid and robust generation of efficient hybrid grids for rans simulations
over complete aircraft”, International Journal Numeric Method Fluids 2003; 43:785–820.
143 Lo¨ıc Mar´echal, “Mesh Generation: Handling Sharp Features”, Gamma project, I.N.R.I.A., Rocquencourt,
Tetrahedral/
Multiblock Advancing
(contiguous) Primatic Front
Cartesian
Multiblock (Hexahedral
Overset +assorted Delany
(Chimera Polyhedral
Fully
unstructured
Hexahedral
144 Zhu JZ, Zienkiewicz OC, Hinton E, Wu J, “A new approach to the development of automatic quadrilateral
Mesh generation”, Inter J Number Meth Eng. 1991; 32:849–66.
145 Sheehy, DJ, Armstrong CG, Robinson DJ,”Computing the medial surface of a solid from a domain Delaunay
triangulation”, Proceedings of the ACM symposium on solid modeling and applications, Salt Lake City, UT, New
York: ACM Press; 1995. p. 201–12.
103
Another simple strategy is developing by [Lyra & de Carvalho]146 where quadrilateral mesh
generated from triangular meshes. Unstructured quadrilateral meshes can be automatically
generated in several different ways and do not impose serious topological restrictions on the meshes,
being appropriated to deal with complex geometries, naturally allowing local non-uniform mesh
refinement. Several different approaches have been proposed to generate unstructured quadrilateral
meshes. These methodologies can be divided into two basic groups:
146Paulo Roberto M. Lyra, Darlan Karlo E. de Carvalho, “A Computational Methodology for Automatic Two-
Dimensional Anisotropic Mesh Generation and Adaptation”, Methodology for Automatic Two-Dimensional
Anisotropic Mesh Generation and Adaptation.
104
The conversion of triangular meshes is particularly attractive because these meshes can inherit the
properties of the triangular meshes, whose generators are very well developed and once it is always
possible to build a triangular mesh over any arbitrary 2D domain, quadrilateral meshes can be
constructed as general as the triangular ones. It also allows the use of any triangular mesh generator
as a “black box”. As we generate a quadrilateral mesh using the conversion strategy, the quadrilateral
mesh inherits the characteristics of the initial triangulation. For both, iso and anisotropic meshes this
strategy consists of four main steps, as presented .
The standard strategy of merging triangles into quadrilaterals consists in eliminating a common edge
that belongs to two adjacent triangles. Following the work done by [Xie and Ramaekers (1994)] and
[Alquati and Groehs (1995)], our mesh generator is such that it refrains from merging triangles that
would form a non-convex quadrilateral. Besides, for anisotropic meshes, the merging process will
remove a common edge between two adjacent triangles, only if the two quadrilaterals to be created
satisfy a quality criteria which is controlled by two geometric parameters. The adopted procedure
generates a quadrilateral mesh with edges that are approximately half of those of the corresponding
triangular elements and usually this is not a serious concern, since the user can generate a coarser
initial triangulation to obtain the desired mesh density. The four steps involved in the quadrilateral
mesh generation can be seen in Figure 4.31 (1-4).
147 Atta E. Component–adaptive grid interfacing. AIAA19th aerospace sciences meeting. AIAA paper 81-0382.
148 Benek JA, Buning PG, Steger JL. “A 3-D Chimera grid embedding technique”. AIAA 7th CFD conference,
Cincinnati, OH. AIAA paper 85-1523, 1985.
149 Chesshire G, Henshaw WD,”Composite overlapping meshes for the solution of partial differential equations.”
Figure 4.36 Solid Surface Over-Layer Cartesian Cell and Resulting Cut and Split Cell – (Courtesy of
NASA Ames)
solid surface results in two or more computational volumes which might have non-Cartesian aligned
edges, see Figure 4.36 (b).
The original use of Cartesian grids involved solving the 2D full potential equation by [Purvis and
Burkhalter]152, followed shortly afterwards by [Wedan and South]153, in which a non-body-oriented
structured grid was created on which the full potential equation was solved. Their solution strategy
was to use finite volume techniques in order to more easily handle the computational cells that were
intersected by the solid surface. Additionally, they used linear approximations in the cut cells for the
reconstruction of the wall boundary conditions which provided a simple algorithm for
implementation and preserved the structure of their coefficient matrix during the solution iteration
so that no extra computational costs were incurred for the cut cells. However, this did not preserve
the actual body curvature and also only provided a linear approximation to the actual surface lengths
J. W. Purvis and J. E. Burkhalter. Prediction of Critical Mach Number for Store Configurations. AIAA J.,1979.
152
153B. Wedan and J. C. South, Jr. A Method for Solving the Transonic Full-Potential Equation for General
Configurations. In AIAA 6th Computational Fluid Dynamics Conference, Danvers, MA, July 1983. AIAA-83-1889.
107
and area for the cut cells, and thus could not exactly model curved surfaces. Also, little mention was
made of any attempts at cell refinement to more accurately capture the surface geometry and flow
features. Earlier, [Clarke et al.]154 used Cartesian grids to solve the two-dimension Euler equations
(again on non-grid aligned surfaces). They attempted to more accurately model the solid surface
boundary conditions by utilizing the local surface curvature in reconstructing the wall boundary
conditions. They also provided more accurate modeling of the cut cell lengths and areas by using the
actual surface geometry in their calculations and not linear approximations. Additionally, they noted
that clustering was needed in certain critical regions in order to produce accurate results, and this
was achieved by clustering entire grid lines. Cut cells that were too small (less than 50% of the
original cell size) were merged with neighbor cells in order to avoid time stepping problems
associated with very small computational cells. [Gaffney and Hassan]155 extended this research to
3D. Figure 4.35 demonstrates the case of cell merging.
Figure 4.37 Semi-Automatic Cartesian Mesh Generation with CFOW – Courtesy of Kawasaki
154 D. K. Clarke, M.D. Salas, and H. A. Hassan. Euler Calculations for Multi element Airfoils Using Cartesian Grids.
AIAA Journal, 24(3):353-358, March 1986.
155 R. L. Gaffney, H. A. Hassan, and M.D. Salas. Euler Calculations for Wings Using Cartesian Grids. AIAA 25th
Cartesian grid156. A methodology by [Kawasaki]157 grid, which conducts automatic Cartesian based
grid generation with octree Adaptive Mesh Refinement, and with Layered grid near surface for
boundary layer. (see Figure 4.37). As an example, please see the wing section of HL CRM with full
gap meshing, as depicted in Figure 4.38 of the same project.
156 R. L. Meakin. On Adaptive Refinement and Overset Structured Grids. 13th AIAA, 1997.
157 Hidemasa Yasuda, Taku Nagata, Atsushi Tajima, Akio Ochi, “014 - KHI Contribution to GMGW-1”, Kawasaki
Heavy Industries, Ltd. With cooperation of Kawaju Gifu Engineering Co., Ltd., 1st Geometry and Mesh
Generation Workshop Denver, CO June 3-4, 2017.
158 M. J. Berger and R. J. LeVeque. An Adaptive Cartesian Mesh Algorithm for the Euler Equations in Arbitrary
Geometries. 9th AIAA Computational Fluid Dynamics Conference, Buffalo, NY, June 1989. AIAA-89-1930-CP.
109
notice that in this figure there is at most a 2:1 ratio at the refinement interface, which is typical of
most A MR schemes, in order to promote stability in the numerical schemes.
One problem with [Berger and LeVeque's] original implementation of AMR on Cartesian grids was
the problem of state variable conservation during the AMR stages. They carefully constructed
conservative schemes for the inter-grid transfer to address the problem. They also used the idea of
wave propagation and directional differencing in order to increase the stability near the small
boundary cells. This helped keep the CFL of the boundary cells reasonably close to the CFL of the
flow cells and allowed larger time steps to be taken with the solver remaining stable. Several
researchers have extended [Berger and LeVeque's] research into areas such as multigrid Cartesian
grids, higher accuracy flow solvers using more sophisticated flux approximations, time-accurate
unsteady flows, and a front tracking AMR scheme that attempted to track the discontinuities (such
as shocks) as the solution evolved in order to provide more accuracy in the refined mesh calculations.
According to recent investigation by [Hiroshi Abe ]159, Cartesian grid method fall into two
categories with the demand of accurate solutions. One keeps its structured grid nature and
introduces embedding structured sub grids within the underlying coarse structured grids.
Adaptive Mesh Refinement (AMR) is one of them. Figure 4.40 (a) shows an example of AMR in
two dimension. The intersected cells by a circle in the underlying coarse grids are tagged in blue. The
blue-tagged cells are to be refined. In the AMR procedure, several embedded rectangle patches are
defined so as to contain the blue tagged cells. Then, the embedded rectangle patch areas are refined.
Figure 4.40 Schematic image of Adaptive Mesh Refinement – (Courtesy of Hiroshi Abe)
The other considers the Cartesian mesh as an unstructured collection of h-refined meshes. The data
structure is not the same as structured grids but the same as unstructured grids. Adaptive Cartesian
grid method was introduced as an unstructured Cartesian grid method and has shown the great
success in simulating complex geometries. Figure 4.40 (a) shows a case of two dimensional
159Hiroshi Abe, “Blocked Adaptive Cartesian Grid FD-TD Method for Electromagnetic Field with Complex
Geometries”, International Conference on Modeling and Simulation Technology, Tokyo, JAPAN, 2011.
110
adaptive Cartesian grid method. Beginning with a root cell covering whole domain, the intersected
cells by the circle are recursively bisected. This simple procedure finally gives Figure 4.40 (b).
160 C. S. Peskin. Numerical Analysis of Blood Flow in the Heart. Journal of Computational Physics, 1977.
161 C. S. Peskin. The Fluid Dynamics of Heart Valves: Experimental, Theoretical, and Computational Methods.
Annual Review of Fluid Mechanics, 14:235-259, 1982.
162 D. Goldstein, R. Handler, and L. Sirovich. Modeling a No-Slip Flow Boundary with an External Force Field.
for moving membranes. Additionally, [Kim et al.]165 developed a second-order method with both
momentum and mass sources in order to improve the overall accuracy of their results. While these
schemes handle the Navier-Stokes equations on Cartesian grids, they all suffer from numerical
stability problems that typically require numerical diffusion. Also, the surface is not sharply resolved,
and is typically smeared between 2 or 3 cells. This can cause problems when flow details are needed
near the surface.
165 J. Kim, K. Kim, and H. Choi. An Immersed-Boundary Finite-Volume Method for Simulations of Flow in Complex
Geometries. Journal of Computational Physics, 171(1):132-150, 2001.
166 C. W. Hirt and B. D. Nichols. Volume of Fluid (VOF) Method for Dynamics of Free Boundaries. Journal of
Flows with Complex Immersed Boundaries. Journal of Computational Physics, 156(2):209-240, 1999.
168 T. Ye, R. R. Mittal, H. S. Udaykumar, and W. Shyy. A Cartesian Grid Method for Viscous Incompressible Flows
with Complex Immersed Boundaries. In AIAA 3rd Weakly Ionized Gases Workshop, Norfolk, VA, November 1999.
169 S. Majumdar, G. Iaccarino, and P. Durbin. RANS Solvers with Adaptive Structured Boundary Non-Conforming
Grids. Annual Research Briefs 208782, Center for Turbulence Research, Stanford University, Stanford, CA, 2001.
112
1. Green-Gauss reconstructions
where the divergence theorem
was applied to cells neighboring
the face that the flux was being
calculated to build the integration
path,
2. polynomial based reconstructions
that used a Lagrange polynomial
and a set of support cells to
interpolate the state variables
where they were needed with the
polynomial being differentiated to
obtain the needed gradients.
170P. D. Fryrnier, Jr., H. A. Hassan, and M.D. Salas. Navier-Stokes Calculations Using Cartesian Grids: I. Laminar
Flows. AIAA Journal, 26(10):1181-1188, October 1988.
113
geometries. In addition to the viscous flux formulation results, AMR was applied to Coirier's solution
strategies with a positive effect, but without fully eliminating the viscous stencil sensitivity on the cut
cell smoothness. Another approach that was discussed was the use of embedded, body oriented grids
to capture the boundary layers, but no numerical results were given.
171 E. Atta. Component-Adaptive Grid Interfacing. In 19th Aerospace Sciences Meeting, St. Louis, MO, January
1981. AIAA-81-0382.
172 J. L. Steger, F. C. Dougherty, and J. A. Benek. A Chimera Grid Scheme. InK. N. Ghia and U. Ghia, editors,
Advances in Grid Generation, Presented at the Applied Mechanics, Bioengineering, and Fluids Engineering
Conference, volume 5, pages 59-69. The Fluid Engineering Division, ASME, Houston, TX, June 1983.
114
application of a hybrid scheme known as SPLITFLOW, by Karman173 and enhanced by [Domel and
Karmen]174, used Cartesian grids for the majority of the computational domain, and prismatic grids
to resolve the boundary layers. Standard Cartesian grid cutting techniques were used at the interface
between the prismatic grids and the
Cartesian grid. The prismatic cells were
grown from the surface triangulation
using a marching layers technique. The
difficulties was addressed that could
arise in the prismatic-Cartesian technique
near convex regions, overlapping regions,
and other regions where the prismatic
marching technique needed to be
modified to create viable grids.
Other Related Method Similar to the
reconstruction method is the class of
finite element solution techniques called
element-free Galerkin methods.
Originally developed by [Belytschko et
al.]175 for elasticity and heat conduction
problems, it is currently being
investigated for its applicability to fluid
dynamics because of its automated
handling of grid generation. The basic
premise of this method is the use of Figure 4.43 Example Hybrid Grid Near Curved Surface –
polynomial curve fits to approximately (Courtesy of NASA Ames)
represent the data surrounding the node
of interest. Typically, a least-squares error minimization is used due to the larger number of data
points surrounding the node than the number of unknowns in the curve fit. Most implementations
demonstrate oscillations near sharp gradients ( especially with higher-order interpolation functions)
with more research needed to developing effective limiters.
Another scheme related to the reconstruction method that is the grid-less method. This method uses
a cloud of points to reconstruct a polynomial curve fit (similar to the element-free Galerkin method)
using a least-squares error minimization. These curve fits are then used to calculate the derivatives
required to solve the Navier-Stokes equations in differential form. The number of calculations per
node is higher than for other techniques due to the large number of least-squares fits that are
required. Unfortunately, this scheme does is not conservative and requires numerical dissipation in
order to obtain a solution. Other researchers have extended this work, but without addressing the
conservation problem.
173 S. L. Karman, Jr. SPLITFLOW: A 3D Unstructured Cartesian/Prismatic Grid CFD Code for Complex
Geometries. In 33rd Aerospace Sciences Meeting and Exhibit, Reno, NV, January 1995. AIAA. AIAA-95-0343.
174 N. D. Domel and S, T-. Karman, Jr. Splitfow: Progress in 3D CFD with Cartesian Omni-tree Grids for Complex
Geometries. AIAA 38th Aerospace Sciences Meeting & Exhibit, Reno, NV, January 2000. AIAA-2000-1006.
175 T. Belytschko, Y. Y. Lu, and L. Gu. Element-Free Galerkin Methods. International Journal for Numerical
mesh refinement. Furthermore, resulting grid is partly structured and this feature can be utilized
for building robust numerical solution schemes. The methodology includes three basic steps:
1. constructing structured prototype grids,
2. mapping these grids to non-regular geometry (if necessary) and
3. final superposition of low level grids into the final one.
The procedure are outlined in Figure 4.44 and discussed in details176.
Figure 4.44 Basic Superposition Example – (Courtesy of Kalinin, Mazo and Isaev)
176E I Kalinin1, A B Mazo1 and S A Isaev, “Composite mesh generator for CFD problems”, 11th International
Conference on "Mesh methods for boundary-value problems and applications" IOP Publishing, IOP Conf. Series:
Materials Science and Engineering 158 (2016) 012047 doi:10.1088/1757-899X/158/1/012047.
116
Discussion
It is generally accepted that a boundary conforming mesh is desirable to achieve accurate solutions
from any numerical solver. If one is willing to sacrifice this requirement then mesh generation
becomes a much simpler task. No approach beats regular structured grids in terms of efficiency
and accuracy. Thus, there have been a number of efforts to use such grids for complex geometries
which are called Cartesian grid approach. An early example of a non-aligned Cartesian mesh can
be found in the work of [Carlson]177. Difficulties arise at the boundary where the Cartesian mesh
intersects the boundary surface. Although finite difference methods can be derived to interpolate
the boundary conditions onto the nearest mesh points, it is difficult to ensure solution accuracy. If
extra points are inserted, however, where mesh lines intersect the surface then it is possible to create
a boundary conforming mesh. In this respect, boundary conforming Cartesian methods are seen to
be closely related to the Octree based triangulation methods. In fact, the elements obtained from the
Octree and its intersection with the boundaries is precisely the elements that make up the Cartesian
mesh. Conversely, any Cartesian mesh can be converted into an Octree type triangulation by splitting
all elements into tetrahedral (or triangles in 2D).
Most of the elements in a Cartesian mesh will be hexahedra although the elements adjacent to the
surface can be expected to assume a variety of polyhedral shapes depending on the way in which an
Octree hexahedron intersects any given region of the boundary surface. A Cartesian mesh is
therefore well suited for use by a finite volume or finite element method that can accept arbitrarily
shaped elements. This approach has been developed extensively by [Aftosmis et al.]178. Given the
close affinity between Cartesian meshes and Octree based triangulations it is to be expected that they
share the same advantages and limitations. In particular, the problems of correctly finding the
intersection between the Cartesian/Octree mesh and the boundary surface, identifying the element
shapes for the intersected Cartesian cells and adequately refining the mesh near small boundary
features, are substantial. Cartesian mesh methods also suffer from the drawback that the surface
Figure 4.45 Example of Cartesian Grid on a Generic Airplane – (Source: Richard Smith 1996)
177 Carlson LA. Transonic Airfoil Analysis and Design Using Cartesian Coordinates. AIAA 2nd computational fluid
dynamics conference, Hartford, CT, June 1975.p. 175–83.
178 Aftosmis MJ, Berger MJ, Melton JE. ,”Robust and efficient Cartesian mesh generation for component-based
discretization is not known beforehand and it is therefore often difficult to ensure good surface mesh
quality. On the plus side, since the surface discretization is a by-product of the volume discretization,
it is possible to generate meshes around highly complex geometries without the need for carefully
crafted surface meshes. In fact, the surface definition can be obtained directly from the CAD
description provided there is a utility to determine the intersection of given line with the surface.
Cartesian and Octree based mesh generation methods thus circumvent the need for the prior
creation of a surface mesh, a significant advantage if a fast turnaround time in going from design
prototype to flow solution is desired. Figure 4.45 shows a Cartesian grid on a generic airplane
configuration.
179W. Oaks, S. Paoletti, “Polyhedral Mesh Generation”, adapco Ltd, 60 Broadhollow Road, Melville 11747 New
York, USA.
118
been applied to all the resulting polyhedral, including the internal hexahedra180. (although the
number of faces is unrestricted). This means that they fill space in close to the most efficient way
possible. A polygonal face is defined by a list of vertex labels. The ordering of vertex labels defines
the face normal (orientation) using the right-hand rule. A polyhedral cell is defined by a list of face
labels that bound it. In
Figure 4.48 (a) cell center is marked by P, face center and face includes by f, face normal Sf and
neighboring cell center by N. Face center and cell volume are calculated using a decomposition into
triangles or pyramids181.
Cell Decomposition
It remains to choose an appropriate decomposition of a polyhedron into tetrahedral; two methods
used in OpenFOAM® are shown in Figure 4.48 (b-c). A cell is decomposed by introducing a point in
its centroid and building tetrahedral above the triangular decomposition of a face. The two methods
proposed here are the cell decomposition, Figure 4.48 (b), where additional points are introduced
only in cell centers; and the cell-and-face decomposition, Figure 4.48(c), where points are
introduced in both face and cell centers. In the first method, the number of algebraic equations in the
matrix equals the sum of cell and point count, while the second method introduces an equation for
each face, giving a considerable increase in the number of unknowns182. For a given resolution level,
a mesh consisting of polyhedral cells has fewer faces than a mesh of any other cell type. As the lowest-
order polyhedron, tetrahedral are often deformed during meshing to look more like wedges or
slivers. Some of these point upstream, letting fluid flows hit their very oblique surfaces. The disparity
between the small inflow area and large outflow areas leads to excessive numerical diffusion.
(a) typical polyhedral cells (b) Cell Decompostion (c) Cell and Face Decompostion
Mesh Duality
A different approach in generating polyhedral meshes, which does not suffer by the aforementioned
restrictions, comes with the introduction of indirect mesh generation methods. These are based on
the principle of duality transforms, which define a mapping from entities of an input mesh, which is
referred to as primal, to a destination mesh, referred to as dual. The main mapping process dictates
that the vertices of a dual mesh are generated at the centers of the primal cells183. This relation is
and Engineering, 2007. ISVD '07. 4th International Symposium on, pages 117{129, July 2007.
119
unique, leading to a one-to-one correspondence of the two counterpart meshes, while it is also
characterized by inverse applicability. This means that the original primal mesh can be obtained
back, if the same mapping is applied to the dual mesh. This property can be applied for Voronoi
tessellations, as well. The dual counterpart of a Voronoi mesh is a Delaunay triangulation, which is
defined as a partitioning scheme, such that no vertex is inside the circumcircle of any triangle (Figure
4.49). The implementation of Delaunay triangulation algorithms is relatively simple and can be of
complexity O (n log n), following Ruppert's algorithm184. As the duality property can be applied both
ways, it is then possible to obtain a Voronoi mesh, by applying a duality transform on a previously
generated Delaunay triangulation, considering the circumcenters of the primal tetrahedral as
generator vertices.
In 3D space, an equivalent mesh generation method would require a tetrahedral primal mesh that
complies with the Delaunay criterion. Delaunay partitioning is known to maximize the minimum
angle of all formed simples, which leads to well-conditioned tetrahedral. However, in order to obtain
a valid dual mesh, a far stricter criterion needs to be filled: that of well centered tetrahedral, meaning
that the circumcenter of a primal cell needs to be located within its volume185. This is something that
is not always possible, as tetrahedral at the boundaries may be very at, having their circumcenters
outside the model's domain, while the Delaunay criterion still remains fulfilled. Situations like this
are especially encountered at sharp concavities of the geometric model, and several suggestions have
been made in order to overcome this issue. Other possibilities include non-Delaunay tetrahedral
meshes, hexahedral or even mixed meshes, which are further discussion. Finally, the advantage of
indirect mesh generation lies in the fact that efficient algorithms can be implemented in order to
obtain topologically involved dual meshes, based on primal meshes with simple topology.
Furthermore, the primal meshes, themselves, can be created following equally efficient and well-
studied algorithms. This approach leads into an elective two-step mesh generation, rather than an
expensive, direct one.
Methodology
Given a triangular mesh in 2D, such as that of (Figure 4.50), a polygonal mesh is formed by
following the principle that a dual cell will be formed around every primal vertex. In the interior of
the domain, this one-to-one correspondence between primal and dual entities extends to other types
as well, with one dual edge per primal edge and a dual vertex for every primal face. However,
generation of polygonal faces on the boundary demands for additional dual edges and vertices, at
specific locations of the boundary that denote the classification of primal entities as significant. An
slightly modified approach of the generic polygon mesh generation, as previously described, is used
to obtain a variation known as median polygon. This method differentiates itself by considering as
significant every existing primal edge, thus creating dual vertices at the midpoints of primal edges
lying in the interior as well. These dual vertices become, consequently, vertices of the dual faces
formed around primal vertices in the interior, however the resulting polygons are characterized by
highly concave shapes (Figure 4.50).
184 Paul-Louis George and Houman Borouchaki, “Delaunay Triangulation and Meshing - Application to Finite
Elements”, Editions HERMES, 1998.
185 Rao V. Garimella, Jibum Kim, and Markus Berndt, “Polyhedral mesh generation and optimization for non-
manifold domains”, Proceedings of the 22nd International Meshing Roundtable, pages 313-330. Springer
International Publishing, 2014.
120
186 Rao V. Garimella, Jibum Kim, and Markus Berndt, “Polyhedral Mesh Generation and Optimization for Non-
manifold Domains”, Los Alamos National Laboratory, Los Alamos, NM, USA, 2013.
187 Sang Yong Lee, “Polyhedral Mesh Generation and A Treatise on Concave Geometrical Edges”, 24th International
generation at the viscous layer is also investigated. The polyhedral mesh generated is shown in
Error! Reference source not found.. It is shown that all of the concave polyhedral cells are cut into
convex conical cells. It is noted that this method is very straightforward and can be applicable to any
shape of concave polyhedral cell.
Figure 4.50 (a) Cut of initial tetrahedral mesh of a simple 2-material model (b) Cut of initial polyhedral
mesh showing valid (green) and invalid (red) elements (c) Cut of untangled and optimized polyhedral
mesh (d) Full polyhedral mesh
counterpart of a general bounded polyhedral mesh tends to resemble the primal, tetrahedral mesh,
with the exception at the boundaries. This correspondence emerges in a similar way that the dual
counterpart of a Voronoi tessellation is a Delaunay triangulation/tetrahedralization, and vice versa.
Therefore, for each generation of meshes, the dual mesh that is obtained serves as the primal mesh
for the next iteration. It can, then, be observed that for each generation, the boundary layer gets
approximately half the thickness of that of the input mesh. Since two iterations are needed in order
to cascade from a polyhedral mesh to a tetrahedral dominant and back to a polyhedral one, the
formed boundary layer will conclude to a thickness of a 1/4 factor. It is, however, apparent that with
such an approach it is difficult to control the properties and thickness of the formed boundary layer
and the application of this method seems of limited use.
Figure 4.52 and
Figure 4.53 are displaying the involving concepts for 2D and 3D.
(a) Triangular primal (b) 1st generation dual (c) 2nd generation prime
mesh (Black) and 1st mesh (Red) and 2nd mesh (Black) and 3rd
generation Polygonal generation triangular generation dual mesh
dual mesh (Red) dominant prime mesh (Red)
(Black)
Figure 4.51 Boundary Layer Prisms Generated on a Cascade of a 2D Triangulation and Dual Polyhedron
123
flows makes use of a Delaunay triangulation performed in a locally mapped space [Mavriplis]188-189,
[Vallet et al]190, [Castro-Diaz et al 1995]. By defining a mapped space based on the desired amount
and direction of stretching, an isotropic Delaunay triangulation can be generated in this mapped
space that, when mapped back to physical space, provides the desired stretched triangulation.
Difficulties with such methods involve defining the stretching transformations and determining
suitable point distributions for avoiding obtuse triangular elements.
An alternative to the above approaches is to generate a locally structured or semi structured mesh in
the regions where high stretching is required. One approach [Nakahashi 1987, Ward & Kallinderis
1993] attempts to preserve the mesh structure in the direction normal to the boundary up to a
specified distance away from the boundary, after which fully unstructured isotropic meshing
techniques are employed. Special care must be taken in this case to avoid mesh cross-overs in regions
of concave curvature and to ensure a smooth transition between the structured and unstructured
region of the mesh. Another strategy [L¨ohner]191; [Pirzadeh]192; [Connell & Braaten 1995] consists
of generating a semi structured mesh, where the “stack” of mesh cells emanating from each individual
boundary face may terminate independently from those at other boundary faces, as shown.
Termination of these “advancing-layers” [Pirzadeh]193 is triggered when the local cell aspect-ratio
approaches unity, or when cross-over with other cells is detected, such as in concave corners. The
remaining region is then gridded with a conventional isotropic unstructured mesh generation
approach. The resulting structured or semi structured meshes can either be conserved as local
structured entities of quadrilaterals in two dimensions and prisms in three dimensions (since the
surface grid is generally assumed to be triangular), or the different element types may be divided
into triangles or tetrahedral in two or three dimensions, respectively.
188 Mavriplis, DJ. ”Adaptive mesh generation for viscous flows using Delaunay triangulation”, Journal
computational. Phys. 1991.
189 Mavriplis, DJ, ”Unstructured and adaptive mesh generation for high-Reynolds number viscous
flows”Proceedings of the International Conference on Numerical Grid Generation: Computational Fluid Dynamics
and Related Fields, 3rd Barcelona, Spain, ed. AS Arcilla, J Hauser, PR Eisman, JF Thompson, pp. 79–92. New York:
North-Holland, 1991.
190 Vallet MG, Hecht F, Mantel B., “Anisotropic control of mesh generation based upon a Voronoi type method”.
191 L¨ohner R.,” Matching semi-structured and unstructured grids for Navier-Stokes calculations”, AIAA 1993.
192 Pirzadeh S.,”Viscous unstructured three dimensional grids by the advancing-layers method”, AIAA, 1994.
193 Pirzadeh S. 1994, AIAA J. 32(8):1735–37.
125
quadrilateral and triangular mesh in two dimensions and associated control-volumes with edge-
based fluxes for a vertex-based scheme. For a purely quadrilateral or hexahedral mesh, the dual mesh
also contains quadrilateral or hexahedral elements, and the number of vertices and edges in the
original and dual meshes is identical.
For triangular or tetrahedral
meshes, the number of dual mesh
vertices is larger than the number of
original mesh vertices. This is due to
the fact that a triangular mesh
contains twice as many triangles as
vertices (neglecting boundary
effects), and a tetrahedral mesh five
to six times more elements than
vertices. On the dual mesh, the
degree of a vertex (number of
incoming edges) is fixed and equal to
three for triangular elements, or
four for tetrahedral elements,
whereas on the original mesh, the
degree of each vertex is variable. Figure 4.53 Dual Mesh for Mixed Triangular-Quadrilateral
Similar relationships hold for other Unstructured Mesh
elements such as prisms and
pyramids.
Thus, cell-centered and vertex-based schemes operating on the same grid result in vastly different
discretization when non-quadrilateral or non-hexahedral elements are present. In particular, a cell-
centered scheme can be expected to result in a much larger number of unknowns while generating
relatively simple stencils of fixed size. The vertex-based scheme, on the other hand, will result in a
smaller number of unknowns with larger variable-size stencils. Because of the larger number of
unknowns, cell-centered schemes generally incur larger overheads than vertex-based schemes on
equivalent grids. However, there is evidence to suggest that they also provide more accurate
solutions on equivalent grids. The question of whether the additional overheads are offset by the
increase in accuracy is still an open one, especially since vertex-based schemes operate on more
complex stencils (more fluxes per unknown) than cell-centered schemes.
194 Frink NT.. Recent progress toward a three dimensional unstructured Navier-Stokes flow solver. AIAA 1994.
126
resulting discretization produces a nearest-neighbor stencil and may be implemented as a single loop
over the edges of the mesh, rather than as a two-pass procedure that computes intermediate cell-
based gradients; [Barth]195 and [Mavriplis]196. For non-simplicial meshes, Galerkin finite-element
formulations using bilinear or trilinear variations on quadrilateral or hexahedral elements can be
constructed. The resulting stencils, however, are no longer compact, as they involve vertices within
mesh elements that are not connected by a mesh edge, such as diagonally opposed vertices in
hexahedral elements [Braaten & Connell197].
An alternative strategy for discretizing viscous terms for vertex-based schemes is to employ the
vertex-based gradients already computed in the context of second-order upwind schemes (using a
Green-Gauss integration around the vertex-based control volumes, for example), instead of the
element-based gradients described above. A vertex-based second difference can then be computed
by integrating these gradients themselves around the control-volume boundaries [Luo et al 1993].
This approach enables the viscous term discretization to be assembled on meshes of arbitrary
element types using the same data structures as required for the upwind convection terms. The
principal drawback of this method is that it results in a large stencil that involves neighbors and next
to-neighbors, which on a structured mesh reduces to a stencil of size 2h, where h represents the mesh
spacing. This not only reduces overall accuracy but is also ineffective at damping odd-even
oscillations in the numerical scheme. For high-Reynolds-number flows of practical interest, the
Reynolds-averaged form of the Navier-Stokes equations is generally employed, which requires the
use of additional turbulence-modeling equation(s). Although algebraic models can be implemented
on unstructured grids [Mavriplis]198, they were conceived for simple wall-bounded flows and are
thus ill suited for flows over complex geometries. The current practice is to employ two-equation
models of the K-ε or K-ω type, or simpler one-equation eddy viscosity models [Baldwin & Barth
1992], [Spalart & Allmaras]199. These equations contain convective, diffusive, and source terms that
can be discretized in a manner analogous to the discretization of the flow equations. Turbulence
modeling equations often result in stiff numerical systems, and care must be taken to devise schemes
that preserve positivity of the turbulence quantities at all stages of the solution process. A common
practice is to discretize the convective terms using a first order upwind strategy, from which a
positive scheme that obeys a maximum principle can be obtained.
195 Barth TJ. 1992. Aspects of unstructured grids and finite-element volume solvers for the Euler and Navier
Stokes equations. Von Karman Inst. Lect. Ser., AGARD Publ. R-787
196 Mavriplis DJ. 1995b. A three-dimensional multigrid Reynolds-averaged Navier-Stokes solver for unstructured
divides the aircraft skin into 4-sided domains based on the underlying B-spline representation of the
geometry. It meshes each domain independently using an algorithm based on constrained Delaunay
triangulation, triangle merging and splitting to obtain a quadrilateral mesh, and elliptical smoothing.
Examples of full configuration structural meshes are provided, and a mesh convergence study is
performed to show that element quality can be maintained as the structural mesh is refined. Here,
presented an automatic unstructured quadrilateral mesh generation algorithm for aircraft structures
that uniquely satisfies the four requirements mentioned above. The algorithms starts with a B-spline
surface geometry representation and a list of requested structural members defined in terms of
parametric locations on the surfaces. It then splits the geometry into domains, meshes each domain
independently using Constrained Delaunay triangulation (CDT) as well as merging and splitting
operations, and then applies Laplacian smoothing as a final step.
Geometry Representation
The only requirements on the geometry
representation are that it is continuous and
watertight. Representing the geometry
using untrimmed B-spline surfaces, though
this is not the only choice with which the
structural mesh generation algorithm
would work. B-splines are piecewise
polynomials used frequently in computer-
aided design because of their favorable
mathematical properties: compact support
for a desired order and smoothness, and
flexibility in terms of the number of control
points and polynomial degree. B-spline
surfaces are tensor products of B-spline
curves that maintain the advantages of
smoothness and sparsity. Figure 4.55
illustrates how a conventional wing-body-
tail aircraft geometry can be constructed Figure 4.54 Conventional configuration geometry (a),
final structural mesh (Courtesy of Hwang & Martins)
with 4-sided B-spline surfaces201.
1. Initial domain: We start with a 4-sided domain representing a single B-spline surface, with
the internal members intersecting this surface pre-determined.
2. Discretization: We discretize the boundaries and the interior of the domain. The boundaries
are simply discretized using a global parameter representing the requested resolution. This
guarantees that the bounding edges shared by two neighboring domains always agree on the
boundary nodes because all domains use the same resolution parameter. The interior of the
domain is populated with a grid of points that are spaced based on the sizes of the element
boundaries, as measured from the preview mesh.
3. Triangulation: We perform CDT on the domain while respecting the edges from the
boundaries and from the intersecting structural members.
4. Quad-dominant mesh: From the triangulation, we obtain a quad-dominant mesh by ranking
all potential merges of adjacent triangles based on how close the angles would be to 90
degrees. The triangles are merged according to this ranking until no possible merges remain.
5. Fully-quad mesh: We split all quads into four smaller quads and all triangles into three quads
using its centroid to obtain a fully quad mesh.
6. Smoothing: We perform an elliptical smoothing operator (Laplacian) as the last step.
Figure 4.55 The Six Steps of the Unstructured Quad Meshing Algorithm
Other noticeable sources regarding quad meshing are by [Remacle et al,]202, and [Verma &
Tautges]203.
202 J.-F. Remacle, J. Lambrechts, B. Seny, E. Marchandise, A. Johnen and C. Geuzaine, “Blossom-Quad: a non-
uniform quadrilateral mesh generator using a minimum cost perfect matching algorithm”, Int. J. Numerical
Meth. Eng. 2010; 00:1-6
203 Chaman Singh Verma and Tim Tautges, “Jaal: Engineering a high quality all-quadrilateral mesh generator”,
204 Wikipedia.
205 Mavriplis DJ, “Unstructured mesh generation and adaptively”, VKI Lect. Ser. Computational Fluid Dynamics,
26th, VKI-LS 1995.
206 Braaten ME, Connell SD., “Three dimensional unstructured adaptive multigrid scheme for the Navier-Stokes
multigrid solution schemes 208-209. One of the disadvantages of the edge-based data structure is that
it requires a preprocessing operation to extract a unique list of edges from the list of mesh elements
and to compute the associated edge coefficients. For unsteady flows with dynamic meshes, this
preprocessing must be performed every time the mesh is altered, although this may be done locally.
Additionally, for dynamic grid cases, the element data structures are generally required for
performing mesh motion or adaptation, since edge lists represent a lower-level description of the
mesh210.
Figure 4.56 Comparison of traditional voxel mesh with Simpleware mesh preserving segmented
domains without decreasing data resolution
208 Venkatakrishnan V, Mavriplis DJ., ”Implicit solvers for unstructured meshes”, J. Computational. Phys.
105(1):83–91, 1993.
209 Mavriplis DJ, Venkatakrishnan V., “A unified multigrid solver for the Navier-Stokes equations on mixed element
There are many additional benefits to being able to generate very high-quality, smoothed meshes
from 3D image data. Mesh generation techniques have been integrated into software for calculating
effective material properties from scanned samples, a method available in Physics Modules. This is
particularly useful for those working with scans of materials such as rock samples and fiber
composites who want to quickly obtain statistics and the response of their sample to physics. A
smoothed mesh can be created from a cuboidal sample that does not over-estimate the surface of a
model, and can be adaptively re-meshed without compromising volume and topology (see Figure
4.57). Finite element calculations can then be run using generated meshes to obtain effective
material properties, such as elasticity, permeability and stiffness. This represents a 'black box'
approach, enabling rapid analysis and characterization of complex material samples.
[Link] Methods
[Link].1 Nests
Five nests were purchased from commercial bird nest farms in Selangor, Malaysia. The nests were
harvested from the farms. They were shipped directly to our laboratory. On receipt of the nests, they
were immediately scanned. The vendor confirmed that the provided nests were cleaned and
processed without bleaching agents, and untreated with coloring or artificial preservatives. The nests
were stored in separate closed containers with a relative humidity of 80% and a temperature of 25
°C throughout the research.
[Link].2 CT Scans
μCT scans were performed on a SkyScan 1176 high-resolution μCT (SkyScan, Aartselaar, Belgium).
After adjusting the appropriate parameters for scanning, each nest was positioned on the specimen
stage and scanned with an isotropic resolution of 34.04μm, rotational step of 0.700 degrees, and a 41
ms exposure time (tube voltage 40 kV, tube current 600 μA with no filter).
212Hadass R. Jessel, Sagi Chen, Shmuel Osovski, Sol Efroni, Daniel Rittel & Ido Bachelet, “Design principles of
biologically fabricated avian nests”, Scientific Reports, March 2019.
132
software formats (in this case, approximately 2500 bitmap files), allowing steps of visualization and
assisted segmentation based on image density thresholding of different grayscale intensities. The
following tools and workflow described were applied to all five nests. Image sequence of each μCT
scanned nest was imported with a pixel spacing value of 34.04um in x,y and z with a background type
of 8-bit unsigned integer. The image sequence was resampled by linear interpolating to a pixel size
resolution of 68.1μm to down sample image data. The segmentation was then used to generate the
volumes (binary volumes) that are called masks, which define how the objects fill the space.
Several segmentation tools were used to create the masks from the background image data, which
were modified until they showed a satisfactory mask. There are some artifacts and noise from μCT
data, which can be corrected by filtering when the images are reconstructed. A threshold tool was
used for segmenting the nest models based on grayscale intensities. Changing the threshold values
of two-dimensional regions on the imported stack of images was done in order to select only the nest
and exclude background noise. Grayscale boundaries were set to a lower value of 40 and an upper
value of 255. A Flood-fill tool was used to remove non-connected artifacts from the mask, this
algorithm is a connectivity-based algorithm and was used on the active mask.
A recursive Gaussian filter was used with a sigma value of 1 in each direction to reduce image noise
and reduce detail level. Closed pores with less than 125 voxels were selected and added to the mask
to reduce computational time and to create a higher quality of the generated elements. ScanIP was
used for the 3D volumetric visualization, analysis, and measurement. The morphometric parameters
of the whole nest were calculated by the software. The following parameters used were: mass
density, the volume of the nest, nest surface area, and pore analysis. Average mass density was
defined as the ratio of nest mass (measured with a scale) to nest volume measured by scanIP 3D mask
analysis. Measuring the distribution of the mass density, surface area and closed pores along different
axes of the nest was done by generating a segmented mask for the nest and a separate segmented
mask for the closed pores. A Slice-by-Slice script was written for slicing the masks in yz, xz and xy
coordinate planes and finally the data of the pore and the nest masks were analyzed in every slice. A
pore multi-label mask was generated from the segmented mask of the closed pores.
Generating the multi-label mask was done to interactively visualize and analyze the pore mask that
contained several regions (scattered pores in between the strands of saliva). The pore multi-label
mask was created by labeling disconnected regions within the pore mask, where each distinct region
was given a separate color. Further details available form [Jessel et al.]213.
213Hadass R. Jessel, Sagi Chen, Shmuel Osovski, Sol Efroni, Daniel Rittel & Ido Bachelet, “Design principles of
biologically fabricated avian nests”, Scientific Reports, March 2019.
134
5 Hybrid Meshes
A hybrid grid contains a mixture of structured portions and unstructured portions. It integrates the
structured meshes and the unstructured meshes in an efficient manner. Those parts of the geometry
that are regular can have structured grids and those that are complex can have unstructured grids.
These grids can be non-
conformal which means that grid
lines don’t need to match at block
boundaries214. In recent years
due to accuracy consideration
while capturing the physics (sun-
layer in boundaries), and in the
same time added flexibility in
domain discretization
(automated meshing using
tetrahedral, polyhedral, etc.),
received lots of attention. Figure
5.1 shows a Hybrid mesh
obtained from a STL surface
using an OpenFOAM© meshing Figure 5.1 Hybrid Grid and Steady State Solution
module and solution for a steady-
state incompressible turbulent flow.
Giles MB. Accuracy of node-based solutions on irregular meshes. Eleventh international conference on
216
217D. Moxey∗, M.D. Green, S.J. Sherwin, J. Peir´o, “An isoperimetric approach to high-order curvilinear boundary-
layer meshing”, Computer Methods Applied Mechanics Engineering, 283 (2015) 636–650.
218User Guide STAR-CCM+ Version 8.06. 2013.
137
al.]219. The quality of the resulting elements and the reliability of the meshing procedure thus highly
depend on the computing strategy used to determine the marching directions. Here, we propose to
compute a field of marching directions governed by Laplacian equations. This new approach can
ensure the smooth transition of marching directions, and thereby lead to more desirable element
shapes. To demonstrate the effectiveness of the proposed method for computing the normal vectors,
a comparison was made with the traditional geometric method.
Trimmed (SAMM)
Tetrahedral
Sub-Models
Volume
Data Mesher
Surface Polyhedral
Remesher
Automated Meshing
(Hybrid)
To generate the boundary-layer mesh, it first generated an anisotropic tetrahedral mesh around the
model and then formed the boundary-layer mesh by combining three tetrahedral elements into a
prism. In this software, the vertex normal direction is initially defined as the area weighted average
of the face normal of the manifold of adjacent triangles, and is then smoothed and adjusted as
necessary to guarantee the mesh quality and avoid collisions. Figure 5.8-a presents a cut-out view
of the boundary-layer mesh generated by the proposed method near the intake of the engine. It can
be seen that the normal at nodes of a same layer change in a smooth way, whereas the counterparts
generated using a commercial code change more sharply (see Figure 5.8-b), and stretched elements
can be observed in this region. To evaluate the quality of the generated prismatic elements, the
scaled-aspect-ratio quality measure proposed in the literature was adopted in this study. It has been
219Yao Zheng, Zhoufang Xiao, Jianjun Chen, and Jifa Zhang, “Novel Methodology for Viscous-Layer Meshing by
the Boundary Element Method”, AIAA Journal Vol. 56, No. 1, January 2018.
139
reported that this quality measure in effect combines the measures of triangle shapes and edge
orthogonality220.
Figure 5.8 Meshes Generated by a) Proposed Algorithm and b) Leading Commercial Vendor
grids”, Proc. AIAA CFD Conf., 12th, San Diego. AIAA Pap. 95-1705-CP
223 Baum JD, Luo H, L¨ohner R., ”A new ALE adaptive unstructured methodology for the simulation of moving
different mesh topologies for each simulation, even when the geometry of the problem is unchanged,
parametric studies (typically used in design processes) are complicated by the requirement to
distinguish between grid-induced and physical solution variations. Nevertheless, for problems with
disparate length scales, adaptive meshing is often indispensable for resolving small flow features,
and their full potential awaits the development of more well-founded adaptive criteria.
Mesh adaptation, often referred to as Adaptive Mesh Refinement (AMR), refers to the modification
of an existing mesh so as to accurately capture flow features. Generally, the goal of these
modifications is to improve resolution of flow features without excessive increase in computational
effort. We shall discuss in next chapter on some of the concepts important in mesh adaptation. Mesh
adaptation strategies can usually be classified as one of three general types: R-refinement, H-
refinement, or P-refinement as depicted in Figure 5.9.
R-refinement
This is the modification of mesh resolution without changing the number of nodes or cells
present in a mesh or the connectivity of a mesh. The increase in resolution is made by moving the
grid points into regions of activity, which results in a greater clustering of points in those regions.
The movement of the nodes can be controlled in various ways. On common technique is to treat the
mesh as if it is an elastic solid and solve a system equations (subject to some forcing) that deforms
the original mesh. Care must be taken, however, that no problems due to excessive grid skewness
arise. (See Figure 5.9 (a)).
H-refinement
The modification of mesh resolution by changing the mesh connectivity. Depending upon the
technique used, this may not result in a change in the overall number of grid cells or grid points. The
simplest strategy for this type of refinement subdivides cells, while more complex procedures may
insert or remove nodes (or cells) to change the overall mesh topology. In the subdivision case, every
"parent cell" is divided into "child cells". The choice of which cells are to be divided is addressed in
Figure 5.9 (b). For every parent cell, a new point is added on each face. For 2D quadrilaterals, a
new point is added at the cell centroid also. On joining these points, we get 4 new "child cells”, (3 in
tetrahedral). Thus, every quad parent gives rise to four new off springs. The advantage of such a
procedure is that the overall mesh topology remains the same (with the child cells taking the place
of the parent cell in the connectivity arrangement). It is easy to see that the subdivision process
increases both the number of points and the number of cells. An additional point to be noted is that
this type of mesh adaptation can lead to what are called "hanging nodes." In 2D, this happens when
one of the cells sharing a face is divided and the other is not, as shown in Figure 5.9 (c). For two
quad cells, one cell is divided into four quads and other remains as it is. The highlighted node is the
hanging node. This leads to a node on the face between the two cells which does not belong (properly)
141
to both of the cells. The node "hangs" on the face, and one of the cells becomes an arbitrary
polyhedron. In the above case, the topology seemingly remains same, but the right (undivided) cell
actually has five faces. Figure 5.10 show a mesh modeling supersonic flow around a space shuttle
in which h-method adaptivity has been employed to optimize the mesh structure to produce accurate
simulation of flow features important in assessing the performance of the design such as the profiles
of pressure distribution shown225.
Figure 5.10 An H-refinement mesh about a Shuttle-like body (left) and Computed CP (right)
225 The National Academies Press, “Research Directions In Computational Mechanics”, 1991.
142
being directionally dependent, as opposed to isotropy, which implies identical properties in all
directions. In isotropic refinement, new points are added in both the directions, say x and y. In
anisotropic refinement, the division takes place in one predominant direction (see Figure 5.11).
Thus, in short, an isotropic refinement for a quad would produce four new off springs, while
anisotropic refinement would only generate two. Anisotropic refinement is made use of, when the
user knows that the flow feature is predominantly to be resolved in one direction, for e.g. Boundary
Layers. However, there are situations where an anisotropic refinement alone may not be satisfactory,
such as a shock-boundary layer interaction.
P-refinement
A very popular tool in Finite Element Modelling (FEM) rather than in Finite Volume Modelling
(FVM), it achieves resolution by increasing the order of accuracy of the polynomial in each element
(or cell). In AMR, the selection of "parent cells" to be divided is made on the basis of regions where
there is appreciable flow activity. It is well known that in compressible flows, the major features
would include Shocks, Boundary Layers and Shear Layers, Vortex flows, Mach Stem, Expansion
fans and the like. It can also be seen that each feature has some "physical signature" that can be
numerically exploited. For e.g., Shocks always involve a density/pressure jump and can be detected
by their gradients, whereas boundary layers are always associated with rotationally and hence can
be detected using curl of velocity. In compressible flows, the velocity divergence, which is a measure
of compressibility is also a good choice for shocks and expansions. These sensing parameters which
can indicate regions of flow where there are activity are referred to as Error Indicators and are very
popular in AMR for CFD. The spectral order p of the approximation is raised or lowered to control
error. In finite element methods or boundary element methods, the order p corresponds to the
degree of the polynomial shape function used over an element. Just as refinement is possible by Error
Indicators as mentioned above, certain other issues also assume relevance. Error Indicators do detect
regions for refinement, they do not actually tell if the resolution is good enough at any given time. In
fact the issue is very severe for shocks, the smaller the cell, the higher the gradient and the indicator
would keep on picking the region, unless a threshold value is provided. Further, many users make
use of conservative values while refining a domain and generally end up in refining more than the
essential portion of the grid, though not the complete domain. These refined regions are unnecessary
and are in strictest sense, contribute to unnecessary computational effort. It is at this juncture, that
reliable and reasonable measure of cell error become necessary to do the process of "coarsening",
which would reduce the above-said unnecessary refinement, with a view towards generating an
"optimal mesh". The measures are given by sensors referred to as Error Estimators, literature on
which is in abundance in FEM, though these are very rare in FVM. Control of the refinement and/or
coarsening via the error indicators is often undertaken by using either the 'solution gradientt' or
'solution curvature'. Hence the refinement variable coupled with the refinement method and its
limits all need to be considered when applying mesh adaptation.
226 Cavallo,
P.A., Sinha, N., and Feldman, G.M., “Parallel Unstructured Mesh Adaptation For Transient Moving Body
And Aeropropulsive Applications”, Combustion Research and Flow Technology, Inc. (CRAFT Tech), Pipersville, PA.
143
throughout 3D complex domains227. The aim is to reduce the level of user input required to generate
a mesh. The primary motivation for the creation of this system is for the production of suitable linear
meshes that are sufficiently coarse for high-order mesh generation purposes. Resolution is
automatically increased in regions of high curvature, with the system only requiring three
parameters from the user to successfully generate the sizing distribution.
227M. Turner, D. Moxeya, J. Peir´, “Automatic mesh sizing specification of complex three dimensional domains
using an octree structure”, 24th International Meshing Roundtable (IMR24).
144
In this example we consider the model of an engine inlet with a center body. The initial CFD mesh of
119,861 tetrahedra was generated with the Finite Octree mesh generator228. A 4-level multigrid was
then generated by means of uniform coarsening marking all the edges for DE-refinement, obtaining
coarser levels of 24,619, 6,477 and 1,819 tetrahedra, respectively. We set a limit of 1600 to the
largest dihedral angle generated during coarsening, while we targeted for optimization all the
regions with at least ne angle above 1450. The coarser meshes are presented in Figure 5.13 (a),
(b), (c) and (d). As opposed to the refinement procedure, an improvement of the mesh quality
cannot be expected % 1 since coarsening introduces constraints by deleting degrees of freedom.
Nonetheless, the coarsening procedure was able to reduce the number of elements by a factor or
approximately 74 in three levels. The final mesh has 1,710 elements, where 96% of the them have a
largest dihedral angle below the value of 1450. The usage of mesh (d) for numerical computations is
clearly limited, since it gives a poor discretization of the complex curved model, but the goal of this
example is mainly to show that we are able to control the quality of the meshes even for a large
coarsening ratio. Selection or the right coarse mesh for a specific problem depends strongly on the
type of analysis to perform and it is not investigated here. The effect of locally improving the mash
using the retriangulation procedures during coarsening was investigated. The initial mesh was
redefined six times without optimization after each edge collapsing. The final coarse mesh is denoted
228 Hierarchy of successively coarser meshes obtained by uniform coarsening for the nacelle model. (a) Level
1: initial base mesh (119,861 tetrahedra); (b) Level 2: first DE-refined mesh (24,619 tetrahedra); (c) [Link] 3:
second DE-refined mesh (6,477 tetrahedra); (d) Level 4: third DE-refined mesh (1,819 tetrahedra)
145
by 6,512 elements. In this case, for facilitating the coarsening process, the constraint on the largest
dihedral angle was relaxed from 1600 to 1750.
229 H.L. De Cougny and MS. Shephard, 'Local modification tools for adaptive mesh enrichment and their
parallelization', Scientific Computation Research Center, RPI, submitted to Comp. Meth Appl. Mech.
230 Carlo L. Bottasso, Ottmar Klaas, Mark S. Shephard, “Data Structures and Mesh Modification Tools for
Unstructured Multigrid Adaptive Techniques”, Article in Engineering With Computers · January 1998.
146
The splitting procedures introduce new vertices on one or more edges of a region. The new
configuration is then given by applying the corresponding refinement subdivision pattern. The
procedures are region based, in the sense that the algorithm tries to improve all regions which violate
a given mesh quality criterion. Given the impact that large dihedral angles usually have on the
condition number of the discrete problem that approximates the set of PDE's to be solved, we
typically use dihedral angles as optimization targets. As a first. step, the dihedral angles of all
elements considered for optimization are calculated. Each element violating a user defined threshold
value is put into a linear list. Depending on the configuration of each element in the list (number of
dihedral angles above the threshold value, topological or geometrical constraints, etc.), a suitable
subset of the above mentioned optimization procedures is applied to eliminate that element in favor
of improved elements.
The procedures might fail for a specific element if the resulting configuration is topologically or
geometrically not valid, or if they lead to a degradation of the quality of any element involved in that
147
local retriangulation. In this case, or if the element is improved but the largest dihedral angle is still
above the threshold value, the element is considered for improvement in a second pass, after all
elements have been processed. Since the neighborhood of the elements that failed in the first pass
may have been modified, it is possible that they can be fixed in a second pass. The procedure is
repeated until a given threshold value is reached or no further improvement can be achieved. The
local retriangulation algorithm is used to improve the meshes produced by the refinement and
coarsening procedures. Since the refinement is an edge based operation that takes into account all
passible subdivision patterns, refining an element is a localized procedure that does not affect the
neighborhood of that element, and consequently the local retriangulation can be performed after the
refinement procedure is completed.
The situation is different when coarsening is considered. The coarsening procedure itself tends to
give a mesh of poor quality, since collapsing of an edge has a strong costly negative impact on the
dihedral angles of the surrounding elements. prevent losing control of the mesh quality, especially
when multiple coarsening steps are performed, it. is necessary to introduce a threshold value to be
satisfied by the largest dihedral angle in each of the newly generated elements. However, this usually
represents a strong constraint and prevents a large coarsening ratio. It is therefore advantageous to
improve the neighborhood of a to-be-removed element before picking the next edge for collapsing.
This can be done by sending a list of regions connected to the target vertex of the edge collapsing to
the local retriangulation procedure, after each edge collapsing is performed. Such a locally improved
mesh makes the next edge collapsing more likely to lead to acceptable elements. Local procedures,
such as the ones here considered can only lead to optima with respect to the quality of the
triangulation. Nonetheless, these tools have been proven to be valuable in controlling the
degradation of the mesh quality during its adaptive modification. They also find application in the
context of curved model boundaries, when snapping of newly created vertices can create invalid or
poorly shaped regions. In this case, local retriangulation tools can be used for eliminating those
regions that prevent snapping231 .
ρ0 σ
ρ where τ min Eq. 5.1
τ σ max
And τ represent the dilatation of the tetrahedron in each of three principal directions, and are
equivalent to the singular values of the transformation matrix. Note that the more deformed the
cell, the larger the prescribed spacing, and hence an increased amount of coarsening will be
performed. This improves the likelihood of the distorted cell being removed. Conversely, the
231 H.L. De Cougny and MS. Shephard, 'Local modification tools for adaptive mesh enrichment and their
parallelization', Scientific Computation Research Center, RPI, 'Eoy, NY, submitted to Comp. Meth Appl. Mech.
232 Biswas, R., and Strawn, R.C., "Tetrahedral and Hexahedral Mesh Adaptation for CFD Problems", NAS Technical
enrichment procedures are invoked by specifying a smaller spacing. After the coarsening phase, an
appropriate gradation of cell size is restored by solving a Laplace equation for ρ, using the boundary
mesh spacing as Dirichlet boundary conditions. An approximate solution is obtained by summing the
difference in the point spacing for all edges N incident to the node using a relaxation technique.
ρ n 1 n ε N n n
N k 1
ρ ρk ρ Eq. 5.2
Prescribing new point spacing also drives solution-based coarsening and refinement. A variation on
the solution error estimate developed in two dimensions by233 has been implemented in three
dimensions for arbitrary mesh topologies. The method is based on forming a higher order
approximation of the solution at each mesh point using a least squares approach. The difference
between the higher order reconstruction from incident nodes and the current solution forms the
error measurement. If the current mesh is sufficiently fine to support the spatial variation in the
solution, the estimated error will be low, allowing coarsening to take place. Conversely, a high degree
of error indicates additional refinement is needed.
233 Ilinca,C., Zhang, X.D., Trépanier, J.-Y., and Camarero, R., “A Comparison of Three Error Estimation Techniques
for Finite-Volume Solutions of Compressible Flows, “Computer Methods in Applied Mechanics and Engineering,
Vol. 189, pp. 1277-1294, 2000.
234 Simone Crippa, “Application of Novel Hybrid Mesh Generation Methodologies for Improved Unstructured CFD
Simulations”, 28th AIAA Applied Aerodynamics Conference - CFD Drag Prediction Workshop Results, 2010.
149
1 − 𝑞1𝑛+1 1 − 𝑞2𝑛+1
a1 = a2
1 − q1 1 − q2
Eq. 5.4
Hereby the relation between a1 and a2, as well as N1 and N2, is set by the scaling factor ∛3; for
example, with grid level 2 being finer than grid level 1, follows a2 = a1/∛3 and N2 = N1 / ∛ 3. Starting
with a sensible value for the expansion ratio q1 and a total amount of layers N1, the only unknown in
Eq. 5.4 is q2, which can be computed iteratively. For the DPW4 grid-convergence family, the values
for the coarse and _ne levels are derived from the medium grid. The first layer spacings given in the
gridding guidelines are used, as the scaling factor of 1.5 is sufficiently close to ∛3. The resulting values
for the near-field mesh are summarized in Table 5.1.
Note that for full consistency, the number of wall-normal layers with constant spacing should also be
scaled by ∛ 3, but neglecting this was not deemed of primary influence to the results. Furthermore,
note that the expansion ratios of fulfill the requirement given in the gridding guidelines only for the
medium and fine grids. The expansion ratio of the coarse grid is larger than the defined, maximal
value of 1.25. A comparison of the three final grids is shown in Figure 5.16, where the self-similar
relation between the three levels is visible in the highlighted region. In wall-tangential direction, the
factor of approx. 1.5 can be recognized by the cascade of 2, 3 and 4.5 quadrilateral elements. A similar
wall-normal total layer extent is also recognizable.
Figure 5.16 Comparison of Coarse, Medium and Fine Grids: lateral view on fore-body with Symmetry.
150
models, do not feature these small separations. An insight gained through the adjoint dissipation
error evaluation, is that the wing-body and tail plane-body junction regions are not discretized
sufficiently well. The span-wise field cut at x =1400 inch (wing-body) reveals that the contracted
near-field mesh leads to very large tetrahedra in the concave corners that are not adequate to resolve
the edge of the boundary layer, see Figure 5.18. A simple solution to this problem is not known,
thus this problematic region was not fully fixed for the contribution to DPW4. The near-field layer
Figure 5.18 local dissipation error of drag coefficient on field cut-plane at x =1400 inch;
isometric/downstream view
Figure 5.17 Comparison of SolarChimera5 and Solar Grid at x = 1454 inch plane; Viscous Wall Surface
in Dark
grey, _eld cut in white.
contraction in these concave regions cannot be completely excluded from the Solar grid generation
process, thus a solution is sought on the solver side. Since recently,9 the TAU code has the capability
to compute on chimera (overset) grids with overlapping viscous boundaries. To make use of this
capability, a fully hexahedral grid was generated with a C-H topology around the complete wing
airfoil and some of the wake at the wing root. The grid spacing in the overlap/interpolation region
151
is similar to the medium Solar grid, but the resolution at the wing-body junction is improved due to
the chosen H-topology, as opposed to an O-grid topology. The five million elements, hexahedral grid
is referred to as SolarChimera5, whereas the initial medium grid plainly Solar. A comparison
between the Solar and SolarChimera5 grids at the wing-body junction is shown in Figure 5.17.
5.5 Case Study 1 - Hybrid Unstructured Meshes for Common Research Model (CRM &
JSM) via ANSA®
In this work an unstructured meshing approach is taken using the commercial software ANSA®,
developed by BETA-CAE Systems [Skaperdas and Ashton]235. This describes the meshing process
within ANSA as well as an
analysis of the unstructured CRM Common Research Model
grids, similar to the tools GMGW Geometry and Mesh Generation Workshop
provided in CD-Adapco®. It is HLPW High Lift Prediction Work
produced for the 1st AIAA JAXA Japan Aerospace Exploration Agency
Geometry and Meshing
JSM JAXA high-lift configuration Standard Model
Workshop and 3 AIAA High-
rd
MAC Mean Aerodynamic Chord
Lift Workshop. Particular focus
STEP Standard for the Exchange of Product
is made on the process to
generate suitable grids for
Table 5.2 Abbreviations
various CFD codes including
OpenFOAM and Star-CCM+.
Some of the Abbreviations is been provided in Table 5.2 for clarity.
Vangelis Skaperdas, and Neil Ashton, “Development of high-quality hybrid unstructured meshes for the
235
Geometry Handling
The geometries for the CRM and
JSM high-lift models were
downloaded from the HLPW-3
website236. A multitude of CAD file
formats were available and for
this project the STEP format was
Figure 5.19 JSM Model with Engine Nacelle
selected for both CRM and JSM
models.
zones, the slat and the whole remaining model. In order to facilitate meshing and pre-processing, we
separated the model in 17 zones as revealed in Figure 5.20. Two versions of the CRM model are
available237. One where the inboard flap is unconnected referred to as “gapped”) and one where the
gaps between the inboard flap and outboard flap and main fuselage were sealed (referred to as
“sealed”). In the latter case the worst proximity areas are removed, facilitating layers generation.
Figure 5.21 Computational Domain and Separation of Zones of the JSM Model with Engine Nacelle
Vangelis Skaperdas, and Neil Ashton, “Development of high-quality hybrid unstructured meshes for the
237
238 Vangelis Skaperdas, and Neil Ashton, “Development of high-quality hybrid unstructured meshes for the
GMGW-1 workshop using ANSA”, AIAA, January 2018.
239 Vangelis Skaperdas, and Neil Ashton, “Development of high-quality hybrid unstructured meshes for the
Figure 5.22 Three Locations of Problematic Areas of the JSM Geometry for the Generation of
Boundary Layers
Surface Meshing
ANSA provides the user with full control and automation in meshing though the Batch Mesh tool.
Batch Mesh is a template driven meshing tool that consists of meshing scenarios for surface meshing,
layers generation and volume meshing. Each scenario consists of several sessions and each session
contains different zones of the model and the corresponding meshing characteristics. The contents
of each session can be assigned manually, or via standard name convention filters of the zones of the
model (like name contains, name starts with, name ends with etc.). Using filters allows more
automation, since for every new design variant, the sessions can be populated automatically. One of
the advantages of Batch Mesh tool is the fact that a scenario can be defined once, saved and then run
several times for every new geometry, ensuring automation and mesh consistency for every variant.
The CFD meshing algorithm in ANSA creates a high quality surface mesh, controlled by the following
settings for each session of the Batch Mesh:
In addition to these mesh controls, the user can create Size Boxes to limit the maximum length of the
surface and the volume mesh in different areas. Figure 5.23 displays the Batch Mesh surface
meshing scenario that contains eight sessions, each with different zone contents and mesh
specifications for the Medium JSM model. Ten Size Boxes were used, each one with a larger maximum
length limit the further away of the aircraft. Size Boxes case be cylindrical or hexahedral and can also
be manipulated by the user to take various curved forms aligned to the flow field where necessary.
The only feature currently missing from Batch Mesh tool is the creation of anisotropic mesh, usually
155
at the leading and trailing edges. The reason for this is that anisotropic mesh is not used in the
automotive industry where ANSA usage was built on, while if it offers a great advantage for aerospace
meshing. The main difference between these two industries with respect to meshing, is that in the
aerospace industry the dimensions of the wings are much larger, while they require very fine
curvature refinement. The flow gradients are considerably larger in the chord wise direction than in
the span wise direction and as a result anisotropic mesh provides the most efficient refinement
method. For the same level of curvature refinement on a typical wing geometry, an isotropic mesh
may require at least three times more elements than an equivalent anisotropic mesh. In addition, in
the aerospace industry the total height of the boundary layer elements is considerably larger than
that used in the automotive industry.
Figure 5.23 Batch Mesh setup for the JSM Model with Size Boxes for Local Mesh Control
In Figure 5.24 the advantage of anisotropic meshing is obvious as in highly convex areas like leading
and trailing edges, starting from a span wise anisotropy allows the layer elements to improve in
quality with every new step. In the end, the top cap of the layers is perfectly isotropic and this is the
best basis for the remaining pyramid and tetra meshing to follow. In contrast, when starting from an
isotropic mesh, the mesh quality of the layers deteriorates with each step. For the case of the isotropic
surface mesh, the top cap does not have a good quality and this makes the remaining volume meshing
process harder. Therefore, the surface meshing of all the models was performed with the following
combination of manual and Batch Mesh automatic operations:
Identification and manual meshing of all trailing edges with map quad mesh of specific rows
of elements.
Automatic Batch Meshing of all remaining surfaces of the model.
Manual imprint of anisotropic mesh patterns away from the trailing edges and along all
leading edges.
Note how the anisotropic mesh dies out near the ends with the span wise imposed nodal
distribution, in order to smoothly transit to isotropic mesh. The first surface scenarios for both HL-
CRM and JSM models were performed for the medium mesh size according to the meshing guidelines
for rows of elements across the trailing edges and mesh resolution. From the medium meshes we
generated the coarse and fine versions by simply scaling up and down respectively the assigned
element length of all sessions of Batch Mesh scenario. Of course when dealing with unstructured
156
mesh and especially with anisotropic features and Size Boxes, it is not easy to determine a priori the
scale length factor in order to achieve the desired volume cell count. This can only be done for
structured hex meshes, where cell number and edge length scale directly. Therefore, after certain
trial and error runs, we ended up with a length scale multiplying factor of 1.2 to 1.25. This resulted
in volume cell count changes of 1.6 to 1.8 between the different levels of refinement.
Figure 5.24 Resulting Layers for Isotropic Surface Mesh (Top) and Anisotropic (Bottom)
Using the batch mesh and simply changing the mesh type of all sessions, we also generated a quad
dominant surface mesh for the coarse CRM case. Figure 5.25 displays the two variations of surface
mesh, tridiagonal dominant and quad dominant. The quad dominant mesh has 30% fewer shell
elements for the same mesh resolution. The only problem that may arise with a quad dominant mesh
is that due to the fact that the near wall layers have extreme aspect ratios, there may be curved areas
of the model where these quads may also have considerable warping. The combination of warping
157
and high aspect ratio may lead to problems in the solution. At the time of the HLPW-3 the quad
dominant meshes were not prepared, so no simulations were performed for them. Currently ANSA
development work for the next version focuses on the integration of anisotropic meshing of leading
and trailing edges inside Batch Mesh tool, thereby eliminating any manual work for the user.
Figure 5.25 Close ups of Coarse CRM Gapped Flap Model with Comparison of Tridiagonal Dominant
(Top) vs. Quad Dominant (Bottom) Surface Mesh
Volume Meshing
Volume meshing is also a part of the Batch Mesh. Two scenarios were created, one for layers and one
for volume meshing. The scenarios were setup once for the CRM and JSM models and then with
simple modifications in their parameters (growth rate, max size etc.) were executed automatically in
order to generate the final volume meshes.
flaps and slats, where the gaps are small. ANSA layers generation algorithm is very robust and
controllable, with characteristics like:
Layers squeezing and collapsing modes work in combination. The user can specify a maximum aspect
ratio that the elements can attain when squeezed in order to overcome proximities. If this limit is
exceeded then ANSA switches to local layer collapsing. Collapsing works for both penta and hex
elements. Depending on the number of nodes that need to be collapsed in a certain area, pyramid and
tetra elements are created out of the original penta and hex elements. No collapsing of course must
take place at the first layers as that would result to very skewed tetras and pyramids. As the layers
grow thicker however, collapsing does not compromise the quality of the resulting elements. In
contrast to the recommended meshing guidelines of the workshop, the first layer height was kept
constant throughout the mesh refinement study. The reason for this is that the initial simulations
that were performed showed that a y+ value of just below 1 was achieved with these values, so there
was no reason to change this parameter, as it was set to its optimum value.
During the mesh refinement study the growth rate of the layers was reduced from 1.25 for the coarse
mesh to 1.1 for the fine mesh. The first two layers were kept with constant height, as prescribed by
the meshing guidelines. The number of layers was increased for the finer meshes in order to maintain
the same total boundary layer height. In addition, the number of layers differed between the main
wing and the fuselage. The reason for this was that the surface mesh length on the wing was smaller
than that of the fuselage. As a result we needed more layers from the fuselage in order to reach a
layer thickness with aspect ratio just below 1 so as to have a nice volume ratio between the last layer
and the first tetra or pyramid to connect on it240. Hex layers growing from quad surface mesh are also
checked in every step for warping. In certain cases, due to local squeezing at proximities, if the top
cap warping exceeds a user specified threshold, ANSA splits the hex into two pentas, so as to avoid
having highly warped quads that would have a negative effect in the pyramid generation for the tetra
meshing. For further details regarding the meshing, consult the241.
240 Vangelis Skaperdas, and Neil Ashton, “Development of high-quality hybrid unstructured meshes for the
GMGW-1 workshop using ANSA”, AIAA, January 2018.
241 See Above.
159
manages to generate high quality tetra mesh at the speed of one to three million tetras per minute,
depending on the complexity of the domain and the presence of additional refinement Size Boxes.
The growth rate of the volume mesh was set to 1.15. Figure 5.26 shows the medium JSM mesh.
[Link] CRM
The flow conditions for the CRM geometry are a Reynolds number of Re = 3.2 x 106 and a Mach
number of M = 0.2, however as the geometry is full-scale the flow parameters are adjusted to achieve
the required Reynolds number. The viscosity is computed using Sutherlands Law and the density is
based upon the ideal gas law. Simulations are conducted at 8 & 16 degrees angle of attack and for
both STAR-CCM+ and OpenFOAM the Spalart-Allmaras turbulence model is used. Figure 5.27
displays the Lift and Drag coefficients for the CRM geometry at 8 degree for STAR-CCM+ and
OpenFOAM. There is a clear mesh refinement trend for both codes, suggesting that even finer meshes
would be required to reach a mesh converged solution for the lift. Given the finest mesh is 269 M
242N. Ashton, M. Fuchs, C. Mockett, and B. Buda, “EC135 Helicopter Fuselage, ”Go4Hybrid: Grey Area Mitigation
for Hybrid RANS-LES Methods”, C. Mockett, W. Haase, and D. Schwamborn, Springer International Publishing,
2018, pp. 2013–2015.
160
cells, it is likely that a meshes up to a billion cells might be required. The agreement between
OpenFOAM and STAR-CCM+ is within 0.5% for the lift coefficient and less than 2% for the drag
coefficient. They show the same outboard flap separation with the size and position being almost
identical. This less than 2% difference to a popular commercial CFD code would suggest that
OpenFOAM is a competitive tool for engineering analysis, which reflects the recent findings of
[Ashton et al.]243.
Figure 5.27 CL and CD for CRM Geometry at 8 degree AoA using OpenFOAM and STAR-CCM+
[Link] JSM
Close agreement between OpenFOAM and STAR-CCM+ was observed for the CRM geometry,
however without experimental data it is not possible to assess the accuracy. The JAXA Standard
Model (JSM) high-lift model is similar to the CRM but has a detailed experimental data set making it
ideal to assess the accuracy of OpenFOAM and STAR-CCM+. The flow conditions are a Reynolds
number of Re =1.9 x106 and a Mach number of M = 0.172. The viscosity is computed using
Sutherlands Law and the density is based upon the ideal gas law. Simulations are conducted at 4.36,
10.47, 14.54, 18.58, 20.59, 21.57degrees angle of attack and all simulations use the Spalart Allmaras
turbulence model. Figure 5.28 shows the lift and drag coefficient throughout the angle of attack
range using OpenFOAM and STAR-CCM+ for the geometry (no nacelle). It can be seen that there is
again close agreement between STAR-CCM+ and OpenFOAM, with only changes becoming clear in
the post-stall region. At 4.36 degree, the flow is completely attached in both CFD and the experiment,
which is reflected in the close agreement between CFD and experimental for the lift in the lower angle
of attack range. At 18.57 degree, just before stall, the agreement in the total lift is close, however the
flow structures start to exhibit slightly too much stall in the outboard wing section. By 21.57 degree
where the flow is now stalled, the agreement is close but actually for the wrong reason. Whereas the
experimental flow-vis shows both separation at the root and the most outboard region of the wing,
the CFD (both STAR-CCM+ and OpenFOAM) show almost no separation at the root and much larger
separation at the outboard of the wing. The total amount of separation is roughly similar which
explains why the lift and to a lesser extent the drag follow the experimental values. Given that all
simulations were undertaken with the Spalart-Allmaras model with no corrections for curvature nor
243N. Ashton, M. Fuchs, C. Mockett, and B. Buda, “EC135 Helicopter Fuselage,” in Go4Hybrid: Grey Area
Mitigation for Hybrid RANS-LES Methods, vol. 134, C. Mockett, W. Haase, and D. Schwamborn, Eds. Cham:
Springer International Publishing, 2018, pp. 2013–2015.
161
anisotropy of the flow it is not surprising that the results do not perfectly correlate with the
experiment. More details results for these cases are shown in [Ashton et al.]244. The results from both
the CRM and JSM have shown that both STAR-CCM+ and OpenFOAM on ANSA generated grids can
perform well for complex full aircraft geometries and in the case of the JSM, match experimental
values up to the stall region. The next steps are to properly assess the code for transonic flows, which
is the typical flow regime for industrial aerospace simulations.
Figure 5.28 Lift and Drag Coefficients for the JSM Geometry using OpenFOAM and STAR-CCM+
244 N. Ashton and V. Skaperdas, “Verification and Validation of OpenFOAM for High-Lift Aircraft Flows,” AIAA
Journal, 2017.
245 Zhang Laiping, Zhao Zhong, Chang Xinghua, He Xin, “A 3D hybrid grid generation technique and a
NP, editors. Handbook of grid generation. CRC Press; 1999 chapter 12.
248 Sebastien E. Numerical simulation and drag extraction using patched grid calculations. AIAA Paper 2003.
162
or chimera grids249 and unstructured grids250 have been proposed in the last decades. More recently,
mixed or hybrid grids including many different cell types have gained popularity, because they
integrate the advantages of both structured and unstructured meshes to improve efficiency and
accuracy. For example, hybrid (prism/tetrahedral) grids251-252, mixed grids including
(tetrahedral/prism/pyramid/hexahedral) cells253, adaptive cartesian grid methods254-255, and
(cartesian/tetrahedral/prismatic) grids256 have been used in many applications. It is relatively easier
to use unstructured grids over complex configurations, even for viscous flow simulations, where the
anisotropic tetrahedrons are used in boundary layer. Generally, the anisotropic tetrahedrons can be
automatically generated by an advancing front method257. However, the enormous total grid number
will reduce the efficiency of the viscous flow simulations over complex geometries. More
importantly, the forfeiture of orthogonality will influence the simulation accuracy of boundary
layer. Therefore, the prism grids, even unstructured hexahedral grids, may be a better choice in
the boundary layer. The traditional prism grid generation method is the advancing layer method in
which the prism grids are generated layer-by-layer in the normal direction from the surface
triangular grids on the solid wall. Alternatively, the idea of solving the hyperbolic equations to
generate structured grids has been introduced to generate prism grids258-259. However, for some real-
world configurations, these methods will fail in the concave and/or convex regions, because the
marching vector may be invisible from some of the nodes in its node-manifold260. Examples include
the trailing edge of an airfoil, the tip of a sharp nose, the wing-body conjunction, the tail of a store
and the nacelles of aircraft. So it is still difficult to automatically generate viscous grids in the
boundary layer. Since the anisotropic tetrahedrons can be generated fully automatically, we can
agglomerate them into prisms in the boundary layer and then improve the grid quality of the pure
anisotropic tetrahedron grids. That is the basic idea of present work.
On the other hand, the computation efficiency is another key issue for turbulence flow simulations
over complex configurations, because the total grid number may be several ten M, even up to
hundreds of M, for a real-life aircraft. The high aspect ratio grids in boundary layer will bring about
very strong stiffness during time-iteration, resulting in lower converging efficiency. The multigrid
algorithm is an effective method to improve the efficiency. After [Fedorenko]’s development of the
249 Benek A, Buning PG, Steger JL. A 3-D Chimera grid embedding technique. AIAA Paper 1985-1523; 1985.
250 Weatherill NP. Unstructured grids: procedures and applications. In: Thompson JF, Soni BK, Weatherill NP,
editors. Handbook of grid generation. CRC Press; 1999 chapter 26.
251 Kallinderis Y, Khawaja A, McMorris H. Hybrid prismatic/tetrahedral grid generation for complex geometries.
AIAA J, 1996.
252 Pirzadeh S. Three-dimensional unstructured viscous grids by the advancing-layers method. AIAA J 1996.
253 Coirier WJ, Jorgenson PCE. A mixed volume grid approach for the Euler and Navier–Stokes equations. AIAA
1996;34(5):938–45.
255 Wang ZJ, Chen RF. Anisotropic solution-adaptive viscous Cartesian grid method for turbulent flow simulation.
AIAA J 2002;40(10):1969–78.
256 Zhang LP, Yang YJ, Zhang HX. Numerical simulations of 3D inviscid/viscous flow fields on
Cartesian/unstructured/prismatic hybrid grids. Proceedings of the fourth Asian CFD conference, Mianyang,
Sichuan, China; September 2000.
257 Lohner R, Parikh P. Generation of three-dimensional unstructured grids by the advancing front method. Int
Computing 1992.
259 Matsuno K. High-order upwind method for hyperbolic grid generation. Computational Fluids 1999.
260 Kannan R, Wang ZJ. Overset adaptive Cartesian/prism grid method for stationary and moving-boundary flow
method in the 1960s261, it was discovered, further developed and popularized by [Brandt] in the
1970s262. Multigrid was applied to the transonic small-disturbance equation by [South and
Brandt]263 and to the full potential equation by [Jameson]264. Subsequently, the idea of agglomeration
multigrid has been extended to unstructured grids [Smith]265, [Lallemand et al.]266, [Venkatakrishnan
& Mavriplis]267, and also [Mavriplis]268-269. Despite considerable progress towards improving the
convergence performance of multigrid algorithm based on cell-vertex finite volume schemes, the
performance of these methods for viscous flow simulations is not satisfying for cell-centered finite
volume schemes. The key issue is how to generate high-quality coarser grids using the
agglomeration approach. In other words, how to ensure the ‘‘convex’’ property for the coarser
grids, especially in the boundary layer.
The work of 270-271 gave some inspirations. They agglomerate the grids in boundary layer with a
normal-direction restriction. This idea can be extended to improve the coarser grid quality in
boundary layer. In this paper, a hybrid grid generation technique is presented for turbulence flow
simulations over 3D complex configurations, which is based on an anisotropic agglomeration of pure
tetrahedral grids. Firstly, pure unstructured grids are generated over a given complex geometry, and
anisotropic tetrahedral elements with high aspect ratio are adopted in the boundary layer. Then, the
anisotropic tetrahedrons are agglomerated to generate the prismatic grids in the boundary layer,
while the isotropic tetrahedrons in the outer flow field keep alone. To validate the method, the hybrid
grids over some complex geometries are generated, including the DLR-F6 wing-body configuration,
a fighter and a human body, which demonstrate the robustness of the present hybrid grid generation
technique.
Furthermore, a multigrid computing algorithm based on semi-structured agglomeration method is
developed to improve the convergence performance and couple with the parallel computing based
on computational domain decomposition. The semi-structured agglomeration means that the
agglomeration is mainly limited to the normal direction of the solid wall to keep the orthogonality of
hybrid grids in the boundary layer. This multigrid computing algorithm matches the present hybrid
grid generation technique, because both of them are based on the anisotropic agglomeration
approach. Some typical cases are tested to validate the robustness and efficiency of the present
multigrid computing method for viscous flow simulations over complex geometries. The numerical
results are compared with the experimental data and other numerical results, which demonstrate
the efficiency and accuracy of the present method.
261 Fedorenko R. The speed of convergence of one iterative process. USSR Comput Math Phys 1964;4(3):227–35.
262 Brandt A. Multi-level adaptive solutions to boundary value problems. Math Comput 1977;31(138):333–90.
263 South JJC, Brandt A. Application of a multi-level grid method to transonic flow calculations. Adamson Jr TC,
Platzer MF, editors. Transonic flow problems in turbomachinery. Washington: Hemisphere; 1977.
264 Jameson A. Acceleration of transonic potential flow calculations on arbitrary meshes by the multiple grid
method. Proceedings of the AIAA fourth computational fluid dynamics conference. Virginia, 1979.
265 Smith WA, Multigrid solutions of transonic flow on unstructured grids. In: Baysal O, editor. Recent advances
and applications in computational fluid dynamics. In: Proceedings of the ASME winter annual meeting, 1990.
266 Lallemand M, Steve H, Dervieux A. Unstructured multi gridding by volume agglomeration: current status. Com.
Fluids 1992.
267 Venkatakrishnan V, Mavriplis D. Agglomeration multigrid for the three-dimensional Euler equations. 1995.
268 Mavriplis DJ. Unstructured grid techniques. Annual Rev Fluid Mech 1997;29(1):473–514.
269 Mavriplis DJ. Viscous flow analysis using a parallel unstructured multigrid solver. AIAA J 2000..
270 Daniel G, Sreenivas K. Parallel FAS multigrid for arbitrary Mach number, high Reynolds number unstructured
generation process itself, the high-quality grid generation over 3D complex real-world
configurations, especially for turbulence flow simulations, is still an open issue for producing
accurate CFD solutions and, thus, require further attention. Fortunately, the unstructured grid
generation method is currently at a stage of maturity that allows discretization of complex, 3D, real-
world configurations with relative ease and a reasonable amount of time and effort. Generally, the
pure unstructured grids mean triangles in 2D and tetrahedrons in 3D. Thanks to many advances by
a number of researchers in the science/art of grid generation, this crucial step no longer represents
an obstacle for the routine use of CFD in the context of large-scale (industrial) applications. Some
pieces of commercial grid generation software are available in the market, such as Gridgen, ICEM-
CFD, etc. Also, there are some in-house grid generation software, such as VGrid in NASA and Centaur
in Europe. The unstructured grids can be generated by the advancing front method272-273, Delaunay
method274 and/or the modified Quadtree/Octree methods275. Actually, in the commercial grid
generation software, the integrated strategy is adopted to improve the grid quality and the grid
generation efficiency. For viscous flow simulations, the anisotropic tetrahedrons are generally
adopted in the boundary layer. However, the enormous total grid number will reduce the efficiency.
More importantly, the forfeiture of orthogonality will influence the simulation accuracy of
boundary layer. A possible better choice is to generate prisms in the boundary layer, which is the
main advantage of the so-called hybrid grids. However, the prism grid generation is still not a routine
task due to the geometric complexity. Since the pure anisotropic tetrahedrons can be generated
automatically and easily using the available commercial grid generation software, is it possible to
generate prisms based on the anisotropic tetrahedrons?
The answer is possible, because the prisms can be cut into three tetrahedrons inversely. Actually, in
most of the commercial grid generation software (for example, Gridgen), the anisotropic
tetrahedrons are generated by refining the temporary prisms. The reason of generating pure
anisotropic tetrahedrons is that it is difficult to ensure the unified prism structure in the whole
boundary layer due to the geometric complexity, although it is relatively easier for simple
configurations. Following this idea, we develop a hybrid grid generation technique based on the
anisotropic agglomeration.
1 Extract the geometric characteristics of all the cell interfaces and label each cell as anisotropic
or isotropic.
2 Agglomerate two anisotropic cells into a pyramid.
3 Agglomerate the third anisotropic cell and the pyramid into a prism.
4 For all the non-agglomerated anisotropic cells, find out a neighbor prism and agglomerate
them into a polyhedron.
The purpose of the Step 2 and Step 3 is to agglomerate three anisotropic tetrahedrons into a prism.
272 Jochem H, Peter E, Yang X, Cheng ZM. Parallel multiblock structured grids. Thompson JF, Soni BK, Weatherill
NP, editors. Handbook of grid generation. CRC Press; 1999 chapter 12.
273 Sebastien E. Numerical simulation and drag extraction using patched grid calculations. AIAA Paper, 2003.
274 Waston DF. Computing the n-dimensional Delaunay tessellation with application to voronoi polytopest. Com.
J 1981;24(2):167–72.
275 Merry MA, Shephard MS. Automatic three-dimensional mesh generation by the modified-Octree technique. Int
But for the real world configurations, some isolated anisotropic tetrahedrons may exist in the
concave and/or convex regions. If we allow these cells to exist, the ratio of the volume of two
neighboring cells may be 1:3, so the smoothness of grids in boundary layer is not satisfied. Hence, the
agglomeration of Step 4 combines the isolated tetrahedrons into the neighboring prisms to improve
the smoothness of grids in boundary layer (The volume ratio of two neighboring cells is about 3:4).
In practice, only a small number of isolated anisotropic tetrahedrons are found. See (Figure 5.29).
Step 1
Step 2
Step 3
Step 4
Once the pure tetrahedral grids have been generated, the hybrid grids can be generated fully
automatically, without any user interference. Generally speaking, the tetrahedral grids may
also be generated automatically using advancing front method or Delaunay method.
The grid quality, especially in the boundary layer, is much better than that of pure
unstructured grids, which is very crucial for viscous flow simulations.
The smoothness of grids from the boundary layer to the outer flow field is much better.
Multigrid/Parallel Algorithm
In order to further accelerate the convergence history, the multigrid computing approach is adopted
and further improved in this section. The basic idea of the multigrid method is to carry out early
166
iterations on a fine grid and then progressively transfer these flow field variables and residuals to a
series of coarser grids. On the coarser grids, the low frequency errors become high frequency ones
and they can be easily eliminated by a time stepping scheme. The flow equations are then solved on
the coarser grids and the corrections are then interpolated back to the fine grid. The process is
repeated over a sufficient number of times until satisfactory convergence on the fine grid is achieved.
In this paper, the V-type cycle is adopted for easy implementation.
Figure 5.30 Initial Hybrid Grids and Coarsen Grids Wing – Courtesy of [Laiping et al.]
The concept of anisotropic agglomeration is introduced by Mavriplis276 for cell-vertex finite volume
method and further developed by Refs.277-278 for cell-centered finite volume method. However, for
arbitrary hybrid grids, we still meet some problems because the multigrid iteration is so sensitive to
the shape of multi-level coarsen grids. If the quality of coarser grid is not good enough, the
accelerating performance of multigrid iteration will be attenuated. In order to improve the quality of
coarser grid by agglomeration, an improved anisotropic agglomeration approach is developed in this
paper. The details are listed as follows:
276 Mavriplis DJ. Viscous flow analysis using a parallel unstructured multigrid solver. AIAA J 2000.
277 Daniel G, Sreenivas K. Parallel FAS multigrid for arbitrary Mach number, high Reynolds number unstructured
flow solver. AIAA Paper 2006-2821; 2006.
278 James L, Nishikawa H. A critical study of agglomerated multigrid methods for diffusion on highly stretched
1 Check the cell property (isotropic or anisotropic cells). The checking criterion is the same as
that of Step 1 in hybrid grid generation above.
2 Agglomerate the surface triangles in a pseudo-2D manner. The surface triangles are
agglomerated with a node-based agglomeration approach. In order to ensure the smoothness
and the quality of coarser surface grids, the following two criteria are considered:
If two triangles are located on the two separated sides of a sharp edge (For example,
the trailing edge of a wing, the joint-line of fuselage and wing, see [Laiping et al.]279),
the two triangles cannot be agglomerated.
If there are some isolated non-agglomerated triangles after first-round
agglomeration, they should be agglomerated into the neighboring cells to improve the
smoothness.
3 Agglomerate the anisotropic prism grids layer-by layer with an analogy ‘advancing layer’
method. Advancing in the normal direction from each agglomerated surface coarser grids
(Two initial layers are integrated into one layer), then the prism grids in the boundary layer
are agglomerated layer-by-layer to ensure the semi-structured property as the initial finest
grids.
4 Agglomerate the isotropic grids in the outer flow field. In this step, we use a node-based
agglomeration approach, which means agglomerating all the non-agglomerated cells
connecting to a node. However, there are some special or ‘singular’ cases during
agglomeration, see [Laiping et al.]. For these cases, the agglomeration is not permitted.
279Zhang Laiping, Zhao Zhong, Chang Xinghua, He Xin, “A 3D hybrid grid generation technique and a
multigrid/parallel algorithm based on anisotropic agglomeration approach”, Chinese J of Aeronautics, 2013.
168
with the experimental data280. Consult the [Laiping et al ]281 for complete analysis.
Figure 5.32 Initial Hybrid Grids and Coarsening Grids over 30P30N Airfoil Wing – Courtesy of [Laiping
et al.]
Figure 5.33 Initial Hybrid Grids and Coarsening Grids over ONERA M6 Wing – Courtesy of [Laiping et
al.]
280 Spaid FW, Lynch FT. High Reynolds number multi-element airfoil flow field measurements. AIAA 1996.
281 281Zhang Laiping, Zhao Zhong, Chang Xinghua, He Xin, “A 3D hybrid grid generation technique and a
multigrid/parallel algorithm based on anisotropic agglomeration approach”, Chinese J of Aeronautics, 2013.
282 Schmitt V, Charpin F. Pressure distributions on the ONERA-M6-Wing at transonic Mach numbers, experimental
data base for computer program assessment. Report of the Fluid Dynamics Panel Working Group 04, 1979.
169
Figure 5.34 Close-up Views of Hybrid Grids After Agglomeration Wing – Courtesy of [Laiping et al.]
283 Zhang Laiping, Zhao Zhong, Chang Xinghua, He Xin, “A 3D hybrid grid generation technique and a
multigrid/parallel algorithm based on anisotropic agglomeration approach”, Chinese J of Aeronautics, 2013.
284 Second AIAA CFD Drag Prediction Workshop. <[Link] 2003.
170
The initial and the coarsening grids on surface and symmetric plane are shown in Figure 5.36. The
close-up view near the boundary layer is given in Figure 5.36 (c). The total number of the initial
hybrid grids over the half-model is about 7.8 M. So the multigrid/parallel computing strategy is
adopted for this case. The computational domain is decomposed into 32 sub-domains (see Figure
5.36 (a)) using the METIS approach. Figure 5.35 displays the aerodynamic force coefficients for
different angles of attack, in which the experimental data and the numerical results by other solvers
(USM3D, FUN3D, NSU3D)285-286 are also plotted. In the same figure, the results on pure unstructured
grids before agglomeration is presented (marked as ‘Unstructured’). Note that the present numerical
Figure 5.35 Aerodynamic Force Coefficients for Different Angles of Attack (M∞ = 0.75) Wing –
Courtesy of [Laiping et al.]
285 Mavriplis DJ. Drag prediction of DLR-F6 using the turbulent Navier-Stokes calculations with multigrid. AIAA
Paper 2004-397; 2004.
286 Sclafani AJ, Dehaan MA. OVERFLOW drag prediction for the DLR-F6 transport configuration: a DPW-II case
results (marked as ‘Hybrid Grid’) are in good agreement with the experimental data, which are
slightly better than others’ numerical results. The drag polar on hybrid grids is much better than that
on pure unstructured grids. Furthermore, the CPU time is saved greatly because the number of hybrid
grid is only half of the pure unstructured grids. These results demonstrate that the hybrid grid
technique is superior indeed to the pure unstructured grid approach. When M∞ = 0.75 and α = 1.0
degree, the pressure coefficient distributions at three typical sections (see Figure 5.37 (a)) are
shown in Figure 5.37 (b)–(d), where z/b =15.0 %, 33.1 % and 63.8 %, respectively.
Figure 5.36 Hybrid Grids over DLR-F6-WBNP Configuration Wing – Courtesy of [Laiping et al.]
172
The present results are marked as USTAR. The results by others287-288 are also plotted in the same
figures. It can be seen that the present results are very similar to the best results by USM3D. The flow
separation pattern on the leeward surface of the wing is shown in Figure 5.37 (a), meanwhile the
results by UG3289 and the experimental oil-flow pattern are shown in Figure 5.37 (b) and (c). The
size of the separation zone is still larger than those by experiment290 but is slightly better than that
Figure 5.37 CP Distributions at Three Typical Sections (M = 0.75, α = 1.0 deg) Wing – Courtesy of
[Laiping et al.]
287 Mavriplis DJ. Drag prediction of DLR-F6 using the turbulent Navier-Stokes calculations with multigrid. AIAA
Paper 2004-397; 2004.
288 Lee-Rausch EM, Mavriplis DJ. Transonic drag prediction on a DLR-F6 transport configuration using
Concluding Remarks
An effective hybrid grid generation technique and a multigrid/parallel algorithm based on
anisotropic agglomeration are presented for viscous flow simulations over complex configurations.
(1) The hybrid grid generation technique can improve the quality of grids in boundary layer over the
pure unstructured grids. For real-world complex geometries, the prism grids in boundary layer can
be automatically generated from the initial pure tetrahedral grids. (2) The multigrid/parallel
computing algorithm based on anisotropic agglomeration can improve the convergence
performance, especially for high Reynolds number viscous flow simulations. (3) Applications for
complex 3D configurations have demonstrated the robustness of present method. In the future work,
we will extend this method to unsteady flow simulations.
Local Remeshing
[Ito et al.]296 describe a method where it is possible to introduce new components into an existing
grid without regenerating the entire grid. The grid needs only to be regenerated in the region where
the new component has been introduced. This speed up the time for the grid generation significantly.
A similar extension of the grid generator TRITET with routines for the generation of locally re-
meshed grids has been done. This local remeshing works also for hybrid grids, but the original
prismatic layers must be kept. Figure 5.38 (a) shows the cavity in a grid where the grid around a
rotated airfoil is inserted into a grid around another airfoil. The cavity is formed by a set of inner and
outer boxes. Inside the cavity a grid is generated by the advancing front algorithm. The merged grid
is shown in Figure 5.38 (b). An application of this technique together with the flow solver Edge, see
291 Zhang Laiping, Zhao Zhong, Chang Xinghua, He Xin, “A 3D hybrid grid generation technique and a
multigrid/parallel algorithm based on anisotropic agglomeration approach”, Chinese J of Aeronautics, 2013.
292 Lars Tysell, “Hybrid grid generation for viscous flow computations around complex geometries”, Technical
Reports from Royal Institute of Technology, Department of Mechanics, Stockholm, Sweden, 2010.
293 L¨ohner, R., A parallel Advancing Front Grid Generation Scheme. Paper AIAA 2000.
294 Larwood, B., Weatherill, N. P., Hassan, O. & Morgan, K. 2003, Domain Decomposition Approach for Parallel
Unstructured Mesh Generation. International Journal for Numerical Methods in Engineering, 2003.
295 Weatherill, N. P., Hassan, O., Morgan, K., Jones, J. & Larwood, B., “Towards Fully Parallel Aerospace Simulations
[Eliasson]297, for store separation computations are reported in [Berglind]298 and [Berglind et al.]299.
Background Mesh
The use of stretched grids in the advancing front method, which was reported in [Tysell]300, has also
been reported in [Ghidoni et al.]301. The methods are similar but the specification of the background
grid differs from the smoothing technique used since the algorithm used here only modify the
background grid cell size for a node if it is larger than allowed by the prescribed expansion from the
nodes in the background grid connected to the node. The technique is similar to the one used for
isotropic cell sizes reported in [Kania & Pirzadeh]302, where surface curvature dependent grids also
are generated. A way to improve the initial background grid by introducing extra background grid
nodes using background boxes is given in [Tysell]303. This play somewhat the same role as the
concept of bounding boxes and volume sources introduced in [Pirzadeh]304. A method to achieve an
even better background grid by first generating a coarse volume grid and then interpolating the
surface cell size specification into this grid and finally using this grid as a new background grid is
297 Eliasson, P., Nordstr¨om, J., Peng, S-H. & Tysell, L.,”Effect of Edge-based Discretization Schemes in
Computations of the DLR F6 Wing-Body Configuration”. Paper AIAA-2008-4153.
298 Berglind, T., Numerical Simulation of Store Separation for Quasi-Steady Flow. FOI-R-2761-SE, FOI, Swedish
Grid Generation, International Society of Grid Generation (ISGG), Montreal, Canada, 2009.
301 Ghidoni, A., Pelizzari, E., Rebay, S. & Selmin, V., 3D Anisotropic Unstructured Grid Generation. International
Numerical Grid Generation, International Society of Grid Generation (ISGG), Montreal, Canada.
304 Pirzadeh, S. 2008, Advanced Unstructured Grid Generation for Complex Aerodynamic Applications. Paper
AIAA-2008-7178.
175
given in [Tysell ]305. This is an alternative to the octree background grid generation method given in
[McMorris & Kallinderis]306. For further details, please consult the work by [Tysell]307.
305 Tysell, L. 2009, CAD Geometry Import for Grid Generation. Proceedings of the 11th ISGG Conference on
Numerical Grid Generation, International Society of Grid Generation (ISGG), Montreal, Canada.
306 McMorris, H. & Kallinderis, Y. 1997, Octree-Advancing Front Method for Generation of Unstructured Surface
Technical Reports from Royal Institute of Technology, Department of Mechanics, Stockholm, Sweden, 2010.
308 Aubry, R. & L¨ohner, R., Geration of Viscous Grids with Ridges and Corners. Paper AIAA-2007-3832.
309 Sharow, D., Lou, H. & Baum, J. 2001, Unstructured Navier Stokes Grid Generation at Corners and Ridges. Paper
AIAA-2001-2600.
310 Soni, B., Thompson, D., Koomullil, R. & Thornburg, H. 2001, GGTK: A Tool Kit for Static and Dynamic Geometry-
Grid Generation, International Society of Grid Generation (ISGG), Heraklion, Crete, Greece.
312 Steinbrenner, J. & Abelanet, J. 2007, Anisotropic Tetrahedral Meshing Based on Surface Deformation
Technical Reports from Royal Institute of Technology, Department of Mechanics, Stockholm, Sweden, 2010.
314 This geometry represents airflow over a transonic transport aircraft, complete with a pylon and flow
through nacelle attached to the wing. A hybrid mesh was generated using CENTAUR containing both prisms in
the boundary layer and tetrahedra in the interior. A symmetry plane was used so that only half the geometry
needed to be modeled.
315 Ito, Y. & Nakahashi, K., Improvements in the Reliability and Quality Un-structured Hybrid Mesh Generation.
second step this grid is pushed away from the boundary and the gap is filled with prismatic cells. A
drawback with this method is that it will likely be a jump in cell size at the interface between the
prismatic layer and the isotropy tetrahedra, since it is difficult to push the initial tetrahedra far
enough without inversion to get a sufficient height of the prismatic layer. [L¨ohner & Cebral]317
present a method where an isotropic tetrahedral grid is generated first and then refined with
stretched tetrahedra close to the boundary. The use of prismatic layers along imaginary surfaces in
the flow field in order to catch shocks is presented in [Shih et al.]318. Pointwise™ is advising following
step for their mesh generation, specifically airplane geometry319. The procedure can be summarized
as:
Advancing Front Ortho surface mesh generated automatically on watertight solid model
Generates boundary aligned isotropic triangles
Anisotropic triangles grown off slat, wing, flap LE using T-Rex
Structured diagonalized meshes created on slat, wing, flap TE surfaces to comply with TE
point req.
Spacings applied to key locations in surface mesh.
Chordwise/spanwise number of grid points increased to reduce area ratio/aspect ratio to
reasonable levels.
Manually correct problem areas that were geometry limited.
Grow anisotropic tetrahedra off surface mesh based on refinement level growth rate and wall
spacing.
Insert equilateral tetrahedra into remainder of volume using modified Delaunay method.
317 L¨ohner, R. & Cebral, J. 2000, Generation of Non-Isotropic Unstructured Grids via Directional Enrichment.
International Journal for Numerical Methods in Engineering, 49 (1-2), pp. 219-232.
318 Shih, A., Ito, Y., Koomullil, R., Kasmai, T., Jankun-Kelly, M., Thompsson, D. & Brewer, W. 2007, Solution
Adaptive Mesh Generation using Feature Aligned Embedded Surface Meshes. Paper AIAA-2007-0558.
319 Carolyn D. Woeber , “Pointwise Unstructured and Hybrid Mesh Contributions to GMGW-1”, 1st Geometry and
Dynamic Mesh
The spring analogy method in [Batina]320 for grid deformation easily gives grid inversion for larger
deformations. This has been improved by [Farhat et al. ]321 by the introduction of torsion springs in
addition to the tensions springs. In [Acikgoz & Bottaasso]322 springs has been introduced also
between nodes and edges and not only between nodes as in the previous methods. This greatly
improves the capability to prevent the generation of inverted cells. Still there can be cells of bad
quality, especially close to the boundaries, since only translation of the boundary has been taken into
account. In [Martineau & Georgala]323 the rotation has been taken into account by rigid movement of
the nodes close to the boundary and use of the spring analogy away from the boundary. In
[Samareh]324 the use of quaternions has been introduced. Quaternions is an extension of complex
analysis to three-dimensional space, which are ideal for modeling rotations. Since the method in
[Tysell]325 solves a 4th order partial differential equation it is possible to have two boundary
conditions on the boundary. In the original paper the derivative of the displacement was set to zero
on the boundary. Later an option has been introduced to take the local rotation around each
boundary node into account.
Another modification of the algorithm is that in the discrete minimization problem the volume of the
tetrahedra is retained when solving the bi-harmonic equation, otherwise the movement will be too
rigid for the small tetrahedra close to the boundaries. If the deformation is governed by the Laplace
equation only the original formulation is kept. In [Nielsen & Anderson]326 a structural mechanic
analogy is used by solving the equation for isotropic linear elasticity. A similar approach is used in
[Sheta et al.]327 where the structural Navier equation is applied. Both methods show good results, but
they probably suffer by the fact that they both solve a 2nd order partial equation, thus only one
boundary condition can be applied. In [Liu et al. ]328 a fast algebraic method is presented based on
the deformation of a temporary grid generated from the boundary nodes only by a Delaunay
algorithm. The deformation of the grid is computed by interpolation in the temporary Delaunay grid.
The deformation of the boundary must be done in such small steps that the Delaunay grid is not
inverted. After each step the Delaunay grid may be regenerated. For large 3D grids this may take a
considerable time, and the method does not account for surface rotation. Another new algebraic
320 Batina, J., Unsteady Euler Algorithm with Unstructured Dynamic Mesh for Complex-Aircraft Aerodynamic
Analysis. AIAA Journal, 29 (3), pp. 327-333, 1991.
321 Farhat, C., Degand, C., Koobus, B. & Lesoinne, M. 1998, An Improved Method of Spring Analogy for Dynamic
Paper AIAA-2006-0885.
323 Martineau, D. & Georgala, J., A Mesh Movement Algorithm for High Quality Generalized Meshes. AIAA-2004.
324 Samareh, J. 2002, Application of Quaternions for Mesh Deformation. Proceedings of the 8th International
Conference on Numerical Grid Generation in Computational Field Simulations, pp. 47-57, International Society
of Grid Generation (ISGG), Honolulu, Hawaii, USA.
325 Tysell, L. 2002, Grid Deformation of 3D Hybrid Grids. Proceedings of the 8th International Conference on
Numerical Grid Generation in Computational Field Simulations, pp. 265-274, International Society of Grid
Generation (ISGG), Honolulu, Hawaii, USA.
326 Nielsen, E. & Anderson, K. 2001, Recent Improvements in Aerodynamic Design Optimization on Unstructured
method is the use of radial basis functions, see [Jakobsson & Amignon]329 and [Allen & Rendall]330.
Adaptation
In [Peraire et al.]331 the use of the Hessian332, which measures the second derivatives of the flow
quantities, is introduced in order to generate directionally adapted grids. One drawback with the use
of the Hessian is that the grid can only be adapted to one selected flow quantity. It is in most cases
not possible to find one single flow quantity that works for all cases, or even for all regions of one
case. One remedy to this has been presented in [Castro-Diaz et al.]333 by computing the Hessian for
several flow quantities and then compute the combined Hessian by so called metric intersection. This
way to compute the metric intersection is not optimal, since only the combined eigenvalues are
computed, while the eigenvectors are arbitrarily chosen from one of the flow quantities. Thus, the
way to compute the combined metric from several flow quantities presented in [Tysell et al. (1998)]
is done in a more rigorous way, but the drawback may be that only the first derivatives of the flow
quantities are used instead of the second derivatives. Another way to compute the metric intersection
has been presented in [Frey & Alauzet]334. The Hessians can be represented by a set of ellipsoids and
in that paper the intersection is computed by computing the largest ellipsoid inscribed in all
intersected ellipsoids.
A rigorous way to compute this metric intersection has recently been presented in [McKenzie et al.
]335], where each Hessian is introduced successively by transforming the Hessian to a space where
the current transformation is represented by a sphere. In this space the intersection is easy to
compute. Both for first and second derivative adaptive sensors limits of the cell sizes must be set in
regions of flow discontinuities, where the cell size otherwise would become indefinitely small, and in
regions where the flow is varying very slowly, where the cell sizes would become too large. One
drawback by using the Hessian is also that the cell sizes tends to be indefinitely large where the flow
is varying linearly. I has been shown in [Venditti & Darmofal]336 where they compare results for flow
around a multiple airfoil configuration, that a Hessian based method gives too large cell sizes in
regions of linearly varying flow compared to an adjoint based adaptation method. In the paper they
propose a combination of the two methods, where the cell sizes are taken from the adjoint
computation, whereas the directional stretching are taken from the Hessian. In [Remaki et al. ]337
the metric tensor is computed by taking a weighted sum of the Hessian and the gradient tensor, in
329 Jakobsson, S. & Amignon, O. 2005, Mesh Deformation using Radial Basis Functions for Gradient Based
Aerodynamic Shape Optimization. Technical Report FOI-R-1784-SE, FOI, Swedish Defense Research Agency.
330 Allen, C. & Rendall, T. 2007, Unified Approach to CFD-CSD Interpolation and Mesh Motion using Radial Basis
scalar-valued function, or scalar field. It describes the local curvature of a function of many variables. The
Hessian matrix was developed in the 19th century by the German mathematician Ludwig Otto Hesse and later
named after him. Hesse originally used the term "functional determinants".
333 Castro-Diaz, M., Hecht, F., Mohammadi, B. & Pironneau, O., Anisotropic Unstructured Mesh Adaption for Flow
Simulations. International Journal for Numerical Methods in Fluids, 25 (4), pp. 475-491, 1997.
334 Frey, P. & Alauzet, F. 2005, Anisotropic Mesh Adaptation for CFD Computations. Computer Methods in Applied
Union. Proceedings of the 11th ISGG Conference on Numerical Grid Generation, International Society of Grid
Generation (ISGG), Montreal, Canada.
336 Venditti, D. & Darmofal, D. 2003, Anisotropic Grid Adaptation for Functional Outputs: Application to Two-
Dimensional Viscous Flows. Journal of Computational Physics, 187 (1), pp. 22-46.
337 Remaki, L., Nadarajah, S. & Habashi, W. 2006, On the a Posteriori Error Estimation in Mesh Adaptation to
order to get better grid resolution also in areas of linearly varying flow quantities. The use of the
Hessian and combinations of grid cell split, merge, swapping and node movement is used in [Xia et
al.]338 and [Dompierre et al.]339 for directional h-adaptation. In these papers the method has been
applied in two dimensions. The same method has been used to present three-dimensional results in
[Park & Darmofal]340. This method is faster than the total remeshing used in [Peraire et al.]341 and
[Tysell et al.]342 but appears to give grids of less good quality. In [Pirzadeh]343 adaption by remeshing
is done by only doing local remeshing, where the grid needs to be adapted. In this way the time for
remeshing is reduced. Further details can be obtained at [Tysell]344.
Special Issues
Two verdures offer special difficulties and field complexities which may be encounter during mesh
generation session.
[Link] Centaur®
Singular points
Small scales
Small angles
Disparate length scales
Different scales orientation / directionality
Mega Geometries - Mega geometries pose additional requirements to the grid generator.
Some common issues are the existence of thousands of panels and "dirty" CAD. Solutions to
these issues include:
Automatic Setup
Automatic identification of similar parts (e.g. pipes)
Auto CAD Cleaning
Mega Meshes - Mega meshes are required in applications such as LES, multi-stage
turbomachinery, aircraft take-off and landing, etc. (see Figure 5.40). Requirements that
have to be met for the generation of "mega" meshes include:
Optimum meshes (minimum number of elements for given accuracy - hybrid mesh
approach)
Parallel / Multi-Core grid generation
338 Xia, G., Li, D. & Merkle, C., Anisotropic Grid Adaptation on Unstructured Meshes. Paper AIAA-2001.
339 Dompierre, J., Vallet, M., Bourgault, Y., Fortin, M. & Habashi, W. 2002, Anisotropic Mesh Adaptation: Towards
User-independent Mesh-independent and Solver-independent CFD. Part III. Unstructured Meshes. International
Journal for Numerical Methods in Fluids, 39 (8), pp. 675-702.
340 Park, M. & Darmofal, D. 2008, Parallel Anisotropic Tetrahedral Adaptation. Paper AIAA-2008-0917.
341 Peraire, J., Peiro, J. & Morgan, K. 1992 Adaptive Remeshing for Three-Dimensional Compressible Flow
6th International Conference on Numerical Grid Generation in Computational Field Simulations, pp. 391-400,
International Society of Grid Generation (ISGG), Greenwich, UK, 1998.
343 Pirzadeh, S. 2000, A solution-Adaptive Unstructured Grid Method by Grid Subdivision and Local Remeshing,
Technical Reports from Royal Institute of Technology, Department of Mechanics, Stockholm, Sweden, 2010.
180
[Link] Pointwise®
Some meshing guidelines could not be retained & create a volume mesh of reasonable quality
Recommended grids have at least 2 layers of constant cell spacing normal to viscous walls.
Achieving consistent cell sizes and spacings across gaps.
Fairly well established procedures in place to build fixed meshes around complex geometry
Various types (unstructured, structured-overset, hybrid, etc.)
Various toolsets (with varying degrees of automation)
Resolution set by educated guess and best practices (developed from growing body of data
from internal/external studies)
Typically one mesh used for range of flight conditions
Mesh refinement study seldom done in practice
Emerging methods and procedures in development to build meshes that adapt to the flow
solution
Considerable promise to improve accuracy for a given number of points, reduce engineer
time, and lower level of user expertise needed
Several algorithms being evaluated for speed, robustness, effectiveness
Issues: surface geometry interface, robustness, mesh growth, strength of solver on irregular
grids, etc.
Generally not in production use, but not many years away Fixed grids continue to be the
workhorse for CFD modeling of realistic geometry
With challenges remaining as
Handling geometric complexity (large range of scales, components in close proximity, mesh
control/quality in tight regions, etc.)
Resolving pertinent flow features (unknown location and importance, varies with run flow
conditions, etc.)
Improving speed and robustness
Better understanding of the dependency of grid resolution on physical modeling
345 Jeffrey Slotnick, “Meshing Challenges for Applied Aerodynamics”, Boeing, January 2019.
182
Experience
From HiLiftPW-3, oil flow images from testing of the JAXA JSM configuration near stall conditions
identified regions of separated flow behind several slat brackets346. Many RANS simulations
predicted much larger “pizza slice” shaped separation patterns appearing at differing angles-of-
attack, with high sensitivity to turbulence models and mesh resolution, and angle of attack. (see
Figure 5.41).
Observations
Current mesh resolution for high-lift CFD (as utilized in HiLiftPW-3) appears insufficient to
(a) accurately assess physical modeling errors, and (b) to clearly identify the better
turbulence model for RANS simulations for full configurations.
Need a systematic study of mesh resolution/convergence (fixed grid, adaptive) using solvers
that can utilize a wide range of turbulence modeling (RANS, Hybrid RANS/LES, WMLES, etc.)
on key test cases to clearly isolate numerical vs. physical modeling errors.
The extruded, single-slat-bracket periodic model problem appears relevant, but the question
of whether the “pizza slices” are an artifact of insufficient numerical resolution has not been
answered (as they seem to be a robust feature, across codes and models), and turbulence-
resolving simulations have not begun.
Y. Ito, M. Murayama, Y. Yokokawa & K. Yamamoto (JAXA) K. Tanaka & T. Hirai (Ryoyu Systems) H. Yasuda
346
(KHI), A. Tajima (Kawaju Gifu Engineering) & A. Ochi (KHI), “Japan Aerospace Exploration Agency’s & Kawasaki
Heavy Industries’ Contribution to HiLiftPW-3”, AIAA SciTech 2018, Kissimmee, FL, January 10, 2018.
183
347 Mavriplis, DJ:” Unstructured Grid Techniques”, Annual. Rev. Fluid. Mech. 1997 by Annual Reviews Inc.
348 Mavriplis DJ., “Accurate multigrid solution of the Euler equationson unstructured and adaptive meshes”, AIAA.
349 Mavriplis DJ., “Adaptive mesh generation for viscous flows using Delaunay triangulation”, J. Comp. Phys. 1990.
350 Weatherill NP, Hassan O, Marcum DL, “Calculation of steady compressible flow fields with the finite-element
the Unstructured Grid Adaptation Working Group “, 26th International Meshing Roundtable , 2017.
184
352 352 Mavriplis D.J., ”Adaptive Meshing Techniques For Viscous Flow Calculations On Mixed Element
Unstructured
Meshes”, NASA Contract No. NAS1-19480, May 1997.
353 l). J. Mavriplis and Venkatakrishnan. A unified multigrid solver for the Navier-Stokes equations on mixed
Geometries. 9th AIAA Computational Fluid Dynamics Conference, Buffalo, NY, June 1989. AIAA-89-1930-CP.
185
Generalities
Several researchers have extended [Berger and LeVeque's] research into areas such as multigrid
Cartesian grids, higher accuracy flow solvers using more sophisticated flux approximations, time-
accurate unsteady flows, and a front tracking AMR scheme that attempted to track the discontinuities
(such as shocks) as the solution evolved in order to provide more accuracy in the refined mesh
calculations. According to recent investigation by [Abe]356, Cartesian grid method fall into two
categories with the demand of accurate solutions. One keeps its structured grid nature and
introduces embedding structured sub grids within the underlying coarse structured grids.
Adaptive Mesh Refinement (AMR) is one of them. Figure 6.2 (a) shows an example of AMR in two
dimension. The intersected cells by a circle in the underlying coarse grids are tagged in blue. The
blue-tagged cells are to be refined. In the AMR procedure, several embedded rectangle patches are
defined so as to contain the blue tagged cells. Then, the embedded rectangle patch areas are refined.
The other considers the Cartesian mesh as an unstructured collection of h-refined meshes. The data
structure is not the same as structured grids but the same as unstructured grids. Adaptive Cartesian
grid method was introduced as an unstructured Cartesian grid method and has shown the great
success in simulating complex geometries. Figure 6.2 (a) shows a case of two dimensional adaptive
Cartesian grid method. Beginning with a root cell covering whole domain, the intersected cells by the
circle are recursively bisected. This simple procedure finally gives Figure 6.2 (b).
356Hiroshi Abe, “Blocked Adaptive Cartesian Grid FD-TD Method for Electromagnetic Field with Complex
Geometries”, International Conference on Modeling and Simulation Technology, Tokyo, JAPAN, 2011.
187
The actual data structure (quad-tree) of a two dimensional adaptive Cartesian grid method is shown
in Figure 6.3. The case shows a quad-tree structure. In this two dimensional case a tree node (a cell)
may have four child nodes. In the case of three dimension, a node may have eight children. Level of a
node is defined as the depth of the nest in the tree structure. The root node is specified as ’level 0’
(Figure 6.3)357.
357 Each black circles indicates leaf nodes in the tree structure and they correspond to the cells as is shown with
the numbers.
358 M.J. Aftosmis. Solution adaptive Cartesian grid methods for aerodynamic flows with complex geometries, 1997.
359 See Previous.
188
Vj
cos (θi j ) =
⃗|
|V
Eq. 6.2
If θ in a cell exceeds a predefined
angle threshold, then the cell is
tagged for division. This procedure
for division is very simple and
robust. One can have adaptive
Cartesian cells automatically.
Further examples provided a 2D Figure 6.4 Schematic 2D view of angular variation of normal
backward step (see Figure 6.5). vector of triangles within cut-cell i. (a) is small variation
case and (b) is large variation case.
Uniform AMR
The simplest refinement anyone can think of is to divide all cells in the domain. This is referred to as
"Uniform Refinement". Although it does improve the solution vastly, it is easy to realize that we are
going for a huge unwanted effort in doing so. For e.g., in the far field region of an airfoil, cell division
is not bringing in any improvement because the flow such as a shock-boundary layer interaction. To
achieve the goal of mesh adaptation, the refinement is done at "selected" regions alone based on
certain criterion. This is referred to popularly as AMR or Adaptive Mesh Refinement. It is to be
remarked that AMR does not only encompass division of cells into smaller ones (Refinement), but
also the agglomeration of smaller cells into a larger one (De-Refinement or coarsening), when the
need arises.
189
Case Study 1 - An Adaptive Hybrid Mesh Generation Method for Complex Geometries
An adaptive hybrid mesh generation method is described by [Cameron Thomas Druyor JR.]361 to
automatically provide spatial discretization suitable for 2D solver applications. This method employs
a hierarchical grid generation technique to create a background mesh, an extrusion-type method
for inserting boundary layers, and an unstructured triangulation to stitch between the boundary
layers and background mesh. This method provides appropriate mesh resolution based on geometry
segments from a file, and has the capability of adapting the background mesh based on a spacing field
generated from solution data or some other arbitrary source. By combining multiple approaches to
the grid generation process, this method seeks to benefit from the strengths of each, while avoiding
the weaknesses of each.
360 Lyra, P.R.M., de Carvalho, D.K.E., Willmersdorf, R.B. and Almeida, R.C.C., 2002, “Transient Adaptive Finite
Element Analysis of Compressible Flows”, WCCM'2002-Proceedings of the 5th World Conference on
Computational Mechanics, Vienna-Austria.
361 Cameron Thomas Druyor JR, “An Adaptive Hybrid Mesh Generation Method for Complex Geometries”, A
Thesis Submitted to the faculty of the University of Tennessee, Chattanooga in Partial Fulfillment of the
Requirements for the Degree of Master of Science in Computational Engineering, 2011.
190
a single mesh before exporting to a mesh file that can actually be used by a solver. There are two main
elements to accomplishing this task, removing elements from the background mesh that are not
to be part of the final mesh, and bridging the gap between the viscous and inviscid meshes.
[Link] Triangulation
Once the voxel removal is complete, there is a gap between the viscous region and the background
mesh (in the absence of a viscous mesh, there is a gap between the geometry and the background
mesh). This region must be filled with cells before a valid mesh can be created. This is done in two
steps. First a list of unique nodes and boundaries for the region to be triangulated are created. The
boundaries consist of the exposed edges of the voxel front, the outermost edges of the viscous mesh,
and any exposed geometry segments, and the unique node list contains each point that is part of any
of those edges. Once these are packaged up properly, they are passed to a Delaunay triangulation
method written by Dr. Steve Karman, which returns a list of triangles that fill the gap region.
362David A. Venditti and David L. Darmofal, “Grid Adaptation for Functional Outputs: Application to Two
Dimensional Inviscid Flows", Journal of Computational Physics 176, 40–69 (2002).
192
incurring heavy computational penalties, even in two dimensions, it is desirable to use some form of
mesh adaptation. Adaptive codes make use of the local flow solution itself to determine where the
high spatial mesh resolution is required and then employ some strategy to increase the grid
resolution in those regions. This enables the high spatial mesh resolution to be concentrated around
the important flow features (e.g. shocks,
vortices and so on) rather than being
wasted on parts of the computational
domain where the flow activity is
relatively unimportant. One increasingly
popular approach to mesh adaptation is
so-called refinement, where additional
mesh nodes and elements are inserted
into the computational domain in
regions where the greater resolution is
required and then removed from the
mesh when the higher mesh node
density is judged to be redundant. The
process of mesh adaptation is invoked
automatically in response to some
dynamically evolving flow solution
criteria, with the regions of mesh
refinement corresponding to regions of Figure 6.9 Grid Adaption using Supersonic Flow for an
significant flow activity where it is Airfoil (bow shock)
desirable to have increased spatial
resolution (see Figure 6.10 and Figure 6.9). How these criteria are chosen has important
consequences for the overall operation of the adaptive solver. The complete adaptive solver may be
thought of as consisting of three parts,
being targeted either for refinement, de-refinement or no action data structure to include numerical
parameters such as the flow variables.
363 Cavallo, P.A., Sinha, N., and Feldman, G.M.,” Parallel Unstructured Mesh Adaptation For Transient Moving
Body And Aeropropulsive Applications”, Combustion Research and Flow Technology, Inc. (CRAFT Tech), PA.
364 De Keyser, J., and Roose, D., “Run-Time Load Balancing Techniques for a Parallel Unstructured Multi-Grid Euler
Solver with Adaptive Grid Refinement”, Parallel Computing, Vol. 21, pp. 179-198, 1995.
365 Flaherty, J.E., Loy, R.M., Shephard, M.S., Szymanski, B.K., Teresco, J.D., and Ziantz, L.H., “Adaptive Local
Refinement with Octree Load Balancing for the Parallel Solution of Three-Dimensional Conservation Laws”,
Journal of Parallel and Distributed Computing, Vol. 47, pp. 139-152, 1997.
194
the coarsening phase. This issue is remedied by recomposing the global grid arrays at the start of the
mesh adaptation process, such that the list of global vertex coordinates, solution vectors, and
computed point spacing may be readily available to all processors.
366 Cavallo,
P.A., Sinha, N., and Feldman, G.M.,”Parallel Unstructured Mesh Adaptation For Transient Moving Body
And Aeropropulsive Applications”, Combustion Research and Flow Technology, Inc. (CRAFT Tech), PA 18947.
195
P.A., Sinha, N., and Feldman, G.M., ”Parallel Unstructured Mesh Adaptation For Transient Moving Body
367 Cavallo,
And Aeropropulsive Applications”, Combustion Research and Flow Technology, Inc. (CRAFT Tech), Pipersville, PA.
196
stretched cell.
368 Ahmed Khamayseh and Valmor de Almeida, “Adaptive Hybrid Mesh Refinement for Multiphysics Applications”,
of hybrid surface and volume meshes on symmetric multi-region geometries369. The geometry of the
mesh and its symmetries are matched to the analytical and numerical methods used to solve the
governing equations.
Figure 6.15 Hybrid Icosahedra Surface Mesh (left) and Multi-Material Hybrid Volume Mesh (right) –
(Courtesy of Khamayseh and Almeida)
The principle objective of this paper is to present an overview of current meshing efforts and
development at Oak Ridge National Laboratory. Our capability is geared for generating high-
quality adaptive meshes for petascale applications. In this work, we have researched and developed
tools and algorithms for the generation and optimization of adaptive hybrid meshes using finite-
volume discretization approach. The hybrid mesh approach attempts to combine the advantages of
both structured and unstructured meshing strategies. The prismatic and hexahedral elements are
used in regions of high solution gradients, and tetrahedra are used elsewhere with pyramids used at
the boundary between these two element categories to provide a transition region. In addition, the
polyhedral/icosahedral meshes are often the best choice of solving symmetric computational
problems (e.g., inertial confinement fusion and climate modeling). They have the properties of
producing symmetric higher order orthogonal meshes and do not introduce artificial geometric
interfaces. The geometry of the mesh and its symmetries are matched to the analytical and numerical
methods used to solve the governing equations. Furthermore, hexahedral/prismatic layers close to
wall surfaces exhibit good orthogonality and clustering capabilities characteristic of structured mesh
generation approaches. The mesh example demonstration in Figure 6.15 showcase the generation
of hybrid surface and volume meshes on symmetric multi-region geometries370. The geometry of the
mesh and its symmetries are matched to the analytical and numerical methods used to solve the
governing equations.
Our approach to the meshing problem is to utilize tools and technologies developed by the center of
Interoperable Technologies for Advanced Petascale Simulations (ITAPS) into our integrated
geometry, meshing and adaptivity server (GMAS). The ITAPS center is one of the mathematics
Enabling Technologies Centers (CET) in the Department of Energy's Scientific Discovery through
Advanced Computing (SciDAC) program. The center's focus is on developing advanced scalable
interoperable software associated with geometry, mesh, and field manipulation. It also provides the
necessary meshing tools to reach new levels of understanding through the use of high-fidelity
calculations based on multiple coupled physical processes and multiple interacting physical scales.
GMAS is a code intended to integrate scientific software and provide geometry, meshing and
adaptivity services for PDE solvers of coupled Multiphysics applications without exposing details of
the underlying libraries. GMAS is currently used to handle multiple meshes for multiple PDE solvers
for a given geometry in a coupled application, and it provides the basic infrastructure to allow the
application to evaluate fields over multiple meshes. It has been used in Multiphysics applications to
provide meshing services for a neutron transport simulation code and a solvent extraction fluid flow
code in development. The following example (Figure 6.16) exhibits coarse and refined anisotropic
meshes generated using GMAS. The fine mesh is used to capture boundary layer flow and heat flux
and the coarse mesh is needed for neutronics in the coolant channels of high-temperature test reactor
(HTTR).
Figure 6.16 HTTR Multi-Material Geometry, Initial Coarse Mesh (left), Refined Mesh (right) ) – (Courtesy
of Khamayseh and Almeida)
Figure 6.17 Orography field (left), r-adaptivity (center) and h-adaptivity (right) for climate modeling )
– (Courtesy of Khamayseh and Almeida)
199
along with mesh optimization. In certain Multiphysics applications, the size of mesh at a given
location should be selected to resolve the smallest physics length scale at that point. Too few mesh
elements result in a locally incorrect solution; whereas, too many mesh cells slow the calculation
needlessly. The quality of the solution also depends on other mesh characteristics, such as, element
shapes and connectivity, smoothness and “impedance” requirements, element orthogonality,
anisotropic elements to match anisotropic physics, and boundary representation requirements. We
have developed a hybrid finite volume-based mesh generator for r-adaptivity with certain emphasis
on climate modeling. We employ conformal mapping to derive the elliptic PDEs models for the
optimization and adaptation of hybrid surface meshes. However, an algebraic method is used in the
case of combined h-p adaptivity wherein the degree p of the polynomial basis functions can be
adapted to the features of the field quantities. The following demonstrated examples (Figure 6.17)
exhibit the generation of r-h adapted hybrid surface meshes for climate modeling. It has been shown
that mesh adaptation can reduce simulation error in prediction of the dynamics of the climate system.
Applications to this capability also include field transformation and mapping across multiple meshes.
In particular, the generation and smooth adaptive grid transformations for resolving orography
(earth surface height) and fine-scale processes in climate modeling. Orography plays an important
role in determining the strength and location of the atmospheric jet streams. Its impact is most
pronounced in the numerical simulation codes for the detailed regional climate studies. In addition,
orography is a crucial parameter for prediction of many key climatic dynamics, elements, and
Figure 6.18 Coupled orography field transfer with h-adaptivity. Planar orography field (top),
h-adapted surface mesh (bottom-left) and closeup view of the mesh (bottom-right)
200
moisture physics, such as rainfall, snowfall, and cloud cover. The phenomenon of climate variability
is sensitive to orographic effects and can be resolved by the generation of finer meshes in regions of
high altitude. Resolving orography produces a more accurate prediction of wetter or dryer seasons
in a particular region. And moreover, orography defines the lower boundary in general circulation
models. The following example (Figure 6.18) shows a very dense orography filed on planar uniform
mesh with two kilometer gridded resolution (Figure 6.18- top). The initial field data size was two
gigabits and it was obtained from [Link] We have
successfully introduced h-p adaptivity to a least-squares method with spherical harmonics basis
functions for field mapping and mesh adaptation. The end mesh (Figure 6.18-bottom) is much
coarser at the sea level (50-kilometers) and finer at the high altitude regions (1-kilometers) with only
a fraction of the original field data size. Moreover, the orography field was globally preserved to very
small accuracy. For a full detailed presentation of this adaptive meshing approach we refer the reader
to 371-372.
Figure 6.19 Meshing and Partitioning of Centrifugal Contactor ) – (Courtesy of Khamayseh and
Almeida)
371 Kahamyseh A., de Almeida V.F. and Hansen G. “Hybrid Surface Mesh Adaptivity for Shallow Atmosphere
Simulation”, ORNL/TM-2006-28.
372 de Almeida V. F., Khamayseh A. K. and Drake J. B. “An h-p Adaptive Least-Squares Cartesian Method with
Spherical Harmonics Basis Functions for the Shallow Atmosphere Equations ORNL/TM-2006-26.
201
or of unacceptable aspect ratio. Next, we leverage tools from the ITAPS center into GMAS to partition
the mesh, distribute the data, refine/improve the quality of the distributed mesh in parallel, and
balance the load of the new mesh. Existing functionally of GMAS already provides the partition and
distribution of the data (Figure 6.19), we are currently concentrating on developing of the parallel
mesh refinement, data distribution and load balancing.
[Link] Conclusions.
The paper presents an overview of the current tools being developed by ITAPS and GMAS for the
generation, optimization, and adaptation of hybrid meshes. In addition, the research in this paper is
involved in the development of r-h-p adaptive technology tailored to application areas relevant to
other simulation fields. The r-h-p adaptive meshing approach and its underlying methods can be
attractive to many application areas when solving three-dimensional, multi-physics, multi-scale, and
time-dependent PDE's. This method builds on r-h-refinement/coarsening, p-refinement,
interpolation, and error estimation applied to climate modeling and astrophysics simulation. For
additional information, please refer to [Khamayseh and Almeida]373.
373 Ahmed Khamayseh and Valmor de Almeida, “Adaptive Hybrid Mesh Refinement for Multiphysics
Applications”, Journal of Physics: Conference Series 78 (2007) 012039.
374 Christopher J. Roy, “Strategies for Driving Mesh Adaptation in CFD (Invited)”, AIAA 2009-1302.
375 Baker, T. J., “Mesh Adaptation Strategies for Problems in Fluid Dynamics,” Finite Elements in Analysis and
other features are not refined enough. In some cases, gradient-based refinement can actually increase
the solution error. An example of the failure of feature-based adaptation is given by [Dwight]377 for
the inviscid transonic flow over an airfoil using an unstructured finite-volume discretization. Figure
6.20 (a) shows the discretization error in the drag coefficient as a function of the number of cells.
Uniform (global) adaptation shows second order convergence on the coarser grids, then a reduction
to first order on the finer grids, likely due to the presence of the shock discontinuities. Adaptation
based on solution gradients initially shows a reduction in the discretization error for the drag
coefficient, but then subsequent adaptation steps show an increase in the discretization error. The
adjoint-based artificial dissipation estimator gives the best results. The adapted grids for the latter
two cases are given in Figure 6.20 (b-c). While the gradient-based adaptation refines the shock
(a)
Figure 6.20 Discretization Error in the Drag Coefficient for Transonic Flow over an Airfoil (Reproduced
from Dwight)
377Dwight, R.P., “Heuristic A Posteriori Estimation of Error due to Dissipation in Finite Volume Schemes and
Application to Mesh Adaptation,” Journal of Computational Physics, Vol. 227, No. 5, 2008, pp. 2845-2863.
203
waves on the upper and lower surface as well as the wake, the adjoint-based adaptation also refines
near the surface and in the region above the airfoil containing acoustic waves that impinge on the
trailing edge.
the method (p-adaption). For general unstructured grid methods the h-adaption approach is the
most popular, while for structured grid methods the r-adaption approach is most often used. p-
adaption has not found widespread use for CFD problems378. In addition to mesh refinement, other
issues that should be considered when adapting a mesh are mesh quality and the alignment of the
mesh with key solution features. Since the focus here is on methods for driving mesh adaption and
not for performing adaption itself, we limit ourselves to a simple approach of r-adaption in one
dimension based on a linear spring analogy. Extensions to handle multiple dimensions are possible
based on a torsional spring, which serves to prevent skewing of the multi-dimensional cells. First, a
mesh adaptation function φi is created based on solution features (e.g., gradients, curvature),
discretization error, truncation error, etc., where i denotes the mesh node point (ordered from 1 to
N). A weighting function is then created from the mesh adaptation function as:
Wi = |φi |q
Eq. 6.3
Where q is an exponent that is set to unity in the present work. This weighting function is used to
drive the mesh adaption process, with smaller values denoting a region for mesh coarsening and
larger values a region for refinement. This weighting function is then passed through a smoothing
algorithm to promote smoothness of the mesh adaptation. This smoothing algorithm includes 10
passes of the following smoothing operation for all interior
points:
Wi+1 + 4Wi + Wi−1
Wi =
6
Eq. 6.4
Once this weighting function has been determined, it is used to determine a spring constant for linear
springs connecting the nodes: ki+1/2 = (Wi + Wi+1)/2. The new nodal location can then be found
according to:
378Baker, T. J., “Mesh Adaptation Strategies for Problems in Fluid Dynamics,” Finite Elements in Analysis and
Design, Vol. 25, 1997, pp. 243-273.
205
3. Discretization Error (DE): This approach uses the true discretization error in the solution to
drive the adaptation process, although the estimated discretization error (e.g., from
Richardson extrapolation) could be used in cases where the exact solution is not available :
φ i = ui - ũ i
4. Truncation Error (TE): This approach uses the leading truncation error terms to drive the
adaptation process as discussed in the next section. In this approach, the partial derivatives
of the solution and the transformation metrics are replaced by second-order accurate finite
difference approximations.
Examples of these different weighting functions applied to steady-state Burgers equation for a
Reynolds number of 32 are shown in Figure 6.21 for q = 1. Clearly each approach will produce
meshes with different adaptation characteristics. Steady-state Burgers equation for Reynolds
number379. The left figure depicts the exact solution and numerical solution using 33 uniformly
spaced nodes, while right shows an example weighting functions for the region -2 ≤ x ≤ 0 based on
solution gradients, solution curvature, discretization error (DE), and truncation error (TE).
Case Study - Mesh Adaption Results for 1D Burgers Equation (Re = 32)
In this section, different methods for driving the mesh adaption are analyzed as well as the case
without adaption (i.e., a uniform mesh). The four different methods for driving the mesh adaptation
are: adaption based on solution gradients, adaption based on solution curvature, adaption based on
the discretization error (DE), and adaption based on the truncation error (TE). Numerical solutions
to steady-state Burgers equation for Reynolds number = 32 are given in Figure 6.22(left) for the
uniform mesh and the four mesh adaption approaches, all using 33 nodes. The final local node
spacing is given in Figure 6.22 (right) for each method and shows significant variations in the
vicinity of the viscous shock.
379Dwight, R.P., “Heuristic A Posteriori Estimation of Error due to Dissipation in Finite Volume Schemes and
Application to .Mesh Adaptation,” Journal of Computational Physics, Vol. 227, No. 5, 2008, pp. 2845-2863.
206
Figure 6.22 Adaption Schemes Applied to Burgers Equation Left) numerical solutions and right) local
nodal spacing Δx.
380 Yasushi Ito, Alan M. Shih, Roy P. Koomullil and Bharat K. Soni, “A Solution-Based Adaptive Redistribution
Method for Unstructured Meshes”, Dept of Mechanical Engineering University of Alabama at Birmingham,
Birmingham, AL, U.S.A.
381 Ito, Y., Shum, P. C., Shih, A. M., Soni, B. K. and Nakahashi, K., “Robust Generation of High-Quality Unstructured
Meshes on Realistic Biomedical Geometry,” International Journal for Numerical Methods in Engineering, 2006.
382 Cavallo, P. A. and Grismer, M. J., “Further Extension and Validation of a Parallel Unstructured Mesh Adaptation
Package,” AIAA Paper 2005-0924, 43rd Aerospace Sciences Meeting and Exhibit, Reno, NV, 2005.
207
383,mesh redistribution384 and the combination of these385-386. Since structured meshes are not
flexible for adding or deleting nodes locally, the mesh redistribution approach is widely used to move
nodes toward solution features while the connectively of the mesh is maintained.
Although solution features are adapted by unstructured meshes relatively easily, there are two issues
needed to be addressed. One is the maintenance of valid elements. Hanging nodes can be created
during a mesh refinement process. Local refinement of hybrid meshes for viscous flow simulations,
which contain regular elements such as tetrahedra, prisms, pyramids and hexahedra, is difficult
without creating low-quality elements to eliminate hanging nodes. To overcome this issue, an
approach using generalized elements is promising387.
The other issue is the quality of resulting refined meshes. Stretched elements may affect solution
accuracy and cause a stiffness problem in numerical simulations. [Mavriplis]388 reports spanwise grid
stretching, which is widely used in aircraft CFD simulations, may have substantial repercussions on
overall simulation accuracy even at very high levels of resolution389. Since typical refinement and
redistribution algorithms for unstructured meshes create highly stretched tetrahedra around
solution features, the validation of the simulation process may be required. If a refined mesh does
not have elements that have too small or too large angles even near solution features, we do not need
to worry about these
issues.
Here, we propose a solution-based redistribution method for unstructured volume meshes. The
structured mesh redistribution methods only allow nodes to move towards solution features, while
maintaining the mesh connectivity. In our unstructured mesh redistribution method, a mesh is re-
meshed around the solution features detected. The main objective here is to extract strong solution
features as smooth surfaces based on sensor values and then to create high quality elements around
them. The entire domain can be re-meshed with the embedded surfaces using an advancing front
method with tetrahedra and an advancing layer method with prisms or hexahedra if needed.
Alternatively, elements around the feature surfaces are removed from the initial volume mesh and
only the resulting voids are re-meshed to reduce the required CPU time. Two examples are shown to
present how our approach works.
Feature Detection
After a numerical simulation using an initial mesh, the next step is the detection of solution features.
The location of solution features is indicated by the weight function by [Soni et al.]390 or the shock
383 Senguttuvan, V., Chalasani, S., Luke, E. and Thompson, D., “Adaptive Mesh Refinement Using General
Elements,” AIAA Paper 2005-0927, 43rd AIAA Aerospace Sciences Meeting and Exhibit, Reno, NV, 2005.
384 Soni, B. K., Thornburg, H. J., Koomullil, R. P., Apte, M. and Madhavan, A., “PMAG: Parallel Multiblock Adaptive
Grid System,” Proceedings of the 6th International Conference on Numerical Grid Generation in Computational
Field Simulation, London, UK, 1998, pp. 769-779.
385 Shephard, M. S., Flaherty, J. E., Jansen, K. E., Li, X., Luo, X., Chevaugeon, N., Remacle, J.-F., Beall, M. W. and
O’Bara, R. M., “Adaptive Mesh Generation for Curved Domains,” Applied Numerical Mathematics, 2005.
386 Suerich-Gulick, F., Lepage, C. and Habashi, W., “Anisotropic 3-D Mesh Adaptation for Turbulent Flows,” AIAA
Paper 2004-2533, 34th AIAA Fluid Dynamics Conference and Exhibit, Portland, OR, 2004.
387 Senguttuvan, V., Chalasani, S., Luke, E. and Thompson, D., “Adaptive Mesh Refinement Using General
Elements,” AIAA Paper 2005-0927, 43rd AIAA Aerospace Sciences Meeting and Exhibit, Reno, NV, 2005.
388 Mavriplis, D. J., “Grid Resolution Study of a Drag Prediction Workshop Configuration Using the NSU3D
Unstructured Mesh Solver,” AIAA Paper 2005-4729, 23rd Applied Aerodynamics Conference, Toronto, 2005.
389 Mavriplis, D. J., “Grid Resolution Study of a Drag Prediction Workshop Configuration Using the NSU3D
Unstructured Mesh Solver,” AIAA Paper 2005-4729, 23rd Applied Aerodynamics Conference, Toronto, 2005.
390 Soni, B. K., Koomullil, R., Thompson, D. S. and Thornburg, H., “Solution Adaptive Grid Strategies Based on Point
Redistribution,” Computer Methods in Applied Mechanics and Engineering, Vol. 189, Issue 4, 2000.
208
sensor by [Lovely and Haimes]391. The weight function is calculated based on the conserved variables
and indicates the regions of important flow features. It is defined at each element as follows:
W1 W2 W3
W=1+ ⨁ ⨁
Max(W1 , W 2 , W 3 ) Max(W1 , W 2 , W 3 ) Max(W1 , W 2 , W 3 )
nq
k
qiξk qiξk
W = ∑ [ i ∕[ ] ]
|q | + ε |qi | + ε
⨁i=1 Max k=1,2,3
Eq. 6.7
where Wk (k = 1, 2, 3), qiξk and qi are x, y and z components of normalized gradient, the kth component
of the gradient calculated using i-th variable and the average variable at the centroid of the element,
respectively. The symbol ⊕ represents the Boolean sum, which for two variables q1 and q2 is defined
as
q1 ⊕ q 2 = q1 + q 2 − q1 q 2
Eq. 6.8
The shock sensor is based on the fact that the normalized Mach number Mn = 1 at a shock.
𝑉 ∇𝑝
M𝑛 = =1
𝑎 |∇𝑝|
Eq. 6.9
where a, V and ⩢ p are the speed of sound, velocity vector and pressure gradient, respectively.
391 Lovely, D. and Haimes, R., “Shock Detection from Computational Fluid Dynamics Results,” AIAA Paper 1999-
3285, 14th AIAA Computational Fluid Dynamics Conference, Norfolk, VA, 1999.
392 Marcum, D. L. and Gaither, K. P., “Solution Adaptive Unstructured Grid Generation Using Pseudo-Pattern
Recognition Techniques,” AIAA Paper 97-1860, 13th AIAA CFD Conference, Snowmass Village, CO, 1997.
393 Sheehy, D. J., Armstrong, C.G. and Robinson, D. J., “Shape Description by Medial Surface Construction,” IEEE
Transactions on Visualization and Computer Graphics, Vol. 2, Issue 1, 1996, pp. 62-72.
209
represent the medial axis. The quality of the resulting medial axes depends on the smoothness of the
iso-surfaces. However, iso-surfaces are not usually smooth, and they may have bumps and holes due
to truncation errors in the entire simulation process. User interaction is often required to fix the
resulting surfaces.
The other approach is a mathematical-representation approach. A medial axis can be estimated using
least square fitting directly from the nodes on an iso-surface. Least square fitting methods often
minimize the vertical offsets from a surface function instead of the perpendicular offsets to simplify
an analytic form for the fitting parameters. Consequently, the least square fitting does not estimate
the surface function well when the region defined by an iso-surface is thick. Although a set of
coordinates of nodes near a solution feature is needed as an input for a least square fitting method,
the connectivity of the nodes is not required. Therefore, we define a solution feature as a set of nodes
based on the following process:
1 Select nodes of a volume mesh that have a certain range of sensor values.
2 Also select nodes that are one-ring neighbors of the nodes in Step 1 to eliminate noise due to
truncation errors.
3 Number each cluster of selected nodes, which can be defined as their connectivity, if the mesh
has more than one solution features.
4 Calculate distance from the closest boundary at each selected node. The boundary is
represented by the selected nodes that have at least one unselected node as their one-ring
neighbor. The distance is defined as the number of edges from the boundary.
5 The nodes that have local maxima of the distance values are considered to form medial axes.
The coordinates of the nodes in Step 5 are fitted to functions, such as a plane, quadric and cone, using
a least square fitting method. Local mesh size can be considered to be the error range of a data point.
The reciprocal of the local mesh size is used for weighing. Suppose that a cluster of selected nodes
xmj (j = 1, 2,…, nm) is fitted to a function z = f (x, y).
nm 2
zj − f(xj , yj )
E = ∑( )
lj
j=1
Eq. 6.10
where lj is the maximum edge length connected to node j. E should be minimized. The resulting
function should be trimmed to define a surface in the computational domain.
after the second simulation cycle (130 K nodes; Vn2). Figure 6.25 illustrates hybrid meshes for the
same wing geometry to perform viscous flow simulations and Cp distribution. The shock location is
estimated using the same approach from the initial hybrid mesh, Figure 6.25 (a), and then the entire
domain is re-meshed with the embedded surface (Figure 6.25(b)). To avoid creating skewed
elements around the intersection between the wing upper surface and the embedded surface, the
near-filed mesh around the wing is generated first. The embedded surface close to or within the near-
field mesh is trimmed automatically, and then the rest of the domain is filled with tetrahedral
elements.
(c) Weight
Function value
distribution
Once the feature surface is computed, the surface mesh generation algorithm is applied to create a
high quality mesh on it. Elements of the initial volume mesh, Vn0, near the solution feature are
removed and the void is re-meshed using the advancing front method. Figure 6.24 (c) shows the
resulting volume mesh (110 K nodes; Vn1). As a result, a high quality redistributed mesh is produced
with alignment to the major flow feature. Figure 6.24 (d) shows another redistributed volume mesh
after the second simulation cycle (130 K nodes; Vn2). Figure 6.25 illustrates hybrid meshes for the
same wing geometry to perform viscous flow simulations and Cp distribution. The shock location is
estimated using the same approach from the initial hybrid mesh, Figure 6.25 (a), and then the entire
domain is re-meshed with the embedded surface (Figure 6.25(b)). To avoid creating skewed
elements around the intersection between the wing upper surface and the embedded surface, the
near-filed mesh around the wing is generated first. The embedded surface close to or within the near-
field mesh is trimmed automatically, and then the rest of the domain is filled with tetrahedral domain
211
is re-meshed with the embedded surface (Figure 6.25(b)). To avoid creating skewed elements
around the intersection between the wing upper surface and the embedded surface, the near-filed
mesh around the wing is generated first. The embedded surface close to or within the near-field mesh
is trimmed automatically, and then the rest of the domain is filled with tetrahedral elements.
Although the iso-surfaces shown in Figure 6.26 (b) are smoothed using a Laplacian method, many
holes and small features prevent extracting smooth medial axes. The other approach using the least
square fitting method is more appropriate in this case.
Figure 6.25 Hybrid Meshes for the NACA0012 Wing-Section and Cp Distribution (-1.0 to 1.0)
(a) Initial Hybrid Mesh; (b) Redistributed Hybrid Mesh
After a user specifies one of the template functions, such as a cone, quadratic and quartic, and the z
axis of the function, a corresponding medial axis is obtained as a mathematical function. The bow
shock in front of the capsule is fitted to a quadratic, and the shock from the aft of it is fitted to a cone.
It can be shown shows that the obtained surfaces and the iso-surfaces for reference on the symmetry
plane. The least square fitting method estimates the medial axes well. One of the disadvantages using
unstructured meshes is that flow features diverge quickly. This approach enables us to estimate
missing flow features.
Figure 6.26 (c) shows a redistributed mesh, which has 0.74 M nodes. In this case, the entire mesh
is regenerated because the shape of the outer boundary is changed to remove extra elements. The
initial mesh shown in Figure 6.26 (a) can be used for cases at different angles of attack, but it has
0.89 million nodes. In addition, the elements around the shocks in the far field are coarse. The initial
mesh gives a carbuncle phenomenon on the bow shock, while the redistributed mesh gives better
result. One of the solution feature surfaces shown in Figure 6.26 (b) fits the bow shock well. The
most notable advantage of the surface-based mesh redistribution method is that anisotropic non-
simplicial elements can be used around the feature surfaces to avoid creating skewed elements.
Figure 6.26 (d) shows a redistributed hybrid mesh, which has 0.62 M nodes, based on the same
numerical result. Prismatic layers are placed around the bow shock.
214
7 Dynamic Meshing
The moving-mesh provides a capability of tackling flow simulations where the domain shape changes
during the simulation. In such cases, the computational mesh needs to adapt to the time-varying
shape of the domain and preserve its validity and quality. The mesh motion solver support which
calculates the internal point motion based on the prescribed motion of the boundary. The
performance of the method is preserved through the choice of decomposition of cells, the bounded
discretization and the use of iterative solvers394. We covered the dynamic mesh before a little bit
with Adaptive Mesh Refinement (AMR) where it was characterized it as H, P, and R-Methods. To
recap:
H-Method - It involves automatic refinement or coarsening of the spatial mesh based on
a posteriori error estimates or error indicators. The overall method contains two
independent parts, i.e. a solution algorithm and a mesh selection algorithm.
P-Method - the adaptive enrichment of the polynomial order.
R-Method - The R-Method is also known as Moving Mesh Method (MMM). It relocates
grid points in a mesh having a fixed number of nodes in such a way that the nodes remain
concentrated in regions of rapid variation of the solution.
Where most of adaptive refinements is using R-Methods, with key ingredients which includes
Interpolation of time dependent mesh equation395. In the Dynamic Mesh, the computational mesh
is moved to follow the changing shape of the boundary by moving its points in every step of the
transient simulation. The main difficulty in this case is maintaining the mesh validity and quality
without user interaction where the performance will be quantified by speed, accuracy, robustness,
and stability396.
394 Hrvoje Jasak, ˇZeljko Tukovi´c, “Automatic Mesh Motion for the Unstructured Finite Volume Method”, ISSN
1333–1124, UDK 532.5:519.6.
395 Tao Tang, “Moving Mesh Methods for Computational Fluid Dynamics”, Contemporary Mathematics, 1991.
396 Hrvoje Jasak, ˇZeljko Tukovi´c, “Automatic Mesh Motion for the Unstructured Finite Volume Method”, ISSN
with moving boundaries and interfaces”, Computer methods in applied mechanics and engineering 119 (1994).
401 Helenbrook, B. T., “Mesh deformation using the bi-harmonic operator”, International journal for numerical
harmonic equation to govern mesh motion. Other methods includes Dynamic-Overset meshing,
dynamic re-meshing using Radial-Basis Functions (RBF), Delaunay Method and mesh motion and
dynamic re-meshing using a generalized grid interface (GGI)402. The Radial Basis Function (RBF)
method and Delaunay Method which have been used widely in fluid-structure interaction. An
analysis of dynamic-meshing techniques was one by quantifying the accuracy, robustness, stability,
and speed of each one and while dynamic re-meshing via solution of a Laplace equation was robust
and GGI was the fastest, Overset meshing was found to be the most stable and the most general
technique for complex geometries and motions403. RBF proved to be too computationally expensive
and unrealistic for 3D problem.
∂ ∂ ∂ ∂φ
⏟(ρφ) +
∂t ⏟j
∂x
(ρuj φ) = ∂x (Γφ ∂x ) + S⏟
⏟j j
φ
Transient ⏟ Source
Convection Diffusion
Transport
Eq. 7.1
402 OpenFOAM ®.
403 Hrvoje Jasak, ˇZeljko Tukovi´c, “Automatic Mesh Motion for the Unstructured Finite Volume Method”.
216
Where ϕ is the general scalar quantity, ρ is the fluid density, and u i is the flow velocity vector.
Furthermore, Γ is the diffusion coefficient and S is the source term. After integrating over a Control
Volume and applying the divergence theorem, we obtain the integral form
V t ρ .ρ u j . Γ
Q x
S dV 0
j
V t ρ dV A ρ u j . dA A Γ . dA V S dV Eq. 7.2
d
ρ dV ρ (u i u g ) . dA Γ . dA S dV
dt V A A V
Here, ug is the grid velocity of the moving mesh, and A is used to represent the boundary of the control
volume V. The unsteady term (first term) could be written as
d (ρV) n 1 (ρV) n dV
dt v
ρ dV V n 1 V n Δt Eq. 7.3
Δt dt
Where dV/dt is the volume time derivative of the control volume. In order to satisfy the grid
conservation law, the volume time derivative of the control volume is computed from
Face Face δV
dV
u g .dA u gj.A j
j
Eq. 7.4
dt V j j Δt
With δVj is the volume swept out by the control volume face j over the time step Δt. In the case of the
sliding mesh, the motion of moving zones is tracked relative to the stationary frame. Therefore, no
moving reference frames are attached to the computational domain, simplifying the flux transfers
across the interfaces404. In the sliding mesh formulation, the control volume remains constant,
therefore, dV/dt = 0 and Vn+1 = Vn
d
(ρ ) n 1 (ρ ) n V
dt v
ρ dV Eq. 7.5
Δt
of a rectangle when it rotates, shown in Figure 7.2-(a). The cell skewness in the domain is highest
near the body, while the remaining mesh is relatively unaltered. However, the method remained
quite robust even with the complex geometry and high amplitude mesh motion. The mathematical
representation for mesh motion via solution of a Laplace equation is
1
∇ . (k ∇𝐮i,mesh ) = 0 , k=
𝑙2
Eq. 7.6
Where ui,mesh is the velocity of points in the mesh and k is a distance function that minimizes the mesh
distortion, and l is the distance to the moving boundary. The body is rotated or transformed in some
manner described by the user and the points on the body are moved based on a coordinate
transformation. The points surrounding the body are moved based on the Laplace equation above.
There is a modest amount of error introduced before the cells surrounding the body are moved406.
Pseudo-Solid Equation
While the Laplace equation only allows direction-decoupled transfinite mapping, the pseudo-solid
equation also allows rotation. However, this comes at a relatively high price: the pseudo-solid
equation couples the components of the motion vector due to rotation. The choice here is either an
increase in storage associated with the block solution of all displacement components or an iterative
segregated solution method.
406 Gina M. Casadei, “Dynamic-Mesh Techniques for Unsteady Multiphase Surface-Ship Hydrodynamics”, A Thesis
in Mechanical Engineering, Pennsylvania State University, December 2010.
407 Hrvoje Jasak, ˇZeljko Tukovi´c, “Automatic Mesh Motion for the Unstructured Finite Volume Method”, ISSN
Conference on Numerical Grid Generation in Computational Field Simulations, Whistler, British Columbia,
Canada, 2000.
409 Helenbrook, B. T., Mesh deformation using the biharmonic operator, International journal for numerical
displacement Δmax = 1.2D, contrary to the previous test. On the other hand, the increased cost of
solving the pseudo-solid equation compared to the Laplace equation does not seem to be justified
with the higher allowed single-step mesh deformation410.
Bi-harmonic Equation
The algorithm is based on the solution of the Bi-harmonic Equation for the deformation field, see
[Tysell]411. The use of the biharmonic equation has also been reported by [Helenbrook]412. The main
advantage of this grid deformation algorithm is that it can handle large deformations, especially close
to the boundaries. It also produces a smooth deformation distribution for cells which are very skewed
or stretched. This is necessary in order to handle the very thin cells in a prismatic layer. The algorithm
can handle skewed cells since the finite element method is used for the solution of the biharmonic
equation. The disadvantage is that the method is slow, compared to algebraic methods, since a set of
partial differential equations needs to be solved. Figure 7.3 (b) shows the deformation of the initial
twin airfoil grid in Figure 7.3 (b).
410 Tukovi´c, ˇZ. “Finite volume method on domains of varying shape (in Croatian)”, Ph.D. thesis, Faculty of
mechanical engineering and naval architecture, University of Zagreb, 2005.
411 Tysell, L., Grid Deformation of 3D Hybrid Grids. Proceedings of the 8th International Conference on Numerical
Grid Generation in Computational Field Simulations, pp. 265-274, International Society of Grid Generation
(ISGG), Honolulu, Hawaii, USA, 2002.
412 Helenbrook, B., Mesh Deformation Using the Biharmonic Operator. International Journal for Numerical
The biharmonic surface grid projection algorithm used for h-refinement may also be used for the
generation of the initial surface grid. This algorithm is better to handle surface patches with poor
parameterization and internal surface discontinuities than bicubic splines. The algorithm has later
been modified in [Tysell]413. The latest improvements are the use of more edge swapping in order to
get a more regular mixed grid and also the setting of a fix position of some nodes close to or on the
curves defining the surface patch. The initial position of the nodes in the mixed grid can be computed
using a tensor-product patch definition. The algorithm is then used to adjust the position of the nodes
in order to get a smooth surface grid.
413 Tysell, L., CAD Geometry Import for Grid Generation. Proceedings of the 11th ISGG Conference on Numerical
Grid Generation, International Society of Grid Generation (ISGG), Montreal, Canada, 2009.
414 Gina M. Casadei, “Dynamic-Mesh Techniques for Unsteady Multiphase Surface-Ship Hydrodynamics”, A Thesis
Figure 7.4-(b) clearly displays that the RBF deforms around the rotating rectangle, unlike the
Laplacian mesh motion (Figure 7.4-(a)) which has highly skewed cells around the rectangle. The
high mesh quality is more preserved in regards to RBF. However, RBF requires much more
computational effort between iterations during the mesh update scheme, which is a huge downfall to
this method. The interpolation function s(x) as defined below describes the displacement of all
computational mesh points by summing a set of basis functions:
Nb
s(x) γ j x x b j q(x)
j1 Eq. 7.8
where x b j [ x b j , y b j , z b j ] are boundary value displacemen t
416Ismail Bello, Shahrokh Shahpar, “Mesh Morphing For Turbomachinery Applications Using Radial Basis
Functions”, Rolls-Royce PLC CFD Methods Group, Derby, UK.
221
surface, and it was found that variations in the geometry were introduced by various external factors.
To understand the differences introduced by these variations on the dynamics of the flow around the
OGVs, an accurate representation of the manufactured assembly must be generated and meshed in
order to perform new CFD simulations. This is critical in order to understand local effects introduced
by these variations, as well as
system-level effects such as
changes in the gas turbine
performance. These variations
are not easily represented by
changes in the parametric
representation of the blades,
and as such form an ideal
candidate for our test case.
For each blade, the
displacement field required to
morph the mesh generated
from the parametric
representation can be
computed by calculating the
signed shortest distance field
between the STL scan and the
mesh, this was done using in-
house code built for this
purpose called Point2Surface
(P2S)417. P2S computes the Figure 7.5 Outlet Guide Vane (OGV) Boundary Surfaces Defined for a
Harsdorf distance between the Single Passage
two surfaces and its associated
direction. This distance computation is only required on the outlet guide vane surface, the inner
boundary surface in , the inner boundary surface in Figure 7.5. For all other surfaces, we require
these to be fixed. In other words, the morphing process is purely needed to adapt the volume mesh
local to the OGV surface naturally and smoothly. A number of challenges were encountered in this
application, but practical solutions were found which allowed the use of the method to produce valid
meshes for all blades (see [Bellob and Shahpar]418.
Local features in the underlying displacement field presented an issue in avoiding negative volumes.
Three kinds of features were found to affect the validity of the result. High displacements applied to
cells with high curvature area, particularly near the leading and trailing edge. This is currently being
investigated as an improvement to the sampling routines and distance computations. Because the
Harsdorf distance is not necessarily normal to the original surface, angular variations are found
where certain features are present on the surfaces (see Figure 7.6). Where locally the distance field
deviated largely with the surface normal, the morphing process was found to be prone to inversions,
i.e negative volume cells. These variations were usually due to local features in the scanned
component such as surface imperfections and fillet radii. In order to avoid this, an additional filtration
of the input data was done to exclude such measurements from the sampled data. In other words,
given a threshold angle, all distance vectors that deviate from the surface normal by greater than that
value are excluded from the morphing constraints in order to not capture such features.
Figure 7.6 Typical Angular Variation Between the Computed Distance Field Vector and the Surface
Normal (OGV not shown to scale)
419 M. Beaudoina and H. Jasak. “Development of a Generalized Grid Interface for Turbomachinery simulations with
The GGI design rationale with respect to examples like Turbomachinery is:
• Apart from “fully overlapped” cases, turbomachinery meshes contain similar features that
should employ identical methodology, but are not quite the same.
Non-matching cylices for a single rotor passage.
Partial overlap for different rotor-stator pitch.
Mixing plane to perform averaging instead of coupling directly.
421 Hrvoje Jasak, “General Grid Interface Theoretical Basis and Implementation”, Wikki Ltd, United Kingdom.
224
Overset Methods
One method of grid generation that has many advantages is an overset-grid approach. This process
involves constructing several blocks that are overlapping, made up of structured or unstructured
grids. Partial differential equations are solved on each component and boundary information is then
exchanged between these grids based on interpolation422. The unused grid points are cut from the
solution known as hole points. The points that are overlapped between grids are known as fringe
points. The interpolation points are identified as the points that interpolate between the overlapped
grids to obtain a solution423. Figure 7.8-(a) shows an example of a boundary layer grid and a
background grid. Figure 7.8-(b-c) displays an overset grid arrangement showing hole, interpolated
and active points correlates for a ship motions using dynamic overset grids424. This method uses rigid
overset grids that move with relative motion at large amplitude motions. The code Suggar is used to
obtain interpolation coefficients between the grids at each time step that the grid is moved. The
overset grid comparison with experimental data for sink age, trim, and resistance showed good
comparison proving that this meshing technique allows accurate computations of ship flows in
motion.
Delaunay Method
Delaunay method used in mesh motion divide into four steps: First, we generate the Delaunay graph
according to the geometry boundary. The Delaunay criterion is that the circum-circle for triangles or
the circum-for tetrahedron should not include other points except the points which construct the
triangular or tetrahedron. If the geometry boundary is convex, this mesh can always proceed and
unique. Usually, wing surface and far boundary points take as geometry to generate the Delaunay
triangular. After the Delaunay triangular generation, all spatial nodes should locate in its Delaunay
triangular. For a point p, search the triangular which contain this point and calculate the surface or
volume coordinates as
422 S.E. Sherer and J.N. Scott. “High-order compact finite-difference methods on general overset grids”. Journal of
Computational Physics, 210(2):459–496, 2005.
423 P.M. Carrica, R.V. Wilson, R.W. Noack, and F. Stern, “Ship motions using single phase level set with dynamic
Sj Vj
ej j 1,2,3 ej j 1,2,3,4 Eq. 7.9
S V
The key step in Delaunay method is moving the Delaunay triangular base on boundary deformation.
All the connectivity and vertex index should be kept. If the deformation is too large, triangular
deformation may failure. In this case, split the deformation into two shell steps and go back to step 1
regenerating the Delaunay triangular. At last, relocate the spatial node. According to the surface or
volume coordinate at step2, turn them into Cartesian at the moved triangular. As equation :
4
xp ei xi Eq. 7.10
i 1
An interesting discussion regarding the Delaunay Graphed Method with Damping Function
(DGMDF), for fluid-structure integration, is provided by [Wang et al.]425 which accordingly works
with efficiency that requires.
425Yibin Wang, Ning Qin , Ning Zhao, “Delaunay graph-based moving mesh method with damping functions”,
Chinese Journal of Aeronautics, August 2018.
226
Delaunay method, first step is generating Delaunay triangular according to geometry boundary as
Figure 7.9-(b) displayed. Then, compute the surface coordinates of spatial nodes in Delaunay
triangular. After the geometry deformation, the Delaunay triangular will deform as Figure 7.9-(c).
By keeping the surface coordinates unchanged, we relocate the spatial nodes in Cartesian
coordinates. Figure 7.9-(d) show the mesh after deformation426.
Spring Analogy
Other technique is the spring analogy, where the mesh nodes are connected through tension springs,
where the stiffness is related to the length of the edge. This approach tends to produce highly
deformed meshes with collapsed or negative volume and is incapable of reproducing solid body
rotation. The tension spring model has been improved by attaching torsion springs to each vertex
where the stiffness is related to the angle.
Cθ C ψ C θ Sψ - Sθ
R S SθCψ - C Sψ S SθSψ C Cψ S Cθ Eq. 7.11
C Sθ C ψ S Sψ C SθSψ S C ψ C Cθ
426JIA Huana, SUN Qin b, “A Comparison of Two Dynamic Mesh Methods in Fluid –Structure interaction”, School
of Aeronautics, Northwestern Polytechnic University, Xi‘an china. 2nd International Conference on Electronic &
Mechanical Engineering and Information Technology (EMEIT-2012).
427 Joaquin Ivan Gargoloff, “A Numerical Method For Fully Nonlinear Aero-elastic Analysis”, Dissertation,
Submitted to the Office of Graduate Studies of Texas A&M University in partial fulfillment of the requirements
for the degree of Doctor of Philosophy, 2007.
227
where, in generic terms, CX = Cos(X) and SX = Sin (X) . The angles φ , ϴ, and ψ are Euler angles that
represent the following sequence of rotations:
Undeformed Deformed
Figure 7.11 Mesh Before and After the x-axis Rotational Deformation
𝐱 𝝉 = ∇. (k∇𝐮i,mesh )
Eq. 7.12
Where τ is an artificial time. Then, beginning with an initial guess, we march in “time” to steady state.
Any discrete marching scheme to solve (Eq. 7.12) can be regarded as an iterative method to solve
the nonlinear system (Eq. 7.6). At τ = 0, we can find the solution up to steady state to obtain a mesh
that adapts well to the initial data. With this initial adaptive mesh, the solution u can be updated
(using the underlying PDE) one time step. Then a new mesh is obtained using the updated u in the
monitor function. However, since u changes only very little in one time step, it is not necessary to
solve again (Eq. 7.12) all the way to steady state. Besides, the initial mesh is already a very good
initial guess. Thus, it is natural to march only one time step in (Eq. 7.12) (or equivalently to do only
one iteration) at a time. In other words, taking τ as the actual time. Therefore, we proceed solving the
moving mesh and the underlying PDEs alternately one time step at a time431.
Case Study - Dynamically Adaptive Mesh Refinement FDTD: A Stable and Efficient Technique
for Time-Domain Simulations432
The Finite-Difference Time-Domain (FDTD) technique has been extensively employed in the modeling of
microwave and optical structures, due to its simplicity and versatility. However, these FDTD qualities are
partially compensated by the stability and numerical dispersion limitations on the choice of the cell size
and the time step of the method, that render its application to complex and/or electrically large structures
computationally expensive. In the past, a variety of static sub-gridding techniques have been proposed,
aimed at accelerating the conventional
FDTD technique for structures with
localized fine geometric features.
According to such approaches, local mesh
refinement is pursued in a priori defined
regions of a computational domain, as
dictated by physical considerations.
For example, the presence of metallic
edges, or high dielectric permittivity
inclusions, would call for a locally dense
mesh, embedded in a coarser global one.
The use of local mesh refinement typically
results in significant computational savings
compared to the conventional FDTD,
despite the fact that its implementation is
Figure 7.12 Spiral Inductor Geometry where P1 and P2
associated with additional interpolation
denote port 1 and Part 2
and extrapolation operations in both space
and time. However, static mesh refinement ignores the dynamic nature of time-domain field simulations.
In fact, techniques such as FDTD and the transmission line matrix (TLM) essentially register the evolution
of a broadband pulse propagating in a device under test, along with its retro-reflections. Hence, a localized
discontinuity in a simulated domain is only illuminated for a (potentially small) fraction of the total
simulation time, during which a local mesh refinement around it is needed. Therefore, static mesh
refinement, which is widely employed in frequency-domain simulations and has been incorporated in
commercial finite-element tools, is only a sub-optimal solution to the mesh refinement problem in the
431 Hector D. Ceniceros and Thomas Y. Hou, “An Efficient Dynamically Adaptive Mesh for Potentially Singular
Solutions”, Journal of Computational Physics 172, 609–639 (2001).
432 Yaxun Liu and Costas D. Sarris, “Dynamically Adaptive Mesh Refinement FDTD: A Stable And Efficient
Technique For Time-Domain Simulations”, Department of Electrical and Computer Engineering University of
Toronto, Toronto, ON, M5S 3G4, Canada.
229
code. Therefore, no spatial or temporal interpolation operations, which are the primary sources of
instabilities in adaptive mesh FDTD codes, are applied then. This is an additional advantage of using
a dynamically adaptive instead of a statically adaptive mesh in time-domain simulations. For further
info, please refer to development in [Liu and Sarris]433.
433Yaxun Liu and Costas D. Sarris, “Dynamically Adaptive Mesh Refinement FDTD: A Stable And Efficient
Technique For Time-Domain Simulations”, Department of Electrical and Computer Engineering University of
Toronto, Toronto, ON, M5S 3G4, Canada.
231
Resolution
Flow of a fluid will often exhibit strong gradients in one direction with milder gradients in the
transverse directions (e.g. boundary layers, shear layers, wakes). In these instances, high quality cells
are easily generated on a hex grid with high aspect ratio (on the order of one thousand or more). It is
much more difficult to generate accurate CFD solutions on highly stretched tetrahedral. (Plus, not all
stretched Tet are equal depending on the maximum included angles.)
Alignment
CFD solvers converge better and can produce more accurate results when the grid is aligned with the
predominant flow direction. Alignment in a structured grid is achieved almost implicitly because grid
lines follow the contours of the geometry (as does the flow), whereas there's no such alignment in an
unstructured mesh.
Definable Normal
Application of boundary conditions and turbulence models work well when there is a well-defined
232
computational direction normal to a feature such as a wall or wake. Transverse normal are easily
defined in a structured grid. To demonstrate, following example is used.
434 Sideroff, C,. “Multi-Block Structured Meshing and Pre-Processing for OpenFOAM Turbomachinery Analysis”.
435 Stephen Ferguson, CD-Adapco Blog, “Nature’s Answer to Meshing”, 2013.
233
for gradient calculation are the Green-Gauss and the Least Squares approaches436. Polyhedral cells
are also less sensitive to stretching than tetrahedral. Smart grid generation and optimization
techniques offer limitless possibilities: cells can automatically be joined, split, or modified by
introducing additional points, edges
and faces. Indeed, substantial
improvements in grid quality are
expected in the future, benefiting
both solver efficiency and accuracy
of solutions.
Polyhedral cells are especially
beneficial for handling recirculating
flows. Tests have shown that, for
example, in the cubic lid-driven
cavity flow, many fewer polyhedral
are needed to achieve a specified
accuracy than even Cartesian
hexahedra (which one would expect
to be optimal for rectangular
solution domains). In fact for a
hexahedral cell, there are three
optimal flow directions which lead
to the maximum accuracy (normal
to each of the three sets of parallel
faces); for a polyhedron with 12
faces, there are six optimal
directions which, together with the
larger number of neighbors, leads to
a more accurate solution with a Figure 8.4 Polyhedral cells vs Tetrahedral cells
lower cell count.
Although tetrahedral are the
simplest form of volume elements and tetrahedral meshes are able to approximate any arbitrarily
shaped continuum with a remarkable level of detail. Automated tetrahedral mesh generation
methods have been well studied and developed, providing currently the only robust solution for
meshing complex geometries in 3D, making them a standard choice of major CFD codes. However,
despite the fact that tetrahedral present several geometric assets, such as planar faces and well
defined face and volume centroids, they suffer from certain disadvantages that make analysts deem
them inferior to hexahedra. Tetrahedral elements cannot provide reasonable accuracy, as soon as
they become too elongated, which is often the case in boundary layers or sharp corners of the domain.
Furthermore, they have only four neighbors making them not an optimal choice for CFD, as
computation of gradients at cell centers can become problematic. It is, therefore, not unusual during
simulations serious numerical stability issues to appear, additionally to the reduced accuracy, and
problematic convergence properties to dominate the analysis. Figure 8.4 indicate the pro and con
of Polyhedral cells vs Tetrahedral ones.
436Emre Sozer, Christoph Brehm and Cetin C. Kiris, “Gradient Calculation Methods on Arbitrary Polyhedral
Unstructured Meshes for Cell-Centered CFD Solvers”, American Institute of Aeronautics and Astronautics.
234
able to balance, up to a certain degree, the negative effects in accuracy and stability (see Figure 8.5-
left). Furthermore, advanced discretization methods combined with very fine meshes can result to
accurate solutions and good convergence properties. This, however, demands for increased memory
usage and computing time, while it makes the analysis code more complicated. Recently, an
alternative option to tetrahedral meshes has emerged, suggesting the use of polyhedral elements
instead437. Polyhedral over the same level of automatic mesh generation as tetrahedral do, while they
are able to overcome the disadvantages adherent to tetrahedral meshes (see Figure 8.5-right). A
major advantage of polyhedral occurs from the fact that they are bounded by many neighbors,
making approximation of gradients much better that tetrahedral. Furthermore, they are much less
sensitive to stretching and, since their typically irregular shape is not a restriction for several CFD
codes, they over the possibility of post-processing and optimization without the strict geometric
criteria that are necessary for optimizing tetrahedral, or even hexahedral meshes.
On the negative side, polyhedral are usually of much more complex geometry than regular volumes,
and, depending on the generation method, it cannot always be guaranteed that they are convex, or,
even more, that their faces are planar. The topology of polyhedral meshes is, typically, also complex,
preventing the implementation of efficient and easy to maintain generation algorithms from being
straightforward. As a further consequence, polyhedral meshes require a considerable amount of
adjacency relations, in comparison to tetrahedral and hexahedral meshes, making them candidates
for resource expensive solutions. All the above set the basis for an interesting field of exploration in
volume meshing. Previous studies on the subject have shown promising results, however polyhedral
meshing is still far from becoming a standard practice in CFD simulations. Some explanations for this
may be its limited adoption from analysis codes and the fact that polyhedral are not an appropriate
solution for every type of analysis. It should be mentioned that, currently, polyhedral meshes attract
Figure 8.5 Boundary prims cells for tetrahedral (left) and polyhedral (right) cells – (Courtesy of CD-
Adapco)
437M. Peric, “Simulation of flows in complex geometries: New meshing and solution methods”, NAFEMS seminar:
Simulation of Complex Flows (CFD).
235
more attention in fields such as Computer Graphics and Medical Imaging, where in 3D volume
rendering is of specific interest. However, the few researches dedicated to exploring polyhedral mesh
generation for CFD remain active, making constant progress towards more efficient methods and
high quality meshes.
Geometric Properties
For detail calculation of geometric properties such as Polygonal Face Area and Centroid as well as
Polyhedral Volume and Centroid, the reader should refer to [Sozer et al]441.
Literature Survey
[Aftosmis, et al.]442 investigated the behavior of linear reconstruction techniques on unstructured
meshes. Their chief concern was the behavior of limiters and the effect of element types (triangular
vs. Quadrilateral) for CFD solutions, particularly for high aspect ratio or irregular elements. They did
however, investigate the least squares (LSQR) and Green-Gauss methods for gradient calculation. The
methods behaved similarly for regular meshes whereas the LSQR was found to be more tolerant to
mesh distortions. [Mavriplis]443 examined the LSQR procedure for gradient reconstruction, observing
that the method produced accurate gradients for isotropic meshes but the accuracy deteriorated for
highly stretched meshes in the presence of curvature. In the latter case, they found the Green-Gauss
reconstruction method to be more accurate. [Shima, et al.]444 devised an LSQR method where they
438 Emre Sozer, Christoph Brehm and Cetin C. Kiris,”Gradient Calculation Methods on Arbitrary Polyhedral
Unstructured Meshes for Cell-Centered CFD Solvers”, American Institute of Aeronautics and Astronautics.
439 Diskin, B., Thomas, J., Nielsen, E., Nishiwaka, H., and White, J., “Comparison of Node-Centered and Cell-
Centered Unstructured Finite-Volume Discretization: Viscous Fluxes,” AIAA Journal, Vol. 48, No. 7, 2010.
440 Diskin, B. and Thomas, J. ,“Comparison of Node-Centered and Cell-Centered Unstructured Finite-Volume
Discretization: Inviscid Fluxes,” AIAA Journal, Vol. 49, No. 4, 2011, DOI: 10.2514/1.J050897.
441 Emre Sozer, Christoph Brehm and Cetin C. Kiris, “Gradient Calculation Methods on Arbitrary Polyhedral
Unstructured Meshes for Cell-Centered CFD Solvers”, American Institute of Aeronautics and Astronautics.
442 Aftosmis, M., Gaitonde, D., and Tavares, T., “Behavior of Linear Reconstruction Techniques on Unstructured
Meshes,” AIAA J., vol. 33, no. 11, pp. 2038-2049, 1995.
443 Mavriplis, D., “Revisiting the Least-Squares Procedure for Gradient Reconstruction on Unstructured Meshes,”,
Arbitrary Polyhedra”, 48th AIAA Aerospace Sciences Meeting, Jan 4-7, Orlando, FL, 2010.
236
incorporate weights based on face areas, attempting to inherit benefits of the Green-Gauss method
for stretched meshes. While they note accuracy improvements, they still resort to a hybrid approach
where Green-Gauss method is used for thin and distorted mesh regions445. A comprehensive survey
of unstructured mesh gradient methods, in the context of computer graphics, is conducted by [Correa,
et al.]446. They focus on cost and performance in volume rendering with respect to mesh resolution,
element shapes, neighborhood size and scalar field complexity. They find the inverse weighted
regression method to provide the highest accuracy for irregular meshes and the Green-Gauss method
to perform poorly for badly shaped elements.
Gradient Calculation
The difficulty in calculating gradients in an unstructured mesh stems from the lack of a consistent
and inherent connectivity. The stencil for gradient calculation, as well as the corresponding
coefficients vary cell-by-cell and are costly to compute. Hence, those are typically pre-computed and
stored. Two of the most common methods for gradient calculation are the Green-Gauss and the Least
Squares approaches. Both have several common variations, some of which are explained in the
following sections.
1
dV n̂ dA ,
V A
V
A
n̂ dA Eq. 8.1
Where ň is the surface unit normal vector and A is the surface area. For a 2nd order scheme with
midpoint quadrature, the Green-Gauss method takes on the following discrete form for a polyhedral:
1 N faces
f n̂ f Af
V f 1
Eq. 8.2
445 Shima, E., Kitamura, K., and Haga, T., “Green-Gauss/Weighted-Least-Squares Hybrid Gradient Reconstruction
for Arbitrary Polyhedra Unstructured Grids,” AIAA Journal, Vol. 51, No. 11, 2013, DOI: 10.2514/1.J052095.
446 Correa, C., R., H., and K., M., “A Comparison of Gradient Estimation Methods for Volume Rendering on
Unstructured Meshes,” IEEE Transactions on Visualization and Computer Graphics, vol. 18, no. 3, March, 2011.
237
c-left c-right
f Eq. 8.3
2
As the most basic approach, the simple averaging method is still commonly used due to its attractive
properties of straightforward and cheap implementation. In fact, its usage is usually implied when
cell-centered Green-Gauss gradient method is referred to without mention of the associated face
averaging method.
Detailed information regarding these methods and more are available in 447.
447Emre Sozer, Christoph Brehm and Cetin C. Kiris, “Gradient Calculation Methods on Arbitrary Polyhedral
Unstructured Meshes for Cell-Centered CFD Solvers”, American Institute of Aeronautics and Astronautics.
238
N
i
d
i 1
2
f N
i
Eq. 8.4
1
d
i 1
2
i
Visual Inspection
The gradient order of accuracy (GOA) for various aforementioned methodologies are presented in
Figure 8.8 (a-f) for x-coordinates. Note that for a 2nd order scheme, a gradient operator of at least
order 1 is needed. Figure (a) shows the distribution of GOA for the LSQR scheme with compact stencil.
The operator is able to produce at least 1st order accuracy in the entire field. The cells with a
uniformly spaced stencil that are aligned with x or y directions exhibit 2 nd order accuracy in the
corresponding directions. This is due to perfect cancellation of 1st order errors and it breaks down as
(a) LSQR
(b) GG Simple
soon as mesh uniformity is lost. The cancellation leading to the increased order now needs to be
satisfied in a wider stencil. The Green-Gauss method with Simple averaging as well as IDW fails to
achieve 1st order accuracy as seen in Figure 8.8 (b-c) respectively. Both of these methods neglect
to incorporate directionality of their stencils and neither is linear-exact, i.e. can’t reproduce gradient
of a linear function exactly. The WTLI and LSQR face interpolation methods for the Green-Gauss
gradient yields very similar results (see Figure 8.8 (d-e)). The curvilinear gradient results, as shown
in Figure 8.8 (f), are much like those of the LSQR with compact stencil. This is not surprising as both
methods are linear-exact and both utilize compact stencils. Note that the curvilinear gradient
operator has the most compact stencil of the alternative methods in scope here, utilizing at most 4
points (for 2D).
LSQR method yields the largest errors while the consistent Green-Gauss methods perform the best.
Note that the thin cells mentioned here were sampled near the curved boundary region of the test
mesh. Whereas the Green-Gauss method exhibited mediocre performance elsewhere, its favorable
behavior in the crucial boundary layer type meshes demonstrates its appeal.
The errors associated with the curvilinear method were erratic, yielding the best result for the square
cells and placing among the lower error range elsewhere with two exceptions; the thin quadrilateral
and the arbitrary polyhedral where it exhibited the largest errors. This suggests that a smarter logic
for stencil reduction (in 2D, down-selection of 4 stencil points) needs to be developed. Otherwise, we
consider this method promising, considering that it has the most compact stencil, hence the lowest
computational cost.
Concluding Remarks
A detailed accuracy study of gradient calculation methods for cell-centered unstructured data is
presented. Necessity of the linear-exactness property for 1st order gradient accuracy, and
consequently a 2nd order scheme, is emphasized. A straightforward, yet novel, approach utilizing
local curvilinear transformation is proposed. The curvilinear method offers the most compact
gradient stencil among those studied here. No clear “best” method emerged but strengths and
shortcomings of the investigated methodologies for different cell types are exposed. Gradient
operators with compact stencils, namely LSQR compact and curvilinear, generally exhibited lower
errors. LSQR compact scheme caused stability issues for the solution of the inviscid standing vortex
problem on the random triangulated mesh. The curvilinear scheme, on the other hand, had an erratic
behavior for different cell types, yielding overall low error levels but exhibiting a large error for a
sample arbitrary polyhedral cell. This suggests that the method could benefit from development of a
smarter stencil reduction logic (to down-select 4 points from the available stencil in 2D). The Green-
Gauss method stood out with lower errors for thin triangular or quadrilateral cell types, such as those
found in typical boundary layer meshes, which is it is a very attractive quality for CFD solvers.
Figure 8.10 Notional Launch Vehicle was Imported from an IGES file – (Courtesy of Pointwise Inc.)
surfaces and is likely better suited for CFD (Error! Reference source not found.).
Figure 8.11 Broken Rules are Dsplayed on-screen as a Guide to Repair – (Courtesy of Pointwise Inc.)
Hybrid Meshes
The structured and unstructured meshing techniques described in the previous section work very
closely with volume mesh topology. But hybrid meshes such as those generated by Pointwise's
anisotropic tetrahedral extrusion (T-Rex) have less reliance on volume mesh topology and thus can
243
be generated much more automatically. As an extrusion technique, T-Rex begins with surface meshes
like those described in the section above. The technique marches outward from the surface meshes
creating layers of anisotropic tetrahedra (with included right angles) that can be later post-processed
into stacks of prisms or hexes. Along the way, the T-Rex technique automatically accounts for:
The results are rapid generation of high density, boundary layer refined meshes as illustrated in
Figure 8.12.
Figure 8.12 T-Rex Mesh Generates Near-Wall Hex Layers for Boundary Layer Resolution and
Transitions to an Isotropic Tetrahedral Mesh in the Far Field – (Courtesy of Pointwise Inc.)
Wyman]449.
The current state of the art in high-order mesh generation does not provide a reliable and efficient
approach which would be required in an industrial setting. The aims here is to create high-order
449 Steve Karman & Nick Wyman, “Automatic Unstructured Mesh Generation with Geometry Attribution”, AIAA
Sci tech 2019 Forum, Pointwise, Inc.
450 Michael Turner, “High-Order Mesh Generation For CFD Solvers”, Imperial College London, Faculty of
Engineering Department of Aeronautics, A thesis submitted for the degree of Doctor of Philosophy, 2017.
451 Kristen Catherine Karman, “Higher Order Mesh Curving Using Geometry Curvature Extrapolation”, A
Dissertation Submitted to the Faculty of the University of Tennessee at Chattanooga in Partial Fulfillment of the
Requirements of the Degree of Doctor of Philosophy in Computational Engineering, Dec, 2017.
452 Blum, H. A transformation for extracting new descriptors of shape. Models for the Perception of Speech and
meshes directly from CAD as automatically and robustly as possible. This means that all parts of the
high-order meshing problem must be addressed including CAD handling and linear mesh generation.
It has been shown to be able to apply several high-order mesh generation methods found throughout
the literature and unify them in one context. In addition to this the algorithms used within this
framework mitigate a significant amount of the high computational cost associated with high-order
mesh generation and attempts to address robustness issues.
In the case of inviscid meshes, where the wall spacing is large compared to the boundary
deformation, it is possible to curve the boundary without inverting the element or causing severe
degradation to element quality. However, for viscous meshes, where the wall spacing is much smaller
compared to the boundary deformation, simply deforming the boundary edge can result in the edge
inverting the boundary element and crossing over several layers of interior elements, as shown in
Figure 8.14-a. In this situation, curvature must be applied to at least the layers that were crossed,
but possibly to additional layers in order to increase element quality throughout the mesh. Figure
8.14-b shows the minimal amount of curving required to produce elements with positive areas,
however the third layer still contains nearly inverted elements. Propagating the curvature further
into the interior, as shown in Figure 8.14-c, produces much better quality elements throughout the
entire mesh. The challenge for high-order curvilinear meshing, therefore, is to adequately represent
increasingly complex geometries while also maintaining element validity and maximizing element
quality 453.
453 Kristen Catherine Karman, “Higher Order Mesh Curving Using Geometry Curvature Extrapolation”, A
Dissertation Submitted to the Faculty of the University of Tennessee at Chattanooga in Partial Fulfillment of the
Requirements of the Degree of Doctor of Philosophy in Computational Engineering, Dec, 2017.
246
of interpolating curves exist, we will consider the three most common: Lagrange interpolating
polynomials, Hermite interpolating polynomials, and Bézier curves.
n n
x − xj
pn (x) = ∑ Li (x)yi ; Li (x) = ∏
xi − xj
i=0 j≠i j=0
Eq. 8.6
where Li (x) has the property Li(xj ) = δij. Lagrange polynomials only interpolate the points themselves
and since the initial edge has no interior points, this produces a polynomial of at most degree 1, which
gives us back the linear edge, as shown in Figure 8.15-a.
p(u) = (2u3 − 3u2 + 1)p0 + (2u3 + 3u2 )p1 + (u3 − 2u2 + u)t 0 − (u3 − u2 )t1
Eq. 8.7
It is important to note that the general form of the Hermite interpolating polynomial does not require
the tangent vectors be normalized. Therefore it is possible to determine the appropriate lengths
which would also interpolate the Gaussian curvature at the end points, however this technique was
not pursued for this study. Figure 8.15-b shows the visualization of the resulting Hermite
interpolating curve for the example edge.
p(u) = ∑ p𝑖 f𝑖 (u)
i=0
Eq. 8.8
where u is the parametric coordinate with the restriction u2 [0,1] and pi represent the n + 1 vertices
of a characteristic polygon (also called control points). He also set forth the following properties for
the blending functions fi(u):
The functions must interpolate the first and last vertex points.
The tangent at p0 must be given by p1 - p0 and the tangent at pn must be given by pn - pn-1. This
allows for direct control of the tangent.
Garanzha, V. A., and Kaporin, I. E. Regularization of the variation method of grid generation. Computational
454
The previous requirement was also generalized for higher orders, namely that the r-th
derivative at an endpoint must be determined by its r neighboring vertices. This allows for
control of the continuity at joints between segments of a composite Bézier curve.
The functions fi(u) must be symmetric with respect to u and (1 - u). This allows for reversing
the sequence of vertex points without altering the shape of the curve.
Bézier chose a family of functions known as the Bernstein polynomials to fulfill these properties.
Figure 8.15-c shows the visualization of the four point Bézier curve as derived.
If the vertex locations of the linear surface mesh are taken to be fixed, producing a high-order surface
can be accomplished simply by using an affine mapping of the triangle in the 2D parameter plane to
the reference triangle of a high-order element. This can then be used to locate the new high-order
nodes in the parameter space, which are then projected into 3D using the CAD engine. However, this
248
means that the high-order triangles will inherit the distortion of the CAD surface, lowering the quality
of the mesh and in some cases causing invalid elements. The rest of this section presents a method to
take the high-order surface mesh made using the affine mapping approach and optimize the location
of the high-order nodes to reduce CAD induced distortion. This is done by modelling the mesh entities
as spring networks and minimizing the spring energy, in a similar approach to the work of 455. In
mathematical notation, this can be expressed as
‖x1 − x2 ‖2
Min f = ∑
w𝑆
𝑆
Eq. 8.9
which states that f, the spring energy, is the sum over all the springs in the system, where x1 and x2
are the 3D locations of the nodes at the ends of the springs and ws is the inverse of the spring stiffness,
which is calculated as a function of the nodal distribution being targeted. Because the linear mesh
vertices are held fixed during this procedure, the problem can be reduced to an entity-by-entity
approach.
First optimizing mesh edges that lie on curves; then edges that lie on surfaces; and finally interior
triangle faces that lie on CAD surfaces. In the first case (edges on CAD curves), the problem is a 1D
optimization of spring system in the curve's parameter space t.
p
‖x(t i+1 ) − x(t i )‖2
f=∑
wi
i=1
Eq. 8.10
Where i is one of the P + 1 nodes along the high-order edge. Here, P is the polynomial order of the
mesh being created and wi = zi+1 - zi, where zi is the i-th entry in the distribution of nodal points in the
where -1 ≤ z ≤ 1. The initial values of t are obtained from the linear 1D mapping ti = t1
1 − 𝑧𝑖 1 + 𝑧𝑖
t 𝑖 = t1 ( ) + t 𝑝+1 ( ) , i = 1, , , , , , , p + 1
2 2
Eq. 8.11
where t1 and tP+1 are the parametric coordinates of the end nodes of the edge, which are the vertices
in the linear mesh and are considered to be fixed. Performing the optimization of the edges which lie
on the CAD surfaces follows Eq. 8.9. High-order surface generation 456 a similar procedure but is
formulated in the 2D parameter plane, i.e.,
p
‖x(ui+1 , vi+1 ) − x(ui , vi )‖2
f=∑
wi
i=1
Eq. 8.12
This procedure reduces the distortion found in the high-order edges by minimizing the length of the
edge; that is, the optimized high-order edge will lie approximately on the geodesic between the two
end points on the surface. The procedure for optimizing the location of face interior nodes requires
a slightly alternative approach. The system is considered as a set of freely movable nodes, consisting
455 Sherwin, S. J., and Peir_o, J. Mesh generation in curvilinear domains using high-order elements. International
Journal for Numerical Methods in Engineering 53, 1 (2002).
456 Nektar++. [Link] 2017
249
of those nodes lying on the interior of the triangle, and a set of fixed nodes which lie on the edges.
Each of the free nodes is connected to a system of six surrounding nodes by springs, and this is the
system which is minimized. In a triangle of order P, there are (P-2)(P-1)/2 interior nodes. The
function f is
(p−2)(p−1)/2 6
‖x(ui , vi ) − us , vs )‖2
f= ∑ ∑
ws
i=1 s
Eq. 8.13
where ws is calculated as the distance between the
two nodes in a reference equilateral triangle, shown
in Figure 8.16 along with the connectivity of the
springs. The choice of a six spring system means that
the method is applicable to any point distribution at
any order. For example, Figure 8.16 shows a P = 4
triangle with a Gauss-Lobatto-Legendre
distribution along the edges and a triangular Fekete
distribution for the face interior points.
To optimize the energy of the system a bounded
version of the BFGS algorithm is used457. This
bounding is necessary due to the limits of the
parameter space in the CAD entities. Figure 8.17
shows the effectiveness of this optimization
procedure. The left-hand figure shows the surface Figure 8.16 Distribution of points in a
mesh before optimization, and the right-hand figure Fourth-Order Triangle and the Six Spring
System Linking the Free Nodes - Fekete
after optimization of the spring networks. In this
Distribution
Figure 8.17 The High-Order Surface Created Using the Affine Mapping with / without Optimization in a
Region of High Distortion in the CAD Surface (left to right)
457Byrd, R. H., Lu, P., Nocedal, J., and Zhu, C. A limited memory algorithm for bound constrained optimization.
SIAM Journal on Scientific Computing 16, 5 (1995).
250
case, the highly distorted CAD surface of the rounded leading edge of a wingtip causes suboptimal
surface mesh generation.
The figure clearly shows that the high-order triangles are deformed under the linear mapping.
However, when this optimization procedure is performed, the mesh edges approximate geodesic
lines better and the resulting surface mesh is smoother. There are a number of advantages in using
this simple approach to high-order surface mesh optimization. In addition to being simple to
implement and obtain analytical gradients of the functional, the primary advantage it is relatively
cheap. This is because the bottom-up, disconnected, nature of the method means that each individual
optimization problem is small. However because of the disconnected approach it cannot always
achieve optimal meshes. It can however alleviate invalidity and low quality elements induced by the
curved surface mesh.
This chapter will focus on the last point, with a focus to achieving practical results for industrial
applications. The robustness found in commercial linear mesh generators is due to a number of
factors. Primarily the system will have a series of failsafe options which allow the mesh generator to
recover and continue in the case of a critical error. These fail safes are developed over time by looking
at a case, seeing what works and what does not and depending a solution for the problems at hand
before moving onto the next test case. This philosophy has allowed a number of commercial mesh
generators achieve significant levels of robustness over a range of very complex cases. This kind of
methodology has, as yet, not been applied to high-order mesh generators.
Each example in the literature aims to achieve complete geometric accuracy without compromise.
This chapter explores the idea of relaxing strident criteria on the high-order mesh with the goal of
producing meshes on complex geometries which would otherwise be truly impossible. The study
focuses around the idea of obtaining high-order CFD results on complex geometries with the goal of
achieving practical outcomes. That is, for most aerodynamic external flows, studying the lift, drag and
vortex behavior of the flow. The goal was to produce, by any means, meshes that obtain results
without compromising the outcomes. To achieve this, when considering an a posteriori approach to
high-order meshing, it is vital to think beyond the limitations of the linear mesh generator
It would, on the face of it, seem possible and even trivial, to take these already robust tools and simply
extend them to achieve high-order meshes. In theory, all the positive properties of the linear meshes,
such as the robustness and CAD capability, would be inherited, but this is far from the case. This
chapter focuses around the production of meshes for three geometries which represent the design
progress of a high aerodynamic performance road car.
[Link] Methodologies
One of the most significant factors contributing to the robustness of commercial linear mesh
generators is that prior to making the mesh the CAD surface will be linearized. The surface is
triangulated with no consideration for quality but simply CAD accuracy. The surface triangulation is
usually produced by repeatedly subdividing the surface until the deviation from the true surface of
the edges of the triangles is less than some tolerance. The final mesh is then built upon this linearized
251
CAD representation. The primary advantage is that any poor quality CAD features can be paved over,
removed or altered easily within the triangulation. The disadvantage is the reduced CAD accuracy of
the resulting mesh. This can be offset by increasing the resolution of the linearized CAD surface.
However for finite volume CFD methods, where these meshes are used the most, the loss in CAD
accuracy does not have a significant impact on the final flow result. Most critically, when considering
high-order meshing, this means that the surface mesh vertices cannot be located in the parameter
spaces of the surfaces without using some form of reconstruction of this information, which can
introduce errors and robustness issues. This makes the idea of curving the surface elements from a
generically made linear mesh very challenging.
Two strategies have been developed which provide the relatively simple creation of high-order
meshes for extremely complex cases. The first is based on being able to know the parametric
information associated with the linear surface mesh, hence high-order curving of the surface is a
relatively easy task and shall be referred to as analytic curving. The second is on being able to
reconstruct the CAD information or project the linear mesh onto the CAD surfaces. The approach has
significant issues with speed and robustness but offers an alternative method to curving the surface,
which will be referred to as projection curving.
looking through the data structures and seeing which edges are connected to two triangles which are
on two different CAD surfaces. Once all parametric coordinates are obtained, the high-order meshing
process can continue as before.
This analytic curving approach was found to be significantly easier to use as it only required the
running of Star-CCM+ once and NekMesh twice, first to produce the CAD linearization and then to
reimport the Star-CCM+ mesh and curve it. However, it still had one critical aw: it required the linear
surface mesh to explicitly obey the boundaries of the CAD surfaces. This is not the worst requirement,
but when moving to more complex CAD models, those with in excess of thousands of surfaces, it
proved to be a significant limitation. This was due to requiring an impractical amount of effort in
preparing and cleaning the CAD for the size of problems being tackled. The CAD healing was required
because while the user can tell Star-CCM+ to obey the surface patches beyond a certain limit of mesh
quality, it will no longer do so. The surface triangles could not be curved in this scenario.
CAD parents which are different, the system will use a projection based approach to curve the entity.
High-order nodes will be placed along the linear mesh entity producing a high-order but straight-
sided entity. To curve the mesh entity the nodes are then projected onto the CAD surface and moved
to the surface.
A small but not insignificant proportion of the surface mesh entities will be straight-sided as opposed
to curved. This will have significant impact on the geometric accuracy of the mesh and in turn on the
solution. However, in the results below this will be shown to have little noticeable impact. A full
investigation into this has not been conducted due to time and resource constraints, but this work
proves that high-order meshes can be produced on industrial models and sensible results obtain with
little meshing effort. Indeed the final projection meshing pipeline only required one execution of the
linear mesh generation and NekMesh, with no need for repetition with either system or the CAD.
study ranged from approximately 2-3 M elements as the geometries became more complex and were
a combination of triangular prisms in the near-wall region and tetrahedral in the rest of the domain.
The study began with design 1 (D1): the baseline model of the car currently in production. This model
was meshed using the first analytic meshing pipeline. A process which in total took approximately 4
months of going back and forth between CAD healing and linear and high-order meshing to produce
a viable mesh. The process succeeded but was deemed too complex for robust high-order meshing.
This mesh contained 2.2 M elements of which, approximately 0.6 M were prisms within a boundary
layer mesh. The simulation was conducted under the conditions detailed previously. Because of the
aggressive linearization method used to ensure the ability to produce the mesh, its quality, by the
scaled Jacobian measure, was guaranteed to have a minimum value greater than 0.1. This was the
case for all three meshes presented in this section. The study moved onto work with a second
geometry (D2) which was designed based on the results of the D1 simulation. The D2 mesh was
created using the second analytic curving method. This mesh contained 2.6 M elements with
approximately 0,7 M boundary layer prisms. Figure 8.19 shows, firstly, the mesh of the two designs,
D1 (left) and D2 (right), and the corresponding flow solutions is shown in Figure 8.20. In the case
of these images, the mesh is indeed curved but for clarity only the curved edges of the elements are
shown. For further information, please consult the [Turner]458.
From the high-order D1 simulation two key findings were made, neither of which were identified in
low-order RANS simulations. Firstly, there appeared to be strong vortical structures hitting the
drivers helmet. This was fixed in D2 with a redesigned console area in front of the driver. The D2 is
458Michael Turner, “High-Order Mesh Generation For CFD Solvers”, Imperial College London, Faculty of
Engineering Department of Aeronautics, A thesis submitted for the degree of Doctor of Philosophy, 2017.
256
contour shows clearly that these structures now pass cleanly over the drivers head and are in
somewhat less noisy in terms of the substructures. Secondly, the roll hoop produced significantly
more drag and separation than predicted. D2 had a redesigned roll hoop with an airfoil profile as
opposed to a circular cylinder. This airfoil profile was slightly angled to help control the flow over the
new Gurney ape at the rear of the car. This, combined with redesigned diffusers on the underside, led
to increased downforce over D1. The trend of changes in downforce and drag between the D1 and D2
simulations was well predicted by the high-order simulations and matched the trend in the RANS
results.
Between the two simulations, D1 and D2, despite no geometry changes on the forward part of the
underside of the car, the front splitter showed significant variation in the flow physics. The D1
simulation shows significantly lower pressure in this region and separation of the flow. In contrast,
D2 shows much smoother, attached ow. As there is little variation in the geometry in these two
regions between the two CAD models the most likely explanation of the greatly differing results is
mesh error. To investigate this, Figure 8.21 shows the mesh in these regions. Recalling that these
meshes were made using the two different analytic curving approaches, it is observed that the
mesh is much smoother in gradation for D2. A possible explanation of the non-physical separation is
that the lower mesh quality of D1 induced this error. This result demonstrates the sensitivity of high-
order simulations to mesh quality as well as the higher quality obtained using mesh from the second
Figure 8.21 Underside of the RP1 car surface mesh, design 1 (D1) left, design 2 (D2) right
257
analytic curving method, where the commercial linear mesh generator had some degree of control
on the surface mesh.
The study concludes with one final design (D3) which is full aerodynamic upgrade over the previous
two designs. This car is designed to achieve extremely high levels of downforce specifically for track
racing. This design includes a fully redesigned floor, front splitter and the addition of a rear wing. The
ride height has also been altered, raising the car at the rear for increased diffuser performance and
lowering the front of the car to increase in-ground effect of the front splitter. The increased
geometrical detail lead to an increase in mesh size for this geometry of 3.1 M elements, just under a
third were boundary layer prisms. In the following images there is a noticeable offset in the
geometries of the two cars, this is because of the alteration in ride height.
The D3 mesh which was also the largest at approximately 4 M elements was made using the
projection method. This method can be aggressive in regions of the surface mesh straight sided
where the curving process either would not work or would produce invalid elements. This meant
that a small percentage of the surface was not geometrically accurate. However as the results show
for D3, because they are consistent with D2 and show no obviously non-physical flow region, this
aggressive approach had little impact. Indeed it allowed the mesh to be created almost effortlessly, it
required only one execution of the linear meshing and NekMesh each, it also required no CAD healing
or repetitive cycles. However a more conclusive study with more simulations is required to draw
stronger conclusions on whether the compromised geometric accuracy is a compromise worth
taking. The early results here show that it may well be.
e
Minξ [det∇ϕM (ξ)) det(∇ϕ−1
I (ξ))]
Q = ∀Ω𝑒 ⊂ Ω
Maxξ [det∇ϕM (ξ)) det(∇ϕ−1
I (ξ))]
Eq. 8.14
Where I denotes the ideal element. It is possible to further define the overall quality of the mesh by
considering the minimum metric over the mesh, defined as
Q= Min
⏟ Qe
1≤ e ≤ Nel
Eq. 8.15
These quality metrics lie in the range (-∞ , 1] and from a physical viewpoint make the assumption
459Michael Turner, “High-Order Mesh Generation For CFD Solvers”, Imperial College London, Faculty of
Engineering Department of Aeronautics, A thesis submitted for the degree of Doctor of Philosophy, 2017.
258
that, an `ideal' element should be as close to straight-sided as possible. Results near Qe = 1 are
considered to be the highest quality, as this suggests smoothness of the Jacobian, and any element
with Qe < 0 is an invalid element. The key difference between Jes and Qe is that Qe provides a
measurement of the deformation between the straight-sided and curvilinear element. This makes no
difference in the case of triangular and tetrahedral elements (asides from a multiplicative constant)
since ⊽ΦI is a linear mapping. However, in other elements possessing quadrilateral faces, it is possible
to have deformation in even a straight sided or planar element due to ΦI being a quadratic mapping.
This new quality metric is therefore invariant to element type, allowing the fair assessment of the
quality of hybrid meshes.
not the case for elements with triangular faces, as such quadrature rules have to be stored. The only
reason why these results do not go higher than fourth-order for triangular and tetrahedral meshes is
simply the lack of suitable integration rules above 10th order. The quadrilateral mesh example shows
that the method works for very high-order meshes.
Figure 8.23 Optimization of 10th Quadrilateral Mesh Showing the Initial Configuration and
Optimization using the Hyper Elastic and Distortion Functional
Figure 8.25 Optimization of 4th Order Sphere mesh from the Initial Configuration
using the Hyper Elastic and Distortion Functional
Figure 8.24 Shows the Displacement Residual and Quality, Q, of the Cube Sphere Mesh
261
The resulting distribution is seen in the bottom right figure, where a noticeable shift towards Qe = 1
can be observed. A few very poor quality tetrahedral remain, which can be seen in the bottom left of
the figure. These are solely due to the initial linear mesh, which in this region contains a number of
at elements, which in turn limits the capability of the framework. This highlights need for further
improvement in linear mesh generation for high-order generation. An interesting additional point to
note is that the hyper elastic functional was the only one able to untangle the mesh from the initial
invalid configuration. We posit that further investigation into the integration order is required to
460 Brodersen, O., and Stuermer, A. Drag prediction of engine-airframe interference effects using unstructured
Navier-Stokes calculations. 19th AIAA Applied Aerodynamics Conference (Anaheim, 2001), no. 2001-2414.
461 Untangling and optimization of the DLR F6 geometry. The left figures show the mesh before and after
optimization. On the right the distribution of the quality metric Qe is shown before and after optimization with
the hyper elastic functional.
262
further understand this phenomenon. In theory each of the functional have the necessary properties
to achieve a valid mesh, therefore the failure of the other three is most likely due to the accuracy of
the numerical method. It is also possible that the regularization approach is not suitable for all the of
the functional and a bespoke regularization method is required for each.
Figure 8.27 Cross Section of a Semi-Sphere Case Highlighting the Sliding of CAD
Curves Along the Surface
462 Cross section of a semi-sphere case highlighting the sliding of CAD curves along the surface. The left-hand
image shows the initial mesh and the right-hand figure shows the optimized mesh. Note that the color of the
surface triangles is not related to mesh quality.
463 Spalart, P., and Mejia, K. Analysis of experimental and numerical studies of the rudimentary landing gear.
Proceedings of the 49th AIAA Aerospace Sciences Meeting including the New Horizons Forum and Aerospace
Exposition (Orlando (FL), USA, 4-7 January 2011).
263
Figure 8.28 Hybrid prismatic-tetrahedral mesh of the Boeing reduced landing gear configuration before
(a) and after (b) optimization, and after the isoperimetric splitting is applied (c). Note that the color of the
surface triangles is not related to mesh quality
464Moxey, D., Green, M., Sherwin, S. J., and Peir_o, J. An isoparametric approach to high-order curvilinear
boundary-layer meshing. Computer Methods in Applied Mechanics and Engineering 283 (2015).
264
Figure 8.28 shows the `macro' mesh before and after optimization, for which the hyper elastic
functional has been used since this has been shown to produce the highest quality meshes. The final
mesh created after the macro layer has been split is also shown. For the purposes of clarity, the
tetrahedral have been removed. Overall the figure shows that whilst the initial configuration before
optimization is of a reasonable quality, there are a number of lower-quality elements on the
shoulders of the tires. The quality in this area, as well as throughout the mesh generally, is then
improved in optimization across all of the elements shown. The figure also show the quality of the
prismatic layers after splitting, where in general it can be seen that this approach produces a high
quality mesh.
To quantify the increase in element quality, a number of element quality histograms for this case in
Figure 8.29 are shown. Firstly, the overall distribution from the initial configuration seen in Figure
8.29-a improves substantially under optimization, as shown in Figure 8.29-b, where a clear shift
to the right of the graph is observed, i.e., towards an improved mesh quality. However, it should be
noted that Figure 8.29. Element quality histograms of the Boeing reduced landing gear
configuration for initial configuration and various optimization settings.
this optimization was conducted with a material constant of ν = 0.45, which means that the elastic
solid which is being relaxed is very stiff. Figure 8.29-c shows that reducing ν to 0.4 leads to a mesh
that, whilst being improved over the initial configuration, is overall of a lower quality compared to ν
= 0.45. This observation aligns well with the results reported in reference465, where meshes
Figure 8.29 Element Quality Histograms of the Boeing Reduced Landing Gear Configuration for Initial
and various Optimization Settings
465 Poya, R., Sevilla, R., and Gil, A. J. A unified approach for a posteriori high-order curved mesh generation using
solid mechanics. Computational Mechanics 58, 3 (2016).
265
generated using values of ν close to the incompressibility limit lead to higher quality elements.
Curiously, both the distortion and Winslow functional lead to a decreased quality of the mesh, as
shown in Figure 8.29-d for the distortion functional.
It should also be noted that the use of the isoperimetric splitting of the macro layer was a necessity
when generating high-order anisotropic boundary layers. Generally it was found that, when using
the variation framework on anisotropic elements, the optimization algorithm would very regularly
fail to find a new minimum.
It is logical that because of the shape of the prismatic element, the sensitivity of the functional to
nodal location is very strong, meaning that very large gradients are seen in the optimization. As
shown before, when the gradient is large, high degree quadrature is required and the Q = P+6 rule is
not sufficient. While an adaptive or very high-order integration would allow for the optimization of
anisotropic elements, it is simply not required when using the isoperimetric splitting, meaning that
this approach is more computationally viable. While other examples of a posteriori high-order mesh
generation have shown the ability to correct anisotropic elements, they regularly report the need
for greatly increased iteration count in the solution of either their PDEs or optimization processes. It
is proposed that this is a similar phenomenon to what is experience with failed optimization.
466Lombard, J.-E. W., Moxey, D., Sherwin, S. J., Hoessler, J. F. A., Dhandapani, S., and Taylor, M. J. Implicit large-
eddy simulation of a wingtip vortex. AIAA Journal (2015).
266
mesh produced by NekMesh, an incompressible flow simulation at Re = 105 was performed using
Nektar++.
Due to the convex nature of the geometry, the addition of a prismatic layer adjacent to the geometry
meant that the high-order mesh was valid without needing to resort to variation module to correct
any elements. Each mesh of this geometry was created from the CAD definition using four user
parameters only: δmin, δmax, ε and P, where P is the desired order of the mesh. Meaning that the meshes
NekMesh were significantly easier to produce than by other means. Figure 8.30 shows an image of
the surface of the NACA wing geometry. This mesh has a anisotropic boundary layer, as shown in
Figure 8.31. Regions of high curvature such as the leading edge of the wing and the curved wing tip,
have increased resolutions compared to other parts of the mesh, as would be expected with the
automated specification system. On the suction surface the resolution of the mesh has been manually
increased to capture a separation region in the flow solution. Despite this modification, the octree
system has ensured that the mesh remained smooth, without large changes in element volume.
Further information is available in [Turner]467.
467Michael Turner, “High-Order Mesh Generation For CFD Solvers”, Imperial College London, Faculty of
Engineering Department of Aeronautics, A thesis submitted for the degree of Doctor of Philosophy, 2017.
267
Figure 9.1 Comparison of Hex (16 K Cells) and Tet (440 K Cells) for a Pipe with 90 Degree Bend
468 Fluent, “Meshing and CFD Accuracy”, CFD Summit, June 2005.
268
Figure 9.2 Results of Hex vs Tet Meshes as well as Hybrid Mesh in a Pipe with 90 Degree Bend
469 Mitja Morgut, Enrico Nobile, “Comparison of Hexa-Structured and Hybrid-Unstructured Meshing Approaches
for Numerical Prediction of the Flow Around Marine Propellers”, First International Symposium on Marine
Propulsions smp’09, Trondheim, Norway, June 2009
470 See Previous.
269
471 Abdel-Maksoud, M., Menter, F., and Wuttke, H.. ‘Viscous flow simulations for conventional and high skew
marine propellers’. Ship Technology Research, 45:64 – 71. 1998.
472 Chen, B. and Stern, F. ‘Computational fluid dynamics of four-quadrant marine-propulsor flow’. Journal of Ship
cavitation on a marine propeller using a rans cfd code’. 5th International Symposium on Cavitation, CAV2003,
Osaka, Japan, 2003.
475 Rhee, S. H. and Joshi, S. ‘Computational validation for flow around marine propeller using unstructured mesh
based navier-stokes solver’. JSME International Journal, Series B, 48(3):562 – 570, 2005.
476 Chesnakas, C. and Jessup, S. ‘Experimental characterization of propeller tip flow’. Proc. 22nd Symposium on
Propeller Models
Here, the two five-bladed propeller models visible in Figure 9.3 considered. One is the propeller
propriety of Fincantieri. While the other is propeller P5168, designed at David Taylor Model Basin.
P5168 is a controllable pitch
propeller with diameter D =
0.4027m and experimental
measurements were carried
out at the David Taylor 36-
inch, Variable Pressure Water
Tunnel477. For simulations
both propellers were placed
on the cylinder, simulating the
hub, and the axis of the
propellers were coincident
with the direction of the free
Figure 9.3 Design of Propellers, (left) Propeller P5168,
stream. (right) Propeller A – (Courtesy of Morgut & Nobile)
Numerical Method
In this study only one blade is considered since, the flow around a marine propeller working in
uniform flow can be considered periodic with respect to the blades when the hydrostatic pressure is
assumed constant. In the given conditions the computational domain used in this study is 72o
segment of cylinder covering only one blade. Moreover as a propriety related to the above mentioned
conditions and also to capability of the ANSYS-CFX 11 to run different zones of the domain with either
rotor or static frame of reference the cylinder is split as revealed in Figure 9.4 in a rotating part
called Rotating, and in a stationary part called Fixed. The dimensions of computational domains of
both propellers are listed in Table 9.1, where D is diameter of the propeller. The variable Lmid,
presented but not visible in Figure 9.4, is the length in direction of uniform flow of rotating. To
simulate the flow around a rotating propeller the following boundary conditions were set. On the
Inlet boundary, velocity components of
uniform stream with the given inflow speed Rotating Fixed
were imposed, while the turbulence intensity A P5168 A P5168
was set to 1% of the mean flow. On the Outlet Hmid 0.70 D 0.57 D
boundary the static pressure was set to zero. Lmid 0.14 D 0.75 D
On the outer surface and on the part of the hub L1 2.0 D 1.5 D
included in Fixed free-slip boundary L2 6.0 D 5.0 D
conditions were set. On the blade surface and H2 1.8 D 1.4 D
on the part of the hub included in Rotating no-
slip boundary conditions were set. On the Table 9.1 Dimensions of Domains – (Courtesy of
periodic boundaries (sides of the domain) Morgut & Nobile)
rotational periodicity was ensured. As
turbulence model, the two equation SST (Shear Stress Transport) model with the automatic
treatment of wall functions was employed.
Meshing
All the meshes used in this study were generated using the commercial meshing tool ANSYS-ICEM
CFD 11. For both propellers the Fixed part was discretized only with a unique structured mesh, while
Rotating was discretized with both meshing approaches. Moreover in the case of propeller P5168
were used for Rotating two meshing regimes (coarse, fine). The number of nodes of meshes of
propeller A and propeller P5168 are visible in Table 9.2 and Table 9.3. Since ANSYS-CFX 11
employs the node-centered finite volume method, (More precisely a Control Volume-based Finite
Element Method - CVFEM) the
number of nodes was chosen Fixed Nodes Rotating Nodes
as a parameter of congruence. Type Hexa Hexa Hybrid
For that reason, Grid1 and Grid 1 223820 784914 -
Grid2, Grid3 and Grid5, Grid4 Grid 2 223820 - 785344
and Grid6 have a similar
number of nodes, Table 9.2 Grids for Propeller A– (Courtesy of Morgut & Nobile)
respectively. To generate
structured meshes of both
propellers, Fixed and especially Rotating were decomposed in a large number of blocks and proper
nodes distributions were used to control dimensions and quality of the cells. The single hybrid
meshes were instead
generated with two Fixed Nodes Rotating Nodes
successive steps. First Type Hexa Hexa Hybrid
surface meshes and Grid 3 Coarse 229437 348810 -
volume tetrahedral Grid 4 Fine 229437 711932 -
meshes were created Grid 5 Coarse 229437 - 340400
using the robust Octree Grid 6 Fine 229437 - 741378
method. Then in order
to resolve the turbulent Table 9.3 Grids for Propeller P5168 – (Courtesy of Morgut & Nobile)
boundary layer on the
solid surfaces, with the similar resolution to the one used with structured meshes, layers of prism
were placed around the hub and blade. In the case of propeller A, 6 layers were generated and in the
case of propeller P5168, 15 layers were placed. The average values of y+ on solid surfaces (hub,
blade) of propeller A and propeller P5168 were 20 and 15 respectively. The y+ was defined as y+ =
μT y/ν where μT = (τw/ρ)1/2 is friction velocity, y is normal distance from the wall, ν is kinematic
272
viscosity, ρ is density and τw is wall shear stress. In the case of propeller P5168 during the refinement,
the height of the first node off the solid surfaces was kept unchanged. For propeller P5168 the
structured mesh of Fixed is visible in Figure 9.5 (a). Structured and hybrid meshes on the blade and
hub surfaces are depicted in Figure 9.5 (b-c).
(a) Hexa Mesh of part (b) Surface mesh, Hexa (c) Surface mesh, Hybrid,
Fixed, Propeller P5168 Fine, Propeller P5168 Propeller P5168
Figure 9.5 Meshing for Propeller P5168– (Courtesy of Morgut & Nobile)
Results
To study the influence of the grid on the quality of the prediction of the flow around a marine
propellers, numerical data were compared with available experimental data. Propeller A was used as
a preliminary study. Comparison was carried out only on global quantities of the flow while for
Propeller P5168 comparison was made, analogous as (Rhee and Joshi, 2005), also on the local values
of the flow in a downstream location x/R=0.2386 measured from the propeller mid plane, where R
is the radius of the propeller and x is the distance. The global values considered were thrust
coefficient KT , torque coefficient KQ and efficiency η defined as:
T Q J KT
KT = , KQ = , η=
ρn2 D4 ρn2 D5 2π K Q
Eq. 9.1
where T[N] is the thrust, Q[Nm] is the torque, η[rps] is the rotational speed of propeller, D[m] is the
diameter of the propeller, ρ[kg/m3] is the density of the fluid. J=V/nD is the advance coefficient,
where V[m/s] is the velocity of uniform flow. Circumferentially averaged velocity components, and
root-mean square values of turbulent velocity fluctuations were selected as local flow values. The
root mean square of turbulent velocity fluctuations q was defined as
q = √2k
Eq. 9.2
where k is the turbulent kinetic energy. In the following graphs and contours all local flow values are
non-dimensionalized by velocity of the uniform flow V. Relative percentage errors present in the next
tables are defined as
273
[Link] Propeller A
In the case of propeller A the simulations
were carried out for a wide range of
advance ratios. From Table 9.4 and
Figure 9.6 it is seen that numerical
results of different meshing a approaches,
are very close to each other and also in line
with the experimental data, especially
within the range J = 0.1 - 1.0. Moreover
differences between results obtained
using different meshes are less than 4%.
The relative percentage errors, within the
range J = 1.1 - 1.2 but especially at J = 1.2,
are very height for both meshing
approaches as expected, because thrust
and torque are both almost null.
Table 9.6 Relative Percentage Differences of Computed Values Between Finer and Coarser Mesh for
propeller P5168 – (Courtesy of Morgut & Nobile)
478Mitja Morgut, Enrico Nobile, “Comparison of Hexa-Structured and Hybrid-Unstructured Meshing Approaches
for Numerical Prediction of the Flow Around Marine Propellers”, First International Symposium on Marine
Propulsions smp’09, Trondheim, Norway, June 2009.
275
circumferentially averaged velocity components in axial (Vx), tangential (Vt) and radial (Vr) direction
vs non dimensioned radial coordinate (r/R) for various J, where r is the radial distance from the
centerline of the hub. From these figures it is visible that the predicted trends of velocity components
of both structured and hybrid meshes are very similar and differences are hard to detect. Moreover
the axial and tangential velocity components compare well with the experimental data. The radial
components, instead, are not so close to the experimental data, but their value are lower and
therefore also the experimental uncertainty are larger.
It is however noteworthy that within the range r/R = 0.6 -1.0 even though computed values are under
predicted they seem to have the same trends as the experimental data. A comparison of contours of
the root-mean square values of turbulence velocity fluctuations q on the plane x/R = 0.2386
downstream of the propeller mid plane, for J = 1.1 is presented in [Morgut and Nobile]479. From a
qualitative point of view the contours agree well with experimental data, but from a quantitative
point of view it is clear that the magnitude of turbulence kinetic energy is under predicted especially
on the hybrid-unstructured mesh where is clearly visible the effect of excessive numerical diffusion.
It seems therefore that, at least at model scale, the differences, between hexa-structured and hybrid
structured meshes do affect the accuracy in the predictions of the turbulence quantities but the effect,
for global quantities is modest. It is hard - or even impossible to extrapolate this conclusions to real
scale, given the different qualitative and quantitative character of turbulent phenomena.
Conclusions
In this study a comparison between hexa-structured and hybrid-unstructured meshing approaches
for the prediction of the flow around a marine propellers working in uniform flow was carried out.
The study was performed on two five-bladed propellers in model scale. Hexa-structured and hybrid-
unstructured meshes used for comparison were generated with the commercial meshing tool ANSYS-
ICEM CFD 11. The simulations were carried out with the commercial RANS solver ANSYS-CFX 11,
using the moving frame of reference approach and employing the SST (Shear Stress Transport) two
equation turbulence model. Computational results from both meshing approaches were compared
against the experimental data. In the case of propeller A the comparison was made only on global
values while for propeller P5168 the comparison was carried out also on local values of the flow field.
The numerical values of the thrust and torque coefficients computed using structured and hybrid
meshes are both in line with the experimental data. The performance curves computed using
structured meshes are slightly better than those predicted using hybrid meshes. The differences
in computed values, using different meshing approaches and except for the extreme operational
conditions, are less than 4% for propeller A and less than 3% for propeller P5168. Also the velocity
profiles of propeller P5168, computed using different meshing approaches are in line with the
experimental data, especially for axial and tangential components, (See [Morgut and Nobile]480). The
overall results suggest, that for the numerical prediction of propulsive performances the use of
hybrid meshes might be an adequate choice at least at model scale. They can offer a similar accuracy
to the one of structured meshes and moreover they need a less effort to be generated. On the other
hand, at the model scale and for the CFD code employed, the hybrid meshes do not seem to be the
preferred choice for a detailed investigation of the flow field since they introduce and excessive
diffusion in the solution.
479 Mitja Morgut, Enrico Nobile, “Comparison of Hexa-Structured and Hybrid-Unstructured Meshing Approaches
for Numerical Prediction of the Flow Around Marine Propellers”, First International Symposium on Marine
Propulsions smp’09, Trondheim, Norway, June 2009.
480 Mitja Morgut, Enrico Nobile, “Comparison of Hexa-Structured and Hybrid-Unstructured Meshing Approaches
for Numerical Prediction of the Flow Around Marine Propellers”, 1st International Symposium on Marine
Propulsions, Trondheim, Norway, June 2009.
276
9.3 Case Study 3 – Structure & Unstructured Hybrid Meshing and its effect on Quality
of Solution on Turbine Blade
Applications
Automatic robust unstructured hybrid meshing is indispensable for the success in design
optimization481. In addition, it is important to maintain the mesh quality for deformation of geometry
throughout the optimization process for the reliability of optimal design. Mesh adaptation is useful
to capture the flow feature which can highly affect flow properties. Therefore, the present hybrid-
meshing technique with adaptation is applied for various turbomachinery components to validate its
robustness. In addition, a turbine blade is used to compare the effects of mesh for the optimization.
Results
Effect of mesh quality for design optimization with large deformation of turbine blade is
investigated by using structured mesh, unstructured hybrid mesh without adaptation, and
unstructured hybrid mesh with adaptation (Figure 9.8 (a-c)).
Flow around turbine blade is computed by structured and hybrid meshes (Figure 9.8 (d-
e)). Because of different mesh topology and quality, the flow is totally different. In the figures,
structured mesh can capture the wake region well compared to hybrid mesh without mesh
adaptation.
Daisuke Sasaki, Caleb Dhanasekaran, Bill Dawes, Shahrokh Shahpar, “Efficient Unstructured Hybrid Meshing
481
and its Quality Improvement for Design Optimization of Turbomachinery”, European Conference on
Computational Fluid Dynamics, ECCOMAS CFD 2006.
277
9.4 Case Study 4 - Evaluation of Structured vs. Unstructured Meshes for Simulating
Respiratory Aerosol Dynamics482
In simulating biofluid flow domains, structured hexahedral meshes are often associated with high
quality solutions. However, extensive time and effort are required to generate these meshes for
complex branching geometries. In this study, conducted by [Samir Vinchurkar & Worth Longest]483,
to evaluates potential mesh configurations that may maintain the advantages of the structured
hexahedral style while providing significant savings in grid construction time and complexity.
Specifically, the objective here is to evaluate the performance of unstructured hexahedral,
prismatic and hybrid meshes (prismatic + Tetrahedral) based on grid convergence and local
particle deposition fractions in a bifurcating model of the respiratory tract. A grid convergence
index (GCI) has been implemented to assess the mesh-independence of solutions in cases where true
grid halving is not feasible. Structured hexahedral, unstructured hexahedral and prismatic
meshes were found to provide GCI values of approximately 5% and nearly identical velocity
fields. In contrast, the hexahedral–tetrahedral hybrid model resulted in GCI values that were
significantly higher in comparison to the other meshes. The resulting velocity field for the hybrid
configuration differed from the hexahedral and prismatic solutions by up to an order of magnitude
at some locations. Considering the deposition of 10 μm particles in the planar configuration, all
meshes considered provided relatively close agreement (2–20% difference) with an available
experimental study. For all particle sizes considered, local and total deposition results for the
structured and unstructured hexahedral meshes were similar. In contrast, the prismatic and hybrid
geometries resulted in significantly higher deposition rates when compared to the hexahedral
meshes for particles less than 10 μm. As a result, only the unstructured hexahedral mesh was found
to provide overall performance similar to the structured hexahedral configuration with the
advantage of a significant savings in construction time. These results emphasize the importance of
aligning control volume gridlines with the predominant flow direction in bio fluid applications that
involve long and thin internal flow domains.
482 Samir Vinchurkar, P. Worth Longest, “Evaluation of hexahedral, prismatic and hybrid mesh styles for
simulating respiratory aerosol dynamics”, Computers & Fluids, 2008.
483 See Previous.
484 Heistracher T, Hofmann W. Physiologically realistic models of bronchial airway bifurcations. J Aerosol Sci
1995;26:497–509.
485 See Previous.
486 Oldham MJ, Phalen RF, Heistracher T. Computational fluid dynamic predictions and experimental results for
airway models with comparisons to experimental data. Med Eng Phys 2007;29:350–66.
278
velocity fields, and local particle deposition profiles will be evaluated for an in-plane configuration,
as implemented in the experimental study of [Oldham et al.]. For comparison, local deposition
patterns will also be considered in an out-of-plane model where the second bifurcation has been
rotated by an angle of 90 degrees.
The steady inspiratory flow rate employed in the PRB model results in an inlet Reynolds number of
1788. For respiratory generations G3–G5, this is consistent with an inhalation flow rate in the trachea
of 60 l/min and represents a state of heavy exertion. The flow rate in generation G3 is 125 ml/s, as
specified in the experimental study of [Oldham et al].
Both inlet velocity and initial particle profiles are expected to have a significant impact on the flow
field and particle deposition locations. For comparisons to in vitro deposition data, these profiles may
be largely influenced by upstream effects in the experimental particle generation system. [Longest
and Vinchurkar] have shown that upstream transition to turbulence results in a relatively blunt
initial velocity field and particle profile at the model inlet. However, the flow within the PRB model
can be approximated as laminar. As such, fully-developed blunt turbulent profiles of velocity and
initial particle distributions have been assumed at the model inlet. Within the model, laminar flow is
assumed. Outlet flow is assumed to be evenly divided between the left and right symmetric branches,
i.e., homogeneous ventilation. Gravity has been included in the flow field and particle trajectory
calculations of the PRB model with the gravity vector oriented in the negative z-direction, i.e., normal
to the plane of the bifurcation, to remain consistent with the experiments of [Oldham et al].
Mesh Types
For comparisons to the structured hexahedral base case, three unstructured mesh styles have been
considered. Unstructured meshes are defined as having at least one face or block surface on which
the gridlines do not remain continuous. For the structured hexahedral mesh, four-sided blocks are
used (Figure 9.9 a), which allows the gridlines to remain continuous within each block. For the
unstructured hexahedral mesh, blocks with one triangular face have been implemented. On the
triangular cross-sectional faces, the gridlines become discontinuous at the center of each triangle
(Figure 9.10 b, Slice 1). As a result, this blocking structure produces an unstructured hexahedral
mesh. The other unstructured meshes considered include prismatic and hybrid styles (Figure 9.10).
All meshes were created using the integrated solid modeling and meshing program Gambit 2.2.
Figure 9.9 Geometric Blocking Used (a) Structured Hexahedral (178 Blocks) and (b) Unstructured
Hexahedral (80 Blocks) – (Courtesy of Samir Vinchurkar & Worth Longest)
279
[Link] Structured
The structured base case mesh consists of six-sided hexahedral elements arranged in a system of
interconnected rectangular blocks. The blocks have been arranged in a butterfly blocking design
which minimizes control volume distortions while aligning a higher percentage of elements with the
local flow direction (Figure 9.9 a). Moreover, mesh density is increased near the wall and near the
bifurcation points. This multi-block structure is difficult to develop because gridlines may be
distorted, but must remain continuous throughout the geometry. Designing a high quality block-
structured meshing configuration for a geometry with multiple branches in which hexahedral
elements largely align with streamlines is a user intensive non-trivial task.
[Link] Unstructured
As with the structured mesh, the unstructured hexahedral configuration requires the creation of
sub-blocks within the geometry. However, the unstructured hexahedral design allow for two faces
on each block to have a non-continuous grid (Figure 9.10 b). Furthermore, blocks with one pair of
triangular faces may be accommodated. As a result, the planes forming these blocks may pass entirely
Figure 9.10 Four Meshing Styles of the PRB Model (a) Structured Hexahedral, (b) Unstructured
Hexahedral, (c) Prismatic, and (d) Hybrid – (Courtesy of Samir Vinchurkar & Worth Longest)
280
through the geometry (Figure 9.9 b). These planes are much easier to construct than the planes in
the structured hexahedral configuration that only partially bisect the geometry. In addition, the
blocking structure for the unstructured hexahedral mesh reduces the number of required blocks by
over 50% (Figure 9.9). Once the geometry is divided into the required blocks, non-continuous
meshes are created on cross-sectional surfaces. These meshed faces are then swept through the
geometry in the axial direction to generate the volumetric mesh. As a result, this mesh style retains
the advantage of aligning mesh elements in the predominate direction of flow.
The prismatic mesh consists of five-sided elements which are composed of two triangles joined
together by a longitudinal section of three rectangular faces. Generation of this mesh style requires
four-sided faces to be constructed on the surface of the PRB (Figure 9.10 c). The prismatic elements
are arranged such that their triangular faces fill the axial slices (Figure 9.10 c). This allows for the
rectangular sections of each prismatic element to be aligned with the direction of predominate flow.
In order to improve the accuracy of the tetrahedral mesh style, an unstructured hexahedral–
tetrahedral hybrid mesh has been created (Figure 9.10 d). As with the prismatic mesh, four-sided
faces are required on the surface of the PRB geometry. These faces are used to construct structured
quadrilateral surface meshes, which form the basis for a layer of near-wall hexahedral cells. The
hexahedral elements are intended to better resolve the flow field near the walls where velocity
gradients are typically highest. The inner core of the flow field is then meshed with randomly
oriented tetrahedral elements. A layer of prismatic elements is used to join the hexahedral and
tetrahedral cells. In this configuration, the thin near-wall layer of hexahedral elements is aligned
with the predominate direction of flow. However, it is not possible for the randomly oriented
tetrahedral elements, which comprise a majority of the flow field, to be aligned with the axial flow
direction488.
Governing Equations
Flow conditions in the meshes considered are assumed to be isothermal, incompressible, laminar
and steady. Furthermore, the particle concentrations are assumed to be sufficiently dilute such that
momentum coupling effects of the dispersed phase on the fluid can be neglected, i.e., a one way
coupled flow. The governing equations for the respiratory airflow of interest include the
conservation of mass and momentum as:
∂𝐮 1
∇. 𝐮 = 0 , + (𝐮. ∇)𝐮 = (−∇p + ∇. 𝛕)
∂t ρ
Eq. 9.5
Where u is the velocity vector, p is the pressure, ρ is the fluid density, τ the shear stress tensor is
given by
𝛕 = μ[∇𝐮 + (∇𝐮)T ]
Eq. 9.6
and μ is the absolute viscosity. Hydrodynamic inlet and boundary conditions, in addition to the no-
slip wall condition, were selected to match the experimental conditions of interest. To approximate
a uniform outflow distribution, equally divided mass flow was specified. Furthermore, flow field
outlets were extended far downstream such that the velocity was normal to the outlet plane, i.e., fully
developed flow profiles with no significant radial velocity component. One-way coupled trajectories
of monodisperse 1–10 μm aerosols have been calculated on a Lagrangian basis by integration of an
appropriate version of the particle trajectory equation for comparison to the experimental results of
488 The hybrid style consists of tetrahedral elements throughout the interior surrounded by three layers of
hexahedral control volumes on the surface. The internal block divisions have been shown in the cross-sectional
slices of the structured and unstructured hexahedral meshes.
281
[Oldham et al.]. Characteristics of the 1–10 μm aerosols of interest within this model include a particle
density ρp = 1.06 g/cm3, a density ratio α = ρ/ρp ≈ 10-3, a Stokes number St =ρpd2p CCU/18μD ranging
from 0.003 to 0.26, and a particle Reynolds number Rep = ρ|u -v| dp/μ ≤ 10. The appropriate equations
for spherical particle motion under the conditions of interest are expressed as
CD Rep Rep a2 a3
f= = (a1 + + 2)
24 24 Rep Rep
Eq. 9.8
where the ai coefficients are constant for smooth spherical particles over the range of Reynolds
number considered, i.e. 0 ≤ Rep ≤ 10. The effect of the lubrication force, or near-wall drag
modifications, are shown in Eq. (3a) but are expected to be reduced for the aerosol system of interest
in comparison to liquid flows due to near-wall non-continuum effects. As such, this term has been
neglected for the simulations considered here. Due to the significant size of the particles considered
and the dilute concentrations, Brownian motion and particle-to-particle collision effects have been
neglected. The Cunningham correction factor has only been applied for 1 lm aerosols based on the
expression of [Allen and Raabe]490. Inlet particle profiles have been specified to be consistent with
the local mass flow rate associated with the blunt velocity profile considered. That is, the mass flow
rate of particles on a finite ring, m p,ring, at the inlet is given by
r2
ṁp,ring ~ṁring = ∫ ρu(r)2πdr
r1
Eq. 9.9
where r1 and r2 define the extent of the ring and u(r) is the inlet velocity profile. Initial particle
velocities were assumed to match the local fluid velocities. Further details describing the
specification of initial particle profiles are discussed in [Longest and Vinchurkar]491.
Numeric Method
To solve the governing mass and momentum conservation equations in each of the geometries and
for each mesh style, the CFD package Fluent 6.2 has been employed. User-supplied FORTRAN and C
489 Morsi SA, Alexander AJ. An investigation of particle trajectories in two-phase flow systems. J Fluid Mech
1972;55(2):193–208.
490 Allen MD, Raabe OG. Slip correction measurements of spherical solid aerosol particles in an improved Millikan
airway models with comparisons to experimental data. Med Eng. Phys 2007;29:350–66.
282
programs have been employed for the calculation of initial particle profiles, particle deposition
locations, grid convergence, and post-processing. All transport equations were discretized to be at
least second order accurate in space. For the convective terms, a second order upwind scheme was
used to interpolate values from cell centers to nodes. The diffusion terms were discretized using
central differences. To improve the computation of gradients for the tetrahedral elements of the
hybrid mesh, face values were computed as weighted averages of values at nodes, which provides an
improvement to using cell-centered values for these meshes. Nodal values for the computation of
gradients were constructed from the weighted average of the surrounding cells, following the
approach proposed by [Rauch et al.]492. A segregated implicit solver was employed to evaluate the
resulting linear system of equations. This solver uses the Gauss–Seidel method in conjunction with
an algebraic multigrid approach to solve the linearized equations. The SIMPLEC algorithm was
employed to evaluate pressure–velocity coupling. The outer iteration procedure was stopped when
the global mass residual had been reduced from its original value by five orders of magnitude and
when the residual-reduction-rates for both mass and momentum were sufficiently small.
To ensure that a converged solution had been reached, residual and reduction-rate factors were
decreased by an additional order of magnitude and the results were compared. The stricter
convergence criteria produced a negligible effect on both velocity and particle deposition fields. To
improve accuracy, CGS units were employed, and all calculations were performed in double
precision. To further improve resolution in the particle deposition studies, geometries were scaled
by a factor of 10 and the appropriate non-dimensional parameters were matched. To determine grid
convergence and establish grid independence of the velocity field solutions, successive refinements
of each mesh style have been considered. For each refinement, grid convergence is evaluated using a
relative error measure of velocity magnitude between the coarse and fine solutions:
ui,coarse − ui,fine
εi = | |
ui,fine
Eq. 9.10
A vector of relative error values was determined for 1000 consistent points located in the region of
the bifurcation. The root-mean-square of the relative error vector was used to provide an initial
scalar measure of grid convergence for the points considered
1/2
∑1000 2
i=1 εi
εrms =( )
1000
Eq. 9.11
Rigorously, grid convergence measures should be based on refining the grid by a factor of two, i.e.,
grid halving. However, dividing hexahedral elements by a factor of two in three dimensions is often
not practical due to the significant increase in the number of control volumes. As such, relative error
values must be adjusted to account for cases in which grid reduction factors less than r = 2 are
employed. To extrapolate εrms values to conditions consistent with true grid halving, the Grid
Convergence Index (GCI) has been suggested by [Roache]493. This method is based on Richardson
extrapolation and can be applied as
εrms
GCI = Fs
rp − 1
Eq. 9.12
492 Rauch RD, Batira JT, Yang NTY. Spatial adaption procedures on unstructured meshes for accurate unsteady
aerodynamic flow computations. Technical Report AIAA-91-1106, 1991.
493 Roache P. Computational fluid dynamics. Albuquerque: Hermosa; 1992.
283
In the above equation, r represents the grid refinement factor and p is the order of the discretization
method. Based on second-order discretization of all terms in space, p = 2 for the systems of interest.
Refinement of the meshes was performed to maintain a constant reduction value in the three
coordinate directions. The associated r value has been calculated as the ratio of control volumes in
the fine and course meshes
Nfine 1/3
r=( )
Ncoarse
Eq. 9.13
To limit errors arising from the extrapolation procedure, r values of approximately 1.5 or greater
have been considered. A factor of safety FS equal to 3 has been selected to provide a GCI value equal
to the εrms value when r = 2 and p = 2. Therefore, the GCI value represents a scaled version of εrms to
account for mesh refinement factors less than 2. Particle trajectories were calculated within the
steady flow fields of interest as a post-processing step. The integration scheme employed to solve Eq.
9.7 was based on the trapezoid rule with a minimum of 10 integration steps in each control volume.
Doubling the number of integration steps within each control volume had a negligible (less than 1%)
effect on cumulative particle deposition values. Due to relatively small particle response times,
double precision calculations have been employed. It was found that approximately 20,000 particle
trajectories were required to produce convergent cumulative deposition values based on a 1%
relative error criterion. As such, 20,000 particles have been initialized in all deposition cases
considered.
Results
[Link] Validation Studies
Validations of velocity field values for the structured hexahedral mesh scheme applied to a
bifurcation geometry have been reported in a previous study. Briefly, a single bifurcation model was
considered with a characteristic Reynolds number of 518 and results were compared to the empirical
velocity field data of [Zhao and Lieber]494. For steady inhalation flow, the velocity field results of
[Longest and Vinchurkar] indicate good quantitative agreement with the empirical data of [Zhao and
Lieber].
494 Zhao Y, Lieber BB. Steady inspiratory flow in a model symmetrical bifurcation. J Biomech Eng 1994.
284
condition for testing grid convergence. Moreover, errors on the order of 1% are expected to arise
from the linear interpolation algorithm used to calculate values at the positions of interest for
comparisons of the coarse and fine grid solutions. Therefore, achieving εrms values below 1% may not
be possible with the rigorous grid convergence method employed. In this study, values of εrms on the
order of approximately 1% are considered to represent a well converged solution.
Accounting for the grid reduction factor used in the high resolution case results in a GCI value of
4.27% for the structured hexahedral mesh with 214 K control volumes. Grid convergence estimates
for the unstructured hexahedral mesh are reported in Table 9.7 b. These results are highly similar
to the grid convergence values observed for the base case. That is, an εrms value of 1.95% is achieved
for the high resolution case. However, the number of grid cells required to achieve this level of grid
convergence was increased from 214K for the structured hexahedral mesh to 318 K for the
unstructured hexahedral mesh. This increase in cell number resulted in a 10% increase in solution
time. Grid convergence index values on the order of 10%, as observed for the medium-level
resolution, are shown to result in visible differences between velocity profiles. For the high resolution
case, which is characterized by a GCI of 4.32%, differences in the velocity profiles are much less
discernable. For the prismatic mesh configuration, εrms and GCI values are similar to those observed
for the hexahedral style meshes (Table 9.7 c). However, to achieve this level of grid convergence,
grid resolution was increased by approximately 30–40% for each case considered. This increase in
Table 9.7 Grid Convergence – (Courtesy of Samir Vinchurkar & Worth Longest)
285
grid density produces an associated increase in simulation time of approximately 20%. Furthermore,
it is observed that the medium-level resolution case of the unstructured prism mesh results in a GCI
value of approximately 6.6%, which is consistent with the high resolution prismatic case and
significantly lower than with the medium resolution hexahedral meshes. Grid convergence values for
the hybrid meshes are significantly higher than values reported for the their configurations (Table
9.7 d). The minimum GCI value for the hybrid style was 17.7% and occurred medium-level grid
density.
For the high-level resolution condition, the GCI value increased to 21.3%. Further increases in grid
density resulted in a higher GCI value. This increase may be a result of round-off errors arising from
an over-resolved grid. Furthermore, this level of grid convergence is consistent with GCI values
observed for purely tetrahedral meshes with and without flow adaption. As a result, the hybrid mesh
style results in GCI values that are significantly higher than observed for the other meshes considered
in this study and appears to provide little advantage to purely tetrahedral style meshes. The higher
GCI values of the hybrid configuration may largely be a result of mesh elements not aligning with the
direction of predominate flow.
may be the result of fewer mesh elements aligned with the flow, especially for the hybrid
configuration. Nevertheless, each of the mesh styles considered emphasizes local accumulations of
particles, referred to as hotspots, occurring just upstream of the bifurcation points and continuing
downstream for approximately one-half the branch lengths.
For 10 μm particles, the structured hexahedral, unstructured hexahedral and prismatic high
resolution meshes all match the experimental data of [Oldham et al]. For these three solutions,
variations from the cumulative particle deposition experimental data are within 2–3%. Furthermore,
these solutions result in a final deposition fraction that is within approximately 1% of the
experimentally reported value of 81%. Differences in cumulative deposition values among the
solutions for the hexahedral and prismatic meshes vary by less than 1%. In contrast, cumulative
Figure 9.11 Velocity Vectors (a) Structured Hexahedral Mesh with 214 K C.V. (b) Unstructured
Hexahedral Mesh with 318 K, C. V. (c) Prismatic Mesh with 510K C. V, (d) Hybrid Mesh with 608 K C.
V. – (Courtesy of Samir Vinchurkar & Worth Longest)
287
deposition results for the high-resolution hybrid mesh and 10 μm particles are significantly lower
than the experimental data. The hybrid mesh considered is observed to under-predict cumulative
deposition by approximately 20%. (see [Samir Vinchurkar & Worth Longest]495).
As particle size decreases, larger differences are observed among the cumulative deposition
predictions for the mesh styles considered. For 5 μm aerosols, the structured and unstructured
hexahedral meshes are in close agreement with a final deposition fraction between 5% and 6%. In
contrast, the prismatic mesh predicts a cumulative deposition of 11%, which is approximately double
the hexahedral mesh estimates. Results for the hybrid mesh and 5 μm particles are even higher, with
a total deposition fraction of 12%. Considering 3 μm particles, close agreement is observed between
the hexahedral mesh predictions with a total deposition fraction of 0.3%. In contrast, the prismatic
and hybrid configurations predict a deposition rate of approximately 1.8%. A similar trend is
observed for 1 μm aerosols. Again, results for the structured and unstructured hexahedral
configurations are in close agreement with a total deposition fraction ranging between 0.12% and
0.17%. However, predictions of the prismatic and hybrid meshes are significantly higher by a factor
Figure 9.12 Deposition Locations for 10 lm Particles in the Planar Geometry for the (a) Structured
Hexahedral Mesh, (b) Unstructured Hexahedral Mesh, (c) Prismatic Mesh, and (d) Hybrid Mesh –
(Courtesy of Samir Vinchurkar & Worth Longest)
495Samir Vinchurkar, P. Worth Longest, “Evaluation of hexahedral, prismatic and hybrid mesh styles for
simulating respiratory aerosol dynamics”, Computers & Fluids, 2008.
288
of approximately five.
In general, cumulative deposition results are consistent between the structured and unstructured
hexahedral meshes for the planar geometry. Results for the prismatic and hybrid meshes differ from
the hexahedral results by values ranging from 20% (10 μm) to a factor of five (1 μm). Deposition
predictions of the prismatic and hybrid meshes are also generally higher than for the hexahedral
models. Differences in deposition results between the hexahedral and prism/hybrid meshes appears
to increase with decreasing particle size. For all particle sizes considered in respiratory generations
G3–G5, impaction is the primary deposition mechanism. However, the smaller particles considered
have less inertia and are influenced to a greater extent by the secondary velocity patterns. Significant
differences in secondary velocity profiles were observed between the hexahedral and other mesh
styles considered in Figure 9.11. Therefore, it is concluded that differences in secondary motion
patterns associated with mesh style are partially responsible for increased differences in deposition
patterns as particle size is reduced.
Furthermore, increase in secondary motion associated with out of plane bifurcations may induce
additional discrepancies among the models considered. Cumulative deposition results for the out-of-
plane geometry and particle sizes of 3 and 10 μm are shown in496. As with the planar geometry for 10
μm particles, close agreement is observed between the hexahedral and prismatic mesh
configurations with a total deposition rate of approximately 90%. The hybrid mesh results in an 85%
deposition value, which is in relatively close agreement with the other mesh styles considered.
However, significant differences in model predictions are again observed as the particle size is
decreased. For 3 μm aerosols, results for the structured and unstructured hexahedral meshes appear
to be in close agreement with a total deposition rate of approximately 1.8%. Deposition results for
the prismatic and hybrid meshes are approximately six times higher than the other model predictions
with a total deposition fraction of 11%.
Discussion
In this study, the effects of mesh style have been evaluated with respect to grid convergence, velocity
fields and particle deposition values in a double bifurcation model of the respiratory tract. Mesh
styles considered include structured hexahedral, unstructured hexahedral, prismatic and hybrid
configurations. Particles ranging from 1 to 10 μm have been evaluated in planar and out-of-plane
geometries. Deposition results for 10 μm particles in the planar geometry were found to be in close
agreement with the experimental deposition data of [Oldham et al.] on a highly localized basis. In
general, grid convergence, velocity fields, and local particle deposition values were consistent
between the structured and unstructured hexahedral meshes. Both hexahedral meshes considered
resulted in GCI values of approximately 5% and nearly identical midplane and secondary velocity
patterns.
Furthermore, local particle deposition profiles were largely similar for the hexahedral meshes across
the range of particle sizes evaluated. Considering the prismatic mesh, GCI values were comparable to
the hexahedral configuration with only a moderate increase in control volume number. Prismatic
velocity fields were consistent with the hexahedral results, with some minor variations in the
secondary velocity profiles. However, the prismatic mesh resulted in significant differences in local
deposition profiles for particles less than 10 μm. The hybrid mesh resulted in a GCI value that was
significantly higher than observed for the other meshes. This increase in GCI occurred despite a
significant increase in the number of cells in the hybrid mesh. The velocity field for the hybrid
configuration differed from the hexahedral and prismatic solutions by up to an order of magnitude
at some locations with significant differences in the secondary vortex patterns. Moreover, deposition
results for the hybrid mesh differed from the hexahedral results by values ranging from 20% (10 μm)
496Samir Vinchurkar, P. Worth Longest, “Evaluation of hexahedral, prismatic and hybrid mesh styles for
simulating respiratory aerosol dynamics”, Computers & Fluids, 2008.
289
to a factor of five (1μm). For the out-of-plane bifurcating geometry, local deposition results were
generally consistent for 10 μm aerosols, but differed significantly for 3 μm particles among the mesh
styles considered.
This study highlights the effects of mesh style on grid convergence and related solution variables for
an internal biofluid flow field. For any CFD problem, the required quality of the solution is often
weighted against the time and resources available for mesh development. Structured hexahedral
meshes are often thought to provide the highest quality solution, but the associated mesh
construction time may be prohibitively expensive. In this study, structured hexahedral and
unstructured hexahedral mesh schemes have been shown to provide highly comparable grid
convergence values, velocity fields and particle deposition profiles.
Moreover, both of these mesh styles predicted deposition results in very close agreement with
experimental data for 10 μm aerosols in a planar geometry. As illustrated in Figure 9.10
construction of the unstructured hexahedral mesh requires a less complex blocking schemes than for
the structured hexahedral configuration. For example, construction of the structured hexahedral
mesh requires the creation of 178 blocks in comparison to 80 blocks for the unstructured hexahedral
mesh. Therefore, the unstructured hexahedral mesh offers a significant savings in construction time
without an appreciable loss in solution performance. Compared with the purely tetrahedral meshes
considered in [Longest and Vinchurkar], the hybrid mesh employed in this study showed no
improvement in performance.
Construction of the hybrid mesh did require subdivision of the PRB surface geometry into
rectangular faces. In contrast, construction of purely tetrahedral meshes does no require subdividing
the surface into rectangular faces. As a result, purely tetrahedral and flow adaptive tetrahedral
meshes may be advantageous in comparison to the hybrid mesh considered in this study.
Furthermore, the use of tetrahedral meshes may be preferred when rapid approximate solutions are
the top priority. This scenario may arise for patient-specific modeling in the clinical setting. That is,
approximate solutions with rapidly generated tetrahedral meshes may be necessary in order to make
true patient-specific modeling a reality in the clinical setting .
mesh. The grid convergence parameter was evaluated at 1000 representative points throughout the
flow field. These points include near-wall locations where minor variations in flow field velocities
can result in very large relative errors. Modifying the number and location of these randomly selected
points did not appreciably change the GCI value provided at least 1000 points were included.
However, interpolation errors are present in determining values at comparison points. These errors
are estimated to be on the order of approximately 1%. Nevertheless, the grid convergence algorithm
employed provided an effective strategy for evaluating relative performance among the mesh styles
considered that includes low velocity and near-wall regions.
In this study, only one commercial software package was evaluated. Other software may improve the
solution quality of the hybrid configuration. Moreover, many other hybrid mesh styles are possible.
Nevertheless, evaluation of a representative state-of-the-art commercial software provides a
valuable basis of comparison for various styles of meshes. Furthermore, this study highlights the
advantages of aligning mesh elements with the predominate direction of flow, which is
independent of the computational package considered.
Conclusion
In deduction, structured and unstructured hexahedral meshes have been shown to provide
acceptable grid convergence values, comparable velocity fields and good agreement with
experimental 10 μm particle deposition data in a branching respiratory geometry. Generation of the
unstructured hexahedral mesh provided a significant time savings in pre-processing with an
associated minimal increase in computational run time. In contrast, a hybrid mesh configuration of
tetrahedral cells surrounded by multiple layers of near-wall hexahedral elements resulted in
significantly higher grid convergence values and different velocity and particle deposition
results. These findings emphasize the importance of aligning control volume gridlines with the
predominate direction of flow and using higher order elements in biofluid applications with long and
thin conduits. Future work is needed to better assess modified flux interpolation schemes, other
hybrid configurations and the use of polyhedral elements. For further discussion, please refer to
[Samir Vinchurkar, P. Worth Longest]497.
497 Samir Vinchurkar, P. Worth Longest, “Evaluation of hexahedral, prismatic and hybrid mesh styles for
simulating respiratory aerosol dynamics”, Computers & Fluids, 2008.
498 Philippe Martineau Rousseau, Azzeddine Soulaïmani and Michel Sabourin, “Comparison between structured
hexahedral and hybrid tetrahedral meshes generated by commercial software for CFD hydraulic turbine analysis”,
Conference Paper, May 2013.
499 ANSYS ICEM CFD 13.0. Available from: [Link]
500 Pointwise 17.0 R1. Available from: [Link]
291
for the flow calculation and the boundary conditions used to obtain the results are shown. The total
head loss and the meridian velocity at the symmetrical plane are used to show similarities between
the two meshing methodologies. An investigation of the small differences between the results is
made, utilizing the velocity and total pressure contours. These analyses indicate that these two
meshing methodologies achieve equivalent results for both spiral case geometries.
Problem Description
Structured hexahedral meshes are usually used to produce more accurate predictions of head losses
for internal flows or of the drag force for external flows. The quality of their elements and their
improved control over their distribution in the computational domain are the main factors that make
them more appealing than tetrahedral meshes. However, designing a hexahedral mesh with a good
level of quality for complex geometry requires a considerable time investment, very often from a few
days to a few weeks. In addition, it is sometimes impossible to obtain a mesh of acceptable quality
for very complex geometries. Unstructured tetrahedral meshes are preferred for their ability to
quickly mesh complex geometries. However, the addition of structured elements in boundary layers
is necessary to improve energy loss prediction. As a result, hybrid tetrahedral meshes are widely
used in aerospace and hydraulic turbomachines. Please be advised that the hybrid tetrahedral mesh,
often has problems in the transition between the boundary layer structured elements and the
neighboring unstructured ones. The too-rapid increase of volume elements, as illustrated in Figure
9.13 (a), is often the source of inaccuracies and convergence problems. Other problems inherent to
tetrahedral elements are the inappropriate spatial discretization of trailing and leading edges, which
are also the cause of inaccuracy in the determination of the energy loss. Figure 9.13 (b), displays
the correct transition between prismatic and volume elements in a boundary area mesh.
Figure 9.13 Boundary Layer Transition Between Prismatic and Volume Elements – (Courtesy of
Rousseau et al.)
292
Geometry
A turbine spiral case is the component before
the runner of a Francis hydraulic turbine.
More specifically, it begins after the penstock
and ends at the runner’s entrance, and it also
includes the stay vanes and the wicket gates.
Figure 9.14 shows a half domain used for the
calculation of a spiral case. The primary
function of the spiral casing is to rotate the
flow and distribute it equally to the runner [4].
The stay vanes and mostly the wicket gates
induce a direction to the flow at the entrance
of the runner. Ideally these functions are
carried out with minimum head loss and
evenly within each stay vane and wicket gate Figure 9.14 Example of a hydraulic turbine
Figure 9.15 spiral
Geometry of thedomain)
case (half Stay Vanes and
channel. For example, the effect of
Wicket Gates,
– (Courtesy of RousseauGeometry
Left: Geometry A, Right: et al.) B –
recirculation zones at the stay vanes could (Courtesy of Rousseau et al.)
affect the distribution and direction of the flow
at the runner. The behavior of the runner as
well as of the draft tube could thus be affected. In this paper, we consider two spiral case geometries
of the same hydraulic turbine and these are scaled at small model dimensions. Each spiral case has
24 stay vanes and wicket gates. Five different models of stay vanes are utilized in each spiral case.
These models are characterized by their different cord lengths, which decrease from the entrance to
the end of the spiral case. The wicket gates are identical within the same spiral case.
The difference between the two spiral cases lies with the stay vanes and the wicket gates. The stay
vane leading edge incidence angle of the geometry B is better aligned with the flow and rounded.
The trailing edges of the stay vanes and wicket gates are tapered. Figure 9.15 shows the differences
between the two geometries with the same model of stay vanes and wicket gates. These changes
improve the flow in the geometry B by reducing the separation on the upper surface of the stay vanes.
This greatly eliminates the recirculation zones. Replacement of the chamfer by a rounded leading
edge on the stay vanes and refinement of the trailing edge of the wicket gates also decrease wakes in
the flow. The flow is generally more uniform in the geometry B. The total head loss through the spiral
case is also greatly reduced. The complexity of the flow and the different models of stay vane in the
spiral case prevent any periodic simplification of the computational domain. However, it is simplified
symmetrically in the horizontal plane. The absence of the runner after the exit of the spiral case
allows this simplification. The computation domain of the geometry A is shown in Figure 9.14. The
exit of the spiral case is far from the trailing edge of the wicket gates to reduce the effect of the outflow
condition on the flow.
Mesh Description
Some statistics of the meshes used in CFD are shown in Table 9.8. Three different mesh densities
are used for the geometry A; coarse (C), medium (M) and fine (F). The geometry B used two meshes;
coarse (C) and medium (M). The increase in the density of elements on the surface profiles and walls
of the spiral case is the main difference between each mesh. The thickness of the first element on the
wall is the same for all meshes. It is selected to achieve a Y+ of less than 5, and averages close to 2.
This value is a compromise with respect to the size of the mesh. In contrast to external flows, the
internal flow contains several solid walls. Obtaining a Y+ close to one would be ideal, but it was
impossible to achieve with our available computing resources.
293
Geometry A Geometry B
Table 9.8 Mesh Densities for Structured Hexahedral and Hybrid Un-Structural Tetrahedral –
(Courtesy of Rousseau et al.)
501 Philippe Martineau Rousseau, Azzeddine Soulaïmani and Michel Sabourin, “Comparison between structured
hexahedral and hybrid tetrahedral meshes generated by commercial software for CFD hydraulic turbine analysis”,
Conference Paper, May 2013.
502 See Previous.
294
Figure 9.17 Hybrid Tetrahedral Medium Mesh on the Symmetric Surface of the Geometry A (left) &
Mesh in the wake of a Hydraulic Profile (wicket gates trailing edge)(right) – (Courtesy of Rousseau et al.)
503 Shur, M., et al., Comparative Numerical Testing of One- and Two-Equation Turbulence Models for Flows with
Separation and Reattachment, 33rd Aerospace Sciences Meeting and Exhibit, American Institute of Aeronautics
and Astronautics: Reno, NV, 1995.
504 Bardina, J.E., P.G. Huang, and T.J. Coakley, Turbulence Modeling Validation, Testing, and Development, NASA.
505 R. Munson, B., et al., Fundamentals of Fluid Mechanics. Sixth Edition ed2009, Hoboken, NJ: Wiley. 724.
295
Results
Analysis of the total head loss as a function of the radius provides details about the loss through the
spiral casing components, which in turn allows identification of the component that causes the
largest total head loss. This information is used to amend the problematic component, for example,
the stay vanes in the geometry A. Ultimately, the analysis helps in calculating the hydraulic efficiency
of the turbine. The meridian velocity on the symmetrical plane is also used to compare the two
meshes. It provides qualitative information on the flow. For example, it shows the effect of
recirculation zones or of an obtuse trailing edge. It also indicates if the hybrid tetrahedral mesh
overestimates the dissipation of the wake. The meridian velocity is measured at 10 % upstream of
the inlet radius of the stay vanes, between the end of the stay vanes and the beginning the guide
vanes, and at the average radius of the runner inlet.
The difference of the total cumulative loss between the two types of mesh is approximately 10% and
occurs predominantly near the trailing edge of the stay vanes and upstream of the leading edge of
the guide vanes. Figure 9.18 confirms that the total head loss difference originates at the end of the
stay vanes. In fact, the hybrid tetrahedral mesh models a larger recirculation zone and thus a larger
wake. The better quality of the prism elements of the tetrahedral mesh on the wall could be the cause
for that larger wake. Furthermore, Figure 9.18 shows an effect of the second order advection
scheme (blend factor = 1) used in the geometry A by the non-physical total pressure augmentation
(red contour plot). This second order scheme could lead to local instabilities in cases of sudden flow
direction change or coarse meshes. The adaptive CFX advection scheme (high resolution) should
eliminates these instabilities but will induce more numerical diffusion in the presence of large
recirculation zones.
Figure 9.18 Relative Total Head Loss on the Meridian Plane for the Geometry A with fine mesh, left:
Structured Hexahedral, right: Hybrid Tetrahedral – (Courtesy of Rousseau et al.)
296
Figure 9.19 show the meridian velocity profiles for the geometry A with medium and fine meshes.
For both grids, the meridian velocity is almost identical at the entrance of the stay vanes. The slight
difference is due to the azimuthal change in the distribution of the flow. It should be noted that the
sudden jump in the meridian velocity corresponds to the end of the spiral case at an azimuthal
position of 40°. The wave pattern in the velocity profile shows the influence of the leading edge of
the stay vanes. The velocity profile in the gap between the stay vanes and the wicket gates is very
similar for all meshes. However, there remains a slight difference caused by the largest recirculation
zone in the hybrid tetrahedral mesh. The velocity profile at the entrance of the runner differs by its
faster dissipation of the wake and a gap in the velocity profile. The former tends to carry out a
smoothing of the velocity profile, and the latter results from the difference between the recirculation
zone in the hybrid tetrahedral mesh. The velocity profile at the entrance of the runner differs by its
faster dissipation of the wake and a gap in the velocity profile.
The former tends to carry out a smoothing of the velocity profile, and the latter results from the
difference between the recirculation zones of the two meshes. As noted on the velocity profile at the
entrance of the stay vanes, the recirculation zone differences slightly change the flow distribution in
the spiral case. These differences between the two meshes are slightly more pronounced with
increased refinement. In fact, the recirculation zone is larger with hybrid mesh. In contrast to the
geometry A, it appears that the evolution of the total head loss is very similar for both types of
meshes. Only the coarse hybrid tetrahedral mesh differs in the total head loss to the end of the stay
vanes and wicket gates. The too-rapid growth of the tetrahedral mesh at the trailing edge explains
this difference.
Figure 9.19 Meridian Velocity Near a Stay Vane with fine mesh for Geometry A, left: Structured
Hexahedral, right: Hybrid Tetrahedral – (Courtesy of Rousseau et al.)
297
For the geometry, only medium meshes are chosen due to the strong similarity of their assessment
of the total head loss. As expected, the meridian velocity at the entrance of the stay vanes is almost
identical for the two meshes. (see the [Roussea et al.]506). Similarly, the velocity is almost identical
between the stay vanes and the wicket gates. The meridian velocity at the runner entrance shows
that the hybrid tetrahedral mesh dissipates faster the wake. In fact, the extreme values caused by the
wicket gate’s wake are dispelled by this mesh. Figure 9.20 shows the overall effect of the dissipation
of the wake caused by the too-rapid growth of the tetrahedral mesh. However, a strong similarity of
the flow is observed between the two mesh types.
Figure 9.20 Meridian Velocity on the Meridian Plane for the Geometry B – (Courtesy of Rousseau et al.)
Conclusion
The comparison between the structured hexahedral and hybrid tetrahedral meshes in the complex
geometry of a hydraulic turbine spiral case gives an advantage to the latter. In fact, Pointwise
software eliminates many defects inherent to hybrid tetrahedral mesh, such as inadequate definition
of hydraulic profiles and poor transition between prismatic and volume elements. This mesh also
leads to higher quality elements near the walls. Furthermore, a significant savings in turnaround time
is obtained for the mesh construction compared to the hexahedral mesh. Typically, the mesh design
time is reduced between five and ten times with the construction of a hybrid tetrahedral mesh. The
results show a great similarity of the flow for the two meshes in the two geometries. However, the
flow in the geometry A differs in the recirculation zones in the upper surface of the stay vanes. The
506Philippe Martineau Rousseau, Azzeddine Soulaïmani and Michel Sabourin, “Comparison between structured
hexahedral and hybrid tetrahedral meshes generated by commercial software for CFD hydraulic turbine analysis”,
Conference Paper, May 2013.
298
hybrid tetrahedral mesh models a larger recirculation zone than that of the structured hexahedral.
The higher quality of the prismatic elements on the wall could be one cause. This difference modifies
the evolution of the total head loss and slightly alters the meridian velocity profile. In addition to
these differences, there is also a slightly faster dissipation of the wake downstream of hydraulic
profiles in the hybrid tetrahedral mesh. The too-rapid growth of tetrahedral elements is the main
cause. However, this disadvantage could be reduced with a finer mesh (and associated computational
resources). In the absence of detailed experimental results about the flow in the spiral case, it is not
possible to conclude on the accuracy of each mesh.
In regard to the geometry B, the flow and the evolution of losses are virtually identical. As in the
geometry A, there is only a slightly larger dissipation of the wakes due to the rapid expansion of the
size of tetrahedral mesh elements at the trailing edge. Finally, the application of two types of mesh in
both geometries shows similar results in terms of hydraulic performance. However, it is interesting
to note that the evolution of the total head loss function of the radius in the spiral case shows that the
hexahedral mesh requires fewer nodes than the tetrahedral hybrid mesh to achieve mesh
independence. This can be an important factor when the available computing power is limited or the
number of licenses for commercial software becomes an issue. The application of the hybrid
tetrahedral mesh is currently being used for the calculation of the entire flooded parts of a Francis
hydraulic turbine. That study should allow demonstrating the validity of this meshing method
compared with experimental results.
299
Each technique has its own unique characteristics. For example, the Direct Differentiation, used
here, has the advantage of being exact, due to direct differentiation of governing equations with
respect to design parameters, but limited in scope. By far, the most used sensitivity analysis, is
Adjoint Variables techniques, especially for aerodynamic optimization. Due to apparent popularity,
we consider these in more details.
Symbolic Differentiation
Manipulates mathematical expressions in the code. If you ever used Matlab or Mathematica, then
you probably used it. For every math expression they know the derivative and use various rules
(product rule, chain rule) to calculate the resulting derivative. Then they simplify the end expression
to obtain the resulting expression.
Automatic Differentiation
Manipulates blocks of computer each element of a program (when you define any operation in code,
you need to register a gradient for this operation). It also uses chain rule to break complex
expressions into simpler ones.
Finite Differencing
This method is easy implement, but cost insensitive. There are a series of issues with this approach.
Accuracy is the main drawback of the method especially for non-linear problems such as those of
aerodynamic nature. Cost is also something that should not be underestimated. For instance,
considering the case where the grid sensitivity needs to be computed, the number of operations that
need to be performed is 𝑁𝐷𝑉×𝑚, where m is the number of step size tested which is unknown a priori
and is specific for each design variable (DV). It is obvious that the cost quickly becomes
unmanageable508.
𝐑( 𝐗 (𝐏), 𝐏) = 0
Eq. 10.1
Where the explicit dependency of R on grid and vector of parameters P is evident. The parameters P
control the grid X. Using chain rule of differentiation
∂𝐑 ∂𝐗 ∂𝐑
[ ][ ] + [ ] = 0
∂𝐗 ∂𝐏 ∂𝐏
Eq. 10.2
Further simplification could include the vector of grid sensitivity which is
X X XB
P XB P
Eq. 10.3
Where XB denotes the boundary nodes509.
n N i,p (r) ωi
X (r) R i,p (r) Di i 0,........., n R i,p (r) n
i 0
N
i 0
i, p (r) ωi
Eq. 10.4
where X (r) is the vector surface coordinate in the r-direction, Di are the control points (forming a
control polygon), ωi are weights, Ni,p (r) are the p-th degree B-Spline basis function, and Ri,p(r) are
508 Gabriele Luigi Mura, “Mesh Sensitivity Investigation in the Discrete Adjoint Framework”, Thesis submitted to
University of Sheffield in partial fulfilment of the requirement for the degree of Doctor of Philosophy, 2017.
509 Sadrehaghighi, I., Smith, R.E., Tiwari, S., N., “Grid Sensitivity and Aerodynamic Optimization Of Generic Airfoils”,
Figure 10.1 B-Spline Approximation of NACA0012 (left) and RAE2822 (right) Airfoils
Gaetan K.W. Kenway, Joaquim R. R. A. Martins, and Graeme J. Kennedy, “Aero structural optimization of the
511
Therefore, it can be solved safely using techniques such as Gaussian elimination without pivoting.
The procedure can be easily extended to cross-sectional configurations, when critical cross-sections
are denoted by several circular conic sections, and the intermediate surfaces have been generated
using linear interpolation. Increasing the weights would deform the circular segments to other conic
segments (elliptic, parabolic, etc.) as desired for different flight regions. In this manner, the number
of design parameters can be kept to a minimum, which is an important factor in reducing costs. An
efficient gradient-based algorithm for aerodynamic shape optimization is presented by [Hicken and
Zingg]512 where to integrate geometry parameterization and mesh movement. The generalized B-
spline volumes are used to parameterize both the surface and volume mesh. Volume mesh of B-spline
control points mimics a coarse mesh where a linear elasticity mesh-movement algorithm is applied
directly to this coarse mesh and the fine mesh is regenerated algebraically. Using this approach,
mesh-movement time is reduced by two to three orders of magnitude relative to a node-based
movement.
Figure 10.3 Free Form Deformation (FFD) for Volume Grid with Control Points (Courtesy of
Kenway et al.)
[Link] Case Study - 2D Study of Airfoil Grid Sensitivity via Direct Differentiation (DD)513
The structured grid sensitivity of a generic airfoil with respect to design parameters using the NURBS
parameterization is discussed. The geometry, as shown in Figure 10.2, has six pre-specified control
points. The control points are numbered counter-clockwise, starting and ending with control points
(0 and 5), assigned to the tail of the airfoil. A total of 18 design parameters (i.e., three design
parameters per control point) available for optimization purpose. Depending on desired accuracy
and degree of freedom for optimization, the number of design parameters could be reduced for each
particular problem. For the present case, such reduction is achieved by considering fixed weights
and chord-length. Out of the remaining four control points with two degrees of freedom for each,
512 Jason E. Hickenand, David W. Zingg, “Aerodynamic Optimization Algorithm with Integrated Geometry
Parameterization and Mesh Movement”, AIAA Journal Vol. 48, No. 2, February 2010.
513 Sadrehaghighi, I., Smith, R.E., Tiwari, S., N., “Grid Sensitivity and Aerodynamic Optimization Of Generic Airfoils”,
δ𝐈 ∂𝐈 δ𝐰 ∂𝐈
= +
δxi ∂𝐰 δxi ∂xi
Eq. 10.6
In the meantime, δw implicitly depends on aerodynamic shape change through the governing flow
equations R(w , x) = 0. A similar form as Eq. 10.6 for R can be given as
514 Jiaqi Luo, Feng Liu, “Performance Impact Of Manufacturing Tolerances for a Turbine
Blade Using Second Order
Sensitivities”, Proceedings of ASME Turbo Expo 2018: Turbomachinery Technical Conference and Exposition,
GT2018, June 11-15, 2018, Oslo, Norway.
304
δ𝐑 ∂𝐑 δ𝐰 ∂𝐑
= + =0
δxi ∂𝐰 δxi ∂xi
Eq. 10.7
By introducing a series of co-state variables, Ψ and subtracting the product of ΨT and Eq. 10.6 from
Eq. 10.7, we can get
δ𝐈 ∂𝐈 ∂𝐑 δ𝐰 ∂𝐈 ∂𝐑
={ − ψT } + { − ψT }
δxi ⏟∂𝐰 ∂𝐰 δxi ∂𝐱 𝐢 ∂xi
0
Eq. 10.8
The crucial issue of the adjoint method is to eliminate the effects of δw on δI to avoid the calculation
of δw due to the change of aerodynamic shape. It can be achieved if the adjoint operator Ψ satisfies
the adjoint equations, therefore the first term in Eq. 10.8 is set to zero. Then the sensitivities can be
determined by
δ𝐈 ∂𝐈 ∂𝐑
= − ψT
δxi ∂xi ∂xi
Eq. 10.9
Once the flow solutions and adjoint solutions are obtained by solving the governing flow equations
and the adjoint equations, respectively, the complete sensitivities can be calculated by deforming the
aerodynamic shape and thus the grid for each geometric parameter. Considering that the evaluation
of an aerodynamic objective function involves perturbing the grid, it is to be expected that the
sensitivities of the objective function to the design variables will in some way involve sensitivities of
the grid perturbation algorithm. When evaluating the gradient using the discrete adjoint method,
these mesh sensitivities are implicitly included in the terms ∂I/∂xi and ∂R/∂xi .515 Table show the pro
Table 10.1 Pros & Cons of Different Grid Sensitivity Method (NDV = Number of Design Variable)
515Chad Oldfield, “An Adjoint Method Augmented with Grid Sensitivities for Aerodynamic Optimization”, A thesis
submitted in conformity with the requirements for the degree of [Link]. Graduate Department of Aerospace
Engineering University of Toronto, 2006.
305
and cons of different mesh sensitivity routine as envisioned by [Gabriele Luigi Mura]516.
1. Run the initial simulation on your initial mesh and ensure convergence of residual error to
10-4, monitor points are steady, and imbalances below 1%. If not refine the mesh and repeat.
2. Once you have met the convergence criteria above for your first simulation, refine the mesh
globally so that you have finer cells throughout the domain. Generally we would aim for
around 1.5 times the initial mesh size. Run the simulation and ensure that the residual error
drops below 10-4, that the monitor points are steady, and that the imbalances are below 1%.
At this point you need to compare the monitor point values from Step 2 against the values
from Step 1. If they are the same (within your own allowable tolerance), then the mesh at
Step 1 was accurate enough to capture the result. If the value at Step 2 is not within acceptable
values of the Step 1 result, then this means that your solution is changing because of your
mesh resolution, and hence the solution is not yet independent of the mesh. In this case you
will need to move to Step 3.
516 Gabriele Luigi Mura, “ Mesh Sensitivity Investigation in the Discrete Adjoint Framework”, Thesis is submitted
to University of Sheffield in partial fulfilment of the requirement for the degree of Doctor of Philosophy, 2017.
306
3. Because your solution is changing with the refinement of mesh, you have not yet achieved a
mesh independent solution. You need to refine the mesh more, and repeat the process until
you have a solution that is independent of the mesh. You should then always use the smallest
mesh that gives you this mesh independent solution (to reduce your simulation run time).
11 Mesh Quality
11.1 Background
Make no mistake about it, mesh quality can have a large influence upon the accuracy (and efficiency)
of a simulations based on the solution of partial differential equations (PDE)'s. Most argue that your
CFD solution is as good as mesh it has. Many factors go into the influence of mesh on accuracy
including the type of physics being simulated, details of the solution to the particular simulation, the
method of discretization, and geometric mesh properties having to do with spacing, curvature, angles,
smoothness, etc,517. The general consensus is that a good quadrilateral mesh would be formed by two
families of orthogonal, or at least nearly orthogonal, curves with a smooth gradation between a
coarse mesh in the far field and a fine mesh near the boundary. The following provisional definition
is accepted as Mesh Quality concerns the characteristics of a mesh that permit a particular
numerical PDE simulation to be efficiently performed, with fidelity to the underlying physics,
and with the accuracy required for the problem.
This description hints at several issues. First, mesh quality depends on the particular calculation
which is undertaken and thus changes if a different calculation is performed. Second, a mesh should
do no harm, i.e., it should not create difficulties for the simulation. As mesh generation methods
evolved to handle complex three dimensional configurations, and the choice of element type
broadened to include not just hexahedra but also tetrahedral and prisms, visual inspection of a mesh
became much more difficult. The task was aided considerably by the advent of computer work-
stations with a powerful graphics capability and the development of good graphics software to view
CFD solutions. Today, of course, it is often possible to undertake a CFD simulation and view the
results on a laptop computer. Despite these developments in computer graphics and visualization
software it is almost impossible to check a mesh with several million points around a complete
aircraft and decide whether the quality and distribution of the mesh elements is acceptable. Even if
this were a feasible option, visual inspection of large meshes is extremely time consuming and is
clearly unacceptable in a design environment where a rapid turnaround is essential and numerous
design variations must be evaluated in a timely manner.
517Patrick M. Knupp, “Remarks on Mesh Quality”, 45 th AIAA Aerospace Sciences Meeting and Exhibit, 7-10
January, 2007, Reno, NV.
308
Rate of convergence
Solution accuracy
Grid Independence result
CPU time required
Now these days most of grid generation routines have sophisticated software of grid quality which
shows the results graphically. Important metrics such as Volume, Orthogonality, Skewness,
Stretching, Centroids, etc., are available on most grids generation software. Figure 11.1 shows the
mesh quality (Volume, AR, and Stretching) for benchmark test case Turk/Hron.
(a) Volume
(c) Stretching
Figure 11.1 Predicted Mesh Quality (Volume, Aspect Ratio, and Stretch)
309
1. Type 1 checks whether cells have positive volumes and faces that do not intersect each other.
2. Type 2 checks whether interior cell faces match uniquely with one other interior face and
whether boundary cell faces lie on the geometry model of the object being meshed.
3. Type 3 checks whether each surface of the geometry model is completely covered by
boundary cell faces, whether each hard edge of the geometry is covered by edges of boundary
cell faces, and whether the sum of the boundary faces areas matches the actual geometry
surface area.
[Christopher Roy]522 from Virginia Tech showed a counter-intuitive example (at least from the
standpoint of a priori metrics) that the solution of 2D Burger’s equation on an adapted mesh (with
cells of widely varying skew, aspect ratio, and other metrics) has much less Discretization Error (DE)
than the solution on a mesh of perfect squares as seen in Figure 11.2523. From this example alone, it
is clear that metrics based solely on cell geometry are not good indicators of mesh quality as it
pertains to solution accuracy.
Figure 11.2 A simple Demonstration of How a Poor Mesh from a Cell Geometry Perspective
[Link] CFD++
Metacomp Technologies’ Vinit Gupta524 cited cell skewness and cell size variation as two quality
issues to be aware of for structured grids. In particular, grid refinement across block boundaries in
the far field where gradients are low has a strong, negative impact on convergence. For unstructured
and hybrid meshes, anisotropic tets in the boundary layer and the transition from prisms to tets
outside the boundary layer also can be problematic. Gupta also pointed out two problems associated
with metric computations. Cell volume computations that rely on a decomposition of a cell into tets
are not unique and depend on the manner of decomposition. Therefore, volume (or any measure that
relies on volume) reported by one program may differ from that reported by another. Similarly, face
normal computations for anything but a triangle are not unique and also may differ from program to
program. (This is a scenario can be often encountered when there is a disagreement with a solver
vendor over a cell’s volume that turns out to be the result of different computation methods.)
[Link] Kestrel
Kestrel, the CFD solver from the CREATE-AV program, was represented by David McDaniel526 from
the University of Alabama at Birmingham. At the start, he made two important statements. First, their
goal is to “do well with the mesh given to us.” (This is similar to Pointwise’s approach to dealing with
CAD geometry – do the absolute best with the geometry provided.) Second, he notes that mixed-
element unstructured meshes (their primary type) are terrible according to traditional mesh metrics,
despite being known to yield accurate results. This same observation is true for adaptive meshes and
meshes distorted by the relative motion of bodies within a mesh (e.g. flaps deflecting, stores
dropping). More significantly, McDaniel notes a “scary” interdependence between solver
discretization and mesh geometry by recalling Mavriplis’ paper on the drag prediction workshop527
in which two extremely similar meshes yielded vastly different results with multiple solvers. To
address mesh quality, Kestrel’s developers have implemented non-dimensional quality metrics that
are both local and global and that are consistent in the sense that 0 always means bad and 1 always
means good. The metrics important to Kestrel are an area-weighted measure of quad face planarity,
an interesting measure of flow alignment with the nearest solid boundary, a least squares gradient
that accounts for the orientation and proximity of neighbor cell centroids, smoothness, spacing and
isotropy. Differing from Dannenhoffer’s result, McDaniel showed a correlation of mesh quality with
solution accuracy with the caution that a well resolved mesh can have poor quality and still produce
a good answer. (In other words, more points always is better; see Figure 11.3).
Figure 11.3 Using Kestrel one can Show a Correlation Between Mesh and Solution Quality
[Link] STAR-CCM+
Alan Mueller’s528 presentation on CD-adapco’s STAR-CCM+ solver began by pointing out that mesh
quality begins with CAD geometry quality and manifests as either a low quality surface mesh or an
inaccurate representation of the true shape. This echoes Dannenhoffer’s grid validity idea. After
introducing a list of their quality metrics, Mueller makes the following statement, “Results on less
than perfect meshes are essentially the same (drag and lift) as on meshes where considerable
resources were spent to eliminate the poor cells in the mesh.” Here we note that the objective
527 Mavriplis, Dimitri J., “Grid Quality and Resolution Issues from the Drag Prediction Workshop Series”, AIAA
paper 2008-930, Jan. 2008.
528 Alan Mueller, “A CD-Adapco Perspective on Mesh Quality”,CD-Adapco.
312
functions are integrated quantities (drag and lift,) instead of distributed data like pressure profiles.
After all, integrated quantities are the type of engineering data we want to get from CFD. This
insensitivity of accuracy to mesh quality supports Mueller’s position that poor cell quality is a
stability issue. Accordingly, the approach with STAR-CCM+ is to be conservative opt for robustness
over accuracy. Specifically, they are looking for metrics that will result in division by zero in the
solver. Skewness as it effects diffusion flux and linearization is one such example.
1. CFD solver developers believe mesh quality affects convergence much more than accuracy.
Therefore, the solution error due to poor or incomplete convergence cannot be ignored.
2. One researcher was able to show a complete lack of correlation between mesh quality and
solution accuracy. It would be valuable to reproduce this result for other solvers and flow
conditions.
3. Use as many grid points as possible (Dannenhoffer, McDaniel). In many cases, resolution
trumps quality. However, the practical matter of minimizing compute time by using the
minimum number of points (what Thornburg called an optimum mesh) means that quality
still will be important.
4. A priori metrics are valuable to users as an effective confidence check prior to running the
solver. It is important that these metrics account for cell geometry but also the solver’s
numerical algorithm. The implication is that metrics are solver-dependent. A further
implication is that Dannehoffer’s grid validity checks be implemented.
5. There are numerous quality metrics that can be computed, but they are often computed
inconsistently from program to program. Development of a common vocabulary for metrics
would aid portability.
6. Interpreting metrics can be difficult because their actual numerical values are non-intuitive
and stymie development of domain expertise. A metric vocabulary should account for desired
range of result numerical values and the meaning of “bad” and “good.”
Max (li )
ARi
Min (h i )
Eq. 11.1
Similiarly, for hex and polyhedral cells.
[Link] Orthogonality
The concept of mesh orthogonality
relates to how close the angles between
adjacent element faces or adjacent
element edges are to some optimal angle Figure 11.4 Concept of Orthogonality in Cells
(for example, 90º for quadrilateral faced
elements and 60º for triangular faces elements). The most relevant measure of mesh orthogonality,
as defined by the CFX-Solver is illustrated in Figure 11.4. It involves the angle between the vector
that joins two mesh (or control volume) nodes (s) and the normal vector for each integration point
313
surface (n) associated with that edge. Significant orthogonality and non-orthogonality are illustrated
at ip1 and ip2, respectively.
[Link] Skewness
Skew of triangular elements is calculated by finding the minimum angle between the vector from
each node to the opposing mid-side,
and the vector between the two
adjacent mid-sides at each node of
the element as shown in Figure
11.5 (a). The minimum angle found
is subtracted from ninety degrees
and reported as the element‘s skew.
Skew in quads is calculated by
finding the minimum angle between
two lines joining opposite mid-sides (b) Warpage calculation of
(a) Skewness in Triangle a quadrilateral element
of the element. Ninety degrees
minus the minimum angle found is Figure 11.5 Skewness and Warpage
reported as skew of the element.
Maximum of 60-70 skewed elements are accepted in most of the solver beyond this limit solver can
complain about the skewness of the grid.
[Link] Warpage
This is the amount by which an element (or in the case of solid elements, an element face) deviates
from being planar. Since three points define a plane, this check only applies to quads. The quad is
divided into two trias along its diagonal, and the angle between the trias normal is measured as
shown in Figure 11.5 (b). The maximum angle found between the planes is the warpage of the
element. Warpage in three-dimensional elements is performed in the same fashion on all faces of the
element. Warpage of up to five degrees is generally acceptable.
[Link] Jacobian
This measures the deviation of an element from its ideal or "perfect" shape, such as a triangle‘s
deviation from equilateral. The Jacobian value ranges from -1.0 to 1.0, where 1.0 represents a
perfectly shaped element. As the element
becomes more distorted, the Jacobian value
approaches zero. A Jacobian value of less than
zero represents a concave element, which
most analysis codes do not allow. So it is a good
practice to keep the Jacobian of the grid greater
than zero529.
VP AD.(AB AC)
(x 4 x1 )[(y 2 y1 ) (z 2 z1 )(y3 y1 )]
(y 4 y1 )[(z 2 z1 ) (x 2 x1 )(z 3 z1 )]
(z 4 z1 )[(x 2 x1 ) (y 2 y1 )(x 3 x1 )]
VP
Vtet
6
Eq. 11.2
Eq. 11.3
where Nf denotes number of face nodes and r is the position vector. The area of each of the triangular
patches are added to get the area of the polygon face
(ri rf ) (ri 1 rf ) Nf
A tri for i 1, N f A f A tri
2 i 1
Eq. 11.4
And rN+1 = r1. Centroid of the face is computed in a similar fashion as:
1 Nf
A tri (rn rn 1 rf )
rf
Af
i 1 3
Eq. 11.5
Note that the face centroid rf was initially taken as simply the midpoint of the nodes but it is updated
at the end of the process. In the case of a planar polygon, this updated location reflects the true
centroid of the polygon. However, while not desirable, polygon nodes may be highly no coplanar in
practice. This introduces ambiguity to the centroid location as no unique definition exists based
solely on the knowledge of the node coordinates. In this case, simply iterating over Eq. 11.4 & Eq.
11.5 until convergence provides a reasonable answer. The triangulated polygonal face, even if non-
coplanar, is still attached to each of the vertices defining it as opposed to an approach where one
might fit a planar surface to the vertices. This ensures that, once all the faces of a cell is processed, a
water-tight control volume is achieved. We note once again that regardless of the aforementioned
530Emre Sozer, Christoph Brehm and Cetin C. Kiris,”Gradient Calculation Methods on Arbitrary Polyhedral
Unstructured Meshes for Cell-Centered CFD Solvers”, American Institute of Aeronautics and Astronautics.
315
ambiguity for non-coplanar polygons, consistency can be retained if the cells sharing a face use the
same face centroid and area for their reconstruction and flux integration531.
Nc
1 1
rm
Nc
r
i 1
i Vtet A tri .(rm rf )
3
Eq. 11.6
Where Atri and rf for a given face f is obtained previously. This usage of face triangulation around the
previously calculated centroid ensures that a consistent volume is obtained. The integrated volume
and the centroid of the polyhedral cell is then calculated via summation of the contributions from
Nf Ni
1 Nf Ni
V Vtet , rc (rf,i rf,i1 rf rm )Vtet
f 1 i 1 4V f 1 i 1
Eq. 11.7
Where Nf is the number of faces, Ni is the number
of face nodes532.
531 Emre Sozer, Christoph Brehm and Cetin C. Kiris,”Gradient Calculation Methods on Arbitrary Polyhedral
Unstructured Meshes for Cell-Centered CFD Solvers”, American Institute of Aeronautics and Astronautics.
532 Emre Sozer, Christoph Brehm and Cetin C. Kiris,”Gradient Calculation Methods on Arbitrary Polyhedral
Unstructured Meshes for Cell-Centered CFD Solvers”, American Institute of Aeronautics and Astronautics.
533 Stefano Paoletti, “ Polyhedral Mesh Optimization Using The Interpolation Tensor”, Adapco, U.S.A., 2002.
316
Figure 11.11 Multi-Connected Non-Convex region with a Clearly Invalid Initial 2D Planar Mesh (left),
Smoothed Planar Mesh (right) – Courtesy of Paoletti
Figure 11.10 Initial Surface Mesh (top) and Figure 11.9 Boundary (top) and Interior
Smoothed surface mesh (bottom) of Polyhedral Mesh
317
[Link].3 Conclusions
Definitions of both cell and mesh quality have been presented. A method for improving the quality of
polygonal and polyhedral mesh based on the optimization of such quality has been described and
tested in numerical experiments. This approach is similar to the one described in534-535 but tries to
address the limitation of trivalent polyhedral. More work is needed to describe the variety of
objective functions that can be built combining the invariants of the interpolation tensor. It would
also be useful, at least from a theoretical viewpoint, to carry the development of the interpolation
tensor with higher order terms in the Taylor expansion. It may be worth noting that the smoothing
technique here presented can also be used to optimize the position of the nodes for a meshless
method.
534 [Link], ”Achieving Finite Element Mesh Quality via Optimization of the Jacobian Matrix Norm and Associated
Quantities, Part I – A Framework for Surface Mesh Optimization & The Condition Number of the Jacobian Matrix”,
SAND 99-0709J.
535 [Link], ”Achieving Finite Element Mesh Quality via Optimization of the Jacobian Matrix Norm and Associated
Quantities, Part II – A Framework for Volume Mesh Optimization & The Condition Number of the Jacobian Matrix”,
SAND 99-0709J.
536 Abhishek Khare, Ashish Singh, and Kishor Nokam, “Best Practices in Grid Generation for CFD Applications
in CAD data in the form of gaps, overlaps, non-physical protrusions. So we need a lot of cleanup of the
imported CAD geometry. Geometry cleanup is a time consuming step and it requires some
intelligence to decide which feature of geometry has to remove and which feature to retain. Usual
practice is to retain the details that matter for simulation and ensure water tight geometry.
Computational Domain
After importing geometry into grid generator, decisions has to be made about the extent of the finite
flow domain which is called computational domain in which the flow has to be simulated. Shape and
size of flow computational domain is depends on the geometry and the physics of flow. Since this
modeled geometry along with the flow domain are used as an input for the grid generation hence the
modeling should takes into account the structure and topology of the grid generation. For external
flows, decision of computational domain is based on to replicate the actual physics. Many times this
domain is decided by wind tunnel dimensions and the blockage ratio. A ratio of model frontal area to
wind tunnel cross sectional area (Blockage ratio) should be less than 5%. In internal flows the flow
path recognition is one of the major works for internal flows, specifically for conjugate heat transfer
analysis. From the model search the interface between solid and fluid.
Choice of Grid
The choice of whether to use a structured or an unstructured mesh is problem specific which is
discussed in detail before. Some advantages of structured meshes that hold generally over most
applications are simplicity, availability of code, and suitability for multigrid and finite difference
methods. On the other hand, unstructured meshes conform to the domain more easily and allow
element sizes to vary more dramatically. Structured meshes are currently more popular, but
unstructured are catching up537. Here some guidelines are listed based on three parameters for
choosing between structured and unstructured grid:
1. Complex geometry: Unstructured grid generation is usually much faster than structured
one. However, if the geometry is only slightly modified from a previously existing geometry
with a structured grid, then structured grid generation can occur very rapidly. For a
particular problem structured grid can take say a man weeks to one man month. On the other
hand unstructured grid will take a man hour to a few days.
2. Accuracy: For simpler problem such as airfoil (single element) or an isolated wing,
structured grids are generally more accurate per unknown than unstructured. However, for
more complex flows, the adaptively facilitated by an unstructured grid may allow more
accurate solutions.
3. Convergence: Structured grid calculations usually take less time than an unstructured grid
calculation because, to date, the existing algorithms are more efficient.
Surface Meshing
Once the water tight geometry is ready, it is time to create surface mesh on the model surfaces to
ensure good quality surface and volume mesh. Volume mesh largely depends on the quality of surface
mesh e.g. min/max angle, skewness etc. High surface deviation areas should be meshed by dense grid
with smooth transition to low surface deviation areas. According to surface mesh requirement,
surfaces can be subdivided into parts. All sharp edges and turnings should be assured by clustering
for good quality volume mesh generation. For external aerodynamics like aero and auto domains, a
hybrid mesh is fast and cost effective.
537Abhishek Khare, Ashish Singh, and Kishor Nokam, “Best Practices in Grid Generation for CFD Applications
Using HyperMesh”, Member of Technical Staff Computational Research Lab.
319
Volume Meshing
Once the surface grid is ready, to
generate the volume grid, it is good
practice to check whether it is
forming a closed volume or not. If the
surface grid forms a closed volume,
volume grid generation can be
started. For structured grid we need
to do mapping of the corresponding
surfaces as per the topology of the
domain. In case of the unstructured
grid we need to decide some
parameters like boundary layer
thickness, element growth ratio, Y+
values, which are required for
volume grid generation. Most
important parameter is the first
point distance from the wall.
Placement of the first point near to
the wall depends on the grid Figure 11.12 General Estimation of Surface Mesh Element
resolution required. This is Size
discussed in more detail in next section which is boundary layer grid generation. The second crucial
parameter is the stretching ratio (SR). The value of the SR should be taken in such a way, so that the
size of the elements varies smoothly in the domain. The recommended value of the SR is around 1.1
to 1.3. Figure 11.12 shows the general estimation of surface mesh element size based on free stream
velocity and Y+ value538. This estimation works as well for automobile aerodynamics.
538Macro Lanfrit, “Best Practices Guidelines for Handling Automotive External Aerodynamics with Fluent“,
Fluent Deutschland GmbH, Birkenweg 14a, 64295 Darmstadt/Germany, 2005.
320
wall mesh spacing. However, for best results, it might be necessary to use very fine near-wall mesh
spacing (on the order of y+)539.
[Link] Case Study - Best Practice & Guidelines for Handling Automotive External Mesh Generation
with FLUENT
This document gives a description of a straightforward and reliable way to perform mesh generation
simulations in the field of automotive external using the CFD software package FLUENT ®. Items and
approaches listed below do not claim to be complete nor optimized, they are just recommendations
based on experience with recent comparable studies. Since here we are concerned mainly with mesh
generation aspect of the problem, for other setting (Solver, B.C. Turbulence etc. ), readers are
encouraged to consult the work by [Lanfrit541].
Strategy A (Adaption)
Strategy B (Boxes)
Strategy C (Controls)
In this section, the advantages and disadvantages of these three approaches are discussed.
1 Since the FLUENT solver in Version 6.1 has no access to the grid’s original geometry database,
mesh adaption is not useful for improving the geometry resolution of the surface mesh.
2 By using the hanging nodes adaption functionality, numerical instability and maybe
numerical diffusion is introduced by large size gradients of neighboring cells.
3 Adaption needs several manual interventions by the user.
541 Marco Lanfrit, “Best practice guidelines for handling Automotive External Aerodynamics with FLUENT”, Fluent
the Volume Meshing section of this document. This approach is very accurate and avoids the creation
of additional surfaces in prior steps. This strategy is recommended by Fluent.
Figure 11.13 shows an example of the a sideview-mirror with two different mesh resolutions. The
surface meshing should result in a high quality, non-uniform triangular surface mesh that resolves
all radii and geometrical details well. In summary:
Radii and sharp edges should be resolved very accurately, while planar faces can be meshed
relatively “coarse”
Maximum growth rate of surface elements should be 20%, even from radius to planar face
and vice versa
Skewness of the surface mesh should be as good as possible, ideally < 0.45
The recommendation for prism layer growth on the vehicle surfaces is First Aspect Ratio: 5,
Geometric growth rate: 1.2, Number of Layers: 5. Growing prisms on the wind tunnel-floor is done
using a uniform growth method. Therefore a First Height, Growth Rate and Number of Layers has to
be specified. The First Height is determined by the average surface element size of the floor under
the car. To ensure the proper boundary layer resolution in this highly affected region, it is important
324
to have a numerically fitted mesh in this particular region, just as on the car surface. Therefore first
height is calculated using the aspect ratio approach given above. The first height should be a fifth of
the average surface element size.
Figure 11.15 Handling Prism Sides using Non-conformal Interfaces – Courtesy of Lanfrit
value is given in terms of volume units. A recommendation for this value is based on the surface
elements size on the bounding box (l-bound), which should be around 100 - 200 mm.
Make sure that a particle coming from the inlet area and following a path to the front
stagnation point of the car would have to pass through minimum 100 cells. If this region is
under resolved, the pressure coefficient will go far beyond 1 and spoil the overall solution.
Check that the largest cells within the flow domain are smaller than those attached to the
bounding box (for pure tetrahedral meshes)
Check that Quality of cells is below 0.9 for the whole domain. It is recommended to have a
quality of below 0.85 for prism elements on the car surface. Use T-Grid’s Mesh Repair
functionalities to fix local quality problems.
542 Blazek, J, “Computational Fluid Dynamics: Principles and Applications”, Elsevier Science Publication, 2005.
543 Sven Perzon, “On blockage effects in wind tunnel - A CFD Study”, SAE - 2001-01-0705, 2001.
327
12 Appendix A
Nomenclature
II(i), JJ(j) : This array stores the locations of known grid lines in i- and j-directions,
respectively (1 for known grid lines).
Example: Consider surface IV in Figure 12.1. In this case, five grid lines are known: two lines at GH,
two lines at GJLN, and one line at NO. The size of the grid is 95 in the I-direction and 50 in the J-
direction. Point G is at (70, 15) and point O is at (95, 25).
328
329
330
331