grid mohammad cfd

172

Upload: jason-rogers

Post on 07-Feb-2016

12 views

Category:

Documents


0 download

DESCRIPTION

grid cfd

TRANSCRIPT

Page 1: grid mohammad cfd
Page 2: grid mohammad cfd

Mathematical Aspects ofNumerical Grid Generation

Page 3: grid mohammad cfd

Frontiers in Applied Mathematics

Frontiers in Applied Mathematics is a series that presents new mathematical orcomputational approaches to significant scientific problems. Beginning with Volume4, the series reflects a change in both philosophy and format. Each volume focuses ona broad application of general interest to applied mathematicians as well as engineersand other scientists.

This unique series will advance the development of applied mathematics throughthe rapid publication of short, inexpensive books that lie on the cutting edge ofresearch.

Frontiers in Applied Mathematics

Vol. 1 Ewing, Richard E., The Mathematics of Reservoir SimulationVol. 2 Buckmaster, John D., The Mathematics of CombustionVol. 3 McCormick, Stephen F., Multigrid MethodsVol. 4 Coleman, Thomas F. and Van Loan, Charles, Handbook for Matrix

ComputationsVol. 5 Grossman, Robert, Symbolic Computation: Applications to Scientific ComputingVol. 6 McCormick, Stephen F., Multilevel Adaptive Methods for Partial Differential

EquationsVol. 7 Bank, R. E., PLTMG: A Software Package for Solving Elliptic Partial Differential

Equations. Users' Guide 6.0Vol. 8 Castillo, Jose E., Mathematical Aspects of Numerical Grid Generation

Page 4: grid mohammad cfd

Mathematical Aspects ofNumerical Grid Generation

Edited by Jose E. CastilloSan Diego State University

Society for Industrial and Applied MathematicsPhiladelphia 1991

Page 5: grid mohammad cfd

Library of Congress Cataloging-in-Publication Data

Mathematical aspects of numerical grid generation/ edited by Jose E.Castillo.

p. cm. — (Frontiers in applied mathematics : 8)Includes bibliographical references and index.ISBN 0-89871-267-X1. Numerical grid generation (Numerical analysis) I. Castillo,

Jose E. II. SeriesQA377.M284 1991515'.353--dc20 91-14973

CIP

All rights reserved. Printed in the United States of America. No part of this book may be reproduced,stored, or transmitted in any manner without the written permission of the Publisher. For information,write the Society for Industrial and Applied Mathematics, 3600 University City Science Center,Philadelphia, Pennsylvania 19104-2688.

Copyright © 1991 by the Society for Industrial and Applied Mathematics

Page 6: grid mohammad cfd

To Fania, Claudia, and Igor

Page 7: grid mohammad cfd

This page intentionally left blank

Page 8: grid mohammad cfd

Contents

ix Contributors

xi Foreword

xiii Preface

1 Chapter i Intodution/. E. Castillo and S. Steinberg

9 Chapter 2 Elliptic Grid Generation andConformal MappingC.W. Mastin

19 Chapter 3 Continuum Variational Formulation/. E. Castillo

35 Chapter 4 Discrete Variational Grid Generation/. E. Castillo

59 Chapter 5 Bifurcation of Grids on CurvesS. Steinberg and P. J. Roache

75 Chapter 6 Intrinsic Algebraic Grid GenerationP. M. Knupp

99 Chapter 7 Surface Grid Generation andDifferential GeometryZ. LI. A. Warsi

105 Chapter 8 Harmonic Maps in Grid GenerationA. Dvinsky

123 Chapter 9 On Harmonic MapsG. Liao

131 Chapter 10 Mathematical Aspects of HarmonicGrid GenerationS. S. Sritharan

147 References

153 Indexvii

Page 9: grid mohammad cfd

This page intentionally left blank

Page 10: grid mohammad cfd

Contributors

Jose E. Castillo/ Department of Mathematical Sciences, San Diego StateUniversity, San Diego, California 92182

Arkady Dvinsky, Creare Inc., P.O. Box 71, Etna Road, Hanover, NewHampshire 03755

Patrick M. Knupp, Ecodynamics Research Associates Inc., P.O. Box8172, Albuquerque, New Mexico 87198

Gordon Liao, Department of Mathematics, University of Texas, Arlington,Texas 76019

C. Wayne Mastin, Department of Mathematics, Drawer A, MississippiState University, Mississippi State, Mississippi 39762

Patrick J. Roache, Ecodynamics Research Associates Inc.,P. O. Box 8172, Albuquerque, New Mexico 87198

S. S. Sritharan, Department of Aerospace Engineering, University ofSouthern California, Los Angeles, California 90089

Stanly Steinberg, Department of Mathematics and Statistics, Universityof New Mexico, Albuquerque, New Mexico 87131

Z. U. A. Warsi, Department of Aerospace Engineering, Drawer A,Mississippi State University, Mississippi State, Mississippi 39762

ix

Page 11: grid mohammad cfd

This page intentionally left blank

Page 12: grid mohammad cfd

Foreword

The present SIAM publication on the mathematical aspects of grid generationis a welcome addition to the literature on boundary-fitted grid generation, asubject of first-rank importance to computational physics and engineering.

The literature of boundary-fitted grid generation has suffered because thesubject is too easy. There are many methods which produce, at least, a marginallyacceptable grid for a particular geometry. Consequently, there exists an abun-dance of ad hoc techniques, but a scarcity of analysis, real understanding, andgenerality. The "experiences" of engineering practitioners (like myself) are oftenmisleading, since individual researchers often work within a narrow class ofproblems. We have seen in the literature supposedly robust methods which,when applied to new problems, either failed to converge or resulted in foldedgrids—methods which, for a mild range of boundary parameters, producedresults which were not unique, i.e., for which the final grid depended on the initialgrid condition, and methods which produce unacceptable skewing. Likewise, so-lution adaptivity functions offer ample opportunity for creative but arbitrary in-ventiveness; virtually anything "works," but there is little rational basis forselecting one method over another.

It should be obvious that not all aspects of grid generation could be coveredin this publication. Noticeably absent are algebraic methods, unstructured grids,sub structured grids, triangular grids, and polygonal grids. There is not muchemphasis on solution adaptivity and what is found herein is r-type adaptivity, i.e.,redistribution of a fixed number of gridpoints, rather than h-type adaptivity (inwhich the number of gridpoints is increased) or p-type adaptivity (in which thesupport of elements is enriched).

Dr. Castillo is to be congratulated for organizing the SIAM minisymposia, andhe and Dr. Steinberg are to be congratulated for organizing this publication. It ishoped that future SIAM meetings will also contribute to the late-bloomingmathematical analysis of grid-generation algorithms.

Patrick J. RoacheApril 1990

xi

Page 13: grid mohammad cfd

This page intentionally left blank

Page 14: grid mohammad cfd

Preface

Numerical grid generation plays a critical role in any scientific computingproblem when the geometry of the underlying region is complex or when the solutionhas a complex structure. For example, to model the air flow about an airplane, pointsmust be chosen outside the airplane. Even for simple models, the number of pointsneeded is in the millions. In the most elementary models, the points should beuniformly distributed. For more general models, the gridpoints near the boundarymay need to be many orders of magnitude more dense than the points far from theboundary. In the situation where there are shock waves in the flow, points near theshock need to be many orders of magnitude more dense than the points far from theshock. However, note that typically there is no a priori way to determine the positionof the shock. When the gridpoints are chosen so that some of the points "line up'' withthe boundary, then the grid is boundary conforming, boundary adapted, or geometryadapted. When the gridpoints depend on some feature of the solution of the problem,then the solution is solution-adapted.

Even with current software tools, the generation of a grid in a scientific computingproblem accounts for a substantial portion of the effort needed to solve the problem.Thus, the goal of much grid-generation research is the creation of robust andautomatic grid-generation algorithms. "Automatic" means that the amount ofhuman effort needed to generate the grid is reduced by using more computingresources. "Robust" means that the grid-generation algorithm produces suitablegrids over a wide range of regions and that the grids are not sensitive to small changesin the region. One means to guarantee that the algorithm is robust is to prove that itgenerates a unique solution that depends "continuously" on the region and that thesolution corresponds to a "reasonable" grid. Unfortunately, no one has yet rigorouslydefined a concept of "reasonable" that applies to a wide range of grids.

Many grid-generation algorithms have a continuum limit; that is, as the distancebetween gridpoints goes to zero, the limiting grid distribution becomes a transformatiothat is a solution to a boundary value problem for a partial differential equation orvariational equation. In this situation, the notion of "reasonable" can be defined byrequiring the transformation to be one-to-one and onto. The notion of "robust"becomes the notion of a well-posed problem for the boundary value problem. The factthat the continuum problem is well posed does not imply that the grid-generationalgorithm is robust. However, this well-posedness indicates that the discrete problemshould be well posed for sufficiently high resolution.

Very little mathematical work has been done on grid-generation problems. Thepurpose of this volume is to begin a discussion of the mathematical aspects of gridgeneration that will provide a deeper understanding of the algorithms and theirlimitations. The work presented in this volume is based on the papers presented at thetwo minisymposia, "Numerical Grid Generation: Mathematical Aspects, Parts I andII," held at the SIAM Annual Meeting in Minneapolis, Minnesota, in July 1988.

xiii

Page 15: grid mohammad cfd

XIV MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

AcknowledgmentPart of this work was done while the editor was visiting the Department of

Mathematics at the University of New Mexico. The editor thanks the department forits assistance and, particularly, Linda Cicarella for her expert help with LaTeX. Theeditor also thanks Holly Wilson for proofreading parts of the manuscript. My deepestgratitude goes to Professor Steinberg for making the completion of this volumepossible.

Jose E. CastilloSan Diego

Page 16: grid mohammad cfd

Chapter 1

Introduction

J. E. Castillo and S. Steinberg

When a continuum modeling problem is solved numerically, it is necessaryto convert the continuum to a finite set of points. The choice of points isdetermined by grid generation. In simple problems, the grid can be chosena priori. If the geometry of the problems is simple but the solution of theproblem has a complicated structure, as is the case for many initial-valueproblems for ordinary differential equations, then the grid should be adapted tothe features of the solution. Solution algorithms that automatically choose thestepsize or order of the method are solution adaptive. If the problem involvesa nontrivial region in two- or three-dimensional space, then the discrete set ofpoints in the region should be adapted to the shape of the region. Choosingsuch a set of points gives a boundary-fitted (boundary-conforming, boundary-adapted, geometry-adapted) grid. In addition, if the solution of the modelingproblem has a complicated structure, then the grid should be adapted to thesefeatures, becoming both a solution- and geometry-adapted grid.

Once a grid is chosen, the equations describing the model must be dis-cretized and solved. Models that are described by initial-value and boundary-value problems for partial differential equations (PDEs) are frequently encoun-tered, although integral equations and variational problems are also common.The discretization can be done using finite-difference, finite-element, finite-volume, and other techniques. Many grid-generation techniques and their ap-plications to a wide variety of problems can be found in the proceedings [22],[32], [33], [37], [60], [73].

There are two distinct approaches to discretizing a region: structured andunstructured. This book considers only structured grids; for information onunstructured grids, see [60]. A structured grid can be viewed as a mappingfrom an index space to a physical space. If the index space is identified witha lattice of points in a rectangular region (called "logical space"), then thecontinuum limit of the grid gives a mapping of logical space to physical spaceas the number of points increases. Since the continuum map must be invertible,it can also be thought of as a map from physical to logical space. Many ofthe results in this book are for continuum maps. If the continuum map is well

1

Page 17: grid mohammad cfd

2 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

behaved, it is hoped that this will imply that the discrete map will inheritthis good behavior. As will be shown, this hope has not been well-realized formany algorithms.

Some years ago, there was discovered an intimate connection between someof the partial differential equations, variational algorithms, and the differential-geometric notion of a harmonic map. Note that the word "harmonic" is usedin two different but related ways in this book: (1) there is the classical notionof a harmonic function as the solution of the homogeneous Laplace equation,and (2) the notion of a harmonic map as a transformation of Rn to Rn forwhich each component is harmonic. The notion of a harmonic map can beextended to mappings of manifolds of equal dimension; the components ofsuch maps satisfy a Laplace-Beltrami equation. In addition, the notion of aharmonic map has a variational formulation in which the map minimizes anenergy functional.

Grid generation is a relatively new discipline; some early papers that influ-enced the field are: Winslow [85]; Amsden and Hirt [2]; Thompson, Thames,and Mastin [74]; Eiseman [87]; and Brackbill and Saltzman [11]. Reviews ofthe field are given in Thompson [71] and Eiseman [29]. Grid-generation meth-ods can be conveniently grouped as follows: hand and elementary methods;interpolation, or algebraic methods; partial differential equation methods; andvariational methods. An overview of these methods can be obtained fromThompson, Warsi, and Mastin [75]. Together, these techniques provide pow-erful tools for solving many important problems. However, many practitionersreport substantial difficulties with existing algorithms when they start newproblems. The grids produced will be badly skewed, compressed, expanded, oreven folded in some parts of the region, or the grid-generation algorithm willnot converge at all. To produce more robust algorithms, it is imperative thatone have a deeper mathematical understanding of the limitations and strengthsof the existing algorithms. This volume is a step in that direction.

The main emphasis of this book is on gaining a mathematical understand-ing of grid-generation algorithms, with particular attention being paid to vari-ational, or PDE methods. However, there is still much to be learned aboutalgebraic methods, as is shown in Chapter 6. Moreover, much can be learnedabout modern methods by looking back to classical harmonic functions andconformal mappings, as is done in Chapter 2. In Chapter 7, classical differen-tial geometry is used to produce grid-generation algorithms. The connectionbetween harmonic maps and grid-generation algorithms in two dimensions isexplored in several chapters. In Chapter 8, harmonic maps are used to createpractical grid-generation algorithms. Some basic results (both positive andnegative) for harmonic maps are proved in Chapters 9 and 10. The implica-tions of these results for grid-generation algorithms is discussed in Chapters 8,9, and 10. There are still important open questions about harmonic maps inthree dimensions.

All of the PDE methods have an equivalent variational formulation in which

Page 18: grid mohammad cfd

INTRODUCTION 3

the differential equations are the Euler-Lagrange equations of a minimizationproblem (see Chapters 3, 9, and 10). On the other hand, variationalformulations can be directly derived from elementary geometric consideration.This produces three types of functionals: one for controlling grid spacing orsmoothness, in which the minimizers are harmonic maps; one for controllingthe area or volume of grid cells; and a third one for controlling the anglesbetween grid lines. In Chapter 3, the existence and uniqueness of solutionsto the continuum variational problem are treated for the smoothness problem.Some of these results are extended to the area functional.

Most of the analytic grid-generation methods emphasize discretizing theEuler-Lagrange equations. However, it is also reasonable to discretize thefunctional directly and then solve the resulting discrete minimization problem.In fact, this approach has a serious pitfall [16]. In Chapter 4, it is shown thatthe pitfall can be avoided by directly deriving a functional from the discretegeometry and then minimizing that functional. This produces a robust andefficient algorithm for controlling multiple grid properties.

In addition to the open questions in the continuum, there are significantdifferences between the discrete and continuum theories. In Chapter 5, it isshown that the bifurcation diagrams for an elementary problem are drasticallydifferent in the continuum and discrete cases. Additional problems of this typeare also identified in Chapters 2, 4, and 8.

The following list contains a brief description of each chapter:In Chapter 2, Mastin considers the connection between classical conformal

mappings and elliptic and variational grid generation. Grid folding can beavoided by examining the underlying mathematical connections between thesemethods.

In Chapter 3, Castillo discusses the existence and uniqueness of solutionsto the continuum variational grid-generation problems for both smoothnessand area control. Classification of the Euler-Lagrange equations is presented,and the replication of a reference grid is analyzed.

In Chapter 4, Castillo discusses a discrete variational formulation baseddirectly on the geometry of the discrete grid. The grid produced by the discretelength control functional is shown to converge to the optimal grid producedby the smoothness functional used by Steinberg and Roache. Also, a modelproblem is used to show that the discrete area functional has bifurcations.

In Chapter 5, Steinberg and Roache show that the variational curvegrid-generation algorithms, which involve the solution of discrete nonlinearalgebraic equations, have bifurcation properties significantly different fromtheir continuum limits.

In Chapter 6, Knupp introduces and analyzes three alternatives to thetransfinite interpolation algorithm. "Transfinite interpolation" is an algebraicgrid-generation algorithm that maps the full boundary of logical space to theboundary of physical space. Methods with this property are transcendental,i.e., not polynomial. The new algorithms'are called intrinsic algebraic grid-

Page 19: grid mohammad cfd

4 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

generation methods because they do not require blending functions. On theother hand, the new algorithms are sensitive to the placement of the physicalregion. Substantial insight into the transfmite and intrinsic algorithms isgained by studying their behavior under elementary transformations of physicalspace.

In Chapter 7, Warsi obtains surface grid-generation algorithms from theGauss and Weingarten equations of classical differential geometry.

In Chapter 8, Dvinsky uses differential-geometric harmonic maps toproduce useful grid-generation algorithms. The theory of harmonic maps(see also Chapters 9 and 10) provides a strong mathematical basis forthe algorithms. Inverses of harmonic maps are typically not harmonic;consequently, there are two possible types of harmonic maps. This isilluminated in two dimensions, where the classical elliptic methods are shown tobe special cases of the differential geometric approach. As with other methods,if the nonlinear terms in the Laplace-Beltrami equations are large, elementarynumerical approaches have problems that can be corrected by improvingthe discretization of the PDEs. Solution adaptivity can be included in theRiemannian metric. This idea is applied to a two-dimensional convection-diffusion equation.

In Chapter 9, Liao introduces harmonic maps as minima of an energyfunctional and shows that such maps satisfy the Laplace-Beltrami equations.It is shown that in the two-dimensional planar case, a classical theorem ofRado implies that the harmonic map is a homeomorphism. The main point ofthis chapter is to analyze the three-dimensional Euclidean case to understandwhy it is so difficult. To this end, a proof of Rado's theorem is given andthen an example provided by Lewy is used to show that the generalization tothree dimensions is much more involved. The distinctions between two andthree dimensions can be further illuminated by studying the singularities ofharmonic maps. Again, the one-to-one nature of three-dimensional maps isleft as an open question.

In Chapter 10, Sritharan, using the theory of Sobolev spaces, shows that thedifferential geometric notion of a harmonic map has an equivalent variationalformulation and the solutions of the variational problem have a regularityproperty. In two dimensions these results are extended to show that thereis a unique harmonic map of general regions to convex regions that is ahomeomorphism. This result can be extended to three dimensions, exceptfor the map being one-to-one, which is left as an open problem.

This book by no means answers all the mathematical questions arising ingrid generation; however, it presents some of the most important aspects ofmathematics of grid generation being considered by the contributors at thistime.

Page 20: grid mohammad cfd

INTRODUCTION 5

1.1. Notation

Given a region in two dimensions, the mathematical planar grid-generationproblem is to construct a transformation between this region and anotherregion that will be used as a computational space. The given region is calledphysical space, while the computational region is called logical space. If physicalspace is described using the variables x and y, while logical space is de-scribed using the variables £ and 77, then the continuum transformation can bwritten as

(see Fig. 1.1). It is assumed that the transformation maps the square one-

FIG. 1.1. Logical and physical space.

to-one and onto the physical region, that the boundary is included, and thatboundaries are preserved. There are a number of names associated with suchtransformations: boundary conforming, boundary adapted, boundary fitted. Inthe boundary-conforming case, the boundaries of the physical region are givenby the following four curves:

It is typical to assume that the transformation is at least continuouslydifferentiate. Then the one-to-one property can be guaranteed by requiring

Logical Space Physical Space

Page 21: grid mohammad cfd

6 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

that the Jacobian of the transformation not be zero in the region. Actually,it is important to assume that the Jacobian is uniformly bounded below andabove in the closed unit square, i.e., the Jacobian is well behaved near theboundary of the region. If partial derivatives are abbreviated using subscripts,

then the Jacobian matrix is given by

and the Jacobian is given by the determinant of the Jacobian matrix:

If the Jacobian is never zero, then the inverse-function theorem guaranteesthe existence of a local inverse map

Some discussions of grid generation start with this inverse map, i.e., a mapfrom physical space to logical space. From the mathematical point of view, thismakes no difference; however, the reader interested in implementing algorithmsneeds to keep the distinction between these maps clear. The chain rule givesthe following formulas, which relate derivatives of the transformation to thederivatives of the inverse transformation:

To compare these formulas to those of others, one must take care to understandwhether or not the formulas use the Jacobian of the transformation / or theJacobian of the inverse transformation J. Recall that the chain rule also gives

The transformation can be thought of as inducing general curvilinearcoordinates in physical space. If a and b are constants with 0 < a, b < 1,then the coordinate lines are given by the two families of curves

In general, these two families of curves are not orthogonal, i.e., the curvilinearcoordinates are not orthogonal coordinates.

In three dimensions most of the above notation is changed in a straight-forward way. Thus physical space is described using the variables x, y, and z,

Page 22: grid mohammad cfd

INTRODUCTION 7

whereas logical space is described using the variables £, 77, and (. The formulafor the Jacobian is

The formulas for transforming derivatives of the transformation become morecomplicated:

In some mathematical discussions, the distinction between physical andlogical space does not play a role. Thus one can look at transformationsbetween two regions or, more generally, between two differentiate manifolds.The fundamental question for grid generation is: Given two regions of the samedimension, is there a one-to-one and onto transformation between the regions?More importantly, if such a transformation exists, can a practical constructionbe provided for it?

Page 23: grid mohammad cfd

This page intentionally left blank

Page 24: grid mohammad cfd

Chapter 2

Elliptic Grid Generation and ConformalMapping

C. W. Mastin

2.1. Introduction

The theoretical foundations of elliptic grid generation owe much to the theoryof conformal mappings, which preceded it by several decades. In fact,the main impetus for the development of elliptic methods was the lack ofversatility in the construction of conformal maps and the inability to controlthe distribution of gridpoints in the generated grid. It is interesting to notethat the successful elliptic methods were those that were borrowed most heavilyfrom the properties of conformal mappings. The objective of this report is toexamine elliptic methods of grid generation and to see how they are related toconformal mappings. In some cases where undesirable properties such as gridfolding occur, the problem can be avoided by going back and reexamining thetheoretical development of the method.

While conformal mappings are practical only in two dimensions, some ofthe fundamental mapping properties can be carried over to the constructionof three-dimensional grids. Here again, the information can be used to explainwhy certain grid-generating equations fail while others generate usable three-dimensional grids.

Most of the grid-generation methods discussed are well known, and theirability to generate useful grids is understood. Therefore, only a few examples ofcomputational grids will be given. The main objective is to show how problemsencountered in grid generation can be solved by returning to the foundationsof conformal mapping.

2.2. Two-Dimensional Grid Generation

In two dimensions there is a close relationship between elliptic grid-generationmethods and conformal mappings. This can be seen by considering theconformal mapping of a simply connected region D in the £i/-plane onto arectangular region R in the £7/-plane. The conformal mapping determines theaspect ratio of the rectangular region. Thus if the width of the rectangle isset to unity, its height must be some conformal invariant quantity M, which is

9

Page 25: grid mohammad cfd

10 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

referred to as the module of the region D. Now the mapping of D onto R andits inverse satisfy the Cauchy-Riemann equations, which can be written as

or

Based on these equations, it is noted that both £ and 77 (as functions fx and y] and x and y (as functions of £ and 77) satisfy Laplace's equation.Now any simply connected region can be mapped onto a square region S ifan additional stretching transformation is used. Thus, consider the followingchange of variables:

The composite mapping is not conformal and the mapping functions satisfythe following first-order systems, which now include the module of R as aparameter:

or

For this mapping onto a square region, /x and v are harmonic functions so that

but x and y satisfy the system

The following relation can also be derived from the above first-order system

Page 26: grid mohammad cfd

ELLIPTIC GRID GENERATION AND CONFORM AL MAPPING 11

In the field of grid generation, it is the harmonic mapping from the regionD to the square S that has been most important. It was noted that even withDirichlet boundary conditions, the mapping is one-to-one and a nonfoldinggrid can be constructed by inverting the system and solving the resultingnonlinear system on the square. It can easily be shown that the mappingdefined as the solution of (2.2), with boundary conditions given by a one-to-one correspondence between the boundary of D and the boundary of 5,satisfies the following properties:

1. All points of D map into 5; i.e., there is no grid folding or spillover.2. The gradients V/^ and Vv do not vanish on D.3. The Jacobian J = nxvy — \iyvx is nonvanishing in D.

These results are well known and have been generalized in recent papers bySmith and Sritharan [63] and Dvinsky [24]. Only a few comments on the proofsof these properties will be made. Property 1 is a result of the maximum andminimum principles for harmonic functions. Property 2 follows by applying theargument principle to the analytic function having fj, (or v] as its real part andnoting that a vanishing derivative would contradict the assumed boundarycorrespondence. Using the results of properties 1 and 2, property 3 can beverified by noting that // || V// ||2 is a harmonic function and, assumingthe orientation of the boundary contour is preserved under the mapping, isnonnegative on the boundary of D. Thus the Jacobian would be positive bythe maximum principle. The details of the proof of property 2 may be found inthe paper by Mastin and Thompson [48]. The proof of property 3 is motivatedby comments in the paper of Godunov and Prokopov [35]. An alternate proofgiven in [48] contains an error.

The one disadvantage of constructing the harmonic mapping of D onto Sis that the inverse does satisfy a nonlinear system. However, the system, whichis given below, is quasilinear and can usually be solved by almost any methodfor solving general elliptic equations:

where

Since the above mapping requires the solution of a nonlinear system ofequations, there has been a continuing interest in attempting to generate gridsby solving system (2.3) with Dirichlet boundary conditions. The main difficultyis the need for a reasonably good estimate of M. This problem was firstaddressed by Barfield [6], who noted that grid folding could occur with the

Page 27: grid mohammad cfd

12 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

wrong value of M. This fact has been rediscovered many times by researchersattempting to generate grids on nonconvex regions D by constructing aharmonic mapping of S onto D. Although no easily computable and accurateestimate of M is known, the value used by Barfield has worked well in numerouscases. That value may be expressed as the integral

Note that if system (2.1) is satisfied, the integral would be the constant M. Inpractice, iterative methods are used to solve the equations of grid generation,and this integral represents the average aspect ratio of some initial grid.

The following examples give typical grids constructed by the methodsmentioned above. The same boundary correspondence was used in all threecases. Figure 2.1 is a grid constructed by system (2.4). Figure 2.2 contains agrid constructed by system (2.3), with a value of M = 1, which is not close tothe correct value for this region. Note that the grid folds and the mapping isnot one-to-one or onto. The grid in Fig. 2.3 was also constructed using (2.3),but the value of M was computed from a grid constructed by interpolation fromthe boundary values of the mapping. No folding of the grid occurs, but thereare points where the Jacobian is very small. While grid folding with M = 1occurs only for nonconvex regions, even for convex regions the skewness of thegrid can often be decreased by using a better value of M. In cases where thedesired grid would have different aspect ratios in different parts of the region,a variable value for M has also worked well. The problem of grid folding hasbeen treated in several ways. A different approach to the problem has beenproposed by Castillo, Steinberg, and Roache [18].

Since the theory of conformal mappings of rectangular regions onto surfacesparallels the results for mappings onto plane regions, the same conclusions canbe drawn. The elliptic equations for mapping a region on a surface in three-dimensional space should be derived by considering the equations satisfiedby an appropriately scaled conformal mapping. For a conformal mapping,the parametric variables of the surface satisfy a first-order system of partialdifferential equations called the Beltrami equations. The mapping between therectangular region and the parametric space of the surface is a quasi-conformalmapping. When the mapping is scaled, the parametric variables 3 and t satisfya system of the following form:

The coefficients a, 6, and c derive from the parametric equations defining thesurface. Thus we see again that the second-order linear system satisfied bys and t does include the parameter M, which represents the aspect ratio ofthe cells in surface grid. Alternately, a second-order system can be derived

Page 28: grid mohammad cfd

ELLIPTIC GRID GENERATION AND CONFORMAL MAPPING 13

FIG. 2.1. Grid from the harmonic mapping of the region onto a square.

FlG. 2.2. Grid from the harmonic mapping of a square onto the region.

FIG. 2.3. Grid from the harmonic mapping of a rectangle with approximately thesame aspect ratio onto the region.

Page 29: grid mohammad cfd

14 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

in the parametric region for the variables n and i>, and this system can beinverted to give a system for the parametric variables 5 and t. The resultingsystem defined on the square region does not contain the parameter M, but isnonlinear and similar to system (2.4).

The theory behind conformal and elliptic methods for grid generationon surfaces is well developed. However, these methods have not beenused extensively due to difficulties encountered with the parameterization ofarbitrary surfaces. They have been most successful in generating grids onsurfaces defined by analytic equations. Further details on quasi- conformalmappings and conformal mappings on surfaces and their application in gridgeneration can be found in the paper by Mastin and Thompson [49].

2.3. Three-Dimensional Grid Generation

Although there are no practical conformal mappings for three-dimensionalregions, the concepts that have been derived from conformal mappings andused in developing elliptic grid-generation methods have been applied in threedimensions. The principle assumption is that a simply connected region D inthe xyz-plane can be mapped one-to-one and onto some rectangular region Rof the £?7C-plane and that the mapping and its inverse are harmonic functions.The rectangular region is defined by the inequalities

The geometric shape of the rectangle is determined by the ratio of any twoof the dimensions to the third. Thus, the rectangle is determined by twoparameters that are similar to the module of the rectangular region in twodimensions. Now, the rectangular region R can be mapped onto the interiorof a cube S by the change of variables

where M = L/W and N — L/H. The mapping of D onto the cubical regionis still harmonic so that

However, the mapping of S onto D satisfies the following system.

Page 30: grid mohammad cfd

ELLIPTIC GRID GENERATION AND CONFORMAL MAPPING 15

FIG. 2.4. Grid from the harmonic mapping of the region onto a cube.

Assuming that the mapping of D onto the rectangular region R preservesaspect ratios of grid cells, the values of M and TV can be defined by the followingrelations:

The results for three dimensions are similar to those for two dimensions.The harmonic mapping of R onto S results in a one-to-one mapping andthe grid defined on R does not fold or spill over even for nonconvex regions.This was verified in the paper by Mastin and Thompson [50]. However, themapping from S onto R, given by solving system (2.5) with Dirichlet boundaryconditions, cannot be used for nonconvex regions unless values of M and Ncan be estimated. This can be demonstrated by considering a simple three-dimensional region. Figure 2.4 is the plot of a grid constructed from a harmonicmapping of R onto S. Figure 2.5 is the plot of a harmonic mapping of S ontoE, i.e., a solution of system (2.5) with M — N = 1. These values of M and Ndo not reflect the actual shape of the region R, and as a result the grid folds.A grid constructed with more appropriate values of M and N is plotted in Fig.2.6. For that grid an initial grid was constructed by interpolation and used toapproximate the integrals in equations (2.6). The grids in Figs. 2.4 and 2.6are almost identical.

2.4. Conclusions

Basic properties of conformal mapping can lead to improved methods ofgenerating grids from the solution of elliptic systems of partial differentialequations. In particular, an arbitrary region can be conformally mapped ontoa rectangular region, but only if the rectangle has the correct dimensions. Themapping can be scaled to map the region onto a square, or any fixed rectangular

Page 31: grid mohammad cfd

16 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 2.5. Grid from the harmonic mapping of a cube onto the region.

FIG. 2.6. Grid from the harmonic mapping of a rectangular parallelepiped withapproximately the same aspect ratios onto the region.

Page 32: grid mohammad cfd

ELLIPTIC GRID GENERATION AND CONFORMAL MAPPING 17

region. The scaled mapping of the region onto the square is harmonic, butits inverse is not. This fact should be considered when developing ellipticequations for grid generation. The same is true in three dimensions. Theequations for generating the grid must reflect the extent of the region in eachof the curvilinear coordinate directions.

2.5. Acknowledgments

This research has been supported by the National Aeronautics and SpaceAdministration (NASA) Langley Research Center under grant NSG-1577.

Page 33: grid mohammad cfd

This page intentionally left blank

Page 34: grid mohammad cfd

Chapter 3

Continuum Variational Formulation

J. E. Castillo

3.1. IntroductionIn this chapter a rigorous foundation for the variational grid-generationmethod, introduced by Steinberg and Roache [67], is presented. In §3.2 somestandard abstract optimization theory is introduced, and in §3.3 the existenceand uniqueness for the smoothness integral are studied using the theorypresented in §3.2. In addition, some partial results for the two-dimensionalvolume integral are presented. Finally, an erroneous result concerning thevolume integral that appears in the literature is discussed. In §3.4 the Euler-Lagrange equations for both the smoothness and volume integral are analyzed,and the replication of the reference grid is discussed.

3.2. Optimization and Approximation Topics

The material presented in this section is standard. It is presented on theheels of the developments given in [62]. It is written here to familiarize thereader with the framework in which the variational problems will be studied.The smoothness functional naturally fits in with the general theory; however,the volume functional has some features that make it nontrivial. There is verylittle theory known about the natural space where the volume functional is welldefined. In [11] and [67] the volume integral has been derived from geometricalconsiderations, and it has not been studied mathematically.

3.2.1. Dirichlet's Principle. When elliptic boundary-value problems areconsidered, it is useful to pose them in a weak form [62]. For example, theDirichlet problem

on a bounded open set G in Rn, is posed (and solvable) in the following form:Find

19

Page 35: grid mohammad cfd

20 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

In the process of formulating certain problems of mathematical physics asboundary-value problems of the type (3.1), integrals of the form appearingin (3.2) arise naturally. Specifically, in describing the displacement u(x] at apoint x G G of a stretched string (n — 1) or membrane (n — 2) resulting from aunit tension and distributed external force F ( x ] , the potential energy is givenby

Dirichlet's principle is the statement that the solution u of (3.2) is that functionin HQ(G) at which the functional E(-) attains its minimum. That is, u is thesolution of

To prove that (3.3) characterizes w, we need only note that for each v E HQ(G} ,

and the first term vanishes because of (3.2). Thus E(u + v) > E(u), andequality holds only if v = 0.

The preceding remarks suggest an alternate proof for the existence of asolution of (3.2);-hence, of (3.1). In essence, we seek the element u of HQ(G)at which the energy function E(-) attains its minimum, then show that u is thesolution of (3.2). We want to minimize functions more general than (3.3) overclosed convex subsets of Hilbert space. These more general functions permitus to try to solve some nonlinear elliptic boundary-value problems.

By considering convex sets instead of subspaces, some elementary results onunilateral boundary-value problems are obtained. These arise in applicationswhere the solution is subjected to a one-sided constraint, e.g., u(x) > 0, andtheir solutions are characterized by variational inequalities.

3.2.2. Minimization of Convex Functions. Suppose F is a real-valuedfunction defined on a closed interval K (possibly infinite). If F is continuous,and if either K is bounded or F(x) —> +00 as \x —> +00, then F attains itsminimum value at some point of K. This result will be extended to certain real-valued functions on Hilbert space and the notions developed will be extremelyuseful in the remainder of this chapter. An essential point is to characterizethe minimum by the derivative of F. Throughout this section, V is a realseparable Hilbert space, K is a nonempty subset of V, and F : K —> R is afunction.

The space V is weakly (sequentially) compact [62, §1.6]. It is worthwhileto consider subsets of V that inherit this property. Thus, K is called weakly(sequentially] closed if the limit of every weakly convergent sequence from Kis contained in K. Since convergence (in norm) implies weak convergence, aweakly closed set is necessarily closed.

LEMMA 3.2.1. If K is closed and convex (cf. [62, §1.4.2]), then it is weaklyclosed.

Page 36: grid mohammad cfd

CONTINUUM VARIATIONAL FORMULATION 21

Proof. Let a; be a vector not in K. From Theorem 1.4.C of [62], there is anXQ G K that is closest to x. By translation, if necessary, we may suppose that(XQ + x)/2 = 0, i.e., x — —XQ. Clearly, (X,XQ) < 0, so we need to show that(z-> xo) > 0 for all z G K] from this the desired result follows easily. Since K isconvex, the function y? : [0,1] —»• R , given by

has its minimum at t — 0. Hence, the right-derivative y?+(0) is nonnegative,

Since x = — z0, this gives (XQ,Z) > \ZQ\\V > 0.The preceding result and Theorem 1.6.B of [62] show that each closed,

convex, and bounded subset of V is weakly sequentially compact. Whenconsidering situations in which K is not bounded (e.g., K = V), the followingdefinition is then appropriate.

DEFINITION 3.2.1. The function F has the growth property at x G K iffor some R > 0, y G K and \\y — x\\ > R implies F(y) > F(x).

The following continuity requirement is adequate for our purposes.DEFINITION 3.2.2. The function F : K —> R is weakly lower semicon-

tinuous at a; 6 K if for every sequence {xn} in K that weakly converges tox G K, we have F(x) < lim inf F(xn). (Recall that for any sequence {an} inR, lim inf(an) = supfc>0(infn>fc(an)).)

THEOREM 3.2.1. Let K be closed and convex, and F : K —>• R be weaklylower semicontinuous at every point K. If (a) K is bounded or if (b) F hasthe growth property at some point in K, then there exists an XQ G K such thatF(XQ) < F(x) for all x G K. That is, F attains its minimum on K.

Proof. Let m = inf{F(x) : x G K} and {xn} be a sequence in K forwhich 77i = liiaF(xn). If (a) holds, then by weak sequential compactness,there is a subsequence of {xn} denoted by {xni} that converges weakly toXQ G F, and Lemma 3.2.1 shows XQ £ K. The weak lower semi continuityof F shows F(XQ) < lim inf F(xn<) = m; hence, F(XQ) = m, and the resultfollows. For the case of (b), let F have the growth property at z G K andlet R > 0 be such that F(x) > F(z] whenever \\z — x\\ > R and x G K.Then set B = {x G V : \\x — z\\ < R}. Now apply (a) to the closed,convex, and bounded set B PI K. The result follows from the observationthat mf{F(x) : x G K} = inf{F(x) : x G B n K}.

We note that if K is bounded, then F has the growth property at everypoint of A'; thus, the case (b) of Theorem 3.2.1 includes (a) as a special case.Nevertheless, we prefer to leave Theorem 3.2.1 in its (possibly) more instructiveform as given.

The condition that a function be weakly lower semicontinuous is generallydifficult to verify. However, for those convex functions (see below), the lowersemicontinuity is the same for the weak and strong notions, which can beproved directly from Lemma 3.2.1. We shall consider a class of functions for

Page 37: grid mohammad cfd

22 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

which convexity and lower semicontinuity are easy to check, and furthermore,this class contains all examples of interest to us here.

DEFINITION 3.2.3. The function F : K — » R is convex if its domain K isconvex, and for all x, y G K and t G [0, 1], we have

DEFINITION 3.2.4. The function F : K — > R is G- differentiate at x G Kif K is convex and there is an F'(x) G V such that

for all y E K. F'(x] is called the G- differential of F at x. If F is <7- differentiateat every point in K, then F1 : K —> V is the gradient of F on K, and F is thepotential of the function F'.

The G- differential F'(x] is precisely the directional derivative of F at thepoint x in the direction toward y. The following shows how it characterizesconvexity of F.

THEOREM 3.2.2. Let F : K -> R be G-differentiable on the convex set K.Then the following are equivalent:

(a) F is convex.(b) For each pair x, y G K we have

(c) For each pair z, y G K we have

Proof. If F is convex, then F(x + t(y - x ) ) < F(x) + t ( F ( y ) - F ( x ) ) forx,y G K and t G [0, 1], so (3.6) follows. Thus (a) implies (b).

If (b) holds, we obtain F'(y)(x - y) < F(x) - F(y) and F(x) - F(y) <Ff(x)(x — ?/), so (c) follows.

Finally, we show that (c) implies (a). Let x, y G K and define <p : [0, 1] — *• Rby

Then (p'(i) = F'(y + t(x-y))(x-y) and we have for 0 < s < t < 1 the estimate

from (c), so (p1 is nondecreasing. The Mean Value Theorem implies that

Hence, </?(i) < ty>(l) + (1 - t)y>(0), and this is just (3.5).

Page 38: grid mohammad cfd

CONTINUUM VARIATIONAL FORMULATION 23

COROLLARY 3.2.1. Let F be G-differentiable and convex. Then F is weaklylower semicontinuous on K .

Proof. Let the sequence {xn} C K converge weakly to x £ K. SinceF'(x) G V, we have ]imF'(x)(xn) = F ' ( x ) ( x ) , so from (3.6) we obtain

lim inf(F(xn) - F(x)) > lim inf F'(x)(xn - x) = 0 .

This shows that F is weakly lower semicontinuous at x G K.COROLLARY 3.2.2. In the situation of Corollary 3.2.1, for each pair

x , y £ K the function

t H-» F'(x + t(y - x))(y - x) , t e [0, 1]

z's continuous.Proof. We need only observe that in the proof of Theorem 3.2.2 the function

(pf is a monotone derivative and therefore must be continuous.Our goal is to consider the special case of Theorem 3.2.1 that results when

F is a convex potential function. It will be convenient in the applications tohave the hypothesis on F stated in terms of its gradient F'.

LEMMA 3.2.2. Let F be G-differentiable and convex. Suppose also that wehave

Then limya-n^oo F(x} = +00, so F has the growth property at every point inK.

Proof. We may assume that 9 G K. For each x G K we obtain fromCorollary 3.2.2

With (3.7) this implies

From the Mean Value Theorem it follows that for some s = s(x) 6 U,

Since \\sx\\ > (|)||x|| for all x £ K, the result follows.

Page 39: grid mohammad cfd

24 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

DEFINITION 3.2.5. Let D be a nonempty subset of V and let T : D —> Vbe a function. Then T is monotone if

and strictly monotone if equality holds only when x = y. We call T coercive if

After the preceding remarks on potential functions, we have the followingfundamental results.

THEOREM 3.2.3. Let K be a nonempty, closed, convex subset of the realseparable Hilbert space V, and let the function F : K —> R be G-differentiateon K. Assume that the gradient F' is monotone and that either (a) K isbounded or (b) F' is coercive. Then the set M = {x G K : F(x) < F(y) for ally G K} is nonempty, closed, and convex, and x £ M if and only if x G K and

Proof. That M is nonempty follows from Theorems 3.2.1 and 3.2.2,Corollary 3.2.1, and Lemma 3.2.1. Each of the sets My = {x G K : F(x) <F(y)} is closed and convex so their intersection, M, is closed and convex. Ifx G M, then (3.9) follows from the definition of F'(x); conversely, (3.6) showsthat (3.9) implies x G M.

We close with a sufficient condition for uniqueness of the minimum point.DEFINITION 3.2.6. The function F : K —> R is strictly convex if its domain

is convex and for or, y G A', x ^ y, and t G (0,1), we have

F(tx + (1 - t)y) < tF(x) + (1 - t)F(y) .

THEOREM 3.2.4. A strictly convex function F : K —>• R has at most onepoint at which the minimum is attained.

Proof. Suppose x\,x-2 G K with F(x\) = F(x2) — ini{F(y) : y G A'}, andxi ^ #2- Since \(x\ + z2) £ A', the strict convexity of F gives

F ((|)(zi + x2)) < (i)(F(*i) + F(x2)) = M{F(y) : y G A'} ,

and this is a contradiction.The third part of the proof of Theorem 3.2.2 gives the following theorem.THEOREM 3.2.5. Let F be G-differentiate on K. If the gradient F' is

strictly monotone, then F is strictly convex.

3.2.3. Variational Inequalities. The characterization (3.9) of the mini-mum point u of F on K is an example of a variational inequality. It expressesthe fact that from the minimum point the function does not decrease in anydirection into the set K. Moreover, if the minimum point is an interior point

Page 40: grid mohammad cfd

CONTINUUM VARIATIONAL FORMULATION 25

of K, then we obtain the variational equality F'(u) = 0, a functional equationfor the (gradient) operator F'.

We shall write out the special form of the preceding results, which occurwhen F is a quadratic function. Thus, F is a real Hilbert space, / £ V', anda(-, •) : V X V -H> R is continuous, bilinear, and symmetric. Define F : V — > Rby

From the symmetry of a(-, •) we find that the G- differential of F is given by

If A : V -* V is the operator characterizing the form a(-, •) (cf. [62, §1.5.4]),then we obtain

To check the convexity of F by the monotonicity of its gradient, we compute

Thus, F' is monotone (strictly monotone) exactly when a(v) is nonnegative(respectively, positive), and this is equivalent to A being monotone (respec-tively, positive) (cf. [62, §V.2]). The growth of F is implied by the statement

Since F(v) > (\a(v, v)) - \\f\\ • \\v\\, from the identity (3.11) we find that (3.12)is equivalent to Ff being coercive.

The preceding remarks show that Theorems 3.2.3 and 3.2.4 give thefollowing theorem.

THEOREM 3.2.6. Let a(-,-) : V x V —> R be continuous, bilinear,symmetric, and nonnegative. Suppose f £ V and K is a closed, convex subsetofV. Assume that either (a) K is bounded or (b) a(-,-) is V-coercive. Thenthere exists a u £ K that satisfies

There is exactly one such u in the case o/(b), and there is exactly one in case(a) if we further assume that a(-, •) is positive.

Finally, we note that when K is the whole space F, then (3.13) is equivalentto

For this reason, when (3.14) is equivalent to a boundary-value problem, itis called the variational form of that problem, and such problems are calledvariational boundary-value problems.

Page 41: grid mohammad cfd

26 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

3.3. Variational Integrals

In the variational methods introduced by Steinberg and Roache [67], twofunctionals are presented that provide (1) the measure of spacing betweenthe grid lines (smoothness) and (2) the measure of the area of the grid cells.The minimization problem is usually solved by calculating the Euler-Lagrange(E-L) equations for the variational problem. The computer creates a gridby solving a central finite-difference approximation of the E-L equations. Areference grid is used to place the grid properties on the boundary as well ason the interior [67].

In ra dimensions the integrals to be minimized are, for smoothness,

with

and for volume (area),

constant;

with

Here

and B is a "box" in f space. Also r is a given map from B to the referenceregion, u maps B onto the physical region G; it is given on the boundary andmust be calculated in the interior of the region. Also

is the Jacobian of the mapping u of the logical space to physical space and

constanat.

Page 42: grid mohammad cfd

CONTINUUM VARIATIONAL FORMULATION 27

is the Jacobian of the reference mapping. In this case the constraints areautomatically satisfied [67]. In general, we are interested in minimizing aweighted combination of the two integrals

with the constraint

The variational problem we are interested in is the minimization of theintegral I, with the reference grid set to be equal to the unit square, which isthe same as the logical region, over the class of all proper mappings of B to G,with a fixed value on the boundary of B. A region is a subset of a Euclideanspace that is connected, and it is the closure of an open set. Moreover, theboundary should consist of a finite number of smooth pieces. A function issmooth if it is infinitely differentiable in the region where it is defined andcontinuous up to and including the boundary of the region. A proper mappingof region B to region G is a smooth mapping that is defined on all of B and isone-to-one and onto G (see [67]).

3.3.1. Smoothness Integral. In the case of a = 1, we have the puresmoothness problem. This problem can be stated in abstract form as follows:Find u £ K such that

Here K = {UQ + i?, UQ £ HQ and u £ H1} and

Here K is closed and convex and the following claims will characterize thefunctional F.

Claim 3.1. F is G-differentiable.Proof.

Claim 3.2. F' is strictly monotonic.Proof.

hence,

and 0 only if u = v. The following classical result will be useful in the nextclaim.

Page 43: grid mohammad cfd

28 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

LEMMA 3.3.1 (Poincare Inequality). Let UQ E then

Claim 3.3. F1 is coercive.Proof. Let

The three previous claims are the proof of the following theorem.THEOREM 3.3.1. The smoothness integral has a unique minimum.Proof. F is G- differentiate on a nonempty, closed, and convex set K; F' is

strictly monotonic; and F' is coercive. Therefore, (by Theorem 3.2.3) F has aunique minimum.

We can also look at the Hessian of the smoothness functional.Claim 3.4. The Hessian of the smoothness integral is positive definite.Proof. Set u = (tt1 ?- • - ,UT O) , h = (hi,h2, • - -,hm), w = (wj, w2, - • - ,wm) ,

then

so clearly the Hessian of the smoothness functional is positive definite.

3.3.2. Volume Integral in Two Dimensions. The standard theoryintroduced at the beginning of this chapter provided us with the naturalframework for the study of the pure smoothness problem; in fact, the proof that

Page 44: grid mohammad cfd

CONTINUUM VARIATIONAL FORMULATION 29

the smoothness functional has a unique minimum is a direct result of applyinga standard technique. The volume problem, on the other hand, does not fitinto any standard technique. This makes the volume problem more excitingand also harder to study. The problem of existence of a unique minimum is byno means solved here. It will remain an open problem until enough theoreticalresults are developed in the Sobolev space W^, the natural space where thevolume functional is well defined. Some partial results are given in order to gainsome insight into the behavior of the volume functional. The main problemwith the volume integral is that its natural space is W*. Since there are notpresently enough results for functionals on this space, it is not possible at thistime to extend the techniques used for the smoothness case. A complete studyof Wi is beyond this work. However, some partial results are presented inorder to get a better understanding of the behavior of the volume integral.

Claim 3.5. If J(u] > 0 (the Jacobian of the mapping w), then the formalHessian of the volume functional is positive definite. Let

then,

hence,

and

Here the expression for the second derivative is obtained after some algebraicmanipulations.

There also exists computer experience with the volume integral for somemodel problems we have worked with. The previous result plus somecomputational experience, [22] and [20], give us some evidence for the followingconjecture.

Conjecture. If J(u) > 0 (the Jacobian of the mapping u), then theminimum of Iv has a unique solution.'

Steinberg and Roache [67] claim that the volume integral produces gridcells as close as possible to having constant area. A result in two dimensionspresented here agrees with their intuitive claim.

Page 45: grid mohammad cfd

30 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

THEOREM 3.3.2. If the Jacobian of the mapping u, J ( u ) > 0, then thevolume integral produces grid cells of constant area [52].

Proof. Let u = (z, y) and v — (£, 77) and

The Euler-Lagrange equations for the volume integral in two dimensions can becomputed from the previous formulas using integration by parts. The generalformulas are recorded in § 3.4; for this case they are

The coefficient matrix is the Jacobian of the mapping u. Hence, if J ^ 0 => J —constant.

3.3.3. An Example of Volume-Preserving Maps in Two Dimensions.In the process of analyzing the volume integral, it will be helpful to clarify aclaim that appears in the literature but that is not applicable to the problemin which we are interested. Brackbill and Saltzman [11, p. 345] state thatthe volume integral cannot be minimized by itself and that it has an infinitenumber of solutions. In order to understand their claim a little better, we willlook at their problem.

Let ft be any region in the (x, y) plane. Suppose that £o(f , 77), yo(f , f?) withJacobian JQ minimizes Iv. A family of mappings from ft to ft :

is constructed. They solve the following problem:

Now let

and solve the following autonomous system of ordinary differential equations:

The Jacobian of the map (xo,yo) =£• ( x , y ) is

Page 46: grid mohammad cfd

CONTINUUM VARIATION AL FORMULATION 31

Now since xt = u and yt — v, the chain rule gives

Since div(w, v) — 0, then Jt = 0. At t = 0 the map (a?o,3to) =^ (%,y) is theidentity, so «/ = 1 for all t. Thus, the mapping (£, T/) =>• (z,2/) has constant/. Hence, all of these maps minimize Iv. However, we note that this is aproblem in which the boundary values are not fixed. Since the problem we areinterested in has the boundary values fixed, we can see that the Brackbill andSaltzman claim does not apply to the volume integral we are considering forthe grid-generation problem.

3.4. Euler-Lagrange Equations in Two Dimensions

In the case m = 2, we set

u = ( x , y ) , ?=(£,») , f = (a, /3) .

Hence, the integral to be minimized for smoothness is

and for volume,

and then the E-L equations [17] for the smoothness are:

where

and

The E-L equations [17] for the volume are:

where JR is the Jacobian of the reference mapping r and J is the Jacobianof the mapping we want to construct. For the smoothness problem, A and Bare fixed and positive if the reference map is proper. The E-L equations are

Page 47: grid mohammad cfd

32 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

linear, elliptic, and uncoupled. Note that this is as true for m dimensions asit is for two dimensions.

The E-L equations for the volume problem can also be written in thefollowing way:

where

It will be shown that these equations are nonlinear, not elliptic, and coupled.To see this situation more clearly, we now do an analysis for the simplest formof these equations [17].

3.4.1. Near-Identity Analysis in Two Dimensions. In order to studysolutions of the E-L equations that are nearly identity maps, x = £ and y — r/,the reference map is chosen to be the identity. To do a near-identity analysiswe view the E-L equations as quasi-linear partial differential equations (PDEs)of the form

where A,B,C,D depend on /, /^,/T?. Here A, 5,C, D are made constant bychoosing fixed /, /£, f ^ .

To study near-identity maps, set x — £, y = 77, so x^ = 1, x^ = 0, y$ = and yr, = 1. The E-L equations for the smoothness integral become

which is an uncoupled elliptic system of PDEs. However, in the case of thevolume integral, we get a degenerate system,

which can be easily checked to be nonelliptic.Based on this, we should expect difficulties with the codes that are used for

solving these problems, since they are elliptic solvers. Nevertheless, experienceshows the opposite to be the case (see [17], [20], and [67]).

3.4.2. Replication of Reference Grid Properties in Two Dimensions.One of the questions to be asked with respect to the usefulness of the referencegrid concept is, "Is it possible to reproduce any reference grid on the physical

Page 48: grid mohammad cfd

CONTINUUM VARIATIONAL FORMULATION 33

object?" The simplest test of the replication property can be applied bychoosing the reference region to be the same as the physical region, andchecking to see if the reference mapping satisfies the Euler-Lagrange equations.However, we do not expect an arbitrary reference grid to be replicated andindeed, this did not happen. When we choose the mapping, x = a, y = ft, thesmoothness equations for ( x , y ) become

where

with

Since generally these equations are nontrivial, it is not possible to replicatethe reference grid except in simple geometries. In particular, if the referencegrid is a quadrilateral, x and y are linear; hence, the above equations aresatisfied, so the smoothness integral replicates the reference grid. In the caseof the volume control, a similar calculation can be done. After some algebra,the constraining equations become an identity.

3.5. Conclusions

The variational grid-generation method introduced by Steinberg and Roache[67] produces grids suitable for numerical calculations. The volume functionalproperly combined with the smoothness functional is enough to produce rea-sonable grids. The Euler-Lagrange equations associated with the smoothnessfunctional are linear, uncoupled, and elliptic; this is not the case for the vol-ume functional in which the Euler-Lagrange equations are nonlinear, coupled,and also not always elliptic. The reference grid concept is a useful tool forexercising more refined control over the grid. It is possible to replicate simplereference grids; it is also useful in preventing the grid from folding [18].

Standard variational techniques were used to completely characterize thesmoothness functional; the volume functional, on the other hand, is a verydifficult problem. It is partially characterized in this chapter and some resultsthat are helpful in understanding the method have also been presented.

Page 49: grid mohammad cfd

This page intentionally left blank

Page 50: grid mohammad cfd

Chapter 4

Discrete Variational Grid Generation

J. E. Castillo

4.1. Introduction

In the variational methods introduced by Steinberg and Roache [67], which aresimilar to those introduced by Brackbill and Saltzman [11], three functionalsare presented that provide a measure of spacing between the grid lines(smoothness), a measure of the area of the grid cells, and the orthogonalityof the grid lines. The minimization problem is usually solved by calculatingthe Euler-Lagrange (E-L) equations for the variational problem and a grid iscreated by solving a centered finite-difference approximation of these equations.In theory, a straightforward discretization of the integrals should provide asimilar solution; instead, there are serious difficulties [16]. In the presentapproach, the derivatives in the integrals are replaced by centered finitedifferences, and the integrals are replaced by summations over the gridpoints.Only first derivatives of the coordinates appear in the direct minimizationproblem, so a centered finite-difference discretization at a gridpoint does notinvolve values at that point. This produces strong decoupling problems for thedirect approach, none of which are manifested in the E-L approach. (See [42].

In the E-L formulation [67], there are certain integral constraints on thesolution that are automatically satisfied. In the straightforward direct formu-lation, the analogue of these constraints is not automatically satisfied. Thestraightforward discretization approach transforms the smoothness integralinto a linear minimization problem with a linear constraint, while the areaintegral is transformed into a nonlinear minimization problem with a nonlin-ear constraint [16]. Such problems are much harder to solve than the uncon-strained problems that occur in the continuous cases. A better formulationof the variational grid-generation method, called the "direct" formulation, isobtained when the properties to be controlled are derived directly from thediscrete geometry [15], [19]. This method will be described below. Whilethere have been other efforts in generating grids by the optimization of directproperties (see Kennon and Dulikravich [42]), the functionals for the methodpresented here, as well as its properties and the minimization procedure used,

35

Page 51: grid mohammad cfd

36 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

differ considerably.As in the E-L approach, the direct approach controls three properties

of the grid: grid spacing, grid cell area, and grid orthogonality. The gridspacing and cell area functionals have been studied in [19] and [13]. Theeffects of adding orthogonality control are presented in [14]. To make thispaper self-contained, all three functionals will be described below; more detailand analysis can be found in [19] and [13]. In order to understand the behaviorof the direct variational method, it is important to understand the behaviorof each functional separately. A good comprehension of the solution of eachminimization problem will provide information relevant to the more generalminimization problem that is being considered, i.e., a weighted combinationof the three functionals. In §4.2, an intuitive description of the functionalsis given, followed by the notation and a more detailed presentation of thefunctionals, along with a brief discussion about the minimization proceduresand their performance. In §4.3, it is proved that the discrete length controlprovides the optimal grid produced by the continuous length control functionalas a limit case. Finally, in §4.4, a model problem for the area functionalis presented to demonstrate the effect of the boundary on the existence anduniqueness of equal area solutions for the area functional.

4.2. Review4.2.1. Direct Variational Formulation in Two Dimensions. Thesimplest length control is given by trying, in a variational sense, to make thegrid segments equal. To do this, the sum of the squares of the segment lengthsbetween the gridpoints should be minimized: Let Sij be the length betweenthe ( i , j f ) gridpoint and any neighboring gridpoint, then

(4.1) minimize FS =

with the constraint (see [67])

(4.2) Cs = 2^iS/iJ ~ constant.

For controlling the area of the cells, the sum of the squares of the truediscrete area of the quadrilateral cell should be minimized: Let A{j be the areaof the (i, j ] grid cell, and then

(4.3) minimize FA = V A?-,

with the constraint(4.4) CA = 2J Aij = constant.

For controlling the angles between grid lines, the following functionalshould be minimized: Let Oij be the dot product of two vectors with origin atthe (i,j) gridpoint and then

(4.5) minimize FQ = T^ 0£-

Page 52: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 37

with no constraint.It is worth noting that in this direct variational approach for spacing

between the grid lines, the constraint is automatically satisfied, since the sumof all the segments is a telescopic sum which depends only on the values on theboundary (see [7], [19], and [13]). For the area sum, the constraint is the suof the areas of the true quadrilateral cells, which is shown to be the total areaof the region, and solely depends on the values on the boundary (see [7], [19],and [13]). There is no constraint for the orthogonality functional [67] (and oneis not needed).

To control all three properties, a weighted combination of all the sums isto be minimized:

where a, 6, and c are given numbers such that

4.2.2. Notation. The following notation is used (see [7], [15], and [19]). Agiven region fi C R2 is polygonal if the boundary of (I is the union of simpleclosed polygons. A grid on a polygonal region 0 is a subdivision of fi intoquadrilaterals, the vertices of the quadrilaterals are called the points of thegrid, and the quadrilaterals are called the cells of the grid. The region willhave TO + 2 points in the logical "horizontal" direction (m interior points) andn+2 points in the logical "vertical" direction (n interior) points; hence, the gridhas mn interior points. Let P{j = (xj-j,?/^)*, 2 < i < m, and 2 < j < n bethe ( i , j ) point. A column vector of all the 2mn coordinates of the mn interiorpoints is needed, so let z be the column vector formed with the coordinates ofthe interior points; i.e., if Pr)S = (xr^s,yr^s), then

and z is of order 2mn. The grid has ra+2 points on each "horizontal" boundaryand rz. -f 2 points on each "vertical" boundary. The points on the "horizontal"boundaries are

and

Similarly, the points on the "vertical" boundary are

and

Page 53: grid mohammad cfd

38 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

The mn interior points are

4.2.3. Grid Spacing Control. In order to control the lengths of the logical"horizontal" segments between the gridpoints, consider the functional SH given

where t{j are the lengths of the logical "horizontal" segments. Similarly,consider the functional Sv given by

which allows the lengths of the "vertical" segments between the points of thegrid to be controlled. Hence, the functional F$ can be written

4.2 A. Functional FA for Area Control. Let FA denote the sum of thesquares of the area of the grid cells; i.e.,

where Aij is the area of the (i, j)th cell. F^ will permit control of the areaof the cells. In order to be precise, the (i,j)th cell of the grid is the "orientedquadrilateral," P^j, Pi+i,j, P»+irj+i, P»J+I. It is important to notice that thereare (m+ l)(n + 1) areas and that there are mn interior points in the grid; thatis, there are Imn unknown grid coordinates. Let a be the column vector oforder (ra + l)(n +1) whose components are the areas of the cells of the grid;

where

then, the functional can be written as

by

Page 54: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 39

4.2.5. Functional FQ for Orthogonality Control. There are four anglesin each grid cell: upper right, upper left, lower left, and lower right. In orderto control the orthogonality of the logical "upper right" angles between thegrid lines, consider the functional OUR given by

where 0{j corresponds to the logical "upper right" angles.In order to control the orthogonality of the logical "lower left" angles,

consider the functional OLL given by

There are similar functionals for the upper left (OUL) and lower right angles(OLR)- The functional FQ, therefore, can be written as

This is a family of functionals that gives angle control; it can be optedto control the upper, lower, interior, and boundary angles. These functionalsallow a great deal of flexibility, since it can be decided in advance, based onthe physical region, whose angles will need more control.

4.2.6. Minimization Procedure. The minimization problem associatedwith the direct variational method can be solved by a nonlinear conjugategradient method (see [7], [13], [30], and [61]) and can be posed as a leastsquares problem. For each functional, or for a combination of them, the numberof variables becomes large very rapidly. Consequently, most standard solverswill have difficulty with these problems. In addition, any solver that storeseither the full gradient or Hessian will have serious storage limitations.

It is important to note here that once the value of the length, area, or theorthogonality functional has been computed, all of the information needed tocompute the gradient and the Hessian will have been obtained (see [7], [15], and[19]). Codes are under development for generating two- and three-dimensionalgrids that take full advantage of the theory presented in this paper. These codeshave been shown to be computationally faster than other grid-generation codes[13].

4.2.7. Performance. Many examples have been generated using this code.The performance has been excellent, giving a substantial check on the methodpresented in this paper. In addition, the generated grids have been comparedto those computed by Steinberg and Roache [67]. An appropriate combinationof the two functionals' length and area produces grids suitable for numericalcalculations; in addition, the orthogonality functional can be used to improvethe quality of the grid angles as demonstrated by examples [14]. The capability

Page 55: grid mohammad cfd

40 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

of controlling interior and/or boundary angles gives the direct method a greaterflexibility and generality.

A version of the method (length and area control only) was tested againstan implementation of the homogeneous Thompson, Thames, and Mastinmethod [74], or Winslow method [85], which solves a coupled system of ellipticequations. The number of nonlinear iterations (iter), as well as the time inseconds, was noted for a model problem with grids of three differential sizes.Although none of the methods has been finely tuned, it seems clear that thepresent method is at least competitive with the most commonly used ellipticgrid-generation schemes [13]. The cost of adding orthogonality control to thedirect method is small; a timing test for the boundary directional angle controlis given in [14].

4.3. Discrete and Continuous Length Control

Given a grid on a polygonal region 1), we can construct a parameterization of11 in such a way that the uniform grid of BI = [0,1] X [0,1] will map onto thegiven grid on H.

Let Pij be the points of an m X n grid on H. We define the map

such that

(2) Vmtn is extended to all BI by linear interpolation.We have found in practice that the optimal grids under the functional FS

tend towards smoothness as ra,n approaches infinity; i.e., the correspondingVm^n tends to a smooth parameterization V*:

In order to explain this, it will be proved that when this happens, V*(£, n)is the optimal continuous grid of Steinberg and Roache [67].

THEOREM 4.3.1. Let zm^n denote the optimal grid o/ft under the functionalFS, and let Vm^n(£,n} be the corresponding parameterization. If

exists and is Cl, then

and V* is the optimal continuous grid of Steinberg and Roache.Proof. Let z^ n be the corresponding discrete grid to V* on fi, i.e.,

Page 56: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 41

Then,

Let us consider the functional •$#(>£*„,), i.e.,

where

where

By the Mean Value Theorem we get

The following equation can be directly obtained:

In a similar way, we can get

where Similarly

where Then

Page 57: grid mohammad cfd

42 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

which gives us

If Zm,n is the optimal grid, then

which implies

The rest of the proof comes from the fact that if y* were not the optimalcontinuous grid of Steinberg and Roache, then it would be possible to constructa discrete grid 2mjn, such that the value Fs(zmtn) would be smaller than thecorresponding Fs(zm,n} for n sufficiently large. However, that would be acontradiction, since zm>n is by assumption the optimal grid.

Steinberg and Roache found that the optimal continuous grid V*(£, 77) mustsatisfy an uncoupled system of Laplacian equations:

which agrees with the results that were obtained [7], [19]; namely, uncouplediscrete Laplacian equations.

4.4. Model Problem for Area Control

It is natural to ask, "Given ft, is it possible to subdivide it into cells of equalarea?" In this case, the points on the boundary are fixed and, as shall beseen, for some distributions of points on the boundary, this is not going to bepossible.

A simple model problem is constructed that shows why there is nota general existence theorem for arbitrary distribution of the points on theboundary. Consider the unit square with m = n = 2, and for each fixed0 < a < 1, consider the following distribution (see Fig. 4.1). Given a fixed,0 < a < ^, do there exist points P, Q, jR, S such that all the cells of the gridhave the same area? This is a quadratic problem in eight variables; someassumptions are made to simplify this problem and still produce interestingresults. For a = | there is a trivial solution, but we do not expect a solution for a very small, or for a very near to .5. In order to solve thisproblem, we shall need the elementary result given in the following theorem.

THEOREM 4.4.1. Given the points Pi,P-2,P-$, the set of all points P suchthat the quadrilateral P, PI, P^, PS has constant area c is a line parallel to PI PS.

Page 58: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 43

. Model problems.

Proof.

Applying the above theorem to the corner cells shows that the points P,Q, R, S have to be on the lines (see Fig. 4.2)

This reduces the problem to the four variables xp,xq,xr,xs.Next, it is easy to check that the problem must have a solution symmetric

with respect to ( |, |J, the center of the square. For example, if

then

This symmetry allows us to reduce the problem to two variables; we shallchoose £„, £«.

Page 59: grid mohammad cfd

44 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

So, now we shall solve the system

Straightforward simplification leads to the system

Let

Then we have

Solving for a and <r, we get

From the definition of a and />, we get

so in order to have a solution, we need

or

Consequently, the following theorem has been proved.THEOREM 4.4.2. For the model problem, there are equal area solutions only

for i < a < |

Page 60: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 45

FIG. 4.2

4.4.1. Critical Points. Where are the critical points of FA when

The following theorem gives a clue to the answer.THEOREM 4.4.3. Assume that we are given P,Q,R,S. Then:(i) // P', Q', R1 ', £' are £/ie corresponding symmetrical points of P,Q,R,S

with respect to y = |;

(ii) If P",Q", R", S" are the corresponding symmetrical points P,Q,R,Swith respect to x = \, then

Proof. Observe Fig. 4.3 below. Let A'- denote the value of the areas of thecells when we take the ordered points 6*', R1 ', Q', P'. From the symmetry of thesquare it is easy to obtain that

and also that

Therefore,

Page 61: grid mohammad cfd

46

MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 4.3

The proof of the second affirmation is similar.It is expected that FA will have a critical point when P and S are

symmetrical with respect to y = |, P and Q are symmetrical with respectto x = |, and 5 and R are symmetrical with respect to x = |. If such acritical point exists, then the following theorem shows how to compute it.

THEOREM 4.4.4. If P* = (xp,yp), St = (zp,l - yp)-, Q* = (1 - xp,yp), andP1 = (1 — Zp, 1 — yp}, then FA has at least one critical point on this set of grids,and at the critical points we have that xp = yp.

Proof. From the definition it is easy to check that (see Fig. 4.4 )

then

Straightforward computation gives us

then

Note that FA is symmetric with respect to xp and yp.Let us consider the case when xp = yp. Let /(xp,a) denote the value of

FA in this case; then we have

Page 62: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 47

FIG. 4.4

The derivative of /(zp, a) with respect to xp is a cubic polynomial in xp givenby

Thus, f'(xp,a) has at least one real root, so this concludes the proof of thetheorem.

Note that the values of a for which we have three real roots can becomputed; from the discriminant of the cubic, a six-degree polynomial willresult:

which has only two real roots, one negative and the other positive. This lastroot is of interest for the model problem and is equal to

so that for a < .2591 we have^three real solutions of f f ( x p , a ) that are saddlepoints of FA- In order to do a complete analysis of this problem, the symbolmanipulation program MACSYMA will be used to do the required algebra.However, the FORTRAN code described in §4.3 is used to calculate the criticalpoints for this model problem. This is done by choosing a large variety of initialguesses for the grid and then letting the code find a critical point; no pointsother than those predicted by the above calculations were ever found.

These results are illustrated in Figs. 4.5-4.14, which are presented at theend of this section. The figures all show a 4-by-4 grid for the model problemdiscussed at the beginning of this section. The figures present the gridsthat correspond to all of the critical points of the area control problem fora progression of values of a; some critical points are minima and others aresaddle points. The drawings were made using the code described in §4.3.

It is easy to check that for a 3-by-3 grid the area functional is onlyquadratic. In the 4-by-4 case, the functional is quartic. However, the numberof unknowns is smaller than the number of areas, so the corresponding leastsquares problem has complete rank. In the 5-by-5 case the number of unknowns

Page 63: grid mohammad cfd

48 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

is greater than the number of areas, so this problem has incomplete rank.Again, we hope to use MACSYMA to analyze this problem.

4.5. Conclusions

The direct variational grid-generation method presented here is a robust andefficient method for grid generation. As shown in [13], area control by itselfis not adequate, but a proper combination of area and length control hasthe capability of generating grids suitable for numerical calculations. Thecapability of these methods is greatly enhanced by the orthogonality functional.Moreover, it is clear that the method has a natural, but not straightforward,extension to three dimensions; these problems will have a structure analogousto the two-dimensional problem. Thus, it is reasonable to expect that thethree-dimensional method will also be competitive with other standard grid-generation methods. Furthermore, the discrete length functional converges tothe continuous length and the model problem for the area functional showshow the distribution of the points on the boundary affects the the existence ofequal area solutions.

Page 64: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 49

FIG. 4.5

Minima Saddle

Minima

Saddle Saddle

Page 65: grid mohammad cfd

50

MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 4.6

Minima Saddle

Minima

Saddle Saddle

Page 66: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 51

FIG. 4.7

Saddle

Saddle Saddle

Page 67: grid mohammad cfd

52 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 4.8

Minima Saddle

Saddle Saddle

Minima

Page 68: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 53

FIG. 4.9

Minima Saddle

Minima

Saddle Saddle

Page 69: grid mohammad cfd

54 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 4.10

Minima Saddle

Minima

Saddle Saddle

Page 70: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 55

FIG. 4.11

Saddle

Saddle Saddle

Minima

Minima

Page 71: grid mohammad cfd

56 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 4.12

Minima

Minima

Saddle

Page 72: grid mohammad cfd

DISCRETE VARIATIONAL GRID GENERATION 57

FIG. 4.13

Minima

Minima

Saddle

Page 73: grid mohammad cfd

58 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 4.14

Minima Minima

Saddle Minima

Page 74: grid mohammad cfd

Chapter 5

Bifurcation of Grids on Curves

S. Steinberg and P. J. Roache

5.1. Background

Attempts to use variations! grid-generation methods to generate grids oncertain surfaces of modest shape have failed to produce suitable grids. Therewere sufficient points in the grids to well-resolve the surface, so the failureswere not easily explained. Similar difficulties were found for the analogousproblem of variational grid generation on curves; those problems are caused bymultiple solutions of the underlying nonlinear algebraic equations, as shownin this paper. Thus the difficulty is intrinsic to the discrete approximation ofthe variational problem used to generate the grids. For a description of thevariational techniques, more details concerning the anomalous behavior of thegrid-generation algorithm for both curves and surfaces, and a discussion of howsymmetry of the difference equations affects the grid generator, see papers [65],[66], and [67], by Steinberg and Roache. A significantly improved surface gridgenerator is currently being developed by Knupp [43].

The difficulties with the grid generator are best described in terms ofbifurcations, thus, we choose a family of curves that depend on a parameter.Throughout this paper we use the family of simple parabolas

all of which depend on the parameter a. For a = 0 the curve is a straightline that is trivial to grid; as a grows, the curvature increases and the curvebecomes more difficult to grid. Several other curves were tested with similarresults.

The grid-generation algorithm is obtained by calculating the Euler-Lagrange equation for a variational problem and then discretizing this equationusing centered differences. In the case of curves, the solution of the Euler-Lagrange equation is simply the arclength parameterization. Thus, the con-tinuum problems possess a unique solution, which means that the bifurcationdiagram for this problem is trivial, as shown in §5.2. Next, it is shown that thevariational problem has a positive Hessian that is not bounded below. The lack

59

Page 75: grid mohammad cfd

60 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

of a lower bound is an indicator that there will be difficulties in the discreteproblems. In addition, two iterative methods for calculating the solution of thegrid-generation equation are presented. The fully lagged iteration has ratherpoor convergence properties, whereas the nominal iteration has problems onlyat bifurcation points.

In §5.3, the most trivial discrete grid-generation problem possible isanalyzed. In such problems, the grids have one free point and two fixedboundary points. Here, the bifurcation diagram is decidedly nontrivial inall the examples studied; the grid undergoes a pitchfork bifurcation as theparameter increases.

In §5.4, the results of some numerical experiments for the nominal iterationare presented. First, the bifurcation of the grid with one free point is confirmed.Experiments with grids that have a reasonable number of points show that thegrids bifurcate. However, the multiple solutions disappear when the resolutionis sufficiently high. Note that the behavior of the solution of discrete problemswith a reasonable number of points is more like the problem with one free pointthan the continuum problem.

Bifurcation studies have been carried out for the problem

where A is the bifurcation parameter (see Bigge and Bohl [8]; Peitgen, Saupe,and Schmitt [53]; and Stuart [69]). The results for this problem are strikinglysimilar to the results obtained in this paper. On the other hand, the grid-generation equations are not covered by the results of these papers.

There is reason to believe that the difficulties encountered in curve gridgeneration will show up in other grid-generation problems. First, there are theresults of the above-mentioned bifurcation studies. Second, when the Euler-Lagrange equation for a variational problem is used to generate the grid on acurve, a quasi-linear boundary-value problem of the form

must be solved. Many of the differential equations used to generate one-dimensional grids have this form, where

Some examples are given in [4, Eq. 3] and (5.17). When comparing (5.2) toequations used by others, it is helpful to note that

The equation for defining a grid equidistributed with respect to a position-dependent weight w(x) (i.e., solution-adaptive grid) is given by

Page 76: grid mohammad cfd

BIFURCATION OF GRIDS ON CURVES 61

(see [75, p. 371, Eq. (4)]). The derivative of this equation with respect to tgives a second-order differential equation for #(£), which is the same as theequation for the variational problem defining the adaptive grid (see [67]):

Since w in (5.7) plays a role identical to that of / in (5.4), it is clearly possiblfor the anomalies that cause difficulties in curve grid generation to appear insolution- adaptive grid-generation problems.

The results in this paper make it clear that the anomalies occur becausethe discrete grid-generation problem has many solutions. In the one- free-point problem, the grid undergoes a pitchfork bifurcation as the parametera increases. For grids with a modest number of points on moderate curves,the numerical method finds a multitude of stable solutions while the desiredsolution is unstable, and thus, not computable. This is illustrated in Fig. 5.1,where several anomalous grids, computed using the algorithm described below,are shown.

In this figure, the curves are the parabolas described above. All gridscontain nine points, including the boundary points. The first curve illustratesa typical random grid that was used for the initial condition. The grid on thecurve of height one-half is not anomalous and is, in fact, an excellent result.If the curve is of height one or higher, then the nominal iteration bifurcatesand there are multiple solutions; this is illustrated by the remaining curves.With sufficiently high resolution for a given curve, the method finds a uniqueappropriate solution; however, these grids contain substantially more pointsthan are necessary to resolve the curve.

The analysis given here provides substantial insight into the difficultiesof generating grids on curves and surfaces. More recent results of Knupp [43indicate that there are algorithms that do not have bifurcation problems. How-ever, the algorithms are not a simple modification of the existing variationalmethods.

Many of the algebraic calculations in this paper are done or checked byusing the symbol manipulator MACSYMA [78]. Also, the results in §5.2 canbe made rigorous by formulating them in a Hilbert or Banach space setting.The rigorous results provide no additional insight, so they were not pursued.

5.2. Continuum Case

A continuum grid is merely a reparameterization of a curve. Thus, theproblem is, essentially, to reparameterize a curve using arclength. Suchproblems have been studied by a number of authors (see Steinberg and Roach[67]; or Thompson, Warsi, and Mastin [75]). The questions of the existenceand uniqueness of the grid are settled by giving explicit expression for thereparameterization. The related variational problem is shown to have a positiveHessian, which is not bounded below. Two iterative methods for finding the

Page 77: grid mohammad cfd

62 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 5.1. Anomalous grids.

Page 78: grid mohammad cfd

BIFURCATION OF GRIDS ON CURVES 63

solution of the Euler-Lagrange equation, the fully lagged and the nominal, areanalyzed. The nominal iteration is decidedly superior.

5.2.1. Curves. The arclength and its differential frequently appear in thesecalculations (surprisingly, the curvature does not play a direct role [65]). Leta curve (in vector form) be given by

and its derivative be given by

Then, the r derivative of the arclength s is given by

and the length of a segment of the curve between r = 0 and r is given by

It is always assumed that

which implies that the arclength is always a strictly increasing function of r.For convenience, define

and then note that

5.2.2. Equidistributed Grids on Curves. Equidistribution of pointson a curve requires that the arclengths between gridpoints should be equal.The developments in Steinberg and Roache [66], [67] discuss how to use avariational technique to generate a continuum grid on a curve, so that the gridis distributed according to some given weight. The variational problem forequidistributing the grid is to minimize

over all functions r = r(£) with r(0) = 0 and r(l) = 1. The Euler-Lagrangeequation for the minimization problem is

Page 79: grid mohammad cfd

64 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Recall that 5(r) = L2(r], so, in terms of the differential of arclength, theprevious equation becomes

This boundary- value problem always possesses a unique solution r = r(£) andthe inverse of this solution, £ = £(r), is a normalized arclength, as the followingdiscussion shows.

First, note that r = constant is a solution of the differential equation (withr'(£) = 0). To find another solution, assume that r' is not identically zero.Then, one integration of (5.16) gives

where K > 0 because the left-hand side of (5.18) is greater than or equal tozero, and not identically zero. Also, because S(r) > 0 and K > 0, r'(£) ^ 0.This equation cannot, in general, be solved for r as an explicit function of £.However, the equation can be rewritten as

Another integration and the boundary conditions give

This implies that f is a normalized arclength, s — K £. Note that (5.19)implies that d£/dr > 0, so the previous equation can always be inverted forr = r(£). The inverse function is clearly a nonconstant solution of (5.16).Thus, the continuum grid is given by a normalized arclength; this is exactlywhat is meant by an equidistributed grid.

5.2.3. The Hessian. The functional /(r) given in the previous section hasa minimum at a point f in the space of smooth functions if, for each directiona at the point f, the first derivative of the functional is zero and the secondderivative is positive. More precisely, let a = a(£) and b = &(£) be smooth withsupport in the interior of [0,1]. The directional derivative (in the direction aat f) is given by

while the mixed second derivative is given by

Page 80: grid mohammad cfd

BIFURCATION OF GRIDS ON CURVES 65

The functional has a minimum at f, provided that

for all a ^ 0 satisfying the conditions given above.The computation of Dal and D2I is a straightforward application of

differentiation and integration by parts

The requirement that Dal(f} = 0 for all a implies that

which is nothing but the Euler-Lagrange equation (5.16) for the minimizationof /(r). The discussions in previous sections show that the functional has aunique critical point, which is given by the arclength parameterization of thecurve. However, this critical point is not necessarily a minimum. Even though,in general, there is no simple formula for the critical point of the minimizationproblem (i.e., the solution of the Euler-Lagrange equation), this critical pointis, in fact, always a minimum. To show this, integrate (5.26) (i.e., eq. (5.18)),and then use differentiation and the chain rule to obtain

where K > 0 and r'(£) > 0. Substituting this into the second derivative of thefunctional gives

This expression is always greater than or equal to zero, and can equal zero onlyif the factor in the numerator is zero. Given f, an a that makes the numeratoridentically zero can always be computed. However, the ordinary differentialequation (ODE) satisfied by a implies that if a(£) is zero at one point, thena = 0. Because a has zero boundary conditions, the second derivative ofthe functional is always positive in every allowable direction, and thus, thenormalized arclength parameterization is a minimum. On the other hand, if ais the solution of the ODE except near the boundary points, where a is madeto go smoothly to zero, the integral in (5.28) can be made arbitrarily small,and consequently, the second derivative cannot be uniformly bounded below.This indicates the possibility of serious computational problems.

Example. The family of parabolas given in (5.1) and parameterized by a isused as an example throughout this paper. The parameter a is used to adjust

Page 81: grid mohammad cfd

66 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

the height (= a/4) of the curve. To apply the above results, write the curve(5.1) in parametric form:

The Euler-Lagrange equation for this problem can be integrated (as notedabove). However, this gives an implicit solution for r as a function of £ (infact, an explicit solution for £ as a function of r) that is transcendental andnot explicitly solvable for r as a function of £ (the solution £(r) can easily becomputed using MACSYMA). In any case, this solution is a minimum of thefunctional for any value of a. This is in sharp contrast with what is found fordiscrete approximations of the Euler-Lagrange equation.

5.2.4. The Fully Lagged Iteration. The fully lagged iteration has theworst convergence properties of the algorithms studied. However, in multidi-mensional problems, the analogues of this algorithm require minimal storage,therefore, such algorithms are advantageous when this is a consideration. Thisiteration is written in the form of an integrodifferential equation, so that itsconvergence properties are clear.

The fully lagged iteration is based on writing the differential equationso that the linearized version is as simple as possible (i.e., as much of thedifferential equation as possible is written on the right-hand side of theequation; putting things on the right-hand side of the equation is referredto as lagging). The fully lagged form of the boundary- value problem is

where r = r(£) is to be found and S(r] is a given function. The fully laggediteration is

for n > 0. A typical initial guess is ro(0 = £ •The Green's function for the second derivative with the given boundary

conditions is

where H is the usual Heaviside function. If

then (5.31) is equivalent to

Page 82: grid mohammad cfd

BIFURCATION OF GRIDS ON CURVES 67

with 7*0 given. Note that it is easy to formulate this operator in a Banach spacesetting where F is compact (and nonlinear).

Convergence of the iteration depends on the directional derivative of F atr in the direction c, which was defined as

Here c = c(£), with c(0) = c(l) = 0. If r = F(f) and ||DcF(f )|| < ||c|| , for all cand some appropriate norm, then the Picard iteration converges to f. A shortcomputation gives

The critical quantities in DCF are:

The norm of DCF depends on S' and 5", and both .involve the first, second,and third derivatives of the coordinates of the curve. The curvature of thecurve depends only on the first and second derivatives of the coordinates, soconvergence of the iteration depends on more than the curvature.

Example. For the parabolas given in (5.29), the expressions for the secondcritical quantity is complicated; neither the first nor second expression for thecritical quantity is illuminating. However, the limits of these expressions for alarge show that there are problems:

Note that all limits are infinite for r = ^, so convergence problems are expectedfor large a.

5.2.5. The Nominal Iteration. The nominal iteration keeps as muchinformation as possible in the linearized equation. The boundary-valueproblem is written

Page 83: grid mohammad cfd

68 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

and the iteration scheme is

Set

so that the iteration becomes

Note that

The equation for this iteration can be integrated. Rewrite the iteration as

and integrate with respect to £ to obtain

This implies that r^+1£(rn) = C , or

where

Thus, the iteration can be written as

The directional derivative DcF(r] of this functional involves only one nontrivialterm:

Therefore, the critical quantity to estimate, in order to show convergence ofthis iteration, is Cf = S'(r)/S3'2(r]. The square of this quantity is one of theterms in the curvature, but otherwise it is not closely related to it.

Example. For the parabolas given in (5.29), Cf is complicated; however,Cf is small for o: small or large. The numerical algorithm that implementsthe nominal iteration does converge well for large values of the parameters;however, there is an additional problem, which is explained below.

Page 84: grid mohammad cfd

BIFURCATION OF GRIDS ON CURVES 69

5.3. One-Point Grids

In this section, grids that contain one free point and two fixed-boundary pointsare analyzed and used to illustrate various ideas discussed in §5.2. One-point grids make a good starting point for the numerical experiments thatare described in the next section. In fact, the one-point grid is a far bettermodel than the continuum, even when computing grids that well-resolve thecurve.

5.3.1. Multiple Solutions. The grid is calculated by solving a discretizedversion of the Euler-Lagrange equation,

for r = r(£), 0 < £ < 1. This equation is discretized using centered differences.The one-free-point grid is given by £ = 0, £ = |, and £ = 1; correspondingr = r(0 values are r = 0, r — r(|), and r = 1. Consequently,

The discretized Euler-Lagrange equation for the one free point is then

This is typically a transcendental algebraic equation for the value of r. Asthis equation typically is nonlinear, it can easily have multiple solutions. Thisequation can be integrated as follows:

Now A can be determined from the parameterization of the curve and, again,(5.53) is a transcendental algebraic equation for r.

The numerical algorithms attempt to find a solution of (5.52). Thenumerical grid-generation codes will have difficulties if this equation hasmultiple solutions.

Example. For the family of parabolas given in (5.29), the problem is tochoose a point r that divides this curve into two pieces of equal length (clearly,the solution should be r = |). From (5.13)

and thus

The discretized Euler-Lagrange equation is

Page 85: grid mohammad cfd

70 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

As desired, r = ^ is a solution of this equation. If r ^ ^, then the equationbecomes

If a2 < 2, this equation has no real solutions; if a2 = 2, then r = | is aroot; if a2 > 2, then

are two real roots of the equation. For a large, these roots are approximately

This example shows that the intuitive argument given in Steinberg andRoache [67] about dividing curves into pieces of equal arclength does not applyto all solutions of the discretized Euler-Lagrange equation.

5.3.2. Iteration. Both the fully lagged iteration and the nominal iterationfor a one-point grid are the same because the expression for r' (using centereddifferences) does not involve the unknown point. Recall that the fully laggediteration is based on solving the differential equation for the second derivative:

For one free point, the discretized equation is

The iteration is given by

or

If f is a fixed point, f = g(f) , then the iteration converges if \g'(f)\ < I . Now,

Example. For the parabolas given in (5.29),

Page 86: grid mohammad cfd

BIFURCATION OF GRIDS ON CURVES 71

Consequently, the iteration converges linearly to the solution r = | for a2

and diverges linearly for a2 > 2. Also, (5.58) gives

and therefore, if a2 > 2 then ^'(r^)! < 1 • Thus, when a2 > 2, the root r = \ iunstable, while the roots r± are stable for the iteration. Note that convergenceis quadratic when a = 2, and convergence is slow when a is large.

This example shows that the grid-generation equations can have multiplesolutions, and the desired solution can be unstable for a reasonable solutionmethod. These results are verified numerically in §5.4.

5.4. Numerical Experiments

In this section, some results from numerical experiments that were done withthe nominal iteration are presented. The numerical code implements a Picarditeration scheme for solving the nonlinear equations; the linear equations aresolved using a standard tridiagonal solver. The Picard iterations are runwithout any relaxation; the iteration is stopped when the maximum of theabsolute value of the differences of two successive iterates is less than 10~5.This tolerance is a bit difficult to satisfy, i.e., a fairly large number of iterationsare required. On the other hand, a fairly tight tolerance is needed to distinguishmultiple solutions near the bifurcation point. Other algorithms were tried (seeSteinberg and Roache [65], [66]); none performed as well as the nominal.

First, the results on the problem with one free point are confirmed. Then,larger grids are tested.

5.4.1. Grids With One Free Point. Table 1 contains the results of somenumerical experiments for the parabolas given in (5.1) for various values of a.

TABLE 1One-point grids.

a1.31.4A/2

1.52.02.53.05.0

nliter46200—285111959

r.49995.49914—

.38221

.25000

.20845

.18820

.16089

f.5.5.5.38215.25000.20845.18820.16088

These results confirm the results in the section on one-point grids, includingthe bifurcation of the root at a = \/2- Recall that the grid has two boundary

Page 87: grid mohammad cfd

72 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

points and one free point. The initial grid contains the points r = 0.0, 0.01, 1.0.The initial grid is skewed, so that nonsymmetric solutions will be found. InTable 1, nliteris the number of nonlinear iterations, r is the root computed bythe numerical code, and f is the true root. Note the increase in the number ofiterations as a approaches \/2 either from above or below. Also, as a increases,the numerical solution is | until o: passes \/2, where this root becomes unstaf™ the iteration and one of the spurious roots is computed. Also, note thatthe iteration count increases as a becomes large, as predicted in §5.3.

5.4.2. Larger Grids. The bifurcation points for the nominal iteration aregiven in Table 2. The values of a were computed by noting that the numberof iterations increases and then decreases as a passes the bifurcation point.Because the grids contain an odd number of points, symmetry implies thatthe center point for the desired grid should be at the top of the parabola.As a passed through the bifurcation point, this point falls off the top of theparabola. This is illustrated for a 21-point grid in Table 3.

TABLE 2Bifurcation points.

points21 4.1< a < 4.241 5 .7<a<5 .881 7.6 < a < 7.7

TABLE 3Bifurcation point.a4.14.154.24.34.55.35.5

nlitr972167127141858

center.50021.50094.51507.52881.54408.57491.57999

5.5. Comments and Conclusions

The data in Table 2 indicate that the bifurcation point satisfies

The fact that the bifurcation point grows with the grid resolution is a goodfeature of the nominal iteration; the nominal iteration's limiting behavior, forhigh resolution, slowly approaches that of the continuum model.

Page 88: grid mohammad cfd

BIFURCATION OF GRIDS ON CURVES 73

When numerical experiments are run on the nominal iteration for param-eter values above the bifurcation point, a large number of solutions are found,depending on the initial conditions. No pattern of interest is found in thesolutions; therefore, these results are not presented.

The fact that the discrete grid-generation equations have multiple solutionsis the most important conclusion. Once this is established, changing themethod of solving the discrete equations does not help. If the methodconverges, then the solution found depends on the initial data. What is neededis a new formulation of the grid-generation problem that eliminates the multiplesolutions.

The analysis of the continuum grid-generation problem shows that theEuler-Lagrange equation has a unique solution, and this solution is a criticalpoint of the length functional. Moreover, all second-directional derivatives arepositive at the critical point, so it is a minimum. In sharp contrast to this, alldiscrete algorithms studied have a bifurcation after which the solution of thevariational problem ceases to be unique.

The one-point grid undergoes a pitchfork bifurcation when the parameterin the example curve is increased. The explicit results given for this problemalso provide a check for the numerical codes. The numerical experiments showthe true difficulty; the discrete equations have multiple solutions for curves ofmodest shape and grids that well-resolve the curve.

The analysis done in this paper provides substantial insight into thedifficulties (and possible remedies) inherent in the curve and surface grid-generation problem. There is good reason to anticipate analogous problemsfor solution-adaptive algorithms. Work is now proceeding on developing betteralgorithms [43].

5.6. Acknowledgments

This work was partially supported by the Office of Naval Research and the AirForce Weapons Laboratory.

Page 89: grid mohammad cfd

This page intentionally left blank

Page 90: grid mohammad cfd

Chapter 6

Intrinsic Algebraic Grid Generation

P. M. Knupp

6.1. Introduction

The standard method of algebraic grid generation on planar regions, known astransfinite interpolation, is compared to three new algebraic formulas, termedAlternatives I, II, and III, which are discussed here for the first time. Theselatter fall into a newly identified class termed intrinsic algebraic grid-generationmethods. The method of Gilding is shown to be a member of this class. Gridsproduced with the alternatives are comparable in quality to those obtainedby transfinite interpolation. The three alternatives are shown to be tensorproducts of projectors, rather than Boolean sums, as is the case for transfiniteinterpolation. In contrast to transfinite interpolation, the grids implied bythe alternative methods do not exist for arbitrary regions, but are sensitiveto the locations of the four corners of the physical region. The new intrinsicformulas are shown to lack the property of coordinate invariance under affinetransformations (translation, rotation, inversion, and stretch). The behavior ofAlternative II under translation is examined in detail and shown to be relatedto the idea of Lagrange interpolation of grids. The existence of a limitinggrid (termed the "grid at infinity") is demonstrated for Alternative II; it isshift invariant, and its form is not a tensor product. Finally, a way to exploitthe translation property of such algebraic methods using the direct variationalmethod is given.

6.2. Transfinite Interpolation

In the present notation, the well-known transfinite interpolation formula (see[75]) is:

75

Page 91: grid mohammad cfd

76 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

The first-degree Lagrange polynomials 1interpolation formula. Using the "corner

£, £, 1 — ry, and 77 are used in thiidentities,

it is easy to verify that the pair (x(^,7/),y(^,7y)) matches the given boundaryfunctions and is continuous on (7, i.e., (x, ?/) forms a (possibly folded) grid on 0.Figures 6.1(a), 6.2(a), 6.3(a), and 6.4(a) show grids on four regions generatedby this method. The transfinite interpolation grids shown in Figs. 6.2(a) and6.4(a) are folded. The latter is an example of a grid with a boundary-slopediscontinuity; the discontinuity has "propagated" into the interior of the region,as is characteristic of most algebraic systems.

FIG. 6.1. Four algebraic grids on a "jar-shaped" region: (a) transfinite interpo-lation, (b) Gilding's method, (c) Alternative II, and (d) Alternative III.

Page 92: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 77

FIG. 6.2. Four algebraic grids on a "swan-shaped" region: (a) transfiniteinterpolation, (b) Gilding's method, (c) Alternative II, and (d) Alternative III.

FIG. 6.3. .Fowr algebraic grids on a "horn-shaped" region: (a) transfiniteinterpolation, (b) Gilding's method, (c) Alternative II, anrf (d) Alternative III.

Page 93: grid mohammad cfd

78 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 6.4. Four algebraic grids on a "bridgelike" region: (a) transfinite interpola-tion, (b) Gilding's method, (c) Alternative II, and (d) Alternative III.

DEFINITION . An intrinsic algebraic grid-generation formula is an algebraicgrid formula involving only the boundary functions (including the corners),making no use of "blending" functions. Examples of the "extrinsic" methodare the transfinite formulas (6.1) and (6.2), which make use of Lagrangepolynomials as blending functions. Examples of intrinsic grid-generationmethods are given in the following sections.

6.3. Derivation of Alternative I

The first of the three alternative algebraic grid-generation formulas is derivedin this section. Assume the existence of functions /(T/), <7(7?), h(r]), and k(rf)from 0 < 77 < 1 to R such that the continuum grid (x, y) on J7 is given by

To find /, #, /i, and fc, impose the boundary-matching requirements

Page 94: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 79

This leads to a pair of linear equations for f(rj) and #(77) and another pair forh(r)) and £(77). The solutions to these equations read as follows:

where

and similar relations hold for ^(77) and £(77). Using the "corner identities"(6.4)-(6.6), the pair (z(£, 77), t/(£, 77)) forms a grid on 0, since (fortuitously) thefull set of boundary-matching conditions are met.

6.4. Derivation of Alternative II

The second alternative algebraic grid-generation formula is derived, beingformulated in terms of complex variables. The alternative is shown to be abilinear form. The real and imaginary parts of the second alternative are alsoderived. Let z(£,ij) — x(£,ri)-\-iy(£,r)) and <zi(0 = £i(0 + ̂ i(£)> e^c- Assumez(£, 77) to have the form

where 7(77) and #(77) map U\ (the unit interval 0 < 7 7 < l ) t o C . Imposingboundary-matching conditions gives 7(77) = /(??)/DII and #(77) = g(ij)/Du,where

and

Page 95: grid mohammad cfd

80 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Then z(£, 77) forms a grid, since (again fortuitously) the boundary-matchingconditions hold. Figures 6.1(c), 6.2(c), 6.3(c), and 6.4(c) show grids generatedwith this method. The grid in 6.2(c) is nonfolded, but 6.4(c) remains folded.The form for this grid is symmetric in that if the form

is assumed instead of (6.20), the same grid results.The expressions for Alternative II are simplified if the determinants for

f ( n ) and 0(77) are expanded and substituted into the formula (6.20) to get

If we let M be the matrix with the following elements in C:

written as

where D\\ = det M. The grid z is then seen to be a bilinear form in u andv. Alternatives I and III (see §6.5) may also be expressed as bilinear formssimilar to (6.27).

Alternative II may be separated into real and imaginary parts using thefollowing lemma.

LEMMA 6.4.1. Let Z and W be two 2 x 2 matrices with elements in C:

Page 96: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 81

Proof. The proof of this lemma is a direct computation.COROLLARY 6.4.1.

THEOREM 6.4.1. Alternative II may also be expressed as

Proof. Equation (6.20) may be written as

Applying (6.32) to the denominator results inin (6.35). Also,

= D, where D is defined

Page 97: grid mohammad cfd

82 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

where

Applying (6.30) gives

^ and (6.34) is derivedThe other two terms in (6.34) are derived fromfrom the imaginary parts in a similar manner.

The relations (6.35)-(6.39) could also be derived by assuming the forms(6.33) and (6.34) at the beginning and applying the boundary-matchingconditions.

6.5. Derivation of Alternative III

The third alternative formula is derived and an extension to curves in R3 isgiven. Assume the existence of functions 01(77), 61(77), ^3(77), and 63(77) fromUi to R such that the grid x(£, 77), y(£, 77) has the form

Applying the usual boundary-matching conditions, one finds

where

Page 98: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 83

and

Figures 6.1(d), 6.2(d), 6.3(d), and 6.4(d) show grids generated by AlternativeIII. They are similar to those generated by Alternative II.

This alternative can be extended to fit four curved boundaries in R3 bygeneralizing to the form

and applying boundary-matching conditions. This procedure results in 6 x 6determinants for the unknown functions. Note that the interior is determinedby the boundary functions and so cannot be used to grid an arbitrary surface.However, this limitation is true of the analogous transfinite interpolationformula as well. In general, there appear to be no intrinsic algebraic formulasfor hexahedral volumes in R3.

6.6. Gilding's Method

For comparison with the alternatives presented so far, Gilding's method [34]of intrinsic algebraic grid generation is introduced. Translated into the presentnotation, Gilding's formula reads:

Page 99: grid mohammad cfd

84 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

where

and

Page 100: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 85

with

Since the divisors A(£, 77) and d(£, 77) are functions of £ and 77, it is evident thaGilding's method is distinct from the three previous alternative algebraic grid-generation methods; however, it is yet another example of an intrinsic method,since it makes no use of blending functions. The complexity of the formulas(6.59) and (6.60) makes it doubtful that Gilding's method could be derived byassuming a simple form, as was done in obtaining Alternative I-III. Figures6.1(b), 6.2(b), 6.3(b), and 6.4(b) show grids generated by Gilding's method.The grids are similar to those generated by transfinite interpolation.

6.7. Existence of the Grids

In this section, it is shown that the intrinsic methods do not always exist onarbitrary regions. The transnnite grid-generation formula puts no restrictionson the boundary functions comprising dJ7, thus the grid exists for any region.This is not the case for the intrinsic methods. Grids produced by AlternativeI exist only if D\ (6.19) and D2 are both not zero. The method will succeed orfail to produce a grid, depending on the location of the four corner points ofthe region H, rather than on the four boundary curves. If D\ — 0, then eitherthere exist multiple solutions for /(?/) and 5(77) (as in the case of the unitsquare) or there exist no solutions, in which case no grid may be constructedby this method. Because Alternative I fails to exist for the unit square, as wellas many other regions of interest, it is not studied further.

A similar, but somewhat better, situation holds for Alternative II; gridsmay be generated by this method provided D\\ / 0. Alternative II producesthe standard grid z(£, 77) = £, y(£, 77) = 77 on the unit square.

THEOREM 6.7.1. Let zi(Q) ^ 0. Then DU = 0 if and only if

where w3 = z3(l) - zi(0), wi = z3(0) - ZI(Q), and w2 = Z i ( l ) - ^i(O). //^i(O) = 0, then DU — 0 if and only if wi = 0 or w2 = 0.

The proof involves nothing more than straightforward algebra. Since DUdepends on the corner point zi(0), as well as on the difference of corner points,it is seen that the value of DU is dependent not only on the geometric shapeof the quadrilateral formed by the corner points, but also upon the location of0 in the plane. Therefore, DU in Alternative II can be zero for many regions$7. Fortunately, DU ̂ 0 for many regions of interest as well. From (6.51), it isseen that a similar situation must hold for Alternative III. Gilding's methodmay also fail to create a grid on certain regions [34].

Page 101: grid mohammad cfd

86 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

6.8. Comparison of the Methods

So far, five methods of algebraic grid generation have been presented, threeoriginal ones, and two previously known. It is desirable to compare the variousmethods to determine their strengths and weaknesses. For highly symmetricregions fi all of the methods may produce the same or a similar grid. Forexample, if J7 is the unit square, the standard grid #(£,77) = f, #(£,77) = 7is produced by transfinite interpolation, Alternative II, Alternative III, andGilding's method. Alternative I also produces this grid, but with multiplesolutions for the f(rj) and #(77).

A sufficient condition on 0 that ensures identical grids for transfiniteinterpolation and the three Alternatives is that two opposite sides of II arestraight lines. Then, all four methods reduce to the " shearing transformation":

However, Gilding's method does not reduce to the shearing transformationunder this assumption. Necessary conditions for the equivalence of thesemethods are not geometrically illuminating.

On the other hand, the various methods can produce different grids for agiven region ft. For example, let ft be the region in Fig. 6.5 given by

where />, r, />, and r are arbitrary except for the end conditions p(Q) = 0,r(0) = 0, p ( l ) = 0, r(l) = 0, ,5(0) = 0, f (0) = 0, ,5(1) = 0, and f (1) = 0. Onthis region, transfinite interpolation produces the grid

Alternative I fails since D\ = 0. Alternative II gives

Page 102: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 87

FlG. 6.5. A small perturbation of the logical square.

whereas Alternative III gives the following set of equations:

Gilding's formula for this region is very long and complex (and not worthrecording); it is clearly different from both the transfinite interpolation and theAlternative formulas I-III. Gilding's method can even produce grids differentfrom the other methods when three of the boundaries of J7 are straight lines(e.g., consider the previous example with />(£) = f and r(£) = 0).

6.9. Periodic "Blending" Functions

The three alternative algebraic methods were derived by assuming a formand matching the boundary functions to the form. If this is attempted fortransfinite interpolation, the approach fails. Assume that the mapping functionz(£, 77) has the form

Application of the boundary-matching condition at rj = 0 results in

Page 103: grid mohammad cfd

MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

The obvious solution to this equation is a(0) = 1, 6(0) = 0, and

(6.96) c(£)*2(0) + d(0*4(0) + e(£, 0) = 0.

Similar reasoning on the other three boundaries leads to

where

The function e(£, 77) is indeterminate, except at the corners, where it is requiredthat the following equations hold true:

In general, then, the assumed system (6.94) will be satisfied if e(£,7y) has theform

where the "cardinality conditions" h(Q) = 0, h(l) = 1, /(O) = 0, /(I) = 1,fc(0) = 1, k(l) = 0, 0(0) - 1, and 0(1) = 0 are satisfied. The form (6.94)therefore leads to a nonintrinsic method in that e(£, 77) is not completelydetermined by the boundary functions. The transfinite interpolation formula(6.1) results when h(£) = £, /(?/) = 77, &(£)•= 1 — £, 0(77) = 1 — 77.

The choice of a periodic set of blending functions satisfying the cardinalityconditions leads to the following equation:

Page 104: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 89

where

A similar relation for ?/(£,7?) is obtained by replacing x with ?/ in theseequations. The resulting algebraic grid-generation formula possesses severalunattractive features: (i) it does not reduce to z(£,7?) = £, y(£, rj) — r/ onthe unit square, (ii) it does not reduce to the "shearing transformation" whenopposite sides of 0 are straight-line segments, and (iii) it is not shift invariant.In §6.12, it is shown how some of these features can be turned to advantage.

It is noted in passing that the "periodic" transfinite interpolation formulais the solution to the following partial differential equation:

For comparison, the transfinite interpolation formula with first degree La-grange polynomial blending functions is known [75] to satisfy x^^ = 0.

6.10. Algebraic Methods under Coordinate Transformations

The intrinsic methods do not exhibit the properties of translation, rotation, andstretch invariance that are expected in a grid- generation method. To describethis behavior in detail, the invariance properties are defined for algebraic grid-generation methods. The invariance properties of all known algebraic methodsare cataloged.

Given the four boundary curves zi (£) ,^2(^)5-^3(0 •> ^4(^)7 let z(^rj) be agrid on £1 generated by some algebraic method.

(i) Let ZQ 6 C be added to every point of d£l so that the new boundary is

and let z (£, r/) be the grid generated from the shifted boundary curves by thesame method as was the original grid z(£, r/). Then the grid-generation methodis shift invariant if

for all £,r/ G C/2 and all ZQ 6 C (equivalently, dz /dzo = 1);(ii) Let every point of d£t be multiplied by e1® with 0 < 0 < 2?r, so that the

new boundary functions are 2j(£) = e*ezi(£), etc. Then the grid-generationmethod is rotationally invariant if

Page 105: grid mohammad cfd

90 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

for all £,77 G U2 (equivalently, d2z /dO2 - -z')\(iii) Let d$l be "flipped" about the z-axis by the operation

Then the grid-generation method is mirror flip invariant about the x-axis ifz (£,77) = ^(£,77). A flip about the y-axis is defined similarly, e.g., ̂ (0 =-^i(0, 4(*7) = -^2(7?), etc., so that z (£,rj) = -2(f,7?) is required for y-mirror flip invariance;

(iv) Let d$l be uniformly stretched by r € R+'.

Then the grid-generation method is stretch invariant if z (£,??) = rz(£,n).Most grid-generation methods proposed to date are, in fact, invariant underall the above transformations. However, the alternatives are not invariant insome cases, as shown in Table 6.1 (a "Yes" entry in the table means that themethod is invariant under the given transformation).

TABLE 6.1Invariance properties of algebraic methods.

Algebraic MethodShearing (78, 79)TFI (1, 2)Periodic (107-108)AI (7, 8)All (20)AIII (45, 46)*oo (127)Gilding (59, 60)

ShiftYesYesNoNoNoNoYesYes

RotationYesYesYesNoYesNoYesYes

FlipYesYesYesYesYesYesYesYes

StretchYesYesYesYesYesYesYesYes

6.11. Alternative II under a Shift

In this section, the shifted grid for Alternative II is analyzed in detail. It isshown that the shifted grid may be expressed in terms of a linear combinationof two algebraic forms A(£,rj) and B(£,n). A new algebraic formula forgrid generation, termed the "grid at infinity," is obtained by letting the shift

Page 106: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 91

parameter tend to infinity. Properties of the "grid at infinity" are explored.Finally, it is shown that the shifted grid in Alternative II is related to Lagrangeinterpolation between the unshifted grid and the "grid at infinity."

Let C G C. Consider the grid ^(£,77; £) obtained from Alternative II whenthe boundary values are shifted by adding £. Let the "restored grid," obtainedby shifting z(£, 77; C) back to the original location, be

THEOREM 6.11.1. The restored grid may be expressed as

where

and

Proof. It is easy to show that DH -> .Dn + C^ll under the shift operation:merely replace all the elements of [M]ij in (6.26) by [M]ij + C and evaluatedet(M). Similarly, (6.27) may be used to calculate Z(£,T); £)> from which ZR iseasily obtained.

Figure 6.6 shows ZR on a single region with four different choices of £•The possibility of avoiding a folded grid by choosing the right shift makes themethod attractive. In addition, many different grids may be obtained on thesame region with a minimum of computational effort. This property is usefulin testing initial grid dependencies of iterative grid-generation methods. Theoriginal grid ^(£,77) = <?/?(£, 7?;0) is obtained by setting C = 0 in (6.124),provided DH ^ 0, as previously noted. If EH ̂ 0, a new intrinsic grid formula,the "grid at infinity," ̂ (f , 77) is obtained from lim^i^oo ZR(£, 77; C). One find

THEOREM 6.11.2. The "grid at infinity" is shift invariant.The proof is a straightforward computation using (6.126). ^00(^5^7) is alsoinvariant under rotation, flip, and stretch. It does not exist when EU — 0.It is also easy to show that Zoo(£,??) reduces to the shearing transformationwhen two opposite sides of n are straight lines. Also, applying the boundary-matching condition to (6.127) gives A(f,0) = 2i(0-En» ^K»l) = ^(O^n*^(0,77) = 22(77)£ii, and A ( l , r j ) = 24(77) .En, showing that A(£,rf) = 0 on d$l ifand only if EU = 0.

THEOREM 6.11.3. The quadrilateral defined by the four corners of theregion H is a parallelogram if and only if EU = 0.

Page 107: grid mohammad cfd

92 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 6.6. Shifted grids with Alternative II.

Page 108: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 93

Proof. Suppose EH = 0. Let w\ = ^i(l) — ̂ 1(0)? W2 = ^s(O) ~ ^i(O)?t"4 = z3(l) - *i(l), w3 = z3(l) - *3(0). Then,

Hence, w4 = w2 and 1̂ 3 = wi, so that the quadrilateral has opposite sidesof equal length. The converse follows immediately. Therefore, the "grid atinfinity" exists for all regions fi, except those that have corners forming aparallelogram. z^ is of limited practical value, since many regions of interestpossess corners forming a parallelogram.

THEOREM 6.11.4. // both EH = 0 and DH — 0, then the quadrilateralformed by the corners of i7 is collapsed to a line, i.e., there are only twdistinct corners.

The proof uses Theorem 6.7.1 and EH = 0 to obtain the result in astraightforward computation. Since no one would want to obtain a grid onsuch a collapsed region 0, it is safe to assume that EH and DH are neversimultaneously zero for regions of practical interest. There are then threecases:

(i) DU ^ 0 and EU / 0. Then

where Cc = —Du/Eu is referred to as the "critical point" for the gridClearly, ZR exists, provided C 7^ Cc-

(ii) DU = 0 and EU / 0. Then

Here it is required that £ / 0 in order for ZR to exist,(iii) DU ̂ 0 and EU = 0. Then

Here it is required that | C |< oo if ZR is to exist.The expression DU + (En = -Eii(C ~ Cc) is the "shifted denominator" of

the restored grid ZR(£,T)',£).THEOREM 6.11.5. | DU + C^n | is a constant on circles of radius p about

the critical point Cc •Proof. Let C = Cc + pe*e, where 0 < p < oo and 0 < 0 < 2?r. Then

Page 109: grid mohammad cfd

94 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

If C/(C~ Cc) is replaced by C' in (6.130), the result is ZR = C 2<x> + (1 - C )zo-This shows that the shift property of the alternative methods is closely relatedto the idea of the Lagrange interpolation of grids. Let ZI,ZI,'",ZN be Ndistinct grids on H (with N > 2), and let £, £1, £2? • • • , Ov G C. Define

with fc ̂ n in the product.THEOREM 6.11.6. z(C) € £n /or a// C e C.Proof. Let

Then pn(() is a polynomial in £ of degree JV — 1. Further, pn(00 = ^njb> where8nk is the Kronecker delta. Let S(£) = SjLiPn(C); then S(C) is polynomialin C of degree less than or equal to N — 1. But 5(Cfc) = Z)n=i ^nfc = 1 f°r

A; = 1, 2, - - • , N. Therefore, S(() - I is a polynomial of degree at most N - 1having N zeros, {Ot}- To avoid this contradiction, we must have 5(C) — 1 = 0for all (. Therefore, on 90, z(() = zi, i.e., ^((") matches on the boundary.

The behavior of Alternative I under a shift is similar to that of AlternativeII. The "grid at infinity" in this case may be obtained from (6.126) by replacingz with x and z with #, resulting in the pair (^c»(^5^),2/oo(^7/))- AlternativeIII also exhibits similar properties, with grids at infinity possessing over onehundred terms. They are, however, of limited usefulness, since the shifteddenominators are zero on parallelograms (and even more general classes ofquadrilaterals).

6.12. Grid Control using the Shift Property

The alternative methods under a shift are somewhat limited in their usefulnesssince (i) they possess critical points in the plane at which they do not exist, (ii)they contain very complicated expressions for the shift parameters involvingratios of polynomials, (iii) the shift property vanishes on regions for whichthe alternatives reduce to the shearing transformation, and (iv) they cannobe readily extended to higher-dimensional settings. All of these limitationscan be avoided using the "cardinality" transfinite interpolation form, whilepreserving the shift property

e is the same as e(£,?7) in (6.106), except with x replaced by y. It is easilyshown that the "restored" grid, derived from (6.137) and (6.138) by letting

Page 110: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 95

It is interesting to note that the restored grid in this case is not an interpolationbetween an unshifted grid and a "grid at infinity," but rather is of the formXR = x — pa(£, 77), where a(£, r/) is zero on dQ,.

The shift property of (6.139) and (6.140) may be exploited by minimizinga functional to obtain an ideal grid within the set of grids generated by allpossible shifts. As an example, define the length control functional [19] F(p, q)to be

where

It is easy to show that

where

Page 111: grid mohammad cfd

96 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Two uncoupled linear equations for p and q are found by setting the gradientto zero:

where

The Hessian is positive definite since

The result is a relatively fast noniterative algorithm that gives the minimum"length" over the space of all grids attainable by the shift. Figure 6.7 shows anexample in which the baseline grid generation is the periodic formula (6.107).Other schemes involving different functionals are possible, but the gradientequations are not nearly so simple to solve for the stationary points.

Page 112: grid mohammad cfd

INTRINSIC ALGEBRAIC GRID GENERATION 97

Initial Grid Optimal Grid

FIG. 6.7. Algebraic grids resulting from length minimization.

Page 113: grid mohammad cfd

This page intentionally left blank

Page 114: grid mohammad cfd

Chapter 7

Surface Grid Generation and DifferentialGeometry

Z. U. A. Warsi

7.1. Introduction

This paper is aimed at giving a connected account of the selection of modelequations for the generation of coordinates in a given surface by using the mainresults of differential geometry. It is shown that the solution of the proposedmodel equations satisfies both the equations of Gauss and Weingarten.

The problem of numerical coordinate generation around two-dimensionalshapes in planar regions was initiated by Winslow [85] and Chu [21], andlater extended to more complicated shapes by Thompson, Thames, andMastin [74]. The main contribution of [21], [74], and [85] lies in the choiceof Laplace/Poisson equations as the grid-generation system. The choice ofLaplace equations for the curvilinear coordinate functions in [21], [74], and [85]is based on the simplicity of these equations and, above all, derives from theexistence of a maximum principle for such equations. Using the variationalprinciples, Brackbill [12] later showed that the Laplace system yields thesmoothest grid system. A comprehensive treatment on the foundation andapplications of grid generation in a Euclidean space is available in Thompson,Warsi, and Mastin [75].

The generation of curvilinear coordinates in a curved surface, which forms atwo-dimensional non-Euclidean space in a three-dimensional Euclidean space,required a new effort in the choice of a system of partial differential equations.Warsi [81], [80] has proposed a set of elliptic partial differential equations basedon some simple differential-geometric concepts and results. The starting pointof the work quoted above is that the coordinates in a surface must satisfythe equations or formulas of Gauss. In this paper, and also in [83], themodel so obtained has also been shown to be consistent with the equationsof Weingarten as well. Some numerical results have been given to demonstratethe applicability of the proposed model equation.

99

Page 115: grid mohammad cfd

100 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

7.2. Basic Equations

The basic partial differential equations of the classic surface theory are availablein a number of texts, e.g., Struik [68], Willmore [84], and Kreyszig [44]. Amongthese equations, the most important are the formulas or equations of Gaussand the equations of Weingarten. Denoting the curvilinear coordinates in athree-dimensional Euclidean space by x\ i = 1,2,3, we consider a surfacex3 — const, on which xa, a = 1,2, are the current curvilinear coordinates.The equations of Gauss in relation to the coordinates considered are

while the equations of Weingarten are

where r = (x,y, z] with x,y,z as the Cartesian coordinates, and a lower andupper repeated index implies summation. (Note that the Greek indices rangeover 1 and 2.) In both (7.1) and (7.2), and also in the subsequent analysis, acomma preceding an index in the subscript denotes a partial derivative. Thus,

Further, n is the unit surface normal vector on the surface x3 — const.;gap and 6^ are the coefficients of the first and second fundamental forms,respectively, and T^ are the surface Christoffel symbols of the second kind.Thus,

Besides the above-noted equations, it is useful to introduce the second-orderdifferential operator in the surface theory that appears in Beltrami's formulas[68]. This operator is

where

The operator in (7.4) is appropriately called the Beltramian operator, althoughsome authors prefer to call it the Laplacian operator.

To establish a clear connection between the development of the model equa-tions for surface coordinate generation and the available classical differentialgeometric results, we first state a short resume of some differential geomet-ric results from reference [83]. First of all, the compatibility conditions areobviously

Page 116: grid mohammad cfd

SURFACE GRID GENERATION AND DIFFERENTIAL GEOMETRY 101

Using equations (7.1) and (7.2) in equation (7.5), we get

which are two equations: one for a = l, 0 = 1, 7 = 2, and the other fora = 2, (3 = 2, 7 = 1. These equations are known as the Codazzi equations[44]. The other outcome of (7.5) is the Gauss equation

where

is the Riemann-Christoffel tensor. From (7.7), four distinct equations can beobtained by taking

From the Riemann-Christoffel tensor, the covariant curvature tensor is formedwhich, in the surface theory, has only one distinct component

The Gaussian curvature K is then

K = #1212 / GZ .

The fundamental theorem of the surface theory is now stated as follows:

If ga@ and 6Q/g are sufficiently differentiable given functions of xl and x2, which satisfy the Gauss-

Codazzi equations (7.6) and (7.7) with GS ^ 0, then there exists a surface which is uniquely

determined except for its position in space.

In contrast to the results stated above, the aim of the surface coordinategeneration is to generate x,y,z and then to obtain all other geometricquantities ga/3, bap, etc., for a given surface. Despite the difference in aim,the availability of the equations of differential geometry makes the task offorming the model equations for surface grid generation more systematic andfrees one from making a number of unnecessary and arbitrary assumptions.The following subsection deals with the formation of the model equations forsurface grid generation.

7.3. Model Equations for Grid Generation

With the aim that a set of partial differential equations be formed from theavailable equations of differential geometry, we propose to use (7.1) and (7.2)so as to have the Cartesian coordinates as the dependent variables and the

Page 117: grid mohammad cfd

102 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

curvilinear coordinates as the independent variables. Thus, following [81]-[83],we perform the inner multiplication of (7.1) by ga(3 and obtain

where from (7.4),

and

Here ki and ku are the principal curvatures at a point in the surface. Using

we can rewrite (7.9) as

where x1 — £, x2 = 77, and

Equation (7.10) provides three scalar equations for the determination of x, y, zwhen P = A2£ and Q = A2rj are arbitrarily specified functions. As shown inreference [83], starting from the identity

where

and using the Weingarten equations (7.2), one gets

where A2r is the left-hand side of (7.9). From this result, we conclude that themodel equation (7.10) satisfies the equations of both Gauss and Weingarten.

Page 118: grid mohammad cfd

SURFACE GRID GENERATION AND DIFFERENTIAL GEOMETRY 103

FIG. 7.1. Coordinates on an elliptic truncated cone: x2/a2+ y2/b2— (h —z)2/c2 —

0 from ZQ = 0.5 h to z\ = 0.0; a = 1.0, b - 0.5, c = 4.0, h = 4.0.

7.4. Numerical Results

Equations (7.10) have been solved by using the point and line SOR techniquesfor a large number of body shapes [82], [77]. Here, for the purpose ofdemonstration, we have provided some results for a few geometric shapes (seeFigs. 7.1 and 7.2). The differential equations (7.10) need the specification ofDirichlet-type boundary conditions on the boundaries. These equations havealso been solved for multiply connected surfaces [82].

From

7.5. Conclusion

This paper develops a set of model equations for the generation of curvilinearcoordinate curves in a given surface. It is demonstrated by using the resultsof differential geometry that any solution of the set of equations (7.10) willsimultaneously satisfy the equations of both Gauss and Weingarten.

Page 119: grid mohammad cfd

104 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 7.2. Coordinates on the surface: z = h sin (irx/a) sin (?ry/6), ai < x <

7.6. Acknowledgments

This work is an outgrowth of the research supported by the Air Force Officeof Scientific Research, through grant AFOSR-85-0143.

Page 120: grid mohammad cfd

Chapter 8

Harmonic Maps in Grid Generation

A. Dvinsky

8.1. Introduction

The grid is an integral part of numerical models constructed using finite-difference and finite-element discretization methods. It is known that theefficiency of numerical discretization methods is enhanced when boundaryconditions of modeled problems are applied without interpolation and a regularpattern of connectivity between grid nodes is present. These two requirementsare satisfied when the grid is obtained from coordinate transformation suchthat the boundaries of the considered domain are represented by constantcoordinate lines or surfaces. In addition to adapting to the boundaries, thecoordinate transformation can be made to adapt to important features of thesolution, such as singularities and boundary layers. Such an adaptation isdone either prior to solving the numerical problem on the basis of a prioriinformation about the solution or dynamically by adapting to the evolvingsolution.

Two very successful adaptive grid methods have been built by enhancingthe Laplace-equation-based grid generator proposed by Winslow [85] toprovide grid control. Thus Godunov and Prokopov [35] proposed to use asystem of Poisson equations for grid generation. The left-hand sides of thissystem were Laplacians operating on curvilinear coordinates, while the right-hand sides contained terms for grid control inside the solution domain. Toensure adequate control over the grid node distribution at the boundaries, thePoisson equations are solved mainly with Dirichlet boundary conditions. Themain contribution to further developing and refining the Poisson equation gridgenerators was made by Thompson and his colleagues. An equidistributionapproach by Anderson [3] seems to be the most promising of the solution-adaptive strategies for these grid generators. Although Godunov and Prokopovwere able to formulate right-hand sides in such a way that the grid equationssatisfied existence and uniqueness conditions, this is not true for arbitraryPoisson equations.

The second method was proposed in the mid-seventies by Yanenko and

105

Page 121: grid mohammad cfd

106 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

coworkers (Yanenko, Danaev, and Liseikin [86]; and Liseikin and Yanenko[47]). The authors formulated their approach as a minimization problem,which is probably the most natural framework for building solution-adaptivegrid generators. The minimization was carried over a linear combinationof several functionals, each measuring a certain property of the coordinatetransformation. By manipulating the coefficients in the linear combination,different properties of the resulting mapping are emphasized. It is important topoint out that one of the functionals in this system is always the "smoothness"functional, which measures the deviation from the conformal mapping andhas as the corresponding Euler-Lagrange equations, Laplacians. Therefore,this approach can be looked at as the extension of the Laplacian-based gridgenerator.

The Yanenko method has not received as much attention as the Godunov-Thompson method because of its relative complexity. In addition to alreadycited papers, Brackbill and Saltzman [11] used the above approach to combinethe smoothness, orthogonality, and cell size measure functionals to producethe appropriate grid generators. The method has also received attention overthe last several years from Castillo and colleagues, who analyzed and furtherrefined this approach (e.g., Castillo [19]). Similar to the Godunov-Thompsongrid generators, the existence and uniqueness conditions for most of the grid-generating systems produced using the Yanenko approach are not known.

In this chapter we will present a new method for generating solution-adaptive grids. The method can be thought of as yet another generalizationof the basic Laplacian grid generator. However, unlike the two methodsdiscussed above, which in one way or the other add terms or functionals tothe Laplacian for grid control, the present approach uses a single functionalthat already contains all the necessary "tools" for grid control. In additionto compactness, the harmonic maps have another important advantage—existence and uniqueness theorems for one-to-one transformations which ensurereliability of grid generators based on harmonic maps.

The rest of this chapter is devoted to the description of solution-adaptivegrid generators based on harmonic maps. For additional information, thereader is referred to Dvinsky [25], [26] and to Chapters 9 and 10 in thisvolume. The following sections provide the necessary background for harmonicmaps and formulate sufficient conditions for the existence and uniqueness ofharmonic maps (§8.2), discuss and illustrate the concepts presented in theprevious section on simple examples (§8.3), formulate adaptive Riemannianmetrics (§8.4), show examples of adaptive grids for a convection-diffusionequation (§8.5), and provide the summary (§8.6).

8.2. Harmonic Maps: Definitions and Relevant Theorems

In this section, we introduce harmonic maps and state sufficient conditionsfor their existence and uniqueness. This subject demands considerably moremathematical presentation than is required elsewhere in this chapter. To make

Page 122: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 107

this work more accessible to nonmathematicians, we reiterate and illustrate themain results of this section in §8.3, without the accompanying mathematicalrigor.

The theory of harmonic maps is relatively new. Harmonic maps havebeen denned and named by Fuller [31]. However, until Eells and Sampson's[28] fundamental work, this area of mathematics had not received much study.Since the publication of that paper, harmonic maps have attracted considerableattention from both mathematicians and physicists (e.g., Misner [51]). Thedevelopment of the theory followed two paths: the study of the existence,uniqueness, and regularity of harmonic maps (e.g., Schoen and Uhlenbeck [58];Hildebrandt [38]; Jost [41]), and the applications of harmonic maps to differentareas in mathematics (see, e.g., the proof of the contractibility of Teichmullerspace by Jost [40]). In this work we are primarily concerned with the firstpath.

Suppose that X and Z are Riemannian manifolds of dimension n withmetric tensors gap and Gij in some local coordinates xn and zn, respectively.If x : Z — » X is a C1 map, we define the energy density by

Energy associated with the mapping x is then

If x is of class C2, E(x) < oo, and a; is a critical point of E, then x is calledharmonic. The corresponding Euler equations are given by

where G — det(<7t-j) and T^g are Christoffel symbols of the second kind onx. Thus, we have obtained a system of partial differential equations, wherethe principal part is a Laplace-Beltrami operator, while the nonlinearity isquadratic in the gradient of solution.

Next, we formulate sufficient conditions for the existence and uniquenessof harmonic maps. The theorem shown, referred to here as the HSY theorem,is due to Hamilton [36] and Schoen and Yau [57].

THEOREM 8.2.1 (Hamilton-Schoen-Yau (HSY)). Let ( X , p ) , (Z,v) be twoRiemannian manifolds with boundaries dX and dZ, and 4> : X — > Z be adiffeomorphism. For any map f : X — * Z such that f\gx = <t>\dx> we defineE(f) = f x || df ||2 dX . We say that f is harmonic if it is an extremal of E.

THEOREM 8.2.2. If the curvature of Z is nonpositive, and dZ is convex(with respect to metric v], then there exists a unique harmonic map f : X — > Zsuch that f is a homotopy equivalent to <$>. (In other words, f can be deformedto 4>.)

Page 123: grid mohammad cfd

108 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

The HSY theorem is valid for n- dimensional, multiconnected domains. Forcertain choices of metrics in the mapped domains, the theorem reduces tothe maximum principle for linear elliptic partial differential equations (e.g.,Birkhoffand Lynch [9]). .

8.3. Application of the HSY Theorem

The HSY theorem states sufficient conditions for the existence and uniquenessof harmonic maps — solutions to (8.3). Suppose X is a given physical domainand Z is a constructed (computational or logical) domain. Then accordingto the theorem, a harmonic Z — » X map exists and is one-to-one when thefollowing two conditions are satisfied:

1. The curvature of X is nonpositive, and2. dX is convex.

The first condition can be readily satisfied by defining an appropriate metric,for example, Euclidean, on X. (The Euclidean space is "flat," i.e., it has zerocurvature.) If, in addition, the boundary of the physical domain is convex, theZ — » X mapping can always be accomplished.

The equation used to accomplish X — > Z harmonic mapping is given by

where g = det(^-j) and F are Christoffel symbols of the second kind on z.This mapping is guaranteed to exist and to be unique when the computationaldomain Z has both the nonpositive curvature and the convex boundary.Since Z is obtained by construction, both requirements can always be met.Therefore, in general, it is better to use an X — > Z map, since in such acase a diffeomorphism is assured under conditions of the HSY theorem. Thedisadvantage of the latter mapping is that it requires one to solve the inverseof (8.4), which is significantly more complex than (8.3).

The following two examples illustrate the above discussion regarding thedirection of mapping. Consider (8.3) for mapping between two Euclideandomains, that is, g±j — Gij = %, where 6{j is the Kronecker delta:

where ( x , y ) G X and (£,77) G Z. The map shown is Z — >• X and hence, tosatisfy the HSY theorem, X has to have a nonpositive curvature and OX mustbe convex. The first condition is satisfied because we set g^j = <$t-j, whichimplies zero curvature. Then, if dX is convex we will be able to obtain a gridindependently of the shape of dZ. It can be shown that, if equations (8.5) and(8.6) are discretized using central differences, the above statement is valid forany grid density, since the discretized equations satisfy the maximum principle.Suppose we map domain Z, shown in Fig. 8.1(a), onto a unit square, domain

Page 124: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 109

X. The resulting grid is shown in Fig. 8.2. If, however, dX is not convex (asis the case for domain Z shown in Fig. 8.1(a)), a solution to equations (8.5)and (8.6) may not exist. In fact, such a mapping was attempted by Amsdenand Hirt [2], who mapped a square logical domain onto a domain similar tothe one shown in Fig. 8.1(a). In their calculation, the grid folded as it did inour calculation, shown in Fig. 8.3.

Consider now a harmonic map in the opposite direction, X —» Z, which isgiven by a solution to (8.4). As in the previous example, assume a Euclideanmetric in both domains. The resulting system is the same as the one originallyproposed by Winslow [85]:

FIG. 8.1. Examples of domains with a concave boundary (a) and a convex

boundary (b).

A map by (8.7), (8.8) exists and is a diffeomorphism for convex dZ. Theusual way to solve this map is, however, to transform it to the logical spacevariables. The transformation yields the following quasi-linear system ofequations (Thompson, Warsi, and Mastin [75]):

where #22 = %%+2/^<7n = xl+y%-> an(^ #12 = x^x^+y^. Although the solutionof (8.9), (8.10) must be the same as that for (8.7), (8.8), and hence must be adiffeomorphism, it is not obvious that any consistent finite-difference form of(8.9), (8.10) produces a diffeomorphism for any grid density. Our experience,however, has shown that (8.9), (8.10) is indeed very robust for a wide varietyof problems.

Here we would like to mention just one peculiar example of using (8.7), (8.8)and (8.9), (8.10); a detailed discussion of this case can be found in Dvinsky

Page 125: grid mohammad cfd

110 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 8.2. Mapping of domain shown in Fig. 8.1(a) onto domain in Fig 8.1(b)using equations (8.5) and (8.6).

FIG. 8.3. Mapping of domain shown in Fig. 8.1(b) onto domain in Fig. 8.1(a)using equations (8.5) and (8.6).

Page 126: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 111

[26]. Consider a map of a square physical domain onto a computational domainshown in Fig. 8.1(a) using (8.7), (8.8). Except for notation, this is exactly thesame problem we calculated above using (8.5), (8.6); this problem did not havea solution. By solving (8.9), (8.10), however, we obtain a one-to-one map.

A few words now about the numerical solution of (8.3). This equationis discretized using second-order central differences for second derivatives.Using the second-order central differences for approximation of the firstderivative, however, causes the appearance of oscillating modes for high valuesof G^T^p. One way to eliminate these modes is to use one-sided (upwind)first-order accurate differences for the first derivatives. But accuracy of thisapproximation is often not sufficient, especially for two- and three-dimensionalproblems where one is often forced to use rather coarse grids. (We assumethat (8.3) describes a nearly optimal coordinate transformation and hence itsaccurate solution is important.) A simple remedy in this case is to use aproduct of forward and backward one-sided first-order accurate differences,for example, in one dimension, x2

z w (xt-+i — x±)(xi — z;_i). The resultingapproximation of the nonlinear term is then second-order accurate.

We tried several different approaches to linearize (8.3). The Picardlinearization, when the nonlinear terms are calculated explicitly (e.g., Ames[1]), does not work for large values of G^T^. We also tried

where n is the iteration level, and the Newton linearization

Both of these procedures worked well in our tests for any value of G^T^p.

8.4. Formulation of Riemannian Metrics

To be able to use harmonic maps for solution-adaptive grid generation, one hasto formulate an expression for Riemannian metrics in the mapped manifolds.For the convenience of discussion, we will differentiate between two types ofadaptation: geometrical and physical. We term geometrical adaptation as theprocess in which the grid clusters in specified (fixed) geometric locations. Thephysical adaptation is defined as the usual solution-adaptive process in whichthe grid is adaptively modified in response to evolving physical solution.

We will consider geometrical adaptation first because it is somewhatconceptually simpler than the physical one, while at the same time it willenable us to introduce all the necessary elements for the physical adaptation.We will start with a simple quasi-one-dimensional problem, where we will tryto generate a grid clustered around a straight vertical line midway in a squarephysical domain X. We will use an X — > Z mapping. The logical domain,

Page 127: grid mohammad cfd

112 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

denoted by Z, is, for this problem, a rectangle, the size of which is determinedby the number of grid nodes selected in respective directions. First, we want tomake sure that the curvature of the logical domain is nonpositive by defining

The next step is to define the physical space metrics gij. To provide ahigher resolution, the metrics should increase in specified locations and revertto their original state away from these regions. In addition, we want the metricto adapt to the shape of the attraction lines, which in this example is just astraight vertical line. Such a metric can be written as

where x = x0 is the selected line of attraction and f ( x — x0) is defined to havea maximum when x = x0 and f(x — x0) —»• 0 as (x — x0} -» oo. An example ofsuch a function is given by

where A and B are positive constants controlling the amplitude and the rateof decay of /(.).

A two-dimensional example is provided by attraction to a circle in thephysical domain. Consider a rectangular physical domain and a circle of radiusR with its center at (zc,yc), so that the entire circle is inside the domain. Wewant to construct a Riemannian metric that would expand at the rim of thecircle and decay to the standard Euclidean metric as the distance from therim increases. Noting that a circle is a straight line in polar coordinates, wecan immediately write the expression for the metric using the results of theprevious example:

where p2 = (x — xc)2 + (y — yc)

2 and R is the radius of the circle.These results can be generalized for attraction to an arbitrary curve, point,

or any combination thereof. Suppose that the attraction locations are givenby function F(x) = 0, {x} = {x1,^2,^3}. It then follows that

where /(-F) is a function of the distance from a given point to F(x) = 0such that f ( F ) increases as the distance tends to zero and goes to zero as the

Page 128: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 113

distance increases, and the subscript denotes the partial derivative with respectto x\ Thus, the adaptive Riemannian metric consists of the Euclidean 6ij and anon-Euclidean part, f(F)(FxiFxj/(VF)2). The non-Euclidean part is in turna product of the magnification factor, /(F), which controls the magnitudeof the metrics and the directional factor, Fxi Fx, /'(VF)2, which modifies themagnitude, depending on the direction of selected contour lines.

Equation (8.17) requires calculation of the shortest distance from each gridnode x0 to F(x) = 0, which is computationally expensive. This calculation,however, can be readily eliminated if we notice that F(x0) is a measure ofdistance from x0 to F(x). Incidentally, in both previous examples, F(x0) isexactly the shortest distance between x0 and F(x).

Using the above modification to (8.17), we calculated an example of a gridattracted to two intersecting straight lines, y = x and y = -x + 1, so thatF = (y — x)(y + x - 1). The grid shown in Fig. 8.4 was calculated fromequation (8.4), with g{j from (8.17), G{j = <^, and f ( F ) = F(x,y).

FlG. 8.4. A grid adapted to two intersecting lines, y = x and y = —x + 1.

The procedure for the geometric adaptation described above can be readilyextended to the physical adaptation. Suppose one can formulate a scalarfunction that characterizes and monitors the essential features of the physicalproblem. Fortunately, this often can be accomplished, since the evolvingsolution is usually controlled by just a few critical variables. These variables,or some suitable function of them, can then be combined into a single scalarfunction, the characteristic function. Recall that the expression for Riemannianmetrics (8.17) adapts the metrics to the contours of the continuously ordiscretely specified scalar function F(x). Therefore, once the characteristicfunction is defined, the physical metrics are given by the same expression as

Page 129: grid mohammad cfd

114 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

the geometric ones. Examples of the physical adaptation are shown in the nextsection.

8.5. Numerical Examples

In this section we show how to apply the concepts presented above to thenumerical solution of the convection-diffusion equation

with the exact solution given by

where R and a are parameters. The solution of (8.18) is first calculated ona unit square with a uniform mesh. Once the solution is obtained, we useit to define a characteristic function, which is, in turn, employed to form aRiemannian metric in the physical space. Next, the adaptive grid is obtainedfrom harmonic maps. Equation (8.18) is then solved on the adapted grid, andits solution is compared with the solution obtained on the uniform grid.

Equation (8.18) is solved as follows. First, it is transformed to curvilin-ear coordinates and then discretized using central differences for second-orderderivatives and first-order upwind differences for first-order derivatives. Theresulting difference equations are solved using the Red-Black Successive Over-relaxation (SOR) method with Chebyshev acceleration to machine accuracy(6-7 digits on our 32-bit machine).

We use (8.4) to calculate the coordinate transformation. To assure thenonpositive curvature on Z, the metric in the computational domain is assumedto be Euclidean. As a result, the nonlinear terms in (8.4) vanish identically toyield

Equation (8.20) is inverted to computational coordinates and discretized usingcentral differences both for the first- and second-order derivatives.

During the adaptive grid calculation, as the grid moves away from itsinitial position, the characteristic function is no longer available at the newlocations. To obtain the characteristic function at these locations, one eitherhas to recalculate the physical problem, in our case solve (8.18), or interpolatethe characteristic function after each iteration on grid equations to new gridlocations. Both procedures in the "real-life problems" are quite expensive.Nevertheless, to demonstrate the potential of the method, we calculate bothexamples in a coupled fashion. The coupling, however, is effected in a "quasi-coupled" fashion (see below), where the grid is calculated to full convergencefor each F field until the next iteration is started. Such a procedure allows oneto clearly see the effects of coupling on the solution.

In the first example, we used the Dirichlet boundary conditions in an effortto maintain consistency with the HSY theorem. For example, y = 0 and

Page 130: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 115

x = (i — l)/(/max — 1)? where i = 1,2 • • •. The parameters in (8.18) were set toR = 10 and a = TT. The numerical solution calculated on the uniform Cartesian12 x 12 grid is shown in Fig. 8.5 and the error E, E = (| [u]ij - Uij |)/(1 - e~R),is shown in Fig. 8.6. [u]ij and u^j are the analytical and numerical solutionsat the grid node (i,j), respectively. Although we used 11 contours in allfigures, sometimes fewer than 11 contours are visible, which indicates thatmaximum and/or minimum coincides with the boundary or the maximumand/or minimum contour is just a single point.

FIG. 8.5. Contours of u calculated from equation (8.18).

FIG. 8.6. Contours of E after the first iteration. E = 0 at the boundary andx w a < ( a ? , y ) = (0.85,0.33).

The maximum error and the average error per grid node for the solution

Page 131: grid mohammad cfd

116 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

calculated on the uniform grid are Emax = 0.103 and Eav — 0.00367,respectively. In this example, the characteristic function is defined to be thenumerical solution itself, that is, Fij = U{j, while function /(F), from (8.17),is defined as f ( F ) = I + (VF/VFav). We adopted the following procedure toobtain the adaptive grid:

1. Solve (8.18) to roundoff;2. Calculate the grid from (8.20), also solved to roundoff;3. Repeat steps (1) and (2).As we stated earlier, we followed this rather inefficient procedure instead

of employing a solution that was either simultaneous or sequential, with just afew inner iterations, because we wanted to show the effect of coupling on theresulting solution.

The first iteration of the above algorithm yields the grid shown in Fig. 8.7.The maximum and average error for the adapted grid solution are Emax =0.0557 and Eav = 0.00229, respectively. The corresponding error contours areshown in Fig. 8.8.

FIG. 8.7. The adapted grid after the first iteration.

The maximum and average errors for the second iteration were Emax =0.0447 and Eav = 0.00186; for the third, £max = 0.0400 and £av = 0.00165;and for the fourth, Emax = 0.0369 and Eav = 0.00155, respectively. The gridcalculated in the fourth iteration (i.e., the one based on the solution from thethird iteration) is shown in Fig. 8.9. The error contours for the fourth iterationare shown in Fig. 8.10.

As the iteration continues, the grid becomes more skewed. Thus theaverage angle after the first iteration is 78°, with 85 percent of the anglesbeing greater than 67.5°; while after the fourth iteration the average angle

Page 132: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 117

FIG. 8.8. Contours of E calculated on the grid shown in Fig 8.7. Emax is at(s,y) = (0.84, 0.44).

FlG. 8.9. The adapted grid after the fourth iteration.

Page 133: grid mohammad cfd

118 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FIG. 8.10. Contours of E calculated on the grid shown in Fig. 8.9. E(ar,y) = (0.83, 0.57).

is at

drops to 66°, with 7 percent of the angles being less than 45° and 44 percentof the angles measuring between 45° and 67.5°.

In the second example, we use the following boundary conditions for thegrid equations (8.20):

and

and finally x2(zl,z2n&K) = 1 and 8xl/dz2

x2=1 = 0, where for all x{ 6 [0, 1] and

for all z* e [l,2maxl- Since Neumann conditions are used, the HSY theoremno longer applies to this mapping. The effect of using the Neumann condition,if the mapping exists at all, will be to reduce the grid skewing and hence,possibly, to improve the solution accuracy. The boundary conditions for thegrid equations is the only difference between this and the previous example.

The grid obtained after the first iteration is shown in Fig. 8.11. Themaximum and average errors for the adapted grid solution are Emax = 0.0589and E&v — 0.00231, respectively. The corresponding error contours are shownin Fig. 8.12.

The maximum and average error, for the second iteration were £max =0.0445 and Eav = 0.00172; for the third, £max = 0.0416 and £av = 0.00151;and for the fourth, £max = 0.0391 and Eav = 0.00141, respectively. The gridcalculated in the fourth iteration (i.e., the one based on the solution fromthe third iteration) is shown in Fig. 8.13. The error contours for the fourthiteration are shown in Fig. 8.14.

Page 134: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 119

FIG. 8.11. The adapted grid calculated with Neumann boundary conditions afterthe first iteration.

FIG. 8.12. Contours of E calculated on the grid shown in Fig 8.11. Emax is at( x , y ) = (0.88,0.33).

Page 135: grid mohammad cfd

120 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

FlG. 8.13. The adapted grid calculated with Neumann boundary conditions afterthe fourth iteration.

FlG. 8.14. Contours of E calculated on the grid shown in Fig 8.13.y) = (0.74, 0.57).

Emax is at

Page 136: grid mohammad cfd

HARMONIC MAPS IN GRID GENERATION 121

As expected, the grid in this simulation is less skewed than the grid inthe first one. Thus, the average angle after the first iteration is 78°, with 83percent of the angles being greater than 67.5°; and after the fourth iteration theaverage angle is 76°, with 21 percent of the angles measuring between 45° an67.5°, and the rest measuring greater than 67.5°. The somewhat unexpectedresult is that the improved grid properties have not improved the numericalsolution.

The examples presented in this section illustrate how the concepts shownin this work can be applied to generating adaptive grids for a model diffusion-convection equation. Using a simple, common-sense formulation for thecharacteristic function, we have obtained grids that have helped to reduce theerror in the maximum norm by almost a factor of three. It is also notable thatwe have not used any adjustable parameters in the definition of the metrics.We believe that still better results could be achieved, provided there existsan optimal formulation for the characteristic function. Developing generalguidelines and rules for such a formulation, possibly just for certain classes ofthe partial differential equation, will be the subject of future research.

8.6. Conclusions

In this chapter, we described a new framework for adaptive grid generationbased on the principles of differential geometry. In particular, we have utilizedan apparatus of harmonic maps for our construction. The described methodhas several attractive features, such as compactness of the governing equations,clarity of formulation, and reliability. The feasibility and effectiveness ofthe proposed approach were established by formulating adaptive Riemannianmetrics in mapped domains and actually performing the numerical mapping.In addition, we investigated the question of the existence and uniqueness ofharmonic maps and formulated sufficient conditions for our application usingresults by Hamilton [36] and Schoen and Yau [57].

8.7. Acknowledgments

The author thanks Professor David Kazhdan of Harvard University for manyuseful discussions and suggestions during this work. The author would also liketo thank Jacqueline Temple for her efforts in the preparation of this manuscript.This research has been sponsored by National Science Foundation grant ISI8660378.

Page 137: grid mohammad cfd

This page intentionally left blank

Page 138: grid mohammad cfd

Chapter 9

On Harmonic Maps

G. Liao

9.1. Introduction

Harmonic maps between Riemannian manifolds ft and ft are critical points ofthe energy functional. In the special case, when both ft and ft are domainsin Euclidean space, a harmonic map (p from ft into ft satisfies the Laplaceequation A</> = 0. In the general case, when ft and ft are equipped withRiemannian metrics g and </, respectively, the harmonic map equation is asemilinear elliptic system, which will be derived in §9.3.

In the case n = dim ft = dim ft = 2, harmonic maps (and solutions toPoisson equation A</? = /) have been successfully used to generate grids incomputational problems (see [76], [4]).

Let (p : ft —» ft be a mapping, where ft C Mn is a bounded domain (thephysical domain),

ft = [ai,&i] x . . - x [an,6n]

(the computational domain). To generate grids in ft, one approach is tosolve A(/? = 0 subject to the boundary condition that <p restricted to 9ft isa prescribed homeomorphism from 9ft to 9ft. The maximum principle of theLaplace equation (and elliptic equations in general) guarantees that the imageof ft by (p will be contained in ft, since the image of 9ft is contained in 9ft.The main mathematical problem here is to make <f> a diffeomorphism, i.e., theone-to-one, onto, and Jacobian conditions of (p do not vanish.

In the case where n = 2, the mathematical foundation of this approach issolid. We have Theorem 9.1.1, which is due to Rado [55].

THEOREM 9.1.1. Let ft and ft be simply connected bounded domains in I2.Let ft be convex. Let (p : ft —> ft be a harmonic map such that (p : 9ft —» 9ftis a homeomorphism. Then, the Jacobian of (p does not vanish in the interiorof ft.

Remark. From this it follows that, in fact, <p is one-to-one and onto, andhence, a diffeomorphism. For a proof of this, one can see Theorem 2 of [50].

Rado's theorem can be proved by the following steps (see, e.g., [48]):Step 1. Introduce the coordinates ( x , y ) G ft and (u,v] € ft (see

123

Page 139: grid mohammad cfd

124 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Fig. 9.1). Assume that J = (D(u,v))/(D(x,y)) = 0 at an interior pointP0 — (x0,t/0) £ Q. Then there exists c\ and c2 E H1 such that at P0

Let h = GIU + c2v. Then A/i = 0 and

where

Step 2. Expanding h at P = P0 in terms of spherical harmonics, we get

where Sk is a fcth-order homogeneous harmonic polynomial. The linear termis missing because V/i(P0) = 0.

Step 3. It follows that the level set L = {P G Sl\h(P) = h(P0)} has atleast four branches joining at P0. In fact, by Courant's nodal line theorem,these branches form an equiangular system of rays at P0 (see Fig. 9.2).

Step 4. These rays cannot close off in the interior of D. Otherwise, hmust be constant according to the maximum principle. This would imply thatthe image of dD by (p is contained in a straight line c\ u + c2 v = h(P0}, acontradiction. Thus, these rays must go all the way to the boundary dD, andL n dD contains at least four points (see Fig. 9.3).

Step 5. Since a straight line intersects the boundary dD of a convex domainD at no more than two points, we get a contradiction: at least four points ofdD are mapped by <p to two points of dD (see Fig. 9.3).

FIG. 9.1

In the case where n > 3, the problem becomes much more involved. Theanalogue of Rado's theorem is not known. The main purpose of this articleis to analyze the three-dimensional geometry and to identify some of thedifficulties that stay in the way of applying harmonic maps in three-dimensionalgrid generation. In particular, we will point out that for n — 3, Step 3 isunclear, and Step 4 is not true. Our main reference is a paper by Lewy[45], who constructed explicit examples of nonconstant harmonic functions

Page 140: grid mohammad cfd

ON HARMONIC MAPS 125

FIG. 9.3

h = M3 -» M1, whose level set L = {P e d£3|/i = 0} divides dB3 into exactlytwo components. Thus, even Rado's theorem may still be true for n = 3, thestraightforward extension of its proof, which is outlined above (see also [50]),is false.

9.2. Hans Lewy's Example

Next, we will outline the construction of a class of harmonic functions withthe stated property. We begin with some terminology.

DEFINITION . A real- valued function h(x, y, z] is called a spherical harmonicof degree k if h is a polynomial of degree k such that

and

DEFINITION. The set {(x,y,z) G M3 | x1 + y2 + z2 = 1, h(x,y,z) = 0} iscalled nodal lines of /i.

Lewy's main idea is to perturb the harmonic function Im(x + i y}k on thezy-plane, whose nodal lines are straight lines through the origin. The x-axisis one of them. Any two adjacent nodal lines form an equal angle Tr/4 (seeFig. 9.4).

In M3, using the homogeneity allows one to write that, for z ^ 0, /i(x, y, z} =zkh(x/z, y/z, 1). Thus, the study of nodal lines can be reduced to a two-variable problem. Let N = the North Pole = (0,0,1); S = the South Pole= (0, 0, -1). Then, the nodal lines of Im (x + iy)k on S2 are great circles goingthrough N and 5, forming an equal angle TT /k (see Fig. 9.5).

FIG.9.2

Page 141: grid mohammad cfd

126 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Now, a small perturbation -ef(x,y,z) is added to Im(x + iy)h, where/ is a spherical harmonic of degree k with /(0,0,1) > 0. Let h = Im(x + i y}k — € /(#, y, z}. There are several cases:

(1) Near N, we have ef(x,y,z) = ezk f(x/z, y/z, 1) > 0. For x and ysmall, z w 1, it can be proved that nodal lines of /i, when viewed from the zdirection, look like the array displayed in Fig. 9.6.

FIG. 9.6

(2) Near 5, if k = odd, then € /(z, y, z) — e zk (x/z, y/z, 1) < 0.The nodal lines for x, y small and z « -1 are shown in Fig. 9.7 (again viewedfrom the z direction).

(3) Away from N and 5, the nodal lines of h are small perturbations ofgreat circles that form the nodal lines of Im (x + i y)k (see Fig. 9.8).

Thus, we are led to the following theorem.THEOREM 9.2.1 (Lewy). Let k = odd. There exists a spherical harmonic h

of degree k whose nodal lines divide the unit sphere into exactly two components

FIG.9.4

FIG.9.5

Page 142: grid mohammad cfd

ON HARMONIC MAPS 127

FIG. 9.8

in which h ̂ 0. In fact, for small € > 0, h(x, y, z) = Im(x - i y)k - e/(z, £/, z),with f a spherical harmonic of degree k such that /(0,0,1) > 0 has the requiredproperty.

A concrete example is

h = 3 x2 y — y3 — e (2 z3 — 3 x2 z — 3 y2 z}, where e > 0 is sufficiently small.

Remark. Using ultraspherical polynomials, Lewy also showed that thereexists a spherical harmonic of even degree whose nodal lines divide the unitsphere into exactly three components.

9.3. Some Facts about Harmonic Maps

In differential geometry, dimension equal to 2 and dimension greater than 2often give rise to distinct phenomena. For instance, Sacks and Uhlenbeck[56] proved that an isolated singularity of a harmonic map h is removable intwo dimensions, if h has finite total energy. This is clearly not true in threedimensions. In this case, an additional condition, such as total energy beingsmall (see [46]), should be introduced.

In this section, we put together a collection of facts about harmonic mapsthat are relevant to grid generation.

First, we derive the harmonic map equation in the general case when ftand ft are equipped with Riemannian metrics g and </, respectively. Recallthat the energy functional of a smooth map u from ft into ft is

FIG.9.7

Page 143: grid mohammad cfd

128 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

In local coordinates x £ 0 and u £ Q, the energy density

To simplify the derivation, let J7 be isometrically embedded in R9 for some g.Let P be the nearest point projection from E9 into $7.

Let (f> be a smooth map from J7 into R9. Define a one-parameter family ofmaps u-t from 0 into H C R9 by

for t near 0. We have

At a critical point u : ft

Thus,

Page 144: grid mohammad cfd

ON HARMONIC MAPS 129

where we have used the facts that d2P is a symmetric bilinear form and that(dP(V(f>), Vu) = (dP(Vu), Vy?}. Since (p is arbitrary, we get

Conclusion. The harmonic map equation (i.e., the Euler-Lagrange equa-tion of the energy functional) is a semilinear elliptic system, quadratic in Vu.Its leading term is the Laplacian with respect to the Riemannian metric g infi. In local coordinates, for a smooth function / on fi, A/ is defined by

By studying the heat equation

Eells and Sampson [28] proved the fundamental result given in the followingtheorem.

THEOREM 9.3.1. Let fi and 0 be two Riemannian manifolds withoutboundary. Let <p be a smooth map from J7 into H. Then (p can be continuouslydeformed into a harmonic map from 0 into 0 if n has nonpositive sectionalcurvature.

This existence theorem was generalized to manifolds with boundary byHamilton [36].

THEOREM 9.3.2. Let 0 and J7 be Riemannian manifolds with boundary.Let (p be a map from fi into 0. Then </? can be continuously deformed into aharmonic map from fi into J7 if fl has nonpositive sectional curvature and if$H is convex.

In this theorem, dimfi > 2, dim fi > 2. A few years ago, Lawson andYau conjectured that if u is a harmonic map between two compact Riemannianmanifolds of negative curvature, and if u is a homotopy equivalence, thenu is a diffeomorphism. This statement has been proven in the case whendimfi = diml! = 2. More precisely, we have Theorems 9.3.3 and 9.3.4, whichare due to Schoen and Yau [57].

THEOREM 9.3.3. Let U and J7 be two Riemann surfaces with the samegenus q > 1. Let O have nonpositive curvature. Then, every degree-oneharmonic map from 0 into J7 is a diffeomorphism.

THEOREM 9.3.4. In the case when J7 and 17 have boundary, the sameconclusion is true if d& has nonnegative geodesic curvature, and if theharmonic map restricted to d$l is a homeomorphism from d$l to d£l.

Remark. The last theorem is a generalization of Rado's theorem toRiemann surfaces. Both fi and 0 are two-dimensional.

It should be pointed out that some authors mistakenly quoted theconjecture as a theorem (cf. [25]). In three dimensions, the conjecture is still

Page 145: grid mohammad cfd

130 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

open. The generalization of Rado's theorem to three dimensions is also notknown, which is posed in the following problem:

Let fi and ft be simply connected domains in E3. Let ft be convex. Letu : ft —> & be a harmonic map such that u : dft —> dft is a homeomorphism.Is it true that the Jacobian of u does not vanish in the interior of ft (andconsequently u must be a diffeomorphism from ft to ft)?

Page 146: grid mohammad cfd

Chapter 10

Mathematical Aspects of Harmonic GridGeneration

S. S. Sritharan

10.1. Introduction

Harmonic mapping was one of the earliest and is perhaps the most widelyused grid- generation technique in computational physics. Although thereis an extensive literature on the theory of harmonic maps on Riemannianmanifolds [27], these works do not address the specific questions involvedin the harmonic grid-generation method. In [63] a mathematical study ofthis method was presented. In this chapter we will further elaborate on theunderlying mathematical structure of this method and sharpen some of theresults. The mathematical analysis presented in [63] is very general and iapplicable to nonsmooth domains in Riemannian manifolds as well. In thischapter, however, we will restrict ourselves to smooth domains in Euclideantwo and three spaces. New features explored in this chapter are the variationalformulation and the concept of duality.

10.2. Variational FormulationDEFINITION. Let 17 C Rn be a bounded open set with class C2 boundary dfi ,and let Hi C Rn be a bounded convex open set with boundary d£l\. Supposethere exists a continuous transformation a : O — >• Rn such that

is a specified homeomorphism. Then a is called a grid- generating transform if

is a homeomorphism onto. 0 and fti are often called the physical and thecomputational domains, respectively. Grid- generating transforms belong to ageneral class of continuous maps known as regular maps [23], which map theboundary of the domain onto the boundary of the image.

A grid-generating transform a is harmonic if

131

Page 147: grid mohammad cfd

132 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Here A denotes the Laplacian operator and a — (ai, • • • , an). Our goal is tofind a harmonic grid- generating map for a given domain 0. We will focus ourattention on the cases n = 2 and 3, both of which are of practical interest.Let us begin with the following well-known orthogonal decomposition [10] of

where

and

Here HQ(£I) denotes the Sobolev space of square-integrable vectorfields (or ten-sorfields ) with square-integrable distributional derivatives and zero boundaryvalues.

Let us define the normal trace operator 7^ as

The following result is a slightly specialized version of a theorem in [70].LEMMA 10.2.1. The trace operator 7^ : H(fl) -» H~l/2(d$l) continuously.

Here H~l/2(d£l) is the dual of the Sobolev space Hl^(dfl}. 77&e proof is simpleand we will outline it below.

Proof. Recall that the trace operator 70 defined by

can be extended as 70 : -ff1(H) — » Hl'2(d£l) continuously. Moreover, the rightinverse of this operator 1& 6 £(-ff1/2(^0); ^T1((l)). Now let the vectorfieldu G -L2(J7) be given. Let us consider

We have, by the Schwartz inequality,

Hence

That is, for each u 6 Z/2(fi) the linear map Xn(-) : H l / 2 ( d $ l ) —>• iJ continuously.Hence, by the Riesz representation theorem, there exists j^u 6such that

Page 148: grid mohammad cfd

MATHEMATICAL ASPECTS OF HARMONIC GRID GENERATION 133

To interpret the element 7^ it, we take u G Cl(&) such that V • u = 0 and</> G C1(J7). Then, integrating the above integral by parts, we get

The following result is a special case of a theorem in [64].LEMMA 10.2.2. Let 0 be simply connected with boundary d£l of class

Cr,r > m + 2 , ra> 0. Then

and curl is an isomorphism from Hm+l(£l) onto Hm(£l) PILet us denote the gradient operator by

where T>($i) is the space of distributions (dual to the space of test functions

LEMMA 10.2.3. A G £(F1(J7);L2(H)) and its transpose A* EJff1(H)) ). Moreover, if we restrict A to HQ(£I), then denoting its

transpose by A? G £(£2(H); ̂ '^O)), u;e $?ei A? =div in T>(Sl)' .Proof. Let us note that by the Schwartz inequality we have

Hence, for a given tensorfield Q G

Thus, by the Riesz representation theorem, there exists a vectorfield (3* Gsuch that

This defines a unique operator A* G £(Z/2(fi); ( Jff1(n)) /) such that (3* =and

(Q,Aa)

Since the above estimate on the integral holds also for all a G #o(n), we candefine A* G £(I2(17); H~l(^}) such that

Page 149: grid mohammad cfd

134 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Now, note that integration by parts gives

Hence A£ = —div in £>(fi) . Note, however, that

This explains the diiference between Aj and A*.We will now provide a variational formulation for our grid-generation

problem. Let us denote by A C Hl(£l) the closed convex subset defined as

where ao 6 Hl(Q) is such that

with a given boundary distribution of a vectorfield gr.Let us denote by ^(a|^4) the indicator function defined as

PROBLEM 10.2.1 (primal variational problem). Find a vectorfield a. : fiRn such that a £ Hl(to) and

Here Va is written componentwise as

and

Note that in this variational formulation we are looking for a solution suchthat a - a0 G <7(ft).

Let us now consider the dual formulation.PROBLEM 10.2.2 (dual variational problem). Find a tensorfield Q* : O —>

Rn X J«n such that Q* G H(ft) and

Page 150: grid mohammad cfd

MATHEMATICAL ASPECTS OF HARMONIC GRID GENERATION 135

Here Q* 6 ft(ft) implies that

Moreover, the duality pairing

Let us now verify that this dual variational principle can be derived from theprimal problem using the concept of polar functions [5]. We will begin withthe following perturbed variational problem obtained from the primal problem.

Let Q 6 Z/2(J7) be a tensorfield. Let us find a G Hl($i] such that

We define the value function V(-) : L2($l) — > J2 as

Note that V(0) corresponds to the primal problem. We now note that thepolar function corresponding to $(•,•) is

We will show below that the dual problem is actually that of finding Q* GL2(£l) such that

Let us first establish the following relationship between $*(0,Q*) and thebidual of the value function V**(-):

In fact, if we consider

and

then

Page 151: grid mohammad cfd

136 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Hence

which verifies (10.6). We will now consider

where <5*(-|.4) is the polar of the indicator function #(-|.4). Hence(10.6) becomes

Let us consider

Since o: = ao + P, where O.Q G Hl($l) was defined earlier, and (3 E(fl), we get

Note that

Hence

with A^Q* = 0. Thus

Page 152: grid mohammad cfd

MATHEMATICAL ASPECTS OF HARMONIC GRID GENERATION 137

with AjQ* = 0. Let us further interpret this result:

Hence, Q* G 7^(0) and this implies, by Lemma 10.2.1, that 7t/Q* GH-l/2(dSl). Thus we can write

from which we get

Thus

This is precisely the dual problem.Let us now state the following relevant theorem._ ^ sfc

THEOREM 10.2.1. There exist unique solutions ex. and Q , which corre-spond, respectively, to the primal and the dual problems such that

z'i/i Q = Vo:. The vectorfielda satisfies A« = 0 in the sense of distributionsand

Moreover, there exists a tensorfield if> G H l ( £ l ) such that

Proof. Let us first note that the perturbed variational problem (10.3)has a unique solution OLQ for each Q G £2(^), including for Q = 0, whichcorresponds to the primal problem. This is essentially the Dirichlet principle,and we simply note the main arguments leading to this result. Since the setA is closed, the epigraph

is closed and hence the indicator function #(-|*4) : Hl(£l} — >• R U {+00} islower semicontinuous. Moreover, this is a convex function since A is convex.The convexity and lower semicontinuity of #(-|.4) imply that this function isalso weakly sequentially lower semicontinuous in ^T1(i7). We therefore conclude

Page 153: grid mohammad cfd

138 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

that for all Q £ £2(ft), the function $(•, Q) : Hl(ti) -» #U{+oo) is convex andweakly sequentially lower semicontinuous. Hence we can deduce by standardcompactness arguments that for each Q £ L2($i}, there exists a unique solutionQ:Q such that

This shows that for each Q £ -Z/2(0) the value function is defined with a uniqueelement G.Q £ A. Setting Q = 0 gives us the existence of a unique solution o;to the primal problem.

From (10.4), (10.6), and (10.7) we know that in order to establish thecoincidence of the primal and dual problems, we need to show that

We will now examine the properties of the value function to deduce this result.Note that $(•, •) : 5"1(ft) x L2(£l) — > R\J {+00} is convex and this implies thatthe value function V(-) : L2(H) — > R is convex.

Now, let us consider a sequence Qn -+ 0 weakly in Z/2(fi). Then, since forall n, «Q £ A, we have

Now, using the estimate

and the fact that A is a closed operator in Jff1(H), we can conclude thatAa% -> Aa weakly in L2(n). Thus Ad^ + Qn -» Aa weakly in L2(0).We then conclude that

which establishes the lower semicontinuity of V(-) at the origin. This, incombination with the fact that V(-) is a convex function, implies [5] that

and hence the primal and dual problems have the same values:

Let us now derive an implication of this optimality relationship. We have, forthe optimal solutions o: £ A and Q £

That is,

Page 154: grid mohammad cfd

MATHEMATICAL ASPECTS OF HARMONIC GRID GENERATION 139

But

with A^Q* = divQ* = 0. Thus (10.8) becomes

and we conclude that

Now, since 7i(O) = curl Hl(£l) by Lemma 10.2.2, we can deduce that thereexists a tensorfield -0 £ Jff1(fi) such that

This can also be written in the tensor form as

Moreover, Vd E 7^(17) and hence div Vd = 0. That is,

Remark. If n — 2, we have V?mi- = ^msV5^ and then (10.10) becomes

This is the same as

This is the Cauchy-Riemann relationship and hence for n = 2, -0; is thecomplex conjugate of d;. We also have for n = 2,

Let us now state a regularity theorem for the v^ctorfields d and -0.THEOREM 10.2.2. Let dtt E Cm+2,ra > 2, and g E Hm-l/2(dft). Then

the optimal solutions have the regularity d,-0 £Proof. First note that d solves

Hence, by standard regularity theory of the Dirichlet problem, we haved E Hm(tt). Thus, Ad = curty E Hm~l(ty n H(fy. But curl is anisomorphism from Hm(tt) onto Hm-l(tt) n H(ft). Thus -0 E ffm(0). D

Page 155: grid mohammad cfd

140 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

10.3. Harmonic Grids in Two Dimensions

In this section, we will present a refined version of the theory presented in [63].The corresponding theory for three-dimensional domains will be discussed inthe next section. The results in this section will establish that the harmonicmap in two dimensions is a grid-generating transform.

Let us first study some properties of the Jacobian and gradient mapsto gain some intuition into the harmonic grid-generation problem. We willdemonstrate, in particular, the apparent importance of the convexity of thecomputational domain i7i.

Let the Jacobians associated with the primal and dual problems be denotedas follows:

LEMMA 10.3.1. If a and ij? are the optimal solutions of the primal anddual problems, respectively, then

(iii) the following functions are harmonic:

Proof. Consider

Using the Cauchy-Riemann relationship (10.11), we get

Note that the Cauchy-Riemann relationships also imply that

Moreover, note that dai/dx^ and dfy/dxi are harmonic. It is well known thatif a function <fi is harmonic, then </>2 is subharmonic. In fact,

We thus conclude that

Page 156: grid mohammad cfd

MATHEMATICAL ASPECTS OF HARMONIC GRID GENERATION 141

and

Let us now set z — xl + ix2 and consider the complex analytic function

Using the Cauchy-Riemann relationship we get,

Hence, the real part of s

and is harmonic. We can similarly show that the other functions in (iii) areharmonic.

Let us define 0 C ft to be a subdomain defined as

for some 6 > 0. Let us take the data on 5ft to be g 6 #3/2+e(5ft). Then, bythe regularity results, we have a £ #2+e(ft) C C1(ft). The following estimateholds:

See also [54] for a similar estimate using maximum principle. We note herethat even if |Vat- > 0 on 50, it can vanish inside 0, since |Vat-|

2 is onlysubharmonic. Lemma 10.3.2 below shows the condition under which we obtainnonvanishing gradients.

Let us assume for the moment that the following estimates hold:

and on the bounding curve 50,

Here C;, di depend on the data g. We then have

Now note that since Ja(x}/\Vai 2 is a harmonic function, the maximum (andminimum) principle gives

Page 157: grid mohammad cfd

142 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

From (10.12) and (10.14), we get

A similar conclusion holds for the dual map ifr.Let us now indicate the condition under which a result of the type (10.12)

(actually with C\ = 0) holds.LEMMA 10.3.2. Let the optimal solution a map 0 onto a convex domain

01. Then Va; do not vanish in 0Proof. Suppose that Vai = 0 at ZQ 6 0. Then U(z) = a\ + tyi must

satisfy

which implies that U(z] = U(z] — U(ZQ] should have a zero of order greaterthan or equal to two. If this is true, then the argument of U(z) around 50 is atleast 4?r, which means that a\(z] — CX,I(ZQ) should vanish at least four times on50. But the image 0i is convex; therefore this function has exactly two zeroson 50. From this contradiction we conclude that V«i and Va2 are never zeroin 0.

The above arguments indicate in an intuitive way the reasons for choosingHI to be convex.

Let us now describe the main theory of this section. The central result isthe following theorem.

THEOREM 10.3.1. Let fi C R2 be a bounded open set with class C2

boundary 5O, and let DI C R2 be a bounded convex open set. Let thehomeomorphism a : 50 —>• 50i be specified by

Then, the optimal solution a of Theorem 10.2.1 is a homeomorphism from J7onto fij .

Proof. The proof of this theorem will be accomplished using three lemmas.We will observe that the stated regularity g (E H3/2+c(d$l) is not really requiredfor all of these lemmas.

LEMMA 10.3.3. Let the optimal solution a be obtained by specifying theboundary homeomorphism a : 517 —> 5^i :

Then a maps 0 onto Oj.Proof. Note that from the regularity results we have for e > 0, a 6

#1+£(0) C C(ft), and hence the weak-maximum principle holds [39]. Thisresult and the fact that Oi is convex imply that a(0) C X7 l t To see this, firstnote that the convex domain QI can be expressed as an intersection of closedhalf spaces:

Page 158: grid mohammad cfd

MATHEMATICAL ASPECTS OF HARMONIC GRID GENERATION 143

Now, for each /x E R2, fi • a E C(fi) is harmonic, and by the weak maximumprinciple we have

Thus a(H) C fli. However, since an (n — l)-sphere cannot be a retract of ann — ball (by a corollary to Brouwer's theorem [23]), we should have a(0) =

Let us now state a key result that seems to require a strong hypothesis onthe smoothness of the boundary data.

LEMMA 10.3.4. Let a be the optimal solution corresponding to theprescribed boundary homeomorphism g E #3/2+e(dO) of d$l onto the boundaryd$l\ of a convex set Hi . Then

Proof of this result involves complex variable methods and can be foundin [63].

The following result is a special case of a result in [63]. We should observethat in this particular lemma, $l\ need not be convex and also a need not be aharmonic map.

LEMMA 10.3.5. Let H and fii be homeomorphic images of the unit disk.Suppose a : H —» HI is a differentiate surjective transformation such that:

(i) a : d£l —> dfii is a homeomorphism onto map, and

Then a(fi) = S7i, and a is a homeomorphism from ft onto fti.Proof. We will prove this result using the same method as in [63] but with

a different definition for the degree of the map a. This will allow us to discussthe possibility of removing the differentiability hypothesis on a.

For any y = a(x] with y 0 dH, the degree of the map a is defined as in[59]:

where /e(-) : R2 — > R is a family of continuous transformations such that

and Supp fc = B(y;t) is the ball of sufficiently small radius € centered at y.If the sign of Ja(x) is constant (i.e., if Ja(x) ^ 0, for all x E H), then

X>a(y;0) = ± Number of solutions x for a given y with y = ot(x). Thismeans that the degree of the map a in this case is equal to the number ofpoints in 0 that are mapped to the point y E HI under the map a. Note thatin (10.15), in order for the integral to make sense, we need only «/«(•) E -L1(J7).This will be the case when a E -ff1(H), since Va E L2(fi) implies that DetVa E Ll(Sl).

Let us now provide arguments to show that the degree of a is ±1.

Page 159: grid mohammad cfd

144 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Let us recall the following general result for regular maps given in [23].PROPOSITION 10.3.1. Let a be a continuous map such that

where Bn is the n-ball and dBn denotes the (n — Y)-sphere. Let «& be therestriction of a to dBn :

Then

Moreover, if ct^ : dBn — » dBn is a homeomorphism, then

This is precisely the situation we have, and hence

But Ja(x) / 0, for all x E fi (nonzero almost everywhere in (1 if Ja(') £ -Z/1(H)).Therefore, for each y £ fti, there exists exactly one x G 0 such that a(x) —y. Thus a is bijective on H and by standard results [23], a is a homeomor-phism.

10.4. Harmonic Grids in Three Dimensions

It appears that only a part of the theory developed in §10.3 (Lemmas 10.3.3and 10.3.5) extends immediately to the three-dimensional case. Let us indicatein this section the available results for three dimensions and outline a key openproblem.

LEMMA 10.4.1. Let H C R3 be a bounded open set with d£l of class C2 andlet HI C -R3 be a convex bounded domain. Suppose that the optimal solution acan be obtained by specifying the boundary homeomorphism a. : d£l — » dtii:

Then a maps 0 onto HI .The proof is the same as that for Lemma 10.3.5. We need only to note

that a G #3/2+e(D) C C(H) for the three-dimensional case.LEMMA 10.4.2. Let H and DI be homeomorphic images of the unit ball.

Suppose a : J7 — > HI to be a differentiate surjective transformation such that(i) a : d£l — » d£li is a homeomorphism onto map, and

Then a(ft) = £li, and a is a homeomorphism from H onto HI.

Page 160: grid mohammad cfd

MATHEMATICAL ASPECTS OF HARMONIC GRID GENERATION 145

The proof is again the same as that for Lemma 10.3.5. Note that in orderfor the degree integral to make sense, we need Ja(-) 6 £1(^), and this will inturn require that Vet 6 L3(fi).

Also note that in order to show that the harmonic map is a grid-generating transform in three dimensions, we need a result of the type givenin Lemma 10.3.4 which is not available.

OPEN PROBLEM 10.1. Let $1 C R3 be a bounded open set with dtl ofclass C2, and let Dj C R3 be a convex bounded domain. Suppose that a isthe optimal solution corresponding to the prescribed boundary homeomorphismg G H2+c(d£l) ofdtl onto <9Oi. Show that

Page 161: grid mohammad cfd

This page intentionally left blank

Page 162: grid mohammad cfd

References

[1] W.F. AMES, Numerical Methods for Partial Differential Equations, SeconEdition, Academic Press, New York, 1977, p. 83.

[2] A.A. AMSDEN AND C.W. HIRT, A simple scheme for generating generalcurvilinear grids, J. Comput. Phys., 11 (1973), pp. 348-359.

[3] D.A. ANDERSON, Adaptive grid scheme controlling cell area/volume, AIAA-87-0202, AIAA 25th Aerospace Sciences Meeting, Reno, NV, January 12-15, 1987.

[4] , Equidistributive Schemes, Poisson Generator, and Adaptive Grids, Else-vier, Amsterdam, 1987; Appl. Math. Comput., 24(1987), pp. 211-227.

[5] V. BARBU AND TH. PRECUPANU, Convexity and Optimization in BanachSpaces, Riedel, Boston, 1985.

[6] W.D. BARFIELD, An optimal mesh generator for Lagrangian hydrodynamiccalculations in two space dimensions, J. Comput. Phys., 6(1970), pp. 417-429.

[7] P. BARRERA-SANCHEZ AND J.E. CASTILLO, A large scale optimization problemarising from numerical grid generation, Tech. Report, Department of Mathemat-ics and Statistics, University of New Mexico, Albuquerque, NM, 1987.

[8] J. BIGGE AND E. BOHL, Deformations of the bifurcation diagram due todiscretization, Math. Comp., 45(1985), pp. 393-403.

[9] G. BIRKHOFF AND R.E. LYNCH, 'Numerical solution of elliptic problems,SIAM Studies in Applied Mathematics, Society for Industrial and AppliedMathematics, Philadelphia, PA 1984.

[10] J.P. BOURGUINON AND H. BREZis, Remarks on the Euler equations, J. Funct.Anal., 15(1974), pp. 341-363.

[11] J .U. BRACKBILL AND J.S. SALTZMAN, Adaptive zoning for singular problemsin two dimensions, J. Comput. Phys., 46(1982), pp. 342-368.

[12] J .U. BRACKBILL, Coordinate system control: 'daptive meshes, in NumericalGrid Generation, J.F. Thompson, ed., North-Holland, Amsterdam, 1982, pp.277-288.

[13] J.E. CASTILLO, A direct variational grid generation method, in Advancesin Computer Methods for Partial Differential Equations VI, InternationalAssociation for Mathematics and Computers in Simulation, New Brunswick, NJ,1987, pp. 501-506.

[14] , A direct variational grid generation method: Orthogonality control, inNumerical Grid Generation in Computational Fluid Mechanics '88, S. Sengupta,J. Hauser, P.R. Eiseman, and J.F. Thompson, eds.. Pineridge Press Limited,

147

Page 163: grid mohammad cfd

148 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

Swansea, U.K., 1988, pp. 247-256.[15] , A discrete variational grid generation method, SIAM J. Sci. Statist.

Comput., 12 (1991), pp. 454-468.[16] , Mathematical aspects of variational grid generation I, in Numerical Grid

Generation in Fluid Dynamics, J. Hauser and C. Taylor, eds., Pineridge PressLimited, Swansea, U.K., 1986, pp. 35-44.

[17] J.E. CASTILLO, S. STEINBERG, AND P.J. ROACHE, Mathematical aspects ofvariational grid generation II, J. Comp. Appl. Math., 20(1987), pp. 127-135.

[18] , On the folding of numerical grids: Use of reference grids, Comm. Appl.Numer. Methods , 4(1988), pp. 471-481.

[19] J.E. CASTILLO, On variational grid generation, Ph.D. thesis, Department ofMathematics, University of New Mexico, Albuquerque, NM, 1987.

[20] J.E. CASTILLO, S. STEINBERG, AND P.J. ROACHE, Parameter estimation invariational grid generation, Appl. Math. Comput., 28(1988), pp. 155-177.

[21] W.H. CHU, Development of a general finite difference approximation for ageneral domain; Part I: Machine transformation, J. Comput. Phys., 8(1971),pp. 392-408.

[22] C. DALTON, CHAIR, First National Fluid Dynamics Congress,AIAA/ASME/SIAM/APS, Cincinnati, OH, July 1988.

[23] J. DUGUNDJI, Topology, Allyn and Bacon, Boston, 1966.[24] A.S. DVINSKY, Adaptive grid generation from harmonic maps, in Numerical

Grid Generation in Computational Fluid Mechanics '88, S. Sengupta, J. Hauser,P.R. Eiseman, and J.F. Thompson, eds., Pineridge Press Limited, Swansea, U.K.,1988.

[25] , Adaptive grid generation from harmonic maps on Riemannian manifolds,NSF Report TM-1316, Creare Inc., Hanover, NH, 1987.

[26] , Adaptive grid generation from harmonic maps on Riemannian manifolds,J. Comput. Phys., submitted.

[27] J. EELLS AND L. LEMAIRE, A report on harmonic maps, Bull. London Math.Soc., 10(1978), pp. 1-68.

[28] J. EELLS AND J.H. SAMPSON, Harmonic mappings of Riemannian manifolds,American J. Math., 86(1964), pp. 109-160.

[29] P.R. ElSEMAN, Grid generation for fluid mechanics computations, Ann. Rev.Fluid Mech., 17(1985), pp. 487-522.

[30] R. FLETCHER, Unconstrained Optimization, John Wiley and Sons, New York,1980.

[31] F.B. FULLER, Harmonic Mappings, Proc. Nat. Acad. Sci., 40(1954), p. 987-991.[32] K.N. GHIA AND U. GHIA, EDS., Advances in grid generation, in Proc. Applied

Mechanics, Bioengineering, and Fluids Engineering Conference, Houston, TX,June 1983.

[33] U. GHIA, CHAIR, AIAA Sth Computational Fluid Dynamics Conference, Cincin-nati, OH, 1985.

[34] B. GILDING, A numerical grid generation technique, Comput. &; Fluids,16(1988), pp. 47-58.

[35] S.K. GODUNOV AND G.P. PROKOPOV, The use of moving meshes in gas-dynamical computations, USSR Comput. Math, and Math. Phys., 12(1972), pp.182-195.

[36] R. HAMILTON, Harmonic maps of manifolds with boundary, Lecture Notes inComputer Science 471, Springer-Verlag, Berlin, Heidelberg, New York, 1975.

[37] J. HAUSER AND C. TAYLOR, EDS., Proc. Numerical Grid Generation in Fluid

Page 164: grid mohammad cfd

REFERENCES 149

Dynamics Conference, Landshut, W. Germany, 1986.[38] S. HILDEBRANDT, Harmonic mapping of Riemannian manifolds, Lecture Notes

in Mathematics 1161, Springer-Verlag, Berlin, New York, 1985.[39] F. JOHN, Partial Differential Equations, Springer-Verlag, New York, 1986.[40] J. JOST, Harmonic maps between surfaces, Lecture Notes in Mathematics 1062,

Springer-Verlag, Berlin, New York, 1985.[41] , Lectures on harmonic maps (with applications to conformal mappings and

minimal surfaces), Lecture Notes in Mathematics 1161, Springer-Verlag, Berlin,New York, 1985.

[42] S.R. KENNON AND G.S. DULIKRAVICH, A posteriori optimization of computa-tional grids, AIAA paper NO, 85-0483, presented at the AIAA 23rd AerospaceScience Meeting, Reno, NV, January 1985.

[43] P.M. KNUPP, Surface grid generation in the tangent plane, Numer. MethodsPartial Differential Equations, to appear.

[44] E. KREYSZIG, Differential Geometry, University of Toronto Press, Toronto,Ontario, Canada, 1959.

[45] H. LEWY, On the minimum number of domains in which the nodal lines ofspherical harmonics divide the sphere, Comm. Partial Differential Equations,2(1977), pp. 1233-1244.

[46] G. LIAO, A regularity theorem for harmonic maps with small energy, J.Differential Geom., 22(1985), pp. 233-241.

[47] V.D. LISEIKIN AND N.N. YANENKO, On selection of optimal finite-differencegrids, Numer. Meth. Continuum Mech., 8(1977), pp. 100-104. (In Russian.)

[48] C.W. MASTIN AND J.F. THOMPSON, Elliptic systems and numerical transfor-mations, J. Math. Anal. Appl., 62(1978), pp. 52-62.

[49] , Quasiconformal mappings and grid generation, SIAM J. Sci. Statist.Comput., 5(1984), pp. 305-310.

[50] , Transformation of three-dimensional regions onto rectangular regions byelliptic systems, Numer. Math., 29(1978), pp. 397-407.

[51] C.W. MISNER, Harmonic maps as models for physical theories, Phys. Rev. D,18(1978), pp. 4510-4524.

[52] L. NIRENBERG, private communication, 1986.[53] H.O. PEITGEN, D. SAUPE, AND K. SCHMITT, Nonlinear elliptic boundary value

problems versus their finite difference approximations: Numerically irrelevantsolutions, J. Reine Angew. Math., 322(1981), pp. 74-117.

[54] M.H. PROTTER AND H.F. WEINBERGER, Maximum Principles in DifferentialEquations, Prentice-Hall, Englewood Cliffs, NJ, 1967.

[55] T. RADO, Aufgabe 41, Jahresbericht der Deutschen Mathematiker Vereinigung,35(1926), p. 49.

[56] J. SACKS AND K. UHLENBECK, The existence of minimal immersions of 2-spheres, Ann. of Math., 113(1981), pp. 1-24.

[57] R. SCHOEN AND S.-T. YAU, On univalent harmonic maps between surfaces,Invent. Math., 44(1978), pp. 265-278.

[58] R. SCHOEN AND K. UHLENBECK, Boundary regularity and the Dirichlet problemfor harmonic maps, J. Differential Geom., 18 (1983), pp. 253-268.

[59] J.T. SCHWARTZ, Nonlinear Functional Analysis, Gordon and Breach, New York,1969.

[60] S. SENGUPTA, J. HA'USER, P.R. EISEMAN, AND J.F. THOMPSON, EDS.,Numerical Grid Generation in Computational Fluid Mechanics '88, PineridgePress Limited, Swansea, U.K., 1988.

Page 165: grid mohammad cfd

150 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

[61] D.F. SHANNO, Conjugate gradient methods with inexact searches, Math. Oper.Res., 3(1978), pp. 244-256.

[62] R.E. SHOWALTER, Hilbert Space Methods For Partial Differential Equations,Pitman, London, 1977.

[63] P.W. SMITH AND S.S. SRITHARAN, Theory of harmonic grid generation,Complex Variables, 10(1988), pp. 359-369.

[64] S.S. SRITHARAN, Invariant Manifold Theory For Hydrodynamic Transition,Longman, London, 1990.

[65] S. STEINBERG AND P.J. ROACHE, Anomalies in grid generation on curves, J.Comput. Phys., to appear.

[66] , Variational curve and surface grid generation, J. Comput. Phys., submit-ted.

[67] , Variational grid generation, Numer. Methods Partial Differential Equa-tions, 2(1986), pp. 71-96.

[68] D.J. STRUIK, Lectures on Classical Differential Geometry, Addison-Wesley,Reading, MA, 1950.

[69] A. STUART, Nonlinear instability in dissipative finite difference schemes, SIAMRev., 31(1989), pp. 191-220.

[70] R. TEMAM, Navier-Stokes Equations, Third Edition, North-Holland, Amster-dam, 1984.

[71] J.F. THOMPSON, A survey of dynamically-adaptive grids in the numericalsolution of partial differential equations, Appl. Numer. Math., 1(1985), pp. 3-27.

[72] , Grid generation techniques in computational fluid dynamics, AIAA J.,22(1984), pp. 1505-1523.

[73] J.F. THOMPSON, ED., Numerical Grid Generation, Elsevier, Amsterdam, 1982.[74] J.F. THOMPSON, F.C. THAMES, AND C.E. MASTIN, Automatic numerical

generation of body-fitted curvilinear coordinate systems for afield containing anynumber of arbitrary two-dimensional bodies, J. Comput. Phys., 15(1974), pp.299-319.

[75] J.F. THOMPSON, Z.U.A. WARSI, AND C.W. MASTIN, Numerical Grid Gener-ation: Foundations and Applications, North-Holland, Amsterdam, 1985.

[76] , Boundary-fitted coordinate systems for numerical solutions of partialdifferential equations—a review, J. Comput. Phys., 47(1982), pp. 1-109.

[77] W.N. TIARN, Ph.D. thesis, Department of Aerospace Engineering, MississippiState University, Mississippi State, MS, May 1988.

[78] VAX UNIX MACSYMA Reference Manual, Version 11, Symbolics, Inc., Cam-bridge, MA, 1985.

[79] Z.U.A. WARSI, A note on the mathematical formulation of the problem ofnumerical coordinate generation, Quart. Appl. Math., 41 (1983), pp. 221-236.

[80] , A synopsis of elliptic PDE models for grid generation, Appl. Math.Comput., 21(1987), pp. 295-311.

[81] , Basic differential models for coordinate generation, in Numerical GridGeneration, J.F. Thompson, ed., North-Holland, Amsterdam, 1982, pp. 41-70.

[82] , Numerical grid generation in arbitrary surfaces through a second-orderdifferential-geometric model, J. Comput. Phys., 64(1986), pp. 82-96.

[83] , Theoretical foundation of the equations for the generation of surfacecoordinates, AIAA J., to appear.

[84] T.J. WlLLMORE, An Introduction to Differential Geometry, Oxford UniversityPress, Oxford, U.K., 1959.

[85] A.M. WINSLOW, Numerical solution of the quasilinear Poisson equation in a

Page 166: grid mohammad cfd

REFERENCES 151

nonuniform triangle mesh, J. Comput. Phys., 2(1967), pp. 149-172.[86] N.N. YANENKO, N.T. DANAEV, AND V.D. LISEIKIN, On a variational method

for grid generation, Numer. Meth. Continuum Mech., 7(1977), pp. 157-163. (InRussian.)

[87] P.R. ElSEMAN, A multi-surface method of coordinate generation, J. Comput.Phys., 33(1979), pp. 118-150.

Page 167: grid mohammad cfd

This page intentionally left blank

Page 168: grid mohammad cfd

Index

Adaptationgeometric(al), 111, 113physical, 111, 113

Algorithm(s)grid-generation, 3-4, 59

anomalous behavior of, 59surface, 4

intrinsic, 4solution-adaptive, 73transfmite interpolation, 3-4

Alternative methods, 94Analysis

near-identity, 32Angle control, 39Area

control, 3, 48critical points of, 47

equal solutions, 48functional, 36, 48

Bifurcationdiagram, 59-60pitchfork, 60-61, 73points, 71-72problems, 61properties, 3

Bilinear form, 80Boundary

angles, 39conditions (Dirichlet), 11, 114functions, 87layers, 105

points, 61fixed, 69

Boundary-matching conditions, 79, 82Boundary-value problems, 31

elliptic, 19variational form, 25

Centered differences, 69Central differences, 111ChristofTel symbols, 100, 107-108Coefficient matrix, 30Compatibility conditions, 100Constraints

one-sided, 20Continuum

theories, 3variational problem, 3

Convergence, 20properties, 66

Coordinate transformations, 114optimal, 111

Coordinate(s)Cartesian, 100computational, 114curvilinear, 99-100, 102,

105,114local, 107

Corner identities, 79Curvature, 107, 131

covariant, 101Gaussian, 101negative, 129

153

Page 169: grid mohammad cfd

154 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

nonpositive, 108Curvilinear coordinate(s), 99-100,

105directions, 17

Decoupling, see problemsDerivatives

directional, 22Diffeomorphism, 109, 123, 129Different!able manifolds, 7Differential geometry, 101, 121Dimensions

correct, 15three, 15

Direct approach/method, 36variational, 37, 39

Dirichlet principle, 137Discrete geometry, 3Discretization methods

finite-difference, 105finite-element, 105

Domain(s)computational, 111, 114logical, 111physical, 111-112simply connected, 130simply connected bounded, 123

Elliptic methods, 4, 14Elliptic systems, 15

uncoupled, 32Equation(s)

analytic, 14Cauchy-Riemann, 10Codazzi, 101convection-diffusion, 106, 114discrete grid-generation, 73elliptic, 12elliptic partial differential, 99Euler-Lagrange, 3, 33, 63, 65-66

discretized, 70Gaussian, 99, 101grid, 118harmonic map, 129Laplacian, 10, 42, 99model, 99ordinary differential

(ODEs), 30, 63

partial differential(PDEs), 1,4, 15, 32

Weingarten, 99Errors

average, 115maximum, 115

Extrinsic method, 78Finite-difference approximation

central, 26Function(s)

blending, 4, 78, 88boundary, 87characteristic, 114, 115, 121harmonic, 125nonconstant harmonic, 124subharmonic, 140

Functional(s)area, 36, 48energy, 123, 127length control, 95

continuous, 36minimum, 20orthogonality, 39, 48smoothness, 33volume, 19, 29, 33

Geometric shape, 14Godunov-Thompson method, 106Gradients, 11Grid(s)

adapted, 114,116adaptive, 61, 106, 114, 116, 122angles, 39

area of, 26boundary-adapted, 1boundary-conforming, 1cells, 3, 15, 26, 29, 35-37continuum, 61, 63, 73control, 106coordinates, 38density, 109desired, 12discrete, 40folding, 11-12,91, 109generator, 59geometry-adapted, 1ideal, 95initial, 12, 15, 71

Page 170: grid mohammad cfd

INDEX 155

lines, 26, 35methods (adaptive), 105node distribution, 105nodes, 112one-point, 69optimal, 40, 42optimal continuous, 40, 42orthogonality, 36properties, 121

multiple, 3reference, 19, 32-33solution-adapted, 1solution-adaptive, 106spacing, 3, 36structured, 1three-dimensional, 9typical, 12unshifted, 95unstructured, 1useful, 9

Grid at infinity, 90, 95Grid-generation, 9, 12, 14, 127

adaptive, 121algebraic, 2, 75, 78-79, 83

intrinsic, 75continuum, 73curve, 61, 73discrete, 60-61elementary, 2elliptic, 9hand, 2harmonic, 131iterative, 91Laplacian, 106method, 2, 89-90mirror flip invariant, 90partial differential

equation, 2planar, 5problems, 31, 60, 73, 134rotationally invariant, 89solution-adaptive, 61, 105stretch-invariant, 89surface, 61, 73, 101three-dimensional, 124transform, 140, 145variational, 2-3, 19, 35,

48, 59

Harmonic maps, see map(s)Homeomorphism, 4, 129-130, 142

boundary, 143-144

Incomplete rank, 48Integral

constraints, 35minimization of, 27smoothness, 19, 33unique minimum of, 29volume, 19, 30-31

Interpolation, 12Iteration

fully lagged, 60, 66, 70nominal, 60, 63, 67, 70-72

Iterative methods, 12

Jacobian, 6, 11, 27, 31, 130

Lower semicontinuity, 138

Map(s)discrete, 2harmonic, 2-4, 106-107,

109, 121, 123-124, 127145

existence, 107regularity, 107uniqueness, 107singularities of, 4

nearly identity, 30one-to-one, 111regular, 131

Mapping(s)composite, 10conformal, 3, 9, 12, 15

practical, 14harmonic, 11, 14-15, 17,

131proper, 27properties of, 9quasi-conformal, 12reference, 27, 31scaled, 17

singularities of, 4Method(s)

Gilding's, 75, 83, 86Yanenko's, 106

Page 171: grid mohammad cfd

156 MATHEMATICAL ASPECTS OF NUMERICAL GRID GENERATION

MetricsEuclidean, 109physical, 113Riemannian, see Riemannian

metricsMinima, 47Minimum point (uniqueness of), 24

unique, 27Model

equation, 99problem, 42, 48

Neumann, 118Nonintrinsic method, 88Notation, 37Numerical

coordinate generation, 99models, 105solution, 121

OperatorsBeltramian, 100Laplace-Beltrami, 107Laplacian, 100, 132

Optimization, 35Optimization theory, 19Orthogonality, 6

Parameterization, 69Parametric variables, 14Pi card linearization, 111Principles

maximum, 11 , 141minimum, 11weak-maximum, 142

Problemsarea control, 3, 48decoupling, 35discrete, 60dualminimization

(nonlinear), 36model, 48

optimal solutions of, 142open, 145primal

optimal solutions of, 142quadratic, 42

three-dimensional, 48two-dimensional, 48variational, 61, 63

regularity property of, 4

Quasilinearity, 11

Region(s)arbitrary, 15convex, 12nonconvex, 12parametric, 14planar, 75, 99polygonal, 37, 40rectangular, 12reference, 33simply connected, 9

Riemannian manifolds, 107, 123,129,131

Riemannian metrics, 4, 111, 113,121,127

adaptive, 106solution adaptivity, 4tensor, 107

Riemann-Christoffel tensor, 101

Setsconvex, 20

Shearing transformation, 86, 89Singularities, 105Smoothness

functional, 33integral, 28problem, 27, 31

Solution algorithmsappropriate, 61multiple, 60-61, 73solution adaptive, 1, 111

Space(s)Euclidean, 27, 99, 123Hilbert, 20logical, 5, 26parametric, 12physical, 5, 26Sobolev, 4

Spherical harmonic, 125Subspaces, 20

Page 172: grid mohammad cfd

INDEX 157

Surface(s), 59arbitrary, 14coordinate generation, 100curved, 99

grid generator, 59Riemann, 129

Theorem(s)inverse-function, 6Rado's, 4, 125regularity, 139

Transfinitegrid-generation formula, 85interpolation, 3, 75, 85, 88-89, 94

Transformationsboundary-adapted, 5boundary-conforming, 5boundary-fitted, 5coordinate, 105, 111

optimal, 111Three-dimensional methods, 58

Uniform mesh, 114Unique minimum, 28

Unique solution, 29, 59Unit square, 27, 42Upwind differences, 114

Variationaldiscrete approximation, 59formulation, 2, 134

discrete, 3grid generation, 19, 33, 35,

58-59inequality, 24methods, 2, 35

direct, 75principles, 99

dual, 135perturbed, 135, 137

problem, 59, 61, 63techniques, 59

discrete approximationof, 59

Volumecontrol, 33functional, 29, 33problem, 29