Mesh Structure
Mesh Structure
net/publication/339295881
CITATION READS
1 16,478
1 author:
Ideen Sadrehaghighi
CFD Open Series
91 PUBLICATIONS 212 CITATIONS
SEE PROFILE
All content following this page was uploaded by Ideen Sadrehaghighi on 05 June 2023.
Structure Meshing
for CFD
Edited & Adapted by : Ideen Sadrehaghighi
ANNAPOLIS, MD
1
Contents
1 Introduction .................................................................................................................................. 7
1.1 Definition of Mesh vs. Grid ................................................................................................................................. 7
1.2 The Black Box Dilemma ....................................................................................................................................... 7
1.2.1 Trust the Mesh Generated by the Software, or Take a Proactive Approach? .................... 7
1.2.2 Not All the Meshes Created Equal ....................................................................................... 8
1.2.3 Some Commercial Meshing ................................................................................................. 8
1.2.4 Regional Meshing ................................................................................................................ 9
1.2.5 Simulation Cost .................................................................................................................. 10
1.2.6 Physics vs. Mesh ................................................................................................................ 10
1.2.7 Types of Domain (Simple or Multiply Connected)............................................................. 10
1.2.8 Meshing Generalities ......................................................................................................... 11
1.3 Meshing Types 4 ................................................................................................................................................... 14
1.3.1 Structured Meshes ............................................................................................................ 14
[Link] Singularities in Quad Meshes ....................................................................................... 16
[Link].1 Placing Mesh Singularities in 2D......................................................................... 16
[Link].2 Placing Mesh Singularities in 3D......................................................................... 18
1.3.2 Unstructured Meshes ........................................................................................................ 19
1.3.3 Tri/Tet vs. Quad/Hex Meshes ............................................................................................ 19
1.4 Classification of Mesh Generation Techniques ....................................................................................... 20
1.4.1 Field (Domain) Discretization Process (Mesh Generation)................................................ 21
1.5 Mesh Generation - an Art or Science? ......................................................................................................... 22
1.5.1 Why “Art” in the First Place? ........................................................................................... 22
1.5.2 The “Science” of Mesh-Generation ................................................................................... 23
1.5.3 The “Art” of Mesh-Generation .......................................................................................... 23
1.6 References .............................................................................................................................................................. 24
2.4 A New Perspective on Structured Multi-Block Meshing for Turbine Blades From GridPro©
44
2.4.1 Preliminaries & Background .............................................................................................. 44
2.4.2 Meshing Turbine Blade Profiles vs. Airfoils ? .................................................................... 44
2.4.3 Why Still Live In A Hex Mesh World?................................................................................. 45
2.4.4 Conventional Blocking Strategies ...................................................................................... 46
2.4.5 How Should My Ideal Mesh For Blades Look Like? ........................................................... 46
2.4.6 How Should My Ideal Grid Look Like? ............................................................................... 47
2.4.7 Staggered Approach .......................................................................................................... 47
[Link] Case 1: Staggering from Inlet/Outlet to Periodic ........................................................ 47
[Link] Case 2 : Staggering across Blade (Two Blades) ............................................................ 51
2.4.8 Wrapping-Up ..................................................................................................................... 51
4 Appendix A .................................................................................................................................. 99
A.1 Computer Code for a Transfinite Interpolation ...................................................................................... 99
List of Tables
Table 2.3.1 NASA CRM Free-Stream Conditions................................................................................................... 41
List of Figures
Figure 1.1.1 Meshed Domain .......................................................................................................................................... 7
Figure 1.2.1 Meshes Created using ANSYS Mosaic-Enabled Poly-Hex Core Meshing - Courtesy of
Sheffield Hallam University ................................................................................................................................................. 9
Figure 1.2.2 Types of 2D inputs : a) simple polygon , b) polygon with hole , c) multiple domain ,
d) curved domain - courtesy of (Bern & Plassmann) ........................................................................................... 11
Figure 1.2.3 Fixed Meshes (a) Structured Uniform ; (b) Structured Non-uniform ................................ 12
Figure 1.2.4 Type of Meshes : a) structured b) unstructured c) block structured .............. 12
Figure 1.2.5 Methodology of General Grid Generation ...................................................................................... 13
Figure 1.3.1 Sample Structured Mesh Types ......................................................................................................... 14
Figure 1.3.2 Multi-Blocking Terminologies ........................................................................................................... 15
Figure 1.3.3 (a) a negative singularity; (b) a positive singularity. The scalar field shown is a
harmonic function representing a continuum description of the quad mesh. It relates to the
exponential of isotropic element sizes ......................................................................................................................... 15
Figure 1.3.4 Singularities on the boundary of a 2D region. The number of elements incident on the
boundary is different than that implied by the geometry .................................................................................... 16
Figure 1.3.5 Two 5-valent singularities (a) combined to give a single 6-valent singularity (b) in 2D
....................................................................................................................................................................................................... 16
Figure 1.3.6 Controlling mesh density with an extra singularity pair......................................................... 16
Figure 1.3.7 2D extruded meshes. Note that medial axis meshes a) and b) have only two positive
singularities, which are sufficient to mesh the 6-sided extrusion..................................................................... 17
Figure 1.3.8 Cross-field, medial axis and singularity placement based on where MA changes from
parallel to mesh flow to diagonally through it .......................................................................................................... 17
4
Figure 1.3.9 Hex mesh singularities in 3D: a) Regular mesh; b) +ve singularity; c) -ve singularity;
d) 3 +ve and 1 -ve singularities combine; e) 4 -ve singularities combine...................................................... 18
Figure 1.3.10 Unstructured Meshing Types ........................................................................................................... 19
Figure 1.4.1 Classification of Grid Generation Algorithms (Courtesy of Steven Owen)....................... 21
Figure 1.4.2 Examples of Structured Meshes for Turbine Blade ................................................................... 22
Figure 2.1.1 Sponge Analogy ........................................................................................................................................ 25
Figure 2.1.2 Converting a H Type to O-H Type Topology (Courtesy of Pointwise ®)........................... 26
Figure 2.1.3 Notation used for the deformation mapping χ : Ω → Ω∗ .......................................................... 27
Figure 2.2.1 Domain Topology (O-Type, C-Type, and H-Type; from left to right).................................. 28
Figure 2.2.2 H-Type Topology. Image Source Reference [22] ........................................................................ 28
Figure 2.2.3 C-Type Topology. Image Source Reference [23] ......................................................................... 29
Figure 2.2.4 C-H Type Topology for a Wing Section ........................................................................................... 29
Figure 2.2.5 Example of a C-O Type Mesh (adapted from 32) .......................................................................... 30
Figure 2.3.1 H-O-H Topology for a Fan Blade ........................................................................................................ 31
Figure 2.3.2 Multi Block Representation for C-H Mesh Around a Wing Section ..................................... 31
Figure 2.3.3 Dual Block Grid Topology for a Generic Wing-Fuselage Configuration ............................ 32
Figure 2.3.4 Schwarz Concept of Iterating Between Domains ....................................................................... 32
Figure 2.3.5 Topology and Grid on a Multi-Block Wings via GridPro® ....................................................... 33
Figure 2.3.6 Multi-Block Gridding of Turbine Blade - (Courtesy of GridPro©) ....................................... 33
Figure 2.3.7 Domain Decomposition for M6 Wing using TIL Scripts (Courtesy of GridPro) ............. 33
Figure 2.3.8 Multi-Blocking of a Wing-Fuselage Geometry by Ansys 2019-R2......................................... 34
Figure 2.3.9 Multi-element Airfoil surface decomposed by Medial Axis & TopMaker 24..................... 35
Figure 2.3.10 Medial edge features and terminology (left) and medial axis for simple surface ...... 35
Figure 2.3.11 Jet-Wing-Flap: Medial Axis Transform (Compression Shock) and Expansion
Features Close to the Geometry – Courtesy of [Ali et al]....................................................................................... 37
Figure 2.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]............................................................................................................................................................................................. 38
Figure 2.3.13 Hierarchical Geometry Handling Strategy .................................................................................. 39
Figure 2.3.14 NASA CRM Wing-Body-Tail (c) Hybrid Blocking (d) Mesh Cut Section – Courtesy
[Ali et al.] ................................................................................................................................................................................... 41
Figure 2.3.15 Jet-Wing-Flap (a) CAD, (b) CAD and the Medial Axis Cut Section, (c) Inner Hybrid
Blocking – Courtesy of [Ali et al] ..................................................................................................................................... 42
Figure 2.3.16 Jet-Wing-Flap with Modified Inner Blocking (To Accommodate Shear Layers) –
Courtesy of [Ali et al]............................................................................................................................................................ 42
Figure 2.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]....................... 43
Figure 2.4.1 Structured Multi-Block Grid Around an Airfoil and a Turbine Blade ................................. 44
Figure 2.4.2 Structured Multiblock Grid Generated Using Blade Centered And Passage Centered
Topology.................................................................................................................................................................................... 46
Figure 2.4.3 Ideal Block Flow Pattern For The Turbine Blade ...................................................................... 46
Figure 2.4.4 Transition from straight periodic-to-periodic topology to staggered topology ............ 47
Figure 2.4.5 Basic H-O-H Topology ............................................................................................................................ 48
Figure 2.4.6 Skewed Cells And Lose in Orthogonality Observed Near the Leading and Trailing
Edge ............................................................................................................................................................................................. 48
Figure 2.4.7 Staggering Achieved by Splitting : A) The Blocks Along the Path Shown from
Inlet/Outlet to Periodic BC, B) Shows the Staggered Topology. ........................................................................ 49
Figure 2.4.8 Block Transition Needed To Improve Grid Quality ................................................................... 49
Figure 2.4.9 Grid Skewness improved and Orthogonality established at the Boundaries ................. 50
Figure 2.4.10 A. Show the 2D section Grid, B. shows the 3D staggered Grid for the Blade................ 50
5
Figure 2.4.11 A. Shows the faces to be split to convert regular periodic-to-periodic topology to
staggered topology. b. shows the final staggered wireframe ........................................................................... 51
Figure 2.4.12 3D Staggered Grid With Tip Clearance ......................................................................................... 51
Figure 3.2.1 Exponential Distribution Functions ................................................................................................ 54
Figure 3.2.2 Hyperbolic Tangent Distribution Functions ................................................................................. 55
Figure 3.2.3 Grid for Dual-Block Generic Wing-Fuselage Geometry ............................................................ 55
Figure 3.2.4 Single Passage PADRAM Mesh for the Swept Back OGV - Courtesy of [Shahpar and
Lapworth] ................................................................................................................................................................................. 56
Figure 3.2.5 Detail of the Splitter C-Mesh, Hub Mesh and the Engine-Core Exit Mesh - Courtesy of
[Shahpar and Lapworth] .................................................................................................................................................... 57
Figure 3.4.1 Typical Elliptic Grid for an Airfoil with Orthogonality Enforced on the Boundary ...... 59
Figure 3.4.2 Winslow Equations in 2D: obtained by enforcing the computational coordinates to be
harmonic, that is, the equations ∆ξ(x ; y) = 0 and ∆η (x ; y) = 0 are rewritten and solved in the
computational space ............................................................................................................................................................ 59
Figure 3.4.3 Orthogonality Adjustments – (Courtesy of Chaitanya Varier) .............................................. 61
Figure 3.4.4 Change in xξ when Boundary Point is Re-Positioned in Neumann Orthogonality ........ 65
Figure 3.4.5 An Algebraic Planar Mesh on a Bi-Cubic Geometry ................................................................... 66
Figure 3.4.6 An Elliptic Planar Mesh on a Bi-Cubic Geometry with Neumann Orthogonality .......... 67
Figure 3.4.7 Projection of Interior Algebraic Mesh Point to Orthogonal Position ................................. 67
Figure 3.4.8 Reflection of Orthogonalized Interior Mesh Point to Form External Ghost Point ....... 68
Figure 3.4.9 An Elliptic Planar Mesh on a Bi-Cubic Geometry with Dirichlet Orthogonality............. 71
Figure 3.5.1 Bypass duct components, Outlet Guide Vane (OGV), Pylon and Radial Drive Faring
(RDF) .......................................................................................................................................................................................... 76
Figure 3.5.2 Sheared H style mesh for a compressor blade, with leading edge detail ......................... 77
Figure 3.5.3 Letter-box style mesh for a compressor blade, with leading edge detail ......................... 77
Figure 3.5.4 C-type mesh for a Turbine blade ....................................................................................................... 78
Figure 3.5.5 H-O-H grid for a compressor blade with leading edge detail of the O-mesh................... 78
Figure 3.5.6 Hybrid-mesh for a compressor blade with leading edge detail............................................ 78
Figure 3.5.7 Application of mesh perturbation within design........................................................................ 79
Figure 3.5.8 Erroneous geometry and mesh generated by perturbing the datum 3D BOGV in a ring
of 52 OGVs ................................................................................................................................................................................ 79
Figure 3.5.9 PADRAM mesh for a compressor blade H-O-H topology......................................................... 81
Figure 3.5.10 Tip clearance models ........................................................................................................................... 82
Figure 3.5.11 PADRAM’s multi-passage tip clearance model (5% gap for demonstration) .............. 82
Figure 3.5.12 Single passage PADRAM mesh for the swept back OGV........................................................ 82
Figure 3.5.13 PADRAM mesh for the 52 bypass OGVs, pylon, RDF, and splitter consisting of 119
blocks.......................................................................................................................................................................................... 83
Figure 3.5.14 Detail of the C-mesh near the Pylon and RDF – top View ..................................................... 83
Figure 3.5.15 Detail of the splitter C-mesh, hub mesh and the engine-core exit mesh ........................ 84
Figure 3.5.16 Differential 0 to 2o lean, (a) perturbed mesh with Fixed periodic boundaries, (b)
PADRAM mesh ........................................................................................................................................................................ 85
Figure 3.5.17 An example of the PADRAM’s flexible design system to vary an OGV’s lean in a row
of four OGVs ............................................................................................................................................................................. 85
Figure 3.5.18 PADRAM mesh for a single stage fan with rotor TE and stator LE detail near the hub
....................................................................................................................................................................................................... 86
Figure 3.5.19 PADRAM mesh for a 5 stage compressor, showing contours of static pressure......... 86
Figure 3.5.20 PADRAM mesh for a 6 bladed waterjet ........................................................................................ 87
Figure 3.5.21 HYDRA solution for a compressor blade – contours of Mach number shown............. 87
Figure 3.5.22 Letter-box and PADRAM meshes for the bypass OGV noise calculation ........................ 88
6
Figure 3.5.23 Bypass OGV Instantaneous Axial Velocity Perturbation (-8m/s purple to +8m/s red)
at 2BPF ....................................................................................................................................................................................... 89
Figure 3.5.24 Bypass OGV Unsteady Surface Pressure Response in 2BPF ................................................ 89
Figure 3.6.1 Euler Solution on a HSCT Wing-Fuselage ...................................................................................... 91
Figure 3.8.1 Folded Grid by Transfinite Interpolation - Smooth Grid by Winslow Functional......... 93
Figure 3.9.1 1D Weight Function for High Gradient and Curvature............................................................. 95
Figure 3.9.2 Mesh and Mach Contours for Transonic Flow ............................................................................. 96
Figure 3.9.3 Grid Adaption and Mack Contours for Supersonic Airfoil ...................................................... 97
Figure 0.1 Symmetry plane (XY) .............................................................................................................................. 100
7
1 Introduction
1.1 Definition of Mesh vs. Grid
According to [Doug Lipinski] a researcher in applied math and CFD, there is no firm distinction
between grids and meshes. However, they are often used in slightly different ways. The following
definitions are more guidelines of common usage than actual rules and you may hear people use them
interchangeably in many cases. Grids are typically a set of simulation elements that have a well-
defined structure to their alignment with square or rectangular grids being the most
prototypical. Meshes are often more general. They may be unstructured and use various shapes
of elements, sometimes even mixing elements of different types in the same mesh1.
The partial differential equations that govern fluid flow and heat transfer are not usually amenable
to analytical solutions, except for very simple cases. Therefore, in order to analyze fluid flows, flow
domains are split into smaller subdomains (made up of geometric primitives like hexahedra and
tetrahedra in 3D and quadrilaterals and triangles in 2D). The governing equations are then
discretized and solved inside each of these
subdomains. Typically, one of three methods is
used to solve the approximate version of the
system of equations: finite volumes, finite
elements, or finite differences. Care must be taken
to ensure proper continuity of solution across the
common interfaces between two subdomains, so
that the approximate solutions inside various Figure 1.1.1 Meshed Domain
portions can be put together to give a complete
picture of fluid flow in the entire domain. The subdomains are often called elements or cells, and the
collection of all elements or cells is called a mesh or grid. The origin of the term mesh (or grid) goes
back to early days of CFD when most analyses were 2D in nature. For 2D analyses, a domain split
into elements resembles a wire mesh, hence the name. An example of a 2D analysis domain (flow
over a backward facing step) and its mesh are shown in Figure 1.1.1. The process of obtaining an
appropriate mesh (or grid) is termed mesh generation (or grid generation), and has long been
considered a bottleneck in the analysis process due to the lack of a fully automatic mesh generation
procedure. Specialized software programs have been developed for the purpose of mesh and grid
generation, and access to a good software package and expertise in using this software are vital to
the success of a modeling effort.
geometry. It requires yet another level of wisdom to know how to manually readjust the software-
generated meshes to more accurately account for the problematic curvatures, corners and joints in
your geometry. These are beyond the scope of what most design engineers do. Therefore, many argue
presenting a design engineer with a menu of these choices is counterproductive. On the other hand,
expert users with a lot of analysis experience know the correlations between mesh types and
accuracy, so they may want to get more involved in the meshing process. For this reason, high-end
analysis software usually offers much more knobs and dials in the meshing process. Depriving expert
users of these choices would force them to accept what they know to be unacceptable
approximations. To navigate between the two different approaches, you need at least some
understanding of how meshing works, automated or manual.
1.2.2 Not All the Meshes Created Equal
According to [Abdullah Karimi], CFD analyst for Southland Industries, uses fluid dynamics programs
to examine airflow and heat distribution to develop the best residential heating solutions for his
company’s clients. Via an online blog by Southland Industries, Karimi penned an article titled “How
Not to Mesh Up: Six Mistakes to Avoid When Generating CFD Grids”. His first tip: Never use the first
iteration of automatically generated mesh. “I’ve realized even some people with Ph.D.’s don’t have a
good grasp on meshing,” he says. “People say, garbage in, garbage out. I say, good mesh equals good
results. But the vast majority of the times I’ve seen the [software’s] automatically generated initial
mesh is too coarse. The mesh may not even work, and if it does, the result may not be accurate.” If
the automatically generated mesh significantly distorts the original geometry’s prominent
characteristics—such as rounded corners, sharp angles and smooth curves it may be a sign that the
mesh needs manual intervention in those specific regions. “You should at least take a look at the
mesh. You can check to see if there are sudden size transitions, aspect ratio for skewness and
triangular distortions. Just by visually inspecting the mesh, you can get a good idea if this may or may
not work for your problem,” says Karimi.
In his article, Karimi advises, “Don’t hit ‘Run’ without a mesh quality inspection. Depending on the
robustness of the solution scheme, this could cause serious issues like straightaway divergence of the
solution ... There are several quality metrics that need attention depending on mesh type and flow
problem. Some of these metrics include skewness, aspect ratio, orthogonality [and] negative volume.”
1.2.3 Some Commercial Meshing
With its designer friendly Altair Inspire (previously solidThinking Inspire) and expert-centric
Altair HyperMesh software, Altair offers different approaches to meshing. “In Inspire, meshing is
mostly hidden from the user,” explains Paul Eder, senior director of HyperWorks shell meshing, CAD
and geometry at Altair. “The users choose to solve either in the first order [which prioritizes speed]
or second order [which prioritizes accuracy].” By contrast, in HyperMesh, “We expose a lot more
knobs and dials, because it’s for advanced users who understand the type of meshes they want to
generate,” he adds. A similar strategy is seen in ANSYS software offerings. “Two of our products,
ANSYS Forte and Discovery Live, provide a fully automated meshing experience,” says Bill Kulp, lead
product marketing manager for Fluids at ANSYS. “ANSYS Discovery Live provides instantaneous 3D
simulation so there is no time to make a mesh. On the other hand, our [general-purpose CFD package]
ANSYS Fluent users need to solve a wide variety of fluid flow problems that can be most accurately
approached by optimizing the mesh for the task at hand.”
“Push-button automated meshing is our goal because we want to take this time-consuming job away
from the engineers so they can concentrate on the innovation and optimization of their products,”
adds [Andy Wade], lead application engineer at ANSYS. “Automated meshing will enable AI and
digital twins to run simulations in the future and so this area is becoming the focus.” In theory, design
engineers and simulation analysts could use different products, but in reality, some design engineers
have sufficient expertise to make critical meshing decisions; and some analysis experts prefer the
efficiency of automated or semi-automated meshing. So even with different products, satisfying both
9
crowds is a difficult balancing act for vendors. Though the meshing process is mostly kept in the
background in Altair Inspire, “If you’re an advanced user and want to see the meshes, you have the
option to,” says Eder. “At the same time, we also offer automation in HyperMesh, because even some
expert users want the same ease of use seen in Inspire.” “Tools such as ANSYS Discovery Live takes
the meshing away completely from the user, whereas Discovery AIM features automatic physics-
aware meshing, so the user can allow the product to do the hard work but if they want to see the
mesh and tweak it they can take control,” says Wade. Figure 1.2.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.
Figure 1.2.1 Meshes Created using ANSYS Mosaic-Enabled Poly-Hex Core Meshing - Courtesy of
Sheffield Hallam University
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.”
1.2.5 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
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.”
1.2.6 Physics vs. Mesh
Choosing the right kind of mesh, applying the right density to critical regions and selecting the right
kind of coarseness or looseness affect the accuracy and speed of the simulation job. That is an exercise
in tradeoffs, so there’s no black-and-white answer. “Meshing is always an exercise in tradeoffs in the
quality of the mesh versus the speed of the solution,” says Karimi. “If you just want to see if a part will
stand up to stresses and daily beating over time, and you’re not looking at the lowest level of details
but at a high level of generality, then getting your physics correct is more important than the mesh,”
says Eder. That means, at the general concept design level, the loads and boundary conditions—such
as temperature, forces and direction of the forces may be more important than the type of meshes
selected.
1.2.7 Types of Domain (Simple or Multiply Connected)
We divide the possible inputs first according to dimension, two or three (Bern & Plassmann)1. We
distinguish four types of planar domains, as shown in Figure 1.2.2. For us, a simple polygon includes
both boundary and interior. A polygon with holes is a simple polygon minus the interiors of some
other simple polygons ; its boundary has more than one connected component. A multiple domain
is more general still, allowing internal boundaries; in fact, such a domain may be any planar straight-
1Marshall Bern and Paul Plassmann, “Mesh Generation”, Xerox Palo Alto Research Center, Palo Alto, and
Mathematics and Computer Science Division, Argonne National Laboratory.
11
a b c d
Figure 1.2.2 Types of 2D inputs : a) simple polygon , b) polygon with hole , c) multiple domain , d)
curved domain - courtesy of (Bern & Plassmann)
line graph in which the infinite face is bounded by a simple cycle. Multiple domains model objects
made from more than one material. Curved domains allow sides that are algebraic curves such as
splines. As in the first three cases, collectively known as polygonal domains, curved domains may or
may not include holes and internal boundaries.
Three-dimensional inputs have analogous types. A simple polyhedron is topologically equivalent to
a ball. A general polyhedron may be multiply connected, meaning that it is topologically equivalent
to a solid torus or some other higher genus solid; it may also have cavities, meaning that its boundary
may have more than one connected component. We do assume ,however, that at every point on the
boundary of a general polyhedron a sufficiently small sphere encloses one connected piece of the
polyhedron's interior and one connected piece of its exterior.
Finally, there are multiple polyhedral domains—general polyhedral with internal boundaries—and
three-dimensional curved domains, which typically have boundaries defined by spline patches.
1.2.8 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. According to (Bern & Plassmann), a structured mesh is one in which all interior
vertices are topologically alike. An unstructured mesh is one in which vertices may have arbitrarily
varying local neighborhoods.
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. It also could be further distinguished in terms of cell spacing as uniform
(equal spacing), or non-uniform (diverse cell spacing). (see
Figure 1.2.3)2.
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
2M. Cruchaga, D. Celentano, and T. Tezduyar, “A moving Lagrangian interface technique for flow computations
over fixed meshes”, Computer Methods in Applied Mechanics and Engineering, 191 (2001) 525–543,
[Link]
12
Figure 1.2.3 Fixed Meshes (a) Structured Uniform ; (b) Structured Non-uniform
boundary layers. (Figure 1.2.4). They also could be distinguish about cell spacing as uniform (equal
spacing), non-uniform (diverse cell spacing), and unstructured.
In an attempt to combine the advantages of both structured and unstructured meshes, another
approach in practice is hybrid mesh generation. A hybrid mesh is formed by a number of small
structured meshes combined in an overall unstructured pattern (Bern & Plassmann). 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-
a b c
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 layer3. Precipitate of
most grid generation procedure can be summarized as Figure 1.2.5 provided that everything goes
according to plan.
(i.e. chimera grids) where cell vertices do not align. Interpolation is then needed at the boundaries of
blocks. Generally, multiple blocks are useful in maintaining a structured grid configuration around
complex boundaries. There are no hard and fast rules, but it is generally desirable to avoid sharp
changes in grid direction (which lead to lower accuracy) in important and rapidly changing regions
of the flow, such as near solid boundaries. One should also strive to minimize the non-orthogonality
Figure 1.3.3 (a) a negative singularity; (b) a positive singularity. The scalar field shown is a harmonic
function representing a continuum description of the quad mesh. It relates to the exponential of isotropic
element sizes
16
singularities can be combined into a single degenerate singularity if they are close together, Figure
1.3.5. The minimum number of singularities to allow a multi-block mesh of a simply connected
polygonal boundary can be found by counting the number and type of the corners in the boundary of
the domain, though the placement of these singularities will make a huge difference to mesh quality.
If the resulting block topology does not
provide adequate control of mesh
density then extra control can be
provided by adding a pair of negative
and positive mesh singularities,
Figure 1.3.6.
interest, it is a time-consuming process requiring a great deal of knowledge and expertise from the
person creating the meshes. The medial axis (MA) method was used by Tam and Armstrong [8] to
partition the region of interest into small subregions of simple shape, each of which contained at most
one singularity. It employed a geometric property of shape called the medial axis, which is a skeleton
or dimensionally reduced version of the shape. A characteristic of this approach was that singularities
were placed as far as possible from the boundary, and that a good quality mesh was produced since
Figure 1.3.7 2D extruded meshes. Note that medial axis meshes a) and b) have only two positive
singularities, which are sufficient to mesh the 6-sided extrusion
the partitions subdividing the domain were between parts of the boundary in geometric proximity.
An example of the resulting decompositions is shown in Figure 1.3.7a, where the partition is shown
in yellow. The subregions containing singularities were meshed with a technique called midpoint
subdivision [5][6], which divided the region into structured blocks around the singularity: a triangle
is decomposed into three blocks, a pentagon into five etc. Figure 1.3.7a was decomposed into two
5-sided prisms, each of which has a single positive singularity running through the wall thickness of
the model. Using integer programming to control edge division numbers allows the different meshes
in Figure 1.3.7a and Figure 1.3.7b to be generated from the same decomposition. Midpoint
subdivision of 2D and 3D primitives has been available in Abaqus/CAE for some years.
The medial axis method can be
viewed as a less restrictive
form of the paving method
[11]. In paving, quad elements
are added to an advancing
front from the boundary. Since
paving only has a view of the
local mesh geometry and
topology, paving algorithms
will generate many more
mesh singularities than
desired, with no control over
where they are placed, Figure
1.3.7c.
The medial axis is where Figure 1.3.8 Cross-field, medial axis and singularity placement
layers of elements advancing based on where MA changes from parallel to mesh flow to diagonally
through it
from the boundary collide.
18
Since, unlike paving, the algorithm doesn’t have to worry about the detailed mesh topology where
the fronts collide (the MA is just used to identify regions which are opposite or adjacent to each other)
the number of mesh singularities can be minimized. Note that the medial axis runs either parallel to
the mesh flow or diagonally through it, Figure 1.3.8.
Figure 1.3.9 Hex mesh singularities in 3D: a) Regular mesh; b) +ve singularity; c) -ve singularity; d) 3
+ve and 1 -ve singularities combine; e) 4 -ve singularities combine
element edges where more or less than 4 element edges meet. Excluding degenerate cases, positive
and negative mesh line singularities can interact in only a very small number of ways, Figure 1.3.9:
➢ Isolated mesh line singularities can travel through the domain, entering and exiting on the
surface of the mesh. 2D extruded or swept meshes are an example of this class, where positive
and negative mesh line singularities run along the sweep direction and are shown by the
dashed red and blue lines in Figure 1.3.9 b- c respectively. The sweep direction in thin sheet
regions (where the lateral dimensions are large compared to the thickness) is between the
top and bottom surface of the thin sheet. In long slender regions (where the length of the
region is large compared to the cross-section dimensions) the sweep direction is in the axial
direction of the region. The mesh line singularities follow these sweep directions between
source and target faces. In multi-sweep meshing, different combinations of line singularities
enter and leave on different faces of the domain
➢ Isolated singularities can form a continuous loop, such as in a revolved 2D mesh
➢ Positive and negative singularities can combine. The rightmost two primitives in Figure
1.3.9 show the simplest possible configurations, though additional degenerate combinations
are possible. These were called the ‘prime primitives’ in Price et al. [19]
• Three positive and one negative mesh line singularities can combine. This
corresponds to the midpoint subdivision algorithm applied to a ‘cube-with-a-corner-
chipped-off’, Figure 1.3.9d.
• Four negative mesh line singularities can combine. This corresponds to the midpoint
subdivision algorithm applied to a tetrahedral shape, Figure 1.3.9e. Note that this
case can actually be further decomposed into two type c) negative singularities which
pass each other in the interior of the tet volume, so it could be regarded as a
degenerate combination.
19
➢ Unstructured Meshes
• Delany Triangulation
• Advancing Front
• Octree Method
• Polyhedral Meshes
• Overset Meshes
• Cartesian Meshes
➢ Hybrid Meshes
➢ Adaptive Meshes
• Structured
21
• Unstructured
essential and cannot be omitted. Without a grid, there is no possibility to start a CFD simulation.
Figure 1.4.2 shows an example of multi-block structured mesh for a turbine blade.
the end should converge exactly to the same results. This basic definition seems to be violated
in the field of mesh-generation, and hence has taken the tag of “an art”.
1.5.2 The “Science” of Mesh-Generation
Various aspects of grid generation have a deep scientific reasoning behind what we do with it , and
why we go about doing it. For instance, there is a reason for the first cell height placement inside the
boundary layer, a reason for the growth rate used, a reason for the choice of the far-field distance, a
reason for the orthogonality of cells inside a boundary layer, a reason for the choices of grid density,
and, of course, a reason to stress high grid quality and so forth. And, moreover, in addition to all of
these rational choices, there is the underlying need to accurately represent the boundaries of the
simulation region. These choices and associated constraints upon the mesh have their roots in the
physics of fluid dynamics, the given regional geometric definitions, and the extent within which the
numerical methods do function. For other physics based simulations, there are yet more reasons for
additional and/or different constraints upon the generated grid.
This “science” based aspects of grid-generation is greatly understood and appreciated in the CFD
community. In a way, this has helped to standardize the grid generation practices and has aided in
automating parts of the mesh-generation process. Based only on the foundation of scientific rational
reasoning, members of the CFD community have established international workshops like the (AIAA)
Drag Prediction Workshop (DPW) and the AIAA High Lift Prediction Workshop (HiLiftPW) in order
to assess the CFD methodology as validated against wind tunnel experiments. A bigger chunk of this
process are the flow solver strategies and the act of grid/mesh generation. Due to its importance, the
committees running these workshops have come-up with formal guidelines for grid generation that
address the classification of fluid flow problems. Imbedded in these classifications from the
workshops, there are significant signals of what is good and what is not.
If we were to stand back from the minute details, it is only due to a set of rational and logical reasoning
in the grid generation process, we have been able to teach, replicate, and enable flow solvers to
generate meaningful CFD data as best as they can. When we speak of “meaningful”, what we are
really saying is that we can trust the accuracy of the CFD results so that we can make good decisions
from those results. Such decisions rely upon having enough CFD accuracy to answer our key
questions with respect to the level of physics being modelled. All of this can make CFD a powerful
and reliable design tool.
1.5.3 The “Art” of Mesh-Generation
Having seen some of the scientific aspects of the process, we are brought to the question: What is in
mesh-generation which makes one perceive it as more of as an art than a science? The answer lies
in the way we go about filling the computational domain with the geometric elements. Though,
all we do is populating the fluid region by a grid of an element type or types, it is really how we go
about doing it and which of the various options we use. It is this collective whole in the end which
brings us to the differences among the grids. Even, well within the standard grid generation
framework that was laid out, there are various possibilities and it is up to the CFD engineer to decide
which options to pick and use to create the mesh. This aspect can be clearly seen in the grids
generated by the participants in CFD workshops like the AIAA DPWs and HiLiftPW. Even after
adhering to the stringent guidelines prescribed by the committees, the grids, whether structured or
unstructured are visibly different, which in turn are reflected in the simulated CFD results. It is for
this reason that the organizers would like the participants to use the workshop committee grids, as
this will aid in reducing the wide scatter of CFD results due to variation in grids.
What makes grid-generation seem artistic is the fuzzy value or nature of desired grid features,
although many, of them, can be stated in a rather analytical way. This includes grid alignment to
flows, grid point patterns, good element shapes, gentle transitions between the elements
(smoothness), local enrichment for anticipated physics, and relative cell orientations. Although this
list is not necessarily complete, it does indicate that various tradeoffs are required and that the
24
person doing the grid generation must then make a number of choices along the way. Standard grid
generation guidelines have laid out stringent rules for some specifics such as grid resolution, growth
rate and cell count, but not for the fuzzy items like flow alignment or topology structure which bring
in the differences in sometimes less than subtle ways.
1.6 References
1 Not a general definition. There are many researchers which use the terms (grid/mesh)
interchangeably.
2 Kenneth Wong is Digital Engineering’s resident blogger and senior editor.
3 Roy Koomullil, Bharat Soni, Rajkeshar Singh ,”A comprehensive generalized mesh system for CFD
University, PA.
7 Introduction: An Initial Guide to CFD and to this Volume; page 1, 2007.
8 Steven Owen: Introduction to unstructured mesh generation, 2005.
25
3 Richardson LF. Weather prediction by numerical process. Cambridge: Cambridge University Press; 1921.
4 Edelsbrunner H. “Geometry and topology for mesh generation”, Cambridge: Cambridge university, 2001.
5 Baker, T., “Mesh generation: Art or science?” MAE Department, Princeton University, Princeton, NJ.
6 Baker, T.,J., “Mesh generation: Art or science?”, MAE Department, Princeton University, Princeton, NJ.
26
7 Bauer F, Garabedian P, Korn D. Supercritical wing sections I, Lecture Notes in Economics and Mathematical
Systems, vol. 66. Berlin: Springer; 1972.
8 Moretti G.”Grid generation using classical techniques”. Proceedings of the NASA Langley workshop on
deformed states. As mentioned in the introduction, these approaches have both previously been
examined in the context of high-order mesh generation. However the purpose of this work is to
instead consider a variational approach, in which we aim to find a displacement u that minimizes an
energy functional
∂𝛘
𝐅= = ∇𝛘
∂𝐗
Eq. 2.1.2
which relates elemental vectors and
differentials in the configurations
according to dx = FdX. The determinant J =
det F, is referred to as the Jacobian of the
mapping, and represents volumetric
deformations so that dv = JdV, where dv
and dV denote elemental volumes in the Figure 2.1.3 Notation used for the deformation
deformed and undeformed configurations mapping χ : Ω → Ω∗
respectively. General measures of
deformation are represented by the strain tensors. Let us consider two elemental vectors, dX1 and
dX2, in the undeformed configuration that deform into the elemental vectors dx1 and dx2,
respectively. The right Cauchy-Green tensor, C, characterizes their scalar product dx1 · dx2 = dX1 · C
dX2, which can be written in terms of the deformation gradient as C = FTF.
[Link] References
[1] J. Bonet, R. Wood., Nonlinear continuum mechanics for finite element analysis, Cambridge
University Press, 1997.
28
Figure 2.2.1 Domain Topology (O-Type, C-Type, and H-Type; from left to right)
10Julian 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.
11 “PADRAM: Parametric design and rapid meshing system for turbomachinery optimization”, Shahrokh
Shahpar et al, Proceedings of ASME Turbo Expo June 2003, Georgia, USA.
29
12 “Generation of a composite grid for turbine flows and consideration of a numerical scheme”, Y. Choo et al,
NASA Technical Memorandum, Technical Report 86-C-38, November 1986.
13 Ney R. Secco, Gaetan K. W. Kenway, Ping He, Charles A. Mader, and Joaquim R.R.A. Martins, “Efficient Mesh
Generation and Deformation for Aerodynamic Shape Optimization”, AIAA Journal, 2020.
14 D. Feszty, T. Jakubík, “ Grid Generation”, Széchenyi University.
30
When it comes to mesh parameters, the studies show that with carefully chosen mesh spacing
around the leading edge, good orthogonality and skewness factors, smooth spacing variation, and a
reasonable number of nodes, excellent CFD results can be obtained from the mesh in terms of
accuracy of computed functional, determined convergence order and adjoin error estimation. Now
with regard to Topology of individual cells where three types are considered; Hexahedral,
Tetrahedral, and Polyhedral. In essence, topology is a structure of blocks that acts as a framework
for placing mesh elements.
15S. M. Alavi Moghadam, M. Meinke, and W. Schr¨oder, “Analysis of Tip-Gap Size on Tip-Leakage Flow in an axial
fan at design and off-design operating conditions”, 13th European conference on turbomachinery fluid dynamics
& thermodynamics etc13, April 8-12, 2019; Lausanne, Switzerland.
31
Figure 2.3.3 Dual Block Grid Topology for a Generic Wing-Fuselage Configuration
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 concept18. He purposed that simply:
➢ Solve the PDE in the circle with boundaries taken from interior of square.
➢ Solve the PDE in the square with Boundaries taken from interior of circle.
And then iterate as
depicted in Figure 2.3.4.
These days, with aid of Iterate
strong work stations with
visual aids, this is running
on the background. The
user does not know, or
cared, what algorithm in Figure 2.3.4 Schwarz Concept of Iterating Between Domains
running. Some of the
vendors are opted for automatic DD schemes, or at least to begin with. User has options to change
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 2.3.7. Other venders have their
own scripts or input data depending. Another example is Pointwise® which uses Glyph or newer
18David E. Keyes, “Domain Decomposition Methods for Partial Differential Equations”, Department of Applied
Physics & Applied Mathematics Columbia University.
33
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 2.3.8 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.
19 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.
20 T. Tam, C. Armstrong, 2D finite element mesh generation by medial axis subdivision, Adv. Eng. Software (1991).
21 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.
35
field. The medial axis transform (MAT) based algorithms for the domain decomposition have been
presented. 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.
[Link] Medial Axis Definition
For a 2D surface, the medial axis is defined as the set of points where each point, p̂ , has a centered
inscribed circle, U, that touches the boundary entities at more than a single point (Fogg et al.)23.
Distinct parts of the medial axis are characterized by the number of touching points of U(p̂ ). Medial
Figure 2.3.10 Medial edge features and terminology (left) and medial axis for simple surface
(right)
edges connect subsets of the points with two touching points and they usually make up the majority
of the medial axis. The radius of U(p̂ ) is called the medial radius, rm, and the subtended angle between
the radii of U(p̂ ) to the touching points is called the medial angle, θm. A special type of medial edge
feature that frequently occurs is termination at a convex corner where rm shrinks to zero. The
corresponding medial edge is called a flare or flange. These are all illustrated in Figure 2.3.10.
Medial vertices represent the meeting points of medial edges as U(p̂ ) transitions from one boundary
pair to another. In standard cases three touching points are involved. In special cases a medial vertex
is equidistant to more than three touching points. There are two other special cases, the first being a
medial vertex at the center of a circular arc with U(p̂ ) in finite contact. The other is a curvature contact
scenario, such as near the end of the major principal axis of an ellipse. There, the curvature of U(p̂ )
Figure 2.3.9 Multi-element Airfoil surface decomposed by Medial Axis & TopMaker 24
23Fogg, H. J., Armstrong, C. G., & Robinson, T. T. (2016). Enhanced medial-axis-based block-structured meshing
in 2-D. Computer-Aided Design, 72, 87-101. [Link]
36
equals that of the boundary at the touching point, which results in a single touching point belonging
to a medial vertex with θm equal to zero.
An alternative has been presented by [Rigby]24 called the ‘TopMaker’ approach, which makes use of
medial vertices and parts of medial axis to block the domain (Figure 2.3.9). 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
decomposition25-26. A hybrid approach called differential MAT or d-MAT approach is presented in
[Xia and Tucker]27-28. Here, the hyperbolic-natured eikonal, level set equation is used to calculate
the distance field29. 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.]30.
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
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]31, 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]32 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
24 D. Rigby, “A technique for automatic multi-block topology generation using the medial axis”, NASA/CR
FEDSM2003-45527 (2004).
25 P.-E. Danielsson, “Euclidean distance mapping, Computer Graphics and image processing”, (1980).
26 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.
31 W. R. Quadros, LayTracks3D: a new approach to meshing general solids using medial axis transform, Procedia
Engineering 82 (2014).
32 I. Malcevic, Automated blocking for structured CFD gridding with an application to turbomachinery secondary
flows, 20th AIAA Computational Fluid Dynamics Conference, Honolulu, Hawaii, 2011.
37
topology generation techniques surveyed above has been performed in33-34. 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.
2.3.3 Hybrid Blocking
Consider an aero-engine jet-wing-flap ( JWF) domain with a far-field as shown in the Figure 2.3.11.
The medial axis close to the JWF geometry is shown in the enlarged view of 2D slice of domain in the
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.
Figure 2.3.11 Jet-Wing-Flap: Medial Axis Transform (Compression Shock) and Expansion Features
Close to the Geometry – Courtesy of [Ali et al]
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.
33 Z. Ali, P. G. Tucker, Multiblock structured mesh generation for turbomachinery flows, Proceedings of the 22nd
International Meshing Roundtable, Springer, 2014.
34 Z. Ali, Optimal block topology generation for CFD meshing, Ph.D. thesis, Department of Engineering, University
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
Figure 2.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]
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
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.
1. The distance field is computed around the domain of interest as shown in the Figure 2.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. 2.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 method35.
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 (Figure 2.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]36 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
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
35 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).
36 T. K. Dey, W. Zhao, Approximate medial axis as a Voronoi subcomplex, Computer-Aided Design 36 (2004).
39
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. 2.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. 2.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. 2.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 2.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
2.3.12 (d).
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
2.3.12 (d) with the green lines. This
resulting domain decomposition is
significantly better than the one obtained
initially shown in the Figure 2.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.
2.3.4 Hierarchical Geometry Handling
Modern day aero-engine design challenges
demand performing realistic and multi- Figure 2.3.13 Hierarchical Geometry Handling
scale CFD simulations of strongly coupled Strategy
40
systems. This means that geometries are becoming highly complex and as a result more effort is
consumed in the mesh generation and flow modeling process. This can have a strong impact on the
duration of the design optimization cycle. To this end, a combination of the high and low fidelity
(structured multi-block) meshing/modeling techniques can be employed using a hierarchy of the
methods shown in the Figure 2.3.13. At the bottom of this hierarchy is the smeared representation
of the geometry through the use of the lower order methods such as immersed boundary method
(IBM) and body force model (BFM)37-38. Next in the hierarchy is the real geometry resolved by the
overset meshes which present a useful option for integrating various domains together without
adding extra complexity.
The information between the overlapping parts is exchanged through interpolation. At the top is the
cost effective alternative to the fully resolved/meshed geometry, a combination of various high and
low fidelity methods allows rapid addition and modeling of arbitrary geometry effects. This helps in
reducing the design cycle time. The objective here is not to present any novel mesh generation
method but to apply a zonal/hierarchical approach to handle complex domains to reduce the
meshing effort. Such an approach can be efficiently used to rapidly explore the design space and can
aid the development of high fidelity numerical tools.
2.3.5 Body Force Modeling
The engine-wing-flap geometry case to be presented later employs the hierarchical geometry
handling approach and uses a body force method (BFM) to model the effect of the fan and outlet
guide vanes. This model is outlined next. Assuming an infinite number of blades, the aerodynamic
effects of a blade row are modeled using an axisymmetric flow in each infinitesimal blade passage
and the body forces are added as source terms. The parallel and normal components of these forces
in cylindrical coordinates system are given as:
kp kp kp
Fp,x = Vx Vrel , Fp,θ = Vθ Vrel , Fp,r = VV
s s s r rel
k n Vθ k n Vx
Fn,x = f (Vx Vθ , α) , Fn,θ = f (Vx Vθ , α)
s Vrel s Vrel
Eq. 2.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.
2.3.6 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.]39. The medial axis around the wing and tail also provides a block topology
similar to O-type or C-type meshes. To assist the blocking, expansion features at the trailing edges of
37 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.
38 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.
39 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.
41
the wing and the tail are joined to the nearest medial axis. After the blocking around the geometry is
Figure 2.3.14 NASA CRM Wing-Body-Tail (c) Hybrid Blocking (d) Mesh Cut Section – Courtesy [Ali et
al.]
complete, the far-field domain partitioning is carried out. The region is partitioned to create a H-type
mesh. The block topology around the model is shown in the Figure 2.3.14 (c). The volume and the
surface mesh cuts are displayed in the Figure 2.3.14 (d). The NASA CRM configuration has been
the test case for the 4th and 5th AIAA CFD drag prediction workshops (Vassberg et al.)40. 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
M∞ 0.85
minutes, and gridding in 6 minutes. The simulations are performed in
Ptotal 201326.9 Pa
HYDRA which is an unstructured, finite volume, edge-based and
compressible flow solver using MUSCL based flux differencing. Ttotal 310.93 k
The simulation is carried out at M∞ = 0.85 and CL = 0.5 with Re = 5 × 106
Table 2.3.1 NASA CRM
based on the reference chord length Cref = 7.00532 m. Table 2.3.1 Free-Stream Conditions
describes the free-stream flow conditions. A coarse mesh of
approximately 4 M 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 2.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 2.3.15 (b).
To simplify the blocking procedure, small medial axis branches are removed for this case. This is
Wahls, et al., Summary of the Fourth AIAA CFD Drag Prediction Workshop (2010). AIAA Paper No. AIAA-2010.
42
followed by the inner blocking aided by the rules which is shown in the Figure 2.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 2.3.15 (c) is non-optimal for properly resolving the shear layers produced by the bypass and
Figure 2.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 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 2.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. 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.
Figure 2.3.16 Jet-Wing-Flap with Modified Inner Blocking
[Link] Jet-Engine-Wing-Flap (To Accommodate Shear Layers) – Courtesy of [Ali et al]
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
43
where the fan is modeled using the BFM (see the schematic in Figure 2.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 2.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.
Figure 2.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]
44
2.4 A New Perspective on Structured Multi-Block Meshing for Turbine Blades From
GridPro©
2.4.1 Preliminaries & Background
Meshing techniques for turbomachinery flow fields is well established and has evolved and matured
over the last couple of decades41. Early CFD practitioners made use of various flavors in structured
multi-block strategies like the H-type, C-type, O-type, etc. and were satisfied with the CFD results.
However, over time, the turbine blade designs started to take on complex forms with larger twists,
narrower flow passages, higher pitch, newer geometrical features like cooling holes with internal
passages, cut back trailing edges, shroud cavities, snubbers etc. and the industry workhorse(in terms
of meshing) i.e., structured blocking strategies were inadequate to handle these newer challenges.
With the emergence of unstructured and cartesian meshing techniques, Engineers took a detour from
the structured approaches and started to embrace these newer meshing algorithms. However, many
soon realized that, although the newer approaches, facilitated for faster discretization and lesser
human intervention, the ultimate objective of getting accurate, reliable computational results was in
jeopardy. This paved the way to look for an amalgamation of techniques, giving rise to hybrid grids.
The emerging thought was, to make use of structured blocks where ever possible especially in critical
flow regions and to switch to unstructured methods, in regions of geometric complexities. With this,
the discretization of complex turbomachinery domains has been possible. The hybrid approach,
though not an ideal solution, is largely accepted in the CFD community.
Interestingly, structured multi-block researchers haven’t given up their quest for faster, reliable and
robust meshing. Time and again, they have come up with newer, smarter techniques to meet the
gridding challenges. Innovative blocking strategies like staggering, local enrichment, nesting and
faster meshing through automated blocking, template-based approaches, etc., The approaches
exploit the advantages of unstructured meshes and has made structured gridding possible even for
geometries which were thought to be un-mesh able a decade ago. Structured grids are regaining back
their lost prominence and are still the darling of the turbomachinery practitioners.
2.4.2 Meshing Turbine Blade Profiles vs. Airfoils ?
Turbine blades outwardly look very similar to aircraft wings and this implants a wrong notion in our
minds that meshing turbine blades are similar to meshing wings. Though topologically same,
meshing turbine blades are a lot trickier, even at a 2D profile level. In external aerodynamic
computations such as airfoils, the domains are large and there is a lot more free space around. This
Figure 2.4.1 Structured Multi-Block Grid Around an Airfoil and a Turbine Blade
gives you the freedom to easily construct the blocks which can place itself orthogonally around the
body and the outer domain with almost zero skewness. The extra space provides the luxury for grid
blocks to relax, adjust and re-position themselves to provide a high-quality grid. On the contrary, due
to the close proximity of inlet/outlet and periodic boundaries, attaining orthogonal grids with an
acceptable skewness becomes a challenge. Especially when high curvature blades with large
periodicity, the flow passage shrinks and contours, which makes meshing them a lot harder. Though
block creation may take less time, having them aligned to the domain boundaries and also ensuring
periodicity, grid quality, especially at the LE and TE becomes an uphill task. (Figure 2.4.1).
In 3D, the complexity scales up multiple times with turbine blades having twists in the spanwise
direction and with narrow tip clearance gaps, it becomes a nightmare. As a consequence, the turbine
blades need blocking strategies which are fairly different from that needed for a wing. Interestingly,
when seen from an unstructured perspective meshing an airfoil or a turbine blade are very similar.
Abundance or lack of space no more becomes an issue, the unstructured grids adjust accordingly to
give a healthy grid. If such is the flexibility offered by the unstructured methods, then why do CFD
engineers still wish to mesh their blades the structured way?
2.4.3 Why Still Live In A Hex Mesh World?
Cartesian and unstructured meshing techniques are fast, time-efficient and are more amenable for
automation. But they fall short in providing the quality and solution level accuracy the Engineers are
looking for. On the other hand, well-organized flow aligned hexahedral cells in structured grids
provide reliable results with lower truncation and discretization errors. This results in faster solver
convergence, more robustness, higher solution feature capturing and more accurate CFD predictions.
Where unstructured scores are in situations when time to mesh is a critical factor. Also, structured
grids lose the edge when the flow path is unknown or is rapidly changing. Further, unstructured grids
can provide flexible resolution control through local clustering. More importantly, unstructured grid-
generators can handle geometric complexities which most structured grid generators can’t even
think of. However unstructured approach loses the battle in situations where it is required to obtain
almost identical grids even when the geometric profile is changing. A classic example can be the
turbine blade optimization cycle, where the optimizer throws multiple variants and CFD engineer
wishes to have the same set of grids points to capture the variants. This requirement is very
efficiently met in a structured approach even for a highly twisted blade.
Since unstructured is fully automated, the control over the number and the shapes of the elements
poses a challenge. They fail for highly twisted blades with narrow flow passages, as grid skewness
will exceed acceptable thresholds. In order to preserve the prismatic topology of the unstructured
region, the blade-to-blade mesh must be generated on a single section and then cloned to other
sections. This will lead to excessive shearing of the prisms for highly staggered 3D blades. Also, in
many cases along with the topology, the grid density needs to be kept as consistent as possible to the
baseline grid in order to minimize the errors in computing the flow sensitivities. Unfortunately, this
is particularly difficult to control when using unstructured grid generators as the total number of grid
points cannot be fixed a priori.
46
Figure 2.4.6 Skewed Cells And Lose in Orthogonality Observed Near the Leading and Trailing Edge
49
To push the blocks and to have the grid points periodic, it becomes necessary to stagger the blocks.
This can be achieved by splitting the blocks with the faces as highlighted in Figure 2.4.7A. The
block splitting is done from the inlet to periodic and from the outlet to periodic BC. In Figure 2.4.9
and Figure 2.4.10 the resultant grid is obtained which satisfies all the grid quality criterion for a
good grid (2D & 3D). The skewness, stretching at the LE and TE are completely eliminated and the
orthogonality at the blade and periodic boundaries are enforced.
Figure 2.4.7 Staggering Achieved by Splitting : A) The Blocks Along the Path Shown from
Inlet/Outlet to Periodic BC, B) Shows the Staggered Topology.
50
Figure 2.4.9 Grid Skewness improved and Orthogonality established at the Boundaries
Figure 2.4.10 A. Show the 2D section Grid, B. shows the 3D staggered Grid for the Blade
51
large camber and high pitch can be effectively meshed by introducing staggering. In such scenarios,
the flow passages are very narrow and this lack of space results in skewed stretched cells and loss in
orthogonality. Stagger smartly aligns and adjusts the blocks to get healthy grids. With this, we come
to the end of this first article on the art and science of meshing turbine blades. In the next article, we
will look into aspects of single topology approach for automated gridding.
53
N M N M
ξ η ξ η
r(ξ, η) = ∑ ϕn ( ) r(ξn ,η) + ∑ ψm ( ) r(ξ, ηm ) − ∑ ∑ ϕn ( ) ψm ( ) r(ξn ,ηm )
I J I J
n=1 m=1 n=1 m=1
Eq. 3.2.1
Where now the "blending" functions, φn and ψm, are any functions which satisfy the cardinality
conditions:
ξ ηL
ϕn ( L ) = δnL n , L = 1, 2,...,N and ψm ( ) = δmL m , L = 1,2,....,M
I J
Eq. 3.2.2
3.2.1 Blending Function
The interpolation function defined by Eq. 3.2.2 can be thought of two unidirectional interpolation
(Zhou)43 the corner points which has been duplicated. With N = M = 2, using the Lagrange
interpolation polynomials as the blending functions, is termed the transfinite bilinear interpolant.
With N = M = 3, this form is the transfinite bi-cubic-interpolation. Other candidates for the blending
functions are the Exponential, Hermit Interpolation Polynomials and Splines. For example, for n, L
= 2, Eq. 3.2.3 shows a typical Exponential blending function as:
ξ − Xi
Exp [(Bi−1 ) −1
Xi − Xi−1 ]
r(ξ) = Yi + [Yi − Yi−1 ] for Xi−1 ≤ ξ ≤ Xi
Exp (Bi−1 ) − 1
where 0 ≤ X𝑖 , Y𝑖 ≤ 1 , 0 ≤ ξ , r(ξ) ≤1 , i =2, , , , m
Eq. 3.2.3
The integer m represents number of control points with coordinates {Xi, Yi}. The quantity Bi-1, called
the stretching parameter, is responsible for grid density. Specifying B1, values of Bi ≥ 2 are obtained
by matching the slopes at control points. This, guaranteeing a smooth grid transition between each
region, can be accomplished using Newton's iterative scheme which is quadratically convergent. The
greater the B , the less discontinuity will propagate. Similarly, a blending function could be
constructed for η direction. The spline-blended form gives the smoothest grid with continuous
second derivatives44. An example of exponential stretching (Bi = -2) is given by Figure 3.2.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
ξ − Xi
sinh [(Bi−1 )
Xi − Xi−1 ]
r(ξ) = Yi + [Yi − Yi−1 ] for Xi−1 ≤ ξ ≤ Xi
sinh (Bi−1 )
where 0 ≤ X𝑖 , Y𝑖 ≤ 1 , 0 ≤ ξ , r(ξ) ≤1 , i =2, , , , m
Eq. 3.2.4
The hyperbolic sine function gives a more uniform distribution in the immediate vicinity of the
boundary, resulting in less truncation error. This criteria makes the hyperbolic sine function an
excellent candidate for boundary layer type flows. A more appropriate function for flows with both
viscous and non-viscous effect would be the usage of a hyperbolic tangent function such as
44 Joe
F. Thompson, Z. U. A. Warsi, C. Wayne Mastin, “Numerical Grid Generation -Foundations and Applications”,
North Holland, 1985.
55
(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.2.5
The hyperbolic tangent, as revealed in Figure 3.2.2, 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.2.3 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
Figure 3.2.3 Grid for Dual-Block Generic
as well as control points. Another choice would be Wing-Fuselage Geometry
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 does not require any matrix inversion. A sample coding in FORTRAN is given in
Appendix A and the resultant grid and topology for a dual-block generic airplane geometry is
displayed. A pioneering work in control point form of Algebraic Grid Generation using a univariate
56
η−α
β + 1 1−α
(2α + β) [ ] + 2α − β
β−1
y= η−α where 1< β <∞ and 0 ≤ α ≤1
β + 1 1−α
(2α + 1) {1 + [ ] }
β−1
Eq. 3.2.6
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.2.4 (a)
Figure 3.2.4 Single Passage PADRAM Mesh for the Swept Back OGV - Courtesy of [Shahpar and
Lapworth]
45Peter Eiseman and Robert E. Smith, “Applications of Algebraic Grid Generation”, April 1990.
46Shahrokh Shahpar and Leigh Lapworth, “PADRAM: Parametric Design And Rapid Meshing System For
Turbomachinery Optimization”, Proceedings of ASME Turbo Expo 2003, USA.
57
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.2.4 (b) shows a typical tip gap mesh for a
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.2.5. For complete details, please see the work by [ Shahpar and Lapworth]47.
Figure 3.2.5 Detail of the Splitter C-Mesh, Hub Mesh and the Engine-Core Exit Mesh - Courtesy of
[Shahpar and Lapworth]
To increasing grid data in CFD simulation, a novel method proposed by [Sun et al.]48 for compressing
and saving the structured grids. In the present method, the geometric coordinates of the six logical
domains of one grid block is saved instead of all grid vertex coordinates to reduce the size of the
structured grid file when the grid is compressed. And all grid vertex coordinates are recovered from
the compressed data with the use of the transfinite interpolation algorithm when the grid is
decompressed.
47 Shahrokh Shahpar and Leigh Lapworth, “PADRAM: Parametric Design And Rapid Meshing System For
Turbomachinery Optimization”, Proceedings of ASME Turbo Expo 2003, USA.
48 Yan SUN, Ying ZHAO, Dehong MENG, Meng JIANG, A compressing and saving method for structured grid data
based on block construction, Chinese Journal of Aeronautics, Volume 35, Issue 6, 2022, Pages 146-155, ISSN
1000-9361, [Link]
58
∂r ∂2 r ∂r ∂2 r ∂r ∂2 r ∂r ∂2 r
∂ξ ∂ξ2 ∂ξ ∂η2 ∂η ∂η2 ∂η ∂ξ2
P=− −λ , Q= −λ
∂r 2 ∂r 2 ∂r 2 ∂r 2
| | | | | | | |
∂ξ ∂η ∂η ∂ξ
Eq. 3.4.4
49Thomas P., and Middlecoff J., ”Direct control of the Grid Point Distribution in Meshes Generated by Elliptic
Equations”, AIAA Journal Vol. 18, No. 6., 1980.
59
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 slightly50. 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.4.1 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 (Figure 3.4.1). 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.
Figure 3.4.2 Winslow Equations in 2D: obtained by enforcing the computational coordinates to be
harmonic, that is, the equations ∆ξ(x ; y) = 0 and ∆η (x ; y) = 0 are rewritten and solved in the
computational space
50Sorenson 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.
60
𝐠 i = ∂i 𝐱 for i = 1, , , , n
Eq. 3.4.5
Naturally, the covariant metric tensor components gij are defined as the inner product of the
covariant base vectors, i.e,
𝐠 ij = (𝐠 i , 𝐠 j ) for i , j = 1, , , , n
Eq. 3.4.6
Furthermore, the contravariant base vectors gi = ∂Iξ satisfy
(𝐠 i , 𝐠 j ) = δij for i , j = 1, , , , n
Eq. 3.4.7
where δij is the Kronecker delta. Next, define the contravariant metric tensor components
𝐠 𝐢𝐣 = (𝐠 𝐢 , 𝐠 𝐣 ) for i , j = 1, , , , n
Eq. 3.4.8
so that gijgjk = δik , and let g be the determinant of the covariant metric tensor g = det(gij ). Consider
the arbitrary function ϕ = ϕ(ξ) defined in the computational domain C, then ϕ is also defined in D
through the mapping ξ(x). It is a well-known result from differential geometry that its Laplace
operator can be written as (see, for example, [2])
1
∆𝐱 ϕ = ∂i (√gg 𝐢𝐣 ) ∂j ϕ
√g
Eq. 3.4.9
which leads to the following simple form of the Winslow equations in physical coordinates:
g ij ∂𝑖 ∂𝑗 x𝑘 = 0 for k = 1, , , , , n
Eq. 3.4.10
where, again, gij are defined through the relation gijgjk = δik and gij = ∂ixk∂jxk. Note that Eq. 3.4.10
form a nonlinear system, since the contravariant metric tensor depends on the unknown solution x.
One of the main advantages of this particular formulation is that it allows for a highly efficient
solution strategy using Picard iterations, where the components of gij are computed from an old
solution and a linear problem is solved for a new improved solution [1].
[Link] References
[1] Fortunato, M., & Persson, P. (2016). High-order unstructured curved mesh generation using the
Winslow equations. J. Comput. Phys., 307, 1-14.
[2] Kreyszig, E.: Di_erential geometry. Dover Publications, Inc., New York (1991). Reprint of the 1963
edition.
3.4.2 Case Study 1 – Orthogonal Elliptic Mesh Smoother
This is a 2D orthogonal elliptic mesh generator which works by solving the Winslow PDE 51-52. It is
capable of modifying the meshes with stretching functions and an orthogonality adjustment
algorithm. This algorithm works by calculating curve slopes using a tilted parabola tangent line fitter
(original discovery). A distinct feature of the elliptic mesh solver is that it corrects overlapping
and misplaced grid line very well. Firstly to construct an initial mesh, the Transfinite Interpolation
algorithm is applied to the given domain constrained by the specified boundary conditions. This
algorithm is implemented by mapping each point within the domain (regardless of the boundaries)
to a new domain existing within the boundaries. This algorithm works by iteratively solving the
parametric vector equation. At the heart of the solver is the mesh smoothing algorithm, which at a
high level, works by solving the pair of Laplace equations. Coordinates of every point in the target
domain, mapped to a transformed, computational space using the change of variables method. This
renders the calculations simpler and faster to compute. However, we wish to solve the inverse
problem, where we transition from the computational space to the curvilinear solution space. Using
tensor mathematics, it can be shown that this problem entails solving the equations.
[Link] Orthogonality Adjustment Algorithm
In several computational fluid dynamics applications, an orthogonal mesh is necessary in certain
regions to ensure a high enough accuracy when performing calculations. However, it is not always
(a) Before
(b) After
possible to achieve a fully orthogonal solution, and thus the problem becomes finding a nearly-
orthogonal solution to an arbitrarily defined domain. The implemented solution uses an iterative
approach to find the angles of intersection and adjust the position of the nodes until their respective
angles of intersection converge to a reasonable threshold value from 90 degrees. The exact method
makes use of the linear approximation of the grid lines intersecting at each node within the mesh.
(see Figure 3.4.3).
3.4.3 Case Study 2 - Boundary Orthogonality in Elliptic Mesh Generation53
Experience in the field of computational simulation has shown that grid quality in terms of
smoothness and orthogonality affects the accuracy of numerical solutions. It has been pointed out
by [Thompson et al.]54 that skewness increases the truncation error in numerical differentiation.
53 Ahmed Khamayseh, Andrew Kuprat, C. Wayne Mastin, “Boundary Orthogonality in Elliptic Grid Generation”,
CRC Press LLC, 1999.
54 Thompson, J.F., A general three-dimensional elliptic grid generation system on a composite block structure,
55 Sorenson, R.L., A computer program to generate two-dimensional grids about airfoils and other shapes by the
use of Poisson’s equations, NASA TM 81198. NASA Ames Research Center, 1980.
56 Thomas, P.D. and Middlecoff, J.F., Direct control of the grid point distribution in meshes generated by elliptic
Phys. 1995,
59 See Previous.
63
Here, we present a technique similar to for updating of orthogonal control functions during elliptic
iteration60. However, our technique does not require explicit specification of grid spacing normal to
the boundary but, employs an interpolation of boundary values to supply the necessary information.
However, unlike61, this interpolation is not constructed in an auxiliary parametric domain, but is
simply the initial algebraic grid constructed using transfinite interpolation.
Although this grid is very likely skewed at the boundary, the first interior coordinate surface is
assumed to be correctly positioned in relation to the boundary, which is enough to give us the
required normal spacing information for iterative calculation of the control functions. Ghost points,
exterior to the boundary, are constructed from the interior coordinate surface, leading to potentially
smoother grids, since central differencing can now be employed at the boundary in the direction
normal to the boundary.
Since our technique does not employ the auxiliary parametric domain of62, theory and
implementation are simpler. The implementation of this technique for the case of volume grids is
straightforward, and indeed we present an example. We mention here that [Soni]63 presents another
method of constructing an orthogonal grid by deriving spacing information from the initial algebraic
grid. However, unlike our method which uses ghost points at the boundary, this method does not
emphasize capture of grid spacing information at the boundary.
Instead, the algebraic grid influences the grid spacing of the elliptic grid in a uniform way throughout
the domain. With no special treatment of spacing at the boundary, considerable changes in normal
grid spacing can occur during the course of elliptic iteration. This may be unacceptable in applications
where the most numerically challenging physics occurs at the boundaries.
3.4.4 Boundary Orthogonality for Planar Grids
We assume an initial mapping x (ξ , η) = (x(ξ , η) , y(ξ , η)) from computational space [0 , m] x [0 , n]
to the bounded physical domain Ω ⊂ R2. Here m , n are positive integers and grid lines are the lines
ξ = i , η = i with 0 ≤ i ≤ m , 0 ≤ j ≤ n being integers. The initial mapping x (ξ , η) is usually obtained
using algebraic grid generation methods such as linear transfinite interpolation. Given the initial
mapping, a general method for constructing curvilinear structured grids is based on partial
differential equations [Thompson et al. ]64. The coordinate functions x(ξ , η) and y(ξ , η) are iteratively
relaxed until they become solutions of the following quasi-linear elliptic system:
The control functions P and Q control the distribution of grid points. Using P = Q = 0 tends to generate
a grid with a uniform spacing. Often, there is a need to concentrate points in a certain area of the grid
such as along particular boundary segments in this case, it is necessary to derive appropriate values
60 Thompson, J.F., A general three-dimensional elliptic grid generation system on a composite block structure,
Comp. Meth. Appl. Mech. and Eng. 1987.
61 Spekreijse, S.P., Elliptic grid generation based on Laplace equations and algebraic transformations, J. Com.
Phys. 1995.
62 See Previous.
63 Soni, B.K., Elliptic grid generation system: control functions revisited-I, Appl. Math. Com. 1993.
64 Thompson, J.F., Warsi, Z.U.A., and Mastin, C.W., Numerical Grid Generation: Foundations and Applications.
for the control functions. To complete the mathematical specification of system Eq. 3.4.11, boundary
conditions at the four boundaries must be given. (These are the ξ = 0, ξ = m , η = 0, and η = n or “left,”
“right,” “bottom,” and “top” boundaries.) We assume the orthogonality condition
𝐗 𝛏 . 𝐗 𝛈 = 0 , ξ = 0, m & η = 0 , n
Eq. 3.4.12
We assume that the initial algebraic grid neither satisfies Eq. 3.4.11 nor Eq. 3.4.12. Nevertheless,
the initial grid may possess grid point density information that should be present in the final grid. If
the algebraic grid possesses important grid density information, such as concentration of grid points
in the vicinity of certain boundaries, then it is necessary to invoke “Dirichlet orthogonality” wherein
we use the freedom of specifying the control functions P, Q in such a fashion as to allow satisfaction
of Eq. 3.4.11, Eq. 3.4.12 without changing the initial boundary point distribution at all, and without
greatly changing the interior grid point distribution. If, however, the algebraic grid does not possess
relevant grid density information (such as may be the case when the grid is an “interior block” that
does not border any physical boundary), we attempt to solve Eq. 3.4.11, Eq. 3.4.12 using the
simplest assumption P = Q = 0. Since we are not using the degrees of freedom afforded by specifying
the control functions, we are forced to allow the boundary points to “slide to allow satisfaction of Eq.
3.4.11, Eq. 3.4.12. This is “Neumann orthogonality.” The composite case of having some
boundaries treated using Dirichlet orthogonality, some treated using Neumann orthogonality, and
some boundaries left untreated will be clear after our treatment of the pure Neumann and Dirichlet
cases.
3.4.5 Neumann Orthogonality
As is typical, let us assume that the boundary segments are given to be parametric curves (e.g., B-
splines). If we set the control functions P,Q to zero, then it will be necessary to slide the boundary
nodes along the parametric curves in order to satisfy Eq. 3.4.11, Eq. 3.4.12. A standard
discretization of our system is central differencing in the ξ and η directions. The system is then
applied to the interior nodes to solve for xi,j= (xi,j , yi,j) using an iterative method. With regard to the
implementation of boundary conditions, suppose along the boundary segments ξ = 0 and ξ = m the
variables x and y can be expressed in terms of a parameter u as x = x (u ) and y = y (u). For the ξ = 0
and ξ = m boundaries, let (xη)i,j denote the central difference (1/2)(xi,j+1–xi, j–1) along the boundaries
(i = 0 or i = m). Using one-sided differencing for xξ, Eq. 3.4.12 is discretized as
Solution of Eq. 3.4.13 for xi,j= (xi,j , yi,j) in effect causes the sliding of xi,j along the boundary so that
the grid segment between x i,j and its neighbor on
the first interior coordinate curve (ξ = 1 or ξ = m
–1) is orthogonal to the boundary curve. (See
Figure 3.4.4). To solve for xi,j the old parameter
value u0 is used to solve for the new u to compute
the new xi,j. Using the Taylor expansion of x(u)
about u0 to give
(𝐱 ξ ) . (𝐱 i,1 − 𝐱(u0 ))
i,0
u = u0 +
(𝐱 ξ ) . 𝐱 u (u0 )
i,0
Eq. 3.4.17
which gives along the boundary η = 0, and
(𝐱 ξ ) . (𝐱 i,n−1 − 𝐱(u0 ))
0,n
u = u0 +
(𝐱 ξ ) . 𝐱 u (u0 )
0,n
Eq. 3.4.18
to give xi,j = x(u) along the boundary η = n. These boundary condition equations are to be evaluated
for each cycle in the course of the iterative procedure. Note that a periodic boundary condition is
used in the case of doubly connected regions. Also note that during the relaxation process, “guards”
must be used to prevent a given boundary point from overtaking its neighbors when sliding along
the boundaries. Indeed, near obtuse corners, there is a tendency for grid points to try to slide along
the boundary curves past the corners in order to satisfy the orthogonality condition. An appropriate
guard would be to limit movement of each grid point so that its distance from its two boundary-curve
neighbors is reduced by at most 50% on a given iteration, down to a user-specified minimum length
66
δ in physical space.
65 Sorenson, R.L., A computer program to generate two-dimensional grids about airfoils and other shapes by the
use of Poisson’s equations, NASA TM 81198. NASA Ames Research Center, 1980.
66 Sorenson, R.L., Three-dimensional elliptic grid generation about fighter aircraft for zonal finite difference
computations, AIAA-86-0429. AIAA 24th Aerospace Science Conference, Reno, NV, 1986.
67 Thompson, J.F., A general three-dimensional elliptic grid generation system on a composite block structure,
Figure 3.4.6 An Elliptic Planar Mesh on a Bi-Cubic Geometry with Neumann Orthogonality
boundary. Instead, our technique automatically derives normal grid spacing data from the initial
algebraic grid. Assuming boundary orthogonality Eq. 3.4.12, substitution of the inner product of xξ
and xη into Eq. 3.4.11 yields the following two equations for the control functions on the boundaries:
𝐗 ξ − 𝐗 ξξ 𝐗 ξ − 𝐗 ηη 𝐗 η − 𝐗 ηη 𝐗 η − 𝐗 ξξ
P=− − , Q= − −
g11 g 22 g11 g 22
Eq. 3.4.19
These control functions are called the
orthogonal control functions because they
were derived using orthogonality
considerations. They are evaluated at the
boundaries and interpolated to the interior
using linear transfinite interpolation. These
functions need to be updated at every iteration
during solution of the elliptic system. We now
go into detail on how we evaluate the quantities
necessary in order to compute P and Q on the
boundary using Eq. 3.4.19. Suppose we are at
the “left” boundary ξ = 0, but not at the corners
(η ≠ 0 and η ≠ n). The derivatives xη , xηη and the
spacing g22 = ||xη ||2 are determined using
centered difference formulas from the Figure 3.4.7 Projection of Interior Algebraic
boundary point distribution and do not change. Mesh Point to Orthogonal Position
However, the g11, xξ , and xξξ terms are not
68
determined by the boundary distribution. Additional information amounting to the desired grid
spacing normal to the boundary must be supplied.
A convenient way to infer the normal boundary spacing from the initial algebraic grid is to assume
that the position of the first interior grid line off the boundary is correct. Indeed, near the boundary,
it is usually the case that all that is desired of the elliptic iteration is for it to swing the intersecting
grid lines so that they intersectthe boundaries orthogonally, without changing the positions of the
grid lines parallel to the boundary. This is shown graphically in Figure 3.4.7, where we see a grid
point, from the first interior grid line, swung along the grid line to the position where orthogonality
is established. The effect of forcing all the grid points to swing over in this fashion would thus be to
establish boundary orthogonality, but still leave the algebraic interior grid line unchanged. The
similarity of Figure 3.4.4 and Figure 3.4.7 seems to indicate that this process is analogous to, and
hence just as “natural” as, the process of sliding the boundary points in the Neumann orthogonality
approach with zero control functions.
Unfortunately, this preceding approach entails the direct specification of the positions of the first
interior layer of grid points off the boundary. This is not permissible for a couple of reasons. First,
since they are adjacent to two different boundaries, the points x1,1, xm–1,1, x1,n–1, and xm–1,n–1 have
contradictory definitions for their placement. Second, and more importantly, the direct specification
of the first layer of interior boundary points together with the elliptic solution for the positions of the
deeper interior grid points can lead to an undesirable “kinky” transition between the directly placed
points and the elliptically solved for points. (This “kinkiness” is due to the fact that a perfectly smooth
boundary-orthogonal grid will probably
exhibit some small degree of nonorthogonality
as soon as one leaves the boundary even as
close to the boundary as the first interior line.
Hence, forcing the grid points on the first
interior line to be exactly orthogonal to the
boundary cannot lead to the smoothest
possible boundary-orthogonal grid.)
Nevertheless, our “natural” approach for
deriving grid spacing information from the
algebraic grid can be modified in a simple way,
as depicted in Figure 3.4.8. Here, the
orthogonally-placed interior point is reflected
an equal distance across the boundary curve
to form a “ghost point.” Repeatedly done, this
procedure in effect forms an “exterior curve” Figure 3.4.8 Reflection of Orthogonalized Interior
of ghost points that is the reflection of the first Mesh Point to Form External Ghost Point
(algebraic) grid line across the boundary
curve. The ghost points are computed at the
beginning of the iteration and do not change. They are employed in the calculation of the normal
second derivative xξξ at the boundary and the normal spacing off the boundary; the fixedness of the
ghost points assures that the normal spacing is not lost during the course of iteration, as it sometimes
is in the Neumann orthogonality approach. Conversely, all of the interior grid points are free to
change throughout the course of the iteration, and so smoothness of the grid is not compromised.
More precisely, again at the “left” ξ = 0 boundary, let (xη )0,j denote the centrally differenced
derivative (½)(x0,j+1 – x0,j–1). Let (xoξ )0, j denote the one-sided derivative x1,j – x0,j evaluated on the
initial algebraic grid. Then condition Eq. 3.4.12 implies that if a is the unit vector normal to the
boundary, then
69
𝐗ξ yη , −xη yη , −xη
𝐚≡ = =
‖𝐗 ξξ ‖ √g 22
√xη2 + yη2
Eq. 3.4.20
Now the condition from Figure 3.4.7 is
𝐱 𝝃 = P𝑎 (𝑥𝜉0 )
Eq. 3.4.21
where Pa= aaT is the orthogonal projection onto the one-dimensional subspace spanned by the unit
vector a. Thus we obtain
yη , x η
𝐱 𝛏 = 𝐚(𝐚. xξ0 ) = (yη xξ0 − xη yξ0 )
g 22
Eq. 3.4.22
Finally, the reflection operation of Figure 3.4.8 implies that the fixed ghost point location should be
given by
𝐱 −1,j = x0,j − (xη )
0,j
Eq. 3.4.23
This can also be viewed as a first-order Taylor expansion involving the orthogonal derivative (xξ )0, j:
(g11 )0,j = (𝐱 ξ ) . (𝐱 ξ )
0,j 0,j
Eq. 3.4.25
Finally, note that the value for (xξ )0, j used in Eq. 3.4.19 is not the fixed value given by Eq. 3.4.22,
but is the iteratively updated one-sided difference formula given by
“right” boundary case, we obtain that for the “bottom” boundary the ghost point location is fixed to
be
(−yξ , xξ )
𝐱 i−1,j = 𝐱 i,0 − (𝐱 𝛈 ) where xη = (−yξ xη0 + xξ yη0 )
i,0 g11
Eq. 3.4.28
Here, (–yη ,xη ), g11 is evaluated using central differencing of the boundary data, and (xoη, yoη)
represents a one-sided derivative xi,1 – xi,0 evaluated on the initial algebraic grid. The metric
coefficient (g22)i,0 = (xη )i,0 . (xη )i,0 is now computed using Eq. 3.4.28, and xηη is computed using a
ghost point, a boundary point, and an iteratively updated interior point. The value of (xη )i,0 used in
Eq. 3.4.19 is not the fixed value given in Eq. 3.4.28, but is the iteratively updated one-sided
difference formula given by
(𝐱 𝜼 )i,0 = 𝐱 i,1 − 𝐱 i,0
Eq. 3.4.29
Finally, the “upper” η = n boundary is similar, and we note that the ghost-point locations are given by
g 22 𝐱 𝛏 g11 𝐱 η P R1 R1 = 2g12 𝐱 𝛏𝛈 − 𝐠 𝟐𝟐 𝐱 𝛏𝛏 − 𝐠 𝟏𝟏 𝐱 𝛈𝛈
[g 𝐲
22 ξ g11 𝐲η ] [Q] = [R 2 ] where {
R 2 = R1
Eq. 3.4.31
Where the derivatives here are represented by central differences, except at the boundaries where
one-sided difference formulas must be used. This produces control functions that will reproduce the
algebraic grid from the elliptic system solution in a single iteration. Thus, evaluation of the control
functions in this manner would be of trivial interest except when these control functions are
smoothed before being used in the elliptic generation system.
This smoothing is done by replacing the control function at each point with the average of the nearest
neighbors along one or more coordinate lines. However, we note that the P control function controls
spacing in the ξ-direction and the Q control function controls spacing in the η-direction. Since it is
desired that grid spacing normal to the boundaries be preserved between the initial algebraic grid
and the elliptically smoothed grid, we cannot allow smoothing of the P control function along ξ-
coordinate lines or smoothing of the Q control function along η-coordinate lines. This leaves us with
the following smoothing iteration where smoothing takes place only along allowed coordinate lines:
1 1
Pi,j = (Pi,j+1 + Pi,j−1 ) , Q i,j = (Q i+1,j + Q i−1,j )
2 2
Eq. 3.4.32
Smoothing of control functions is done for a small number of iterations. Finally, by blending the
smoothed initial control functions together with orthogonal control functions, we will produce
control functions that will result in preservation of grid density information throughout the grid,
Figure 3.4.9 An Elliptic Planar Mesh on a Bi-Cubic Geometry with Dirichlet Orthogonality
72
along with boundary orthogonality. An appropriate blending function (bij) for this purpose is
exponential blending function as described before. Now the new blended values of the control
functions are computed as follows:
𝐱 = (x, y, z) = (x(u, v), y(u, v), z(u, v)) and (u, v) = [u(ξ, η), v(ξ, η)]
Eq. 3.4.34
The mapping x(u, v) and its derivatives xu, xv , etc., are assumed to be known and evaluable at
reasonable cost. It is the aim of surface grid generation to provide a “good” mapping (u(ξ, η ), v(ξ, η
)) so that the composite mapping x( u(ξ, η ), v(ξ, η )) has desirable features, such as boundary
73
orthogonality and an acceptable distribution of grid points. A general method for constructing
curvilinear structured surface grids and its derivates are presented in [Khamayseh ]68 and will not
be repeated here. Interested renders, should consult the above mentioned source, as well as the
[Khamayseh & Mastin]69, [Warsi]70.
3.4.9 Stretching Functions
In order to further improve the quality of the mesh, one can introduce univariate stretching functions
to either compress or expand grid lines in order to correct non-uniformity where grid lines are more
or less dense. These functions are arbitrarily chosen and only reflect the distribution of grid lines. We
can derive a new set of equations by combining our previously established differential model for grid
generation and a set of univariate stretching functions of our choice. In order to do so in a
straightforward manner, we can transform our Cartesian coordinates to a new set of coordinates
which exists in a different space, called the parameter space. Then, we define our stretching functions
as onto and one-to-one univariate functions of ξ and η respectively. For additional info, please
consult the work by 71-72-73.
3.4.10 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.
3.4.11 Mesh Quality Analysis
In order to determine the quality of the resulting mesh, it was necessary to construct an objective
means of quality measurement. Therefore, several statistical procedures were implemented in the
program to produce a meaningful mesh quality analysis report. The metrics which are presented
are divided into the following categories:
➢ Orthogonality Metrics
• Standard deviation of angles
68 Ahmed Khamayseh, Andrew Kuprat, C. Wayne Mastin, “Boundary Orthogonality in Elliptic Grid Generation”,
CRC Press LLC, 1999.
69 Khamayseh, A. and Mastin, C W., Computational conformal mapping for surface grid generation, J. Com. Phys.
1996.
70 Warsi, Z.U.A., Numerical grid generation in arbitrary surfaces through a second-order differential geometric
House, Jordan Hill, Oxford OX2 8DP, 200 Wheeler Rd, Burlington MA 01803, First published 2003.
73 Joe F. Thompson, Z. U. A. Warsi, C. Wayne Mastin, “Numerical Grid Generation – Foundations and Application”,
• 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)
3.5 Case Study 3 - PADRAM: Parametric Design and Rapid Meshing System for
Turbomachinery Optimization
Authors : Shahrokh Shahpar and Leigh Lapworth
Affiliations : Rolls-Royce plc, Derby, U.K.
Citation : Shahpar, S, & Lapworth, L. "PADRAM: Parametric Design and Rapid Meshing System for
Turbomachinery Optimisation." Proceedings of the ASME Turbo Expo 2003, collocated with the 2003
International Joint Power Generation Conference. Volume 6: Turbo Expo 2003, Parts A and B. Atlanta,
Georgia, USA. June 16–19, 2003. pp. 579-590. ASME. [Link]
Source : GT2003-38698 - Proceedings of ASME Turbo Expo 2003, Power for Land, Sea, and Air, June 16–
19, 2003, Atlanta, Georgia, USA
3.5.1 Abstract
A parametric design system suitable for inclusion in an automatic optimization process is presented.
The system makes use of a multi-block structured grid generation system specially designed for the
rapid meshing of two-dimensional, quasi three-dimensional, and three-dimensional single passage
as well as multi-passage, multi-row turbomachinery blades. Full annulus viscous meshes of the order
of five to ten million mesh points for the complete bypass assembly of the low pressure compression
(LPC) system can be generated in a matter of minutes. PADRAM offers a major new design capability
where the optimization of multi-passage three-dimensional blades and its circumferential pattern is
done simultaneously in one system. Successful usage of PADRAM in a number of design, optimization
and analysis applications has recently been demonstrated and reported herein.
Nomenclature
a, b, c elliptic partial-differential-equation coefficient
m’ non-dimensional streamwise coordinate
r, θ, z physical, polar co-ordinates: radial, circumferential and axial direction
P, Q elliptic grid generator forcing functions
y normal to the wall distance
y+ non-dimensional wall distance, = y(τw/ν2ρ)1/2
x, y, z Cartesian coordinates
α , β clustering function coefficient
ξ,η coordinates in the computational plane
θ azimuthal angle
ν kinematic viscosity
ρ density
τw wall shear stress
3.5.2 Introduction
As Computational Fluid Dynamics (CFD) codes have steadily evolved into everyday analysis tools, so
attention is now focused on integrating the analysis codes with design tools paving the way to carry-
out automatic optimization. Automatic optimization tools and methodologies have proved able to
significantly reduce the manual design time and simultaneously improve the quality of the designs,
e.g. see references [1] and [2]. Traditionally the CFD pre-processing tools are embedded within a
Graphical User Interface (GUI) environment. The user-friendly environment which a GUI provides to
engineers is deemed a necessary and essential part of the CFD process. However, automatic
optimization strategies require a parametric definition of the geometry and the transfer of geometry
from CAD or a database, such as blade definition file, to the mesh generator to be seamless with no
user intervention. GUIs must be scriptable, otherwise they become bottlenecks in the optimization
process.
76
In the design by analysis approach, spending a few days to set up a new geometry interactively and
spending a couple of hours, using a very good mesh generator to produce a suitable computational
grid has been regarded as reasonable. However, this is totally unacceptable for inclusion in an
optimization loop, as the design process cannot be automated and the overall optimization time
would be too long to be of use to the designer.
Figure 3.5.1 Bypass duct components, Outlet Guide Vane (OGV), Pylon and Radial Drive Faring (RDF)
The grid generator presented in this paper arose not only from the need to perform rapid mesh
generation within an optimization scheme; but, also the need to mesh rings of vanes where each vane
can potentially be different from all the others. Error! Reference source not found. shows an engine
cut-away along with a CFD representation of the bypass duct. Downstream of the Bypass Outlet Guide
Vanes (OGVs) there are the engine pylon and Radial Drive Faring. These create large asymmetric
pressure distortions which propagate upstream through the OGVs and interact with the fan rotor.
The level of pressure distortion has a direct influence on the forced response levels of the fan rotor.
By tailoring the OGVs (i.e. making them non-circumferentially uniform) they can be used to attenuate
the pressure distortion and reduce/eliminate fan forcing. If the tailoring of the OGV geometry is to be
performed by an optimization system (see Shahpar et al., [2]), particularly one that uses heuristic
optimizers, then there can be strong variations in the geometry of adjacent OGVs during the design
cycle.
Grid generation for turbomachinery is relatively well evolved for generating simple blade-to-blade
mesh sections that are then stacked radially to create a 3D mesh. The typical types of meshes used in
the field of turbomachinery CFD are block structured [3-4], unstructured [5-6], overset or the so-
called Chimera [7-9], hybrid [10-11] and Cartesian grids [12]. In the following discussion, we
concentrate on mesh generation for turbomachinery blades. A more detailed discussion of various
grid generation techniques is beyond the scope of this paper, interested readers should refer to a
number of good books published in this field, e.g. Thompson et al. [13]. Among the grid generation
techniques, the block-structured is the most powerful and is the most established, in particular for
external aerodynamics CFD. Complex geometries can either by grided by unstructured grids or by
structured multi-block grids.
Unstructured grids typically have memory and CPU overheads due to the need store mesh
connectivity data, but offer the greatest geometrical flexibility. On-the-other-hand multi-block
structured grids are very efficient and can fill-up topologically complex domain by decomposing the
77
geometry into simple blocks. Multi-block meshes have successfully been used in the context of MDO
(Multi-Disciplinary Optimization) sensitivity study [14].
The single–block structured H-
mesh topology is illustrated in
Figure 3.5.2 and Figure 3.5.3.
The sheared H-mesh [15] shown in
Figure 3.5.2 leads to a very fast
CFD solver because the solver
exploits the fact that the
circumferential mesh lines have a
constant axial co-ordinate. This
approach is clearly too restrictive
for the current work where the
axial position of each OGV may vary
circumferentially around the
annulus. The letter-box H-mesh
[16] shown in Figure 3.5.3 uses a
curvilinear mesh topology and is
more-flexible than the sheared H-
Figure 3.5.2 Sheared H style mesh for a compressor blade,
mesh, but the high aspect ratio cells with leading edge detail
in the cross-passage direction at
the leading and trailing edge would
also restrict the geometric
flexibility of the optimizer. A
single–block structured C-mesh
topology is shown in Figure 3.5.4.
For single passage meshes this has
good resolution of the leading and
trailing edges and also the vane
wake; but, has a mesh singularity at
the junction of the upstream and
periodic boundaries. The C-mesh
has more flexibility for movement
of the OGVs than the H-meshes, but
is difficult to interface with the
downstream meshes for the pylon
and RDF. The multi-block
structured H-O-H mesh topology
[17] is shown in Figure 3.5.5.
Here, the flexibility to vary the axial
position of the OGVs around the
annulus is limited by the Figure 3.5.3 Letter-box style mesh for a compressor blade,
requirement to have degenerate with leading edge detail
nodes at the junction of the O and
H-meshes with the periodic boundaries. The periodicity means one O-block cannot be moved
independently of its neighbor. An unstructured mesh topology [18] is shown in Figure 3.5.6. This
has a structured O-mesh around the vane and an unstructured mesh of triangles in the freestream
and wake regions. The triangles become prisms when the mesh is stacked in 3D. This style of mesh
can easily accommodate a wide range of perturbations to the OGV geometry around the annulus. The
difficulty of this approach is that to preserve the prismatic topology of the unstructured region, the
78
outer grid, a strut grid, and core and bypass section grids, comprising of 2.7 million grid points.
The majority of optimizers begin with a CFD solution for base or reference geometry. Since this is
upstream of the optimization cycle, more time can be taken in generating the base mesh. Indeed, time
is generally taken at this stage to define default mesh generation parameters that are then fixed
throughout the optimization process. Tschirner et al. [20] have recently reported viscous 2D analysis
of 31 OGVs, 6 fairings and a pylon. They have reported an automated procedure using the FLUENT
grid generator GAMBIT and several UNIX scripts. The manual grid generations necessary to perform
the design and analysis with GAMBIT was reported to be extremely time consuming. Hence, a
combination of several UNIX shell scripts and libraries were used in conjunction with an interactive
user interface for data input by the user. Re-staggering and re-blading of the OGVs were done in a
different, in-house system that designs blades in a single passage environment. If mesh generation is
time consuming, then an alternative approach is to use a mesh movement algorithm to morph the
mesh onto each new geometry generated by the
optimizer.
Figure 3.5.7 show a successful application mesh
perturbation techniques to both aerofoil [1] and
end wall design [21]. Although, this approach is
quite popular, it is the authors’ experience that
producing good quality viscous meshes in three-
dimensions for complicated geometry is very
difficult and time consuming. This is particularly
true when the geometry is changing significantly
from its datum shape for example during a
heuristic optimization run. It has been found [22]
that the approach of changing the geometry
gradually and perturbing the meshes can lead to
erroneous geometry (see Figure 3.5.8) and
meshes (if geometry changes abruptly); and, also
can take up to ten hours of CPU on a compute
server which clearly makes the strategy of the Figure 3.5.8 Erroneous geometry and mesh
mesh perturbation impractical to include in an generated by perturbing the datum 3D BOGV in
automatic optimization cycle. a ring of 52 OGVs
80
In this paper, a unique design system is presented that allows the design of multi-passage 3D blades
and their circumferential pattern to be carried out simultaneously in one system. A novel method is
presented that allows consistent good quality viscous meshes to be generated very rapidly for
multiple passages of three-dimensional blades requiring no more than a few minutes of CPU time.
Since the mesh generation is extremely fast and occur in real time, the users can tune the default
parameters that control the quality of the 3D mesh upstream of the optimization runs interactively
and easily.
This system is called PADRAM (Parametric Design and Rapid Meshing System). PADRAM can
automatically and parametrically change the 2D, quasi-3D and 3D blade geometry and produce very
rapidly good quality viscous mesh for the multi-passage, multi-stage turbomachinery passages.
PADRAM makes uses of both transfinite interpolation and elliptic grid generators to generate hybrid
C-O-H meshes. An orthogonal body-fitted O mesh is used to capture the viscous region in the vicinity
of the aerofoil whilst an H mesh is used near the periodic boundaries and where stretched cells are
required, for example in the wake.
The H-meshes also take up the slack from the relative movement in adjacent O-meshes as the OGVs
are being redesigned. The mesh is independently generated for every stream section, hence three-
dimensional meshes are produced easily from stacked two-dimensional blade section meshes with
no mapping required to transfer the meshes radially. This avoids the mesh morphing, and ensures
that good quality meshes are created at every height even if the geometry is changing considerably
from hub to tip. Mesh generation is extremely fast, requiring no more than a few seconds to generate
2D meshes for the complete bypass OGV or a single passage 3D mesh; and, a few minutes to generate
a mesh of the order of 6 million points for the complete bypass assembly (on Sun Ultra 10
workstations).
3.5.3 Methodology
[Link] Geometry Modelling
Turbomachinery blade geometry is defined at a number of radial stream sections These radial
sections lie on a three dimensional surfaces defined in polar coordinates as Si(r, θ, z), where i is the
section index. Using non-dimensional parametric coordinates, m’ and θ, a typical surface can be
defined as:
rs = r(m, θ) , θs = θ(m, θ) , zs = z(m, θ)
Eq. 3.5.1
Where,
𝑧
√𝑑𝑟 2 + 𝑑𝑧 2
ḿ = ∫ , r = r(z)
𝑧0 𝑟(𝑧)
Eq. 3.5.2
Where z0 is an arbitrary reference and m’ is a nondimensional distance along a stream section which
will be zero at z0. The starting point for PADRAM system is to transform the radial stream sections
into parametric two-dimensional planes, using the co-ordinates θ and m’. As r is greater than zero for
any z coordinates, m’ is a monotonic function of z, hence a unique inverse function exists to map the
computational coordinates back to the physical, three-dimensional polar coordinates. The advantage
of the above transformation is that the angles are preserved and the mesh-generation procedure
deals with plane sections only.
[Link] Grid Generation
PADRAM grid generation starts by dividing the computational blocks into sub-blocks for the purpose
of generation of the algebraic grid and the control functions. O- type grid is used for the blades and
H-type grids near the periodic boundary, upstream and downstream blocks, C-type grids are used for
semi-infinite boundaries such as the splitter, pylon and RDF (Radial Drive Fairing). Transfinite
81
interpolation (TFI) [13] is used to generate the initial grid based on a linear interpolation of the
specified boundaries. TFI is very easy to program, computationally efficient and the grid spacing is
under direct control. PADRAM uses the following double clustering functions:
η−α
β + 1 1−α
(2α + β) [ ] + 2α − β
β−1
y= η−α , 1<β<∞ , 0≤α≤1
β+1 1−α
(2α + β) {1 + [ ] }
β−1
Eq. 3.5.3
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. PADRAM solves a
system of elliptic partial differential equations (PDEs) to smooth the algebraically generated grids
in each block. For each radial height, the following equations are solved:
time and generating suitable CFD meshes for the complex three-dimensional full annulus geometry
are two main factors deterring engineers to carry out routine analysis of reconfigured BOGVs.
PADRAM provides a unique design system that allows the design of multi-passage 3D blades and their
circumferential pattern to be carried out simultaneously in one system.
[Link] Bypass Duct Meshing
One key feature of PADRAM is the fact
that it is intimately linked with the
geometry definition. Within the ring of
the BOGVs the geometry of each OGV
can be specified independently of the
others either by using a different
geometry definition file or by using one
of the several design options within
PADRAM (see below). Hence, PADRAM
is easily able to produce meshes for
variable stagger OGVs with a fixed base
geometry; or, to design for
sophisticated OGV patterns.
Another important feature of PADRAM
is that it is a true multi passage meshing
system. The geometry of each OGV in
the annulus can be varied
independently and a good viscous
mesh for the complete ring of OGVs is
generated in one step. This is both Figure 3.5.13 PADRAM mesh for the 52 bypass OGVs,
more efficient and more robust than pylon, RDF, and splitter consisting of 119 blocks
the practice of generating a symmetric
ring of identical OGVs and then
morphing the mesh to match the actual
asymmetric geometry of the OGVs.
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.5.12-
Figure 3.5.15. Figure 3.5.1 b shows
a typical CFD solution.
[Link] Design/Optimization System
In order to perform design iterations,
PADRAM requires the reference
geometry for the OGVs, pylon/RDF and
end walls. The reference OGV geometry
may include one or more distinct blade
shapes in a prescribed circumferential Figure 3.5.14 Detail of the C-mesh near the Pylon and RDF
pattern. Each OGV is then assigned a set – top View
84
Figure 3.5.15 Detail of the splitter C-mesh, hub mesh and the engine-core exit mesh
of design parameters (see next section) which can be varied as a function of %span. Hence, the design
system is able to, simultaneously, construct new 3D blade shapes and new circumferential patterns.
The mesh generation parameters are tuned for the reference geometry and then held fixed for the
design iterations. Since, the mesh generation parameters are parametrically related to the blade
geometry, this system ensures consistent meshes are generated even if the geometry changes
considerably during the optimization.
[Link] Parametric Design Space
The PADRAM design space includes standard turbomachinery design parameters such as lean (or
pitch variation in 2D multi-passage simulation), sweep (or axial variation of sections), leading-edge
and trailing-edge re-camber. A sample of design parameters and PADRAM meshing capability are
shown in Figure 3.5.16 and Figure 3.5.17. The mesh is generated after the new leant geometry
has been constructed, this will produce a better mesh than the mesh perturbation approach. Figure
3.5.16 b shows a differential 0 to 2o leant geometry and mesh generated by PADRAM for a bypass
OGV. Successful automatic design and optimization of the bypass OGVs in the presence of the Pylon
and RDF using PADRAM is reported in reference [2] and is therefore not repeated here.
[Link] Remote Optimization
Another feature of the PADRAM system is that it presents a means of making use of remote computer
resources. PADRAM is written in ANSI ‘C’ for complete portability. The mesh generation parameters
can be defined locally, where the ability to view the mesh is essential. The geometry files, PADRAM
input file and pre-processing scripts, which are only a few Kbytes in size, can be sent electronically
to the remote machine. Since PADRAM is extremely fast, the mesh generation and pre-processing can
then be done remotely, avoiding the need to send mesh files of many tens or hundreds of megabytes
to the remote machine via CD or DAT tape. Salient details from the solution can also be extracted
85
Figure 3.5.19 PADRAM mesh for a 5 stage compressor, showing contours of static pressure
In this section, two examples of the importance of mesh quality within the design system are
presented.
[Link] CFD Solver
The CFD solver used with the PADRAM system is the Rolls-Royce plc. HYDRA. HYDRA is a suite of non-
linear, linear and adjoint CFD solvers developed collaboratively by Rolls-Royce plc. and its University
partners. HYDRA represents the PADRAM meshes as hybrid unstructured meshes using an efficient
edge-based data structure [24]. Convergence to steady state is accelerated through the use of an
element collapsing multigrid algorithm [25]. The HYDRA solver has been parallelized using the
domain decomposition method and runs efficiently on both shared and distributed memory
computers. The parallel multigrid approach is essential to generating CFD solutions in the elapsed
time needed for effective use within a design/optimization system.
[Link] Leading Edge Separations
It is almost inevitable in an optimization cycle that the sensitivity to incidence will be explored. Here,
both the mesh topology and CFD solution must respond physically to changes in incidence. Figure
3.5.21 shows the
Mach number
contours near the
leading-edge of a high-
pressure compressor
stator. A relatively
coarse grid was used
in this study. It has
been found that the
boundary-layer is
better represented by
the PADRAM mesh
than the letter-box
style mesh. The corner
grid points in the
letter-box mesh, near
the blade leading- Figure 3.5.21 HYDRA solution for a compressor blade – contours of Mach
edge, thicken the number shown
boundary-layer
88
[8] Benek, J.A., Buning, P.G., and Steger, J.L., 1985, “A 3-D Chimera Grid Embedding Technique”, AIAA
Paper 85-1523.
[9] Kao, K.H., Liou, M.S., and Chow, C.Y., 1994, “Grid Adaptation using chimera composite overlapping
meshes”, AIAA Journal, 32, pp 942-949.
[10] Kallinderis, Y., Khawaja, A., and McMorris, H., 1996, “Hybrid prismatic/tetrahedral grid
generation for viscous flows around complex geometries”, AIAA Journal, 34, pp 291-298.
[11] Irmisch, S., Walker, D., Bettelini, M., Haselbacher, A., and Benz, E., and Kallinderis, Y., 1999,
“Efficient Use of Hybrid Grids in Modern Turbomachinery Applications”, AIAA-99-0783.
[12] Aftomis, M.J., Melton, J.E., and Berger, M.J., 1995, “Adaptation and surface modeling for Cartesian
mesh methods”, AIAA-95-1725-CP.
[13] Thompson, J.F., Soni, B.k., Weatherill, N.P., 1999, “Handbook of Grid Generation”, CRC Press.
[14] Jones, W.T., Samarah, J., 1995, “A Grid Generation System For Multi-Disciplinary Design
Optimization”, AIAA-95-1689.
[15] Dawes, W.N., 1986, “A Numerical Method for the Analysis of 3D Viscous Compressible Flow in a
Turbine Cascade; Application to Secondary Flow in a Cascade with and without Dihedral”, ASME
Paper 86-GT-145.
[16] Moore, J.G., and Moore, J., 1990, “The Moore Elliptic Flow Program for Turbomachinery Flow
Calculations – 1990 User Guide”, VPI & SU Turbomachinery Research Group Report No. JM/90-3.
[17] Hall, E.J. and Delaney, R.A., 1995, “Investigation of Advanced Counter Rotation Blade
Configuration Concepts for High Speed Turboprop Systems: Task VII – ADPAC User’s Manual, NASA
Contract NAS3-25270, NASA CR-195472.
[18] Sbardella, L., Sayma, A.I., and Imergun, M., 2000, “Semi-Unstructured Mesh Generator for Flow
Calculations in Axial Turbomachinery Blading”, Int. Journal for Numerical Methods in Fluids, 32, no. 5,
pp 569-584.
[19] Wadia, A.R., Szucs, P.N., and Gundy-Burlet, K.L., 1999, “Design and Testing of Swept And Leaned
Outlet Guide Vanes to Reduce Stator-Strut-Splitter Aerodynamic Flow Interactions”, Transactions of
the ASME, 121, pp416-425.
[20] Tschirner, T., Pfitzner, M., Mertz, R., “Aerodynamic Optimization of An Aeroengine Bypass Duct
OGV-Pylon Configuration”, ASME GT-2002-30493, Netherlands, 2002.
[21] Harvey, N.W., Rose, M.G., Taylor, M.D., Shahpar, S. and Gregory-Smith, D.G., 2000, "Non-
axisymmetric Turbine End wall Design, Part I -3D Linear Design system", Journal of Turbomachinery,
122, number 2, pp286-294.
[22] Parry, A.B., 2002, private communication, Fan System Engineering, Rolls-Royce plc.
[23] Van Zante, D.E. et al., 2000, “Recommendations for Achieving Accurate Numerical Simulation of
Tip Clearance Flows in Transonic Compressor Rotors”, Journal of Turbomachinery, 122, pp733-742.
[24] Moinier, P., and Giles, M.B., 1998, “Edge-Based Multigrid Schemes for Hybrid Grids”, 6th ICFD
Conference on Numerical Methods for Fluid Dynamics, Oxford, UK.
[25] Muller, J-D and Giles, M.B., 1998, “Edge-Based Multigrid Schemes for Hybrid Grids”, 6th ICFD
Conference on Numerical Methods for Fluid Dynamics, Oxford, UK.
91
x ξ yη − x η y ξ = I
Eq. 3.6.1
Where I represents the area in physical space for a given area in computational space. The second
equation links the orthogonality of grid lines at the boundary in physical space which can be written
as
dξ = 0 = 𝜉𝑥 dx + 𝜉𝑦 dy
Eq. 3.6.2
For ξ and η surfaces to be perpendicular the equation becomes:
x ξ yη + yξ yη = 0
Eq. 3.6.3
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.6.1 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.
74Steger, J.L; Sorenson, R.L (1980). "Use of hyperbolic partial differential equation to generate body fitted
coordinates, Numerical Grid Generation Techniques". NASA conference publication 2166: 463–478.
92
and selection of step size to control the grid points is however time consuming, but these techniques
can be effective when familiarity and experience is gained.
93
Figure 3.8.1 Folded Grid by Transfinite Interpolation - Smooth Grid by Winslow Functional
75J.F. Thompson, B.K. Soni and N.P. Weatherill. Handbook of Grid Generation. CRC Press, 1998.
76 Sanjay Kumar Khattri, “Grid Generation and Adaptation by Functional”, Department of Mathematics,
University of Bergen, Norway.
77 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.
94
this choice of functional, which include scaled Jacobian distortion metrics spring analogies for
surface deformation, unconstrained optimization of the Jacobian and a number of articles based
on a shape distortion metric. However, the connections between these two themes so far remain
uninvestigated.
In the linear mesh generation community, it is known that through the calculus of variations, the
elliptic partial differential equations defining these elasticity models can be recast into the
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.
78 Joe
F. Thompson, J., F., Warsi, Z., U., A., Mastin, .W. “Numerical Grid Generation; Foundations and Applications”,
North-Holland Book, 1995.
95
∂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.9.1
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.9.1 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:
2 1/2
∂2 A
∂A ∂x 2
w = (1 + β2 |K|) (1 + α2 ( ) ) where K= 3/2
∂x ∂A 2
(1 + ( ) )
∂x
Eq. 3.9.2
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 β. (Figure 3.9.1).
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.
79Feng 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.
97
1
= C1 (1 + C2 ∇P) Eq. 3.9.3
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.
[Link] Supersonic Case
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
Figure 3.9.3 Grid Adaption and Mack Contours for Supersonic Airfoil
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. (Figure 3.9.3).
98
99
4 Appendix A
A.1 Computer Code for a Transfinite Interpolation
This subroutine is based on a transfinite interpolation with a Lagrangian blending function. The
following section describes the subroutine arguments.
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 0.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).
100
101
102
103