Structure Meshing For CFD
Structure Meshing For CFD
Patch 2.35
Structure Meshing
for CFD
Edited & Adapted by : Ideen Sadrehaghighi
ANNAPOLIS, MD
1
Contents
1 Introduction .................................................................................................................................. 6
1.1 Definition of Mesh vs. Grid ................................................................................................................................. 6
1.2 The Black Box Dilemma ....................................................................................................................................... 6
1.2.1 Trust the Mesh Generated by the Software, or Take a Proactive Approach? .................... 6
1.2.2 Not All the Meshes Created Equal ....................................................................................... 7
1.2.3 Some Commercial Meshing ................................................................................................. 7
1.2.4 Regional Meshing ................................................................................................................ 8
1.2.5 Simulation Cost .................................................................................................................... 9
1.2.6 Physics vs. Mesh .................................................................................................................. 9
1.2.7 Types of Domain (Simple or Multiply Connected)............................................................... 9
1.2.8 Meshing Generalities ......................................................................................................... 10
1.3 Meshing Types 4 ................................................................................................................................................... 13
1.3.1 Structured Meshes ............................................................................................................ 13
1.3.1.1 Singularities in Quad Meshes ....................................................................................... 15
1.3.1.1.1 Placing Mesh Singularities in 2D......................................................................... 15
1.3.1.1.2 Placing Mesh Singularities in 3D......................................................................... 17
1.3.2 Unstructured Meshes ........................................................................................................ 18
1.3.3 Tri/Tet vs. Quad/Hex Meshes ............................................................................................ 18
1.4 Classification of Mesh Generation Techniques ....................................................................................... 19
1.4.1 Field (Domain) Discretization Process (Mesh Generation)................................................ 20
1.5 Mesh Generation - an Art or Science? ......................................................................................................... 21
1.5.1 Why “Art” in the First Place? ........................................................................................... 21
1.5.2 The “Science” of Mesh-Generation ................................................................................... 22
1.5.3 The “Art” of Mesh-Generation .......................................................................................... 22
1.6 References .............................................................................................................................................................. 23
4 Appendix A .................................................................................................................................. 79
A.1 Computer Code for a Transfinite Interpolation ...................................................................................... 79
List of Tables
Table 2.3.1 NASA CRM Free-Stream Conditions................................................................................................... 39
3
List of Figures
Figure 1.1.1 Meshed Domain .......................................................................................................................................... 6
Figure 1.2.1 Meshes Created using ANSYS Mosaic-Enabled Poly-Hex Core Meshing - Courtesy of
Sheffield Hallam University ................................................................................................................................................. 8
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) ........................................................................................... 10
Figure 1.2.3 Type of Meshes : a) structured b) unstructured c) block structured .............. 11
Figure 1.2.4 Methodology of General Grid Generation ...................................................................................... 12
Figure 1.3.1 Sample Structured Mesh Types ......................................................................................................... 13
Figure 1.3.2 Multi-Blocking Terminologies ........................................................................................................... 14
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 ......................................................................................................................... 14
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 .................................................................................... 15
Figure 1.3.5 Two 5-valent singularities (a) combined to give a single 6-valent singularity (b) in 2D
....................................................................................................................................................................................................... 15
Figure 1.3.6 Controlling mesh density with an extra singularity pair......................................................... 15
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..................................................................... 16
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 .......................................................................................................... 16
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...................................................... 17
Figure 1.3.10 Unstructured Meshing Types ........................................................................................................... 18
Figure 1.4.1 Classification of Grid Generation Algorithms (Courtesy of Steven Owen)....................... 20
Figure 1.4.2 Examples of Structured Meshes for Turbine Blade ................................................................... 21
Figure 2.1.1 Sponge Analogy ........................................................................................................................................ 24
Figure 2.1.2 Converting a H Type to O-H Type Topology (Courtesy of Pointwise ®)........................... 25
Figure 2.2.1 Domain Topology (O-Type, C-Type, and H-Type; from left to right).................................. 25
Figure 2.2.2 H-Type Topology. Image Source Reference [22] ........................................................................ 26
Figure 2.2.3 C-Type Topology. Image Source Reference [23] ......................................................................... 26
Figure 2.2.4 Example of a C-O Type Mesh (adapted from 32) .......................................................................... 27
Figure 2.2.5 H-O-H Topology ........................................................................................................................................ 28
Figure 2.2.6 C-H Type Topology for a Wing Section ........................................................................................... 28
Figure 2.3.1 Multi Block Representation for C-H Mesh Around a Wing Section ..................................... 29
Figure 2.3.2 Dual Block Grid Topology for a Generic Wing-Fuselage Configuration ............................ 29
Figure 2.3.3 Topology and Grid on a Multi-Block Wings via GridPro® ....................................................... 30
Figure 2.3.4 Multi-Block Gridding of Turbine Blade - (Courtesy of GridPro©) ....................................... 30
Figure 2.3.6 Domain Decomposition for M6 Wing using TIL Scripts (Courtesy of GridPro) ............. 31
Figure 2.3.5 Schwarz Concept of Iterating Between Domains ....................................................................... 31
Figure 2.3.7 Multi-Blocking of a Wing-Fuselage Geometry by Ansys 2019-R2......................................... 32
Figure 2.3.8 Medial edge features and terminology (left) and medial axis for simple surface ......... 33
Figure 2.3.9 Multi-element Airfoil surface decomposed by Medial Axis & TopMaker 24..................... 33
Figure 2.3.10 Jet-Wing-Flap: Medial Axis Transform (Compression Shock) and Expansion
Features Close to the Geometry – Courtesy of [Ali et al]....................................................................................... 35
Figure 2.3.11 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]............................................................................................................................................................................................. 36
4
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
8
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
run an analysis, review the results, then automatically refine the mesh in areas of high strain energy
error density for subsequent runs. In [expert-targeted] HyperMesh, you also have many more
manual mesh refinement options.”
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.
10
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,
http://dx.doi.org/10.1016/S0045-7825(01)00300-0
11
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
15
more simple 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.
17
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.
18
➢ Unstructured Meshes
• Delany Triangulation
• Advancing Front
• Octree Method
• Polyhedral Meshes
• Overset Meshes
• Cartesian Meshes
➢ Hybrid Meshes
➢ Adaptive Meshes
• Structured
20
• 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.
who in 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
23
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.
24
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.
25
meshes obtained in this manner produce a high quality mesh in physical space. Perhaps the first
published application of conformal mapping to (CFD) is circle plane mapping that transforms the
space exterior to an airfoil onto the interior of the unit circle. This particular conformal mapping
technique extends back a long way but its use for creating suitable meshes was a novel application.
The same mapping was later used by [Bauer et
al.]7 when they developed the first transonic
flow code for solving the full potential equation.
Other conformal mappings were developed to
handle axisymmetric inlets and airfoil/slat
combinations. A comprehensive techniques for
mesh generation has been given by Moretti8.
Another useful reference is the paper by9.
Interchanging between different grid types are
easy and sometimes required. For example,
Pointwise® provides a script capable of
changing the topology of a structured block
from an H topology to an O-H topology. This
script can help improve grid quality when
working with cylindrical configurations, as
shown in Figure 2.1.2.
https://ptwi.se/2VakhGv. Figure 2.1.2 Converting a H Type to O-H Type
Topology (Courtesy of Pointwise ®)
2.2 Single Block Mesh Topology
Before we pay attention to the individual cell topology, we consider domain topology which are
compared for the 2D case, namely H, C, and O topologies. (See Figure 2.2.1). Meshes with H-H and
C-H topology were constructed for 3D comparison; however due to the incompatibility of the C-H
structure on a sharp wing tip or trailing edge with the current solver, no C-H studies are included.
Most of the studies were under lifting inviscid flow conditions. Multiple studies were conducted
under turbulent conditions but only one is included. Overall, when it comes to topology, the H mesh
scores first place followed by the C mesh and the O mesh comes last. For an interesting discussion in
Figure 2.2.1 Domain Topology (O-Type, C-Type, and H-Type; from left to right)
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
10 Julian 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.
12 “Generation of a composite grid for turbine flows and consideration of a numerical scheme”, Y. Choo et al,
[Krishnamurthy]. Another example of C-O type mesh using a wing is illustrated in Figure 2.2.4 13.
Error! Reference source not found. displays a 3D C-H topology for a wing section, where red r
epresents the C-type and blue the H-type14.
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.
28
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.
29
Figure 2.3.3 Dual Block Grid Topology for a Generic Wing-Fuselage Configuration
transfinite interpolation and then smooth the mesh by some iterations of an elliptic solver. A slightly
more complicated topology of a dual Block for generic airplane configuration shown in Figure 2.3.3.
An example showing a multi block conformal mapping for a M6 and Reference-H wings is illustrated
in Figure 2.3.4 (a) and Figure 2.3.4 (b). Another example of multi-block structure gridding for a
Turbine Blade is giving by Figure 2.3.5. GridPro© has developed a Topology Input Language
(TIL) which can be used for similar geometries
with minimal effort17. The domain decomposition
is in essence a “divide and conquer” technique
for arriving at the solution of problem defined
over a domain from the solution of related
problems posed on subdomains. The main reason
is that the solution of the subdomain is
qualitatively or quantitatively “easier” than the
original one. Other factors are memory concern
as well as that the subdomain can be solved with
the aid of parallel programing. The issue of
domain decomposition is vast and it involves a lot
of math such as Schwarz 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
Figure 2.3.5 Multi-Block Gridding of Turbine
Boundaries taken from interior of circle. Blade - (Courtesy of GridPro©)
19Zaib 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.
32
Aero-engine domains, for example, involving the fan, outlet guide vanes, gearbox shaft and nozzle
coupled with wing, flap and pylon are now being used for flow simulations. Meshing such multiply
linked and more diverse geometries requires significant user intervention, or writing of templates as
part of a library. Thus, an automatic or semiautomatic blocking strategy can be beneficial to reduce
the CFD design cycle time and could be a better alternative to the unstructured or hybrid meshing
methods.
Fully automatic 3D block topology generation is a complex problem and currently there is no ideal
block topology algorithm with all the desired features for structured mesh generation. However
various automatic blocking approaches have been proposed with varying levels of automation and
geometric complexity handling. This include approaches based on medial axis (Tam & Armstrong)20
and (Blacker & Myers)20, paving/plastering21-22 and more recently methods based on cross/frame
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.
2.3.2.1 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
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
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,
Engineering with Computers 2 (1993).
22 M. L. Staten, S. J. Owen, T. D. Blacker, Unconstrained paving and plastering: A new idea for all hexahedral mesh
generation, Proceedings of 14th International Meshing Roundtable, Sandia National Lab, 2005.
23 Fogg, H. J., Armstrong, C. G., & Robinson, T. T. (2016). Enhanced medial-axis-based block-structured meshing
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.9.
Figure 2.3.9 Medial edge features and terminology (left) and medial axis for simple surface
(right)
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̂ ) 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.10). 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.
Figure 2.3.10 Multi-element Airfoil surface decomposed by Medial Axis & TopMaker 24
24D. Rigby, “A technique for automatic multi-block topology generation using the medial axis”, NASA/CR
FEDSM2003-45527 (2004).
34
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
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
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
report UU-CS-1995-14 Utretcht University.
27 H. Xia, P. Tucker, Finite volume distance field and its application to medial axis transforms, International
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.
33 Z. Ali, P. G. Tucker, Multiblock structured mesh generation for turbomachinery flows, Proceedings of the 22 nd
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.
To overcome this limitation, the distance field function d can be used. An iso surface (contour in 2D)
of d is wrapped around the geometry to facilitate the MAT based block topology generation. The wall
distance computation is an intermediate step in the distance field based medial axis approximation
and hence is available for use without any extra cost. Thus using an iso surface of the distance field
instead of the far field for the medial axis computation can significantly improve the medial axis based
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.
36
|∇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
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.
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]
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).
37
π
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-
scale CFD simulations of strongly coupled
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
Figure 2.3.13 Hierarchical Geometry Handling
immersed boundary method (IBM) and Strategy
body force model (BFM)37-38. Next in the
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.
38
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
2.3.6.1 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
the wing and the tail are joined to the nearest medial axis. After the blocking around the geometry is
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 minutes, and gridding in 6
minutes. The simulations are performed in HYDRA which is an unstructured, finite volume, edge-
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.
40 J. Vassberg, E. N. Tinoco, M. Mani, B. Rider, T. Zickuhr, D. Levy, O. P. Brodersen, B. Eisfeld, S. Crippa, R. A.
Wahls, et al., Summary of the Fourth AIAA CFD Drag Prediction Workshop (2010). AIAA Paper No. AIAA-2010.
39
based and compressible flow solver using MUSCL based flux differencing.
Figure 2.3.14 NASA CRM Wing-Body-Tail (c) Hybrid Blocking (d) Mesh Cut Section – Courtesy [Ali et
al.]
2.3.6.2 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
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]
40
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
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
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
Figure 2.3.16 Jet-Wing-Flap with Modified Inner Blocking
based blocking methods. Also, the
(To Accommodate Shear Layers) – Courtesy of [Ali et al]
blocking templates could be
generated using this approach which
can speed up the mesh generation process and aid an inexperienced CFD user.
2.3.6.3 Jet-Engine-Wing-Flap
In the last section, a coaxial nozzle with pylon and wing geometry was presented which makes the
rear or downstream part of the aero-engine. To carry out a more realistic simulation, the front engine
part containing the axisymmetric intake, hub and splitter geometry is added to this rear part using
the overset mesh at the interface. This procedure avoids re-blocking the domains to have a cell to
cell match between the two zones. Also, a smeared fan geometry is used where the fan is modeled
using the BFM (see the schematic in Figure 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.
41
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]
42
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
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?
Figure 2.4.1 Structured Multi-Block Grid Around an Airfoil and a Turbine Blade
Figure 2.4.6 Skewed Cells And Lose in Orthogonality Observed Near the Leading and Trailing Edge
47
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.
48
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
49
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.
51
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
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 derivatives43. 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
43 Joe
F. Thompson, Z. U. A. Warsi, C. Wayne Mastin, “Numerical Grid Generation -Foundations and Applications”,
North Holland, 1985.
53
(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
54
η−α
β + 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)
44Peter Eiseman and Robert E. Smith, “Applications of Algebraic Grid Generation”, April 1990.
45Shahrokh Shahpar and Leigh Lapworth, “PADRAM: Parametric Design And Rapid Meshing System For
Turbomachinery Optimization”, Proceedings of ASME Turbo Expo 2003, USA.
55
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]46.
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.]47 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.
46 Shahrokh Shahpar and Leigh Lapworth, “PADRAM: Parametric Design And Rapid Meshing System For
Turbomachinery Optimization”, Proceedings of ASME Turbo Expo 2003, USA.
47 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, https://doi.org/10.1016/j.cja.2021.09.022.
56
∂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
48Thomas P., and Middlecoff J., ”Direct control of the Grid Point Distribution in Meshes Generated by Elliptic
Equations”, AIAA Journal Vol. 18, No. 6., 1980.
57
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 slightly49. 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
49Sorenson 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.
58
𝐠 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].
3.4.1.1 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 50-51. 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
50
Chaitanya Varier 2017.
51M. Farrashkhalvat and J.P. Miles, “Basic Structured Grid Generation”, An imprint of Elsevier Science Linacre
House, Jordan Hill, Oxford OX2 8DP, 200 Wheeler Rd, Burlington MA 01803, First published 2003.
59
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.
3.4.2.1 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 Generation52
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.]53 that skewness increases the truncation error in numerical differentiation.
52 Ahmed Khamayseh, Andrew Kuprat, C. Wayne Mastin, “Boundary Orthogonality in Elliptic Grid Generation”,
CRC Press LLC, 1999.
53 Thompson, J.F., A general three-dimensional elliptic grid generation system on a composite block structure,
54 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.
55 Thomas, P.D. and Middlecoff, J.F., Direct control of the grid point distribution in meshes generated by elliptic
Phys. 1995,
58 See Previous.
61
Here, we present a technique similar to for updating of orthogonal control functions during elliptic
iteration59. 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, unlike60, 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 of61, 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]62 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. ]63. 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
59 Thompson, J.F., A general three-dimensional elliptic grid generation system on a composite block structure,
Comp. Meth. Appl. Mech. and Eng. 1987.
60 Spekreijse, S.P., Elliptic grid generation based on Laplace equations and algebraic transformations, J. Com.
Phys. 1995.
61 See Previous.
62 Soni, B.K., Elliptic grid generation system: control functions revisited-I, Appl. Math. Com. 1993.
63 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
64
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
δ in physical space.
Figure 3.4.6 shows an elliptically smoothed grid using Neumann orthogonality. The grid is clearly
seen to be smooth, boundary-orthogonal, and no longer folds in the interior. For certain applications,
this grid may be entirely acceptable. However, if the bottom boundary of the grid corresponded to a
physical boundary, then the results of Figure 3.4.6 might be deemed unacceptable. This is because,
although orthogonality has been established, grid point distribution (both along the boundary and
normal to the boundary) has been significantly altered. In this case, the Dirichlet orthogonality
technique will have to be employed.
Figure 3.4.6 An Elliptic Planar Mesh on a Bi-Cubic Geometry with Neumann Orthogonality
64 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.
65 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.
66 Thompson, J.F., A general three-dimensional elliptic grid generation system on a composite block structure,
𝐗 ξ − 𝐗 ξξ 𝐗 ξ − 𝐗 ηη 𝐗 η − 𝐗 ηη 𝐗 η − 𝐗 ξξ
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 boundary point distribution
and do not change. However, the g11, xξ , and xξξ terms are not 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 Figure 3.4.7 Projection of Interior Algebraic
orthogonality, but still leave the algebraic Mesh Point to Orthogonal Position
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
67
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”
of ghost points that is the reflection of the first
(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 Figure 3.4.8 Reflection of Orthogonalized Interior
Mesh Point to Form External Ghost Point
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
𝐗ξ 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:
68
(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
than orthogonality. In other words, orthogonality at the corners should be sacrificed in order to
ensure that the resulting grid does not spill over the physical boundaries in the neighborhood of the
corners. For the case of highly obtuse or highly acute corners, it may in fact be necessary to relax
orthogonality in the regions that are within several grid lines of the corners. One way to do this is to
construct ghost points near the corners with the orthogonal projection operation Eq. 3.4.21 omitted
(i.e., constructed by simple extrapolation), and to use a blend of these ghost points and the ghost
points derived using the orthogonality assumption. To further ensure that the elliptic system
iterations do not cause grid folding near the boundaries, “guards” may be employed, similar to those
mentioned in the previous section on Neumann orthogonality. In practice, however, we have found
these to be unnecessary for Dirichlet orthogonality.
3.4.7 Blending of Orthogonal and Initial Control Functions
The orthogonal control functions in the interior of the grid are interpolated from the boundaries
using linear transfinite interpolation and updated during the iterative solution of the elliptic system.
If the initial algebraic grid is to be used only to infer correct spacing at the boundaries, then it is
sufficient to use these orthogonal control functions in the elliptic iteration. However, note that the
orthogonal control functions do not incorporate information from the algebraic grid beyond the first
interior grid line. Thus if it is desired to maintain the entire initial interior point distribution, then at
each iteration the orthogonal control functions must be smoothly blended with control functions that
represent the grid density information in the whole algebraic grid. These latter control functions we
refer to as “initial control function,” and their computation is now described. The elliptic system Eq.
3.4.11 can be solved simultaneously at each point of the algebraic grid for the two functions P and Q
by solving the following linear system:
g 22 𝐱 𝛏 g11 𝐱 η P R1 R1 = 2g12 𝐱 𝛏𝛈 − 𝐠 𝟐𝟐 𝐱 𝛏𝛏 − 𝐠 𝟏𝟏 𝐱 𝛈𝛈
[g 𝐲 ]
g11 𝐲η Q [ ] = [ ] where {
22 ξ R2 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,
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:
70
Figure 3.4.9 An Elliptic Planar Mesh on a Bi-Cubic Geometry with Dirichlet Orthogonality
We note that if the user for some reason wished to preserve the interior clustering of grid points in
the algebraic grid, then the above scheme given for blending initial control functions with orthogonal
control functions would have to be slightly modified. This is because the fact that the algebraic grid
is actually folded in the interior makes the evaluation of the initial control functions using Eq. 3.4.31
ill-defined.
This is easily remedied by evaluating the initial control functions using Eq. 3.4.31 at the boundaries
only using one-sided derivatives, and then defining them over the whole mesh using transfinite
interpolation. Since there is no folding of the algebraic grid at the boundaries, this is well-defined.
(The interpolated initial control functions will reflect the grid density information in the interior of
71
the initial grid, because the interior grid point distribution of the initial grid was computed using the
same process transfinite interpolation of boundary data.) Then we proceed as above, smoothing the
initial control functions and blending them with the orthogonal control functions.
Finally we note that if the algebraic initial grid possesses folding at the boundary, then using data
from the algebraic grid to evaluate either the initial control functions or the orthogonal control
functions at the boundary will not work. In this case, one could reject the algebraic grid entirely and
manually specify grid density information at the boundary. This would however defeat the purpose
of our approach, which is to simplify the grid generation process by reading grid density information
off of the algebraic grid. Instead, we suggest that in this case the geometry be subdivided into patches
sufficiently small so that the algebraic initial grids on these patches do not possess grid folding at the
boundaries.
3.4.8 Boundary Orthogonality for Surface and Volume Meshes (3D)
Now we turn our attention to applying the same principles of the previous section to the case of
surface grids. Our surface is assumed to be defined as a mapping x(u, v): R2 → R3. The (u, v) space is
the parametric space, which we conveniently take to be [0,1] × [0,1]. The parametric variables are
themselves taken to be functions of the computational variables ξ, η, which live in the usual [0, m] ×
[0, n] domain. Thus
𝐱 = (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
orthogonality and an acceptable distribution of grid points. A general method for constructing
curvilinear structured surface grids and its derivates are presented in [Khamayseh ]67 and will not
be repeated here. Interested renders, should consult the above mentioned source, as well as the
[Khamayseh & Mastin]68, [Warsi]69.
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 70-71-72.
67 Ahmed Khamayseh, Andrew Kuprat, C. Wayne Mastin, “Boundary Orthogonality in Elliptic Grid Generation”,
CRC Press LLC, 1999.
68 Khamayseh, A. and Mastin, C W., Computational conformal mapping for surface grid generation, J. Com. Phys.
1996.
69 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.
72 Joe F. Thompson, Z. U. A. Warsi, C. Wayne Mastin, “Numerical Grid Generation – Foundations and Application”,
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
• 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)
x ξ yη − x η y ξ = I
Eq. 3.5.1
Where I represents the area in physical space for a given area in computational space. The second
73Steger, 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.
73
equation links the orthogonality of grid lines at the boundary in physical space which can be written
as
dξ = 0 = 𝜉𝑥 dx + 𝜉𝑦 dy
Eq. 3.5.2
For ξ and η surfaces to be perpendicular the equation becomes:
x ξ yη + yξ y η = 0
Eq. 3.5.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.5.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.
74 J.F. Thompson, B.K. Soni and N.P. Weatherill. Handbook of Grid Generation. CRC Press, 1998.
74
can prorogate inside the domain. As indicated in Figure 3.7.1, Winslow functional smooth the grid,
and removes the folded grid lines. There are far too many algebraic functional for grid generation
optimization as reader should check with75.
Figure 3.7.1 Folded Grid by Transfinite Interpolation - Smooth Grid by Winslow Functional
75 Sanjay Kumar Khattri, “Grid Generation and Adaptation by Functional”, Department of Mathematics,
University of Bergen, Norway.
76 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.
75
F. Thompson, J., F., Warsi, Z., U., A., Mastin, .W. “Numerical Grid Generation; Foundations and Applications”,
77 Joe
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.8.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.8.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.8.1).
78Feng 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.
77
computed shock waves are rather thick. Shock waves zero thickness in the inviscid limit. To get
better computational results, particularly to capture the shock waves more accurately, one would
like to concentrate grid points around the shock waves. The deformation method is applied to get a
new grid with prescribed distribution of cell sizes based on gradients of the flow field. The adaptive
criterion here is to detect the shock waves. This suggests choosing the monitor function f of the form:
1
= C1 (1 + C2 ∇P) Eq. 3.8.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.
78
Figure 3.8.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.8.3).
79
4 Appendix A
Nomenclature
II(i), JJ(j) : This array stores the locations of known grid lines in i- and j-directions,
respectively (1 for known grid lines).
Example: Consider surface IV in Figure 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).
80
81
82
83