0% found this document useful (0 votes)
10 views

Some Aspects of Grid Generation

Grid generation

Uploaded by

FlowersPond
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Some Aspects of Grid Generation

Grid generation

Uploaded by

FlowersPond
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

ISSN 0965-5425, Computational Mathematics and Mathematical Physics, 2008, Vol. 48, No. 9, pp. 1600–1619.

© Pleiades Publishing, Ltd., 2008.


Original Russian Text © I.A. Vaseva, V.D. Liseikin, Yu.V. Likhanova, Yu.N. Morokov, 2008, published in Zhurnal Vychislitel’noi Matematiki i Matematicheskoi Fiziki,
2008, Vol. 48, No. 9, pp. 1638–1658.

Some Aspects of Grid Generation


I. A. Vaseva, V. D. Liseikin, Yu. V. Likhanova, and Yu. N. Morokov
Institute of Computing Technologies, Siberian Branch, Russian Academy of Sciences,
pr. akademika Lavrent’eva 6, Novosibirsk; ul. Pirogova, 2, 630090 Russia
e-mail: [email protected], [email protected], [email protected], [email protected]
Received February 26, 2007; in final form, December 20, 2007

Abstract—New results concerning the development of a universal method for grid generation based on
the numerical solution of the inverted Beltrami and diffusion equations with respect to the monitor met-
ric are obtained. In order to build monitor metrics, layer-type functions are used. Algorithms for gener-
ating smoothly matched block grids are proposed. Examples of two- and three-dimensional grids for the
tokamak edge region, for calculation of a passive impurity in the atmosphere, and for the numerical solu-
tion of two-dimensional singularly perturbed problems are presented.
DOI: 10.1134/S0965542508090108
Keywords: grid generation methods, numerical solution of inverted Beltrami and diffusion equations,
generation of smoothly matched block grids.

INTRODUCTION
Comprehensive grid generation techniques are extremely important for modern computational physics
and applied mathematics because they can provide a basis for developing unified automated codes for grid
generation. Such techniques and codes promise a considerable advancement in studying physical phenom-
ena having a nonhomogeneous multiscale structure in domains with a complex geometric shape. In partic-
ular, this pertains to nuclear power engineering, to studying properties of high-temperature plasma in a toka-
mak chamber with the purpose of creating energy sources based on thermonuclear fusion and plasma pro-
cesses, and so on. In designing aircraft, it is very important to have grid generation codes that could, in
combination with other numerical techniques, complement or even replace experiments in a wind tunnel;
indeed, numerical calculations are much cheaper than experiments in wind tunnels. The development of effi-
cient codes for the rapid generation of grids with prescribed properties in domains around aircraft and space-
craft will enable one to quickly determine promising configurations using numerical methods; then, those
configurations can be fine-tuned using wind tunnels and full-scale experiments. As a result, the cost of
designing aircraft with optimal characteristics can be significantly reduced and the design and manufactur-
ing time can be shortened. Moreover, automated codes are required for the numerical simulation of chemical
reactions and biological processes in such systems as human organs, for predicting natural calamities, and
so on.
The problem of developing automated technologies for grid generation has not been adequately solved
yet, and it is becoming increasingly urgent in computational mathematics, applied physics, power engineer-
ing, chemistry, and biology. This is explained by the need to use complex three-dimensional domains and
by the more stringent requirements for the grid quality and generation time so that the calculations can be
efficient. The basic grid properties that are important in applications are as follows:
(1) regularity (orthogonality of the grid lines, nondegeneracy, and insignificant cell deformation);
(2) smoothness (small differences in the shape and size of adjacent cells);
(3) grid clustering in the regions where the functions undergo sharp changes (shock and rarefaction
waves, boundary and interior layers, phase transition regions, and contact boundaries);
(4) grid clustering in the regions where the function values are of primary concern (regions where the
approximation or interpolation errors are large and where the sea is shallow in tsunami study and predic-
tion);
(5) alignment of the grid lines with a vector field (magnetic fields in studying the plasma behavior in a
tokamak chamber).
The natural efficiency requirements for the grid generation codes are as follows:
(1) reliability (simplicity and convenience);

1600
SOME ASPECTS OF GRID GENERATION 1601

(2) comprehensiveness (implementation of all the required grid properties and the ability for rapid and
unified grid generation for various applications in domains with boundaries of complex geometry, such as
tokamak chambers, regions around aircraft, internal human organs and systems, and so on);
(3) automation (minimal manual work spent for debugging codes when generating grids for new
domains and problems);
(4) invariance (the grid point distribution should be independent of parameterizations of physical geom-
etries).
The development of automated codes for the generation of grids having the desired properties is a diffi-
cult task. In order to be able to satisfy the requirements for the codes and grid quality, an effective basic
mathematical technology is needed that can ensure both basic and balanced grid properties. A promising
technology that is able to provide a basis for developing codes satisfying all the above requirements is the
technology based on the numerical solution of systems of inverted Beltrami and diffusion equations [1].
This technology is based on achievements in Riemannian geometry, the theory of elliptic equations, varia-
tional calculus, and computational mathematics. Fundamental studies on the theoretical justification and
numerical implementation of this technology, as well as some experimental results, can be found in [1–3].
In this technology, the monitor metric in the inverted Beltrami and diffusion equations is the main tool
for controlling the grid properties. These equations provide a basis for formulating the mathematical model
for determining the grid nodes and cells in arbitrary domains and on arbitrary surfaces encountered when
studying various phenomena in science and engineering. This model enables one to generate both steady
and moving structured and unstructured grids in domains of arbitrary dimensions and on their boundaries
independently of the parameterization of the physical geometries. The desired grid properties are achieved
by introducing a monitor metric. The Beltrami and diffusion equations and operators are popular in Rieman-
nian geometry, and many of their properties are well understood. In particular, some relationships between
the metric invariants and the characteristics of the coordinate surfaces are obtained by solving these equa-
tions. For example, such an important grid characteristic as the rate of the grid clustering near a boundary
surface is determined in terms of the values of the Beltrami operator (the second differential Beltrami
parameter) and the mean curvature of this surface (see [1]). The knowledge of such properties helps explic-
itly define a metric for controlling grids. Moreover, the solutions to those equations are optimal for the
inverted energy and diffusion functionals (see [1, 2]), which enables one to use not only finite difference or
finite element approximations of equations but also apply variational methods for finding the location of
grid nodes (see [4]). These advantages of the mathematical model based on the Beltrami and diffusion equa-
tions provide confidence that the research aimed at creating unified automated program packages for grid
generation are promising. Presently, the development of such packages is an important problem in applied
mathematics, computational physics, mechanics, biology, and medicine both in Russia and in other coun-
tries.
The development of comprehensive technologies and software for automatic grid generation has been
mainly performed in the USA beginning in the 1990s (see [5]) in the framework of the global national ini-
tiative aimed at creation of computing centers and automated computer technologies for the numerical solu-
tion of applied problems (see [6]). Those technologies are based on the numerical solution of the inverted
Poisson equations for structured grid generation and on the front and Delaunay methods for the generation
of unstructured grids. However, as applied to grid generation, the Poisson equations are not as efficient as
the Beltrami and diffusion equations; in particular, they do not guarantee that the coordinate transformation
is nonsingular (because the Poisson operator is not conservative); neither do they guarantee that those trans-
formations are independent of the parameterizations of geometries. In addition, controlling the grid proper-
ties using weighting functions in the Poisson equations is a difficult problem because no sound theoretical
results concerning the relationship between the weighting functions and the grid characteristics are avail-
able. As a result, one should select appropriate weighting functions by hand for each new physical domain
in order to obtain nondegenerate grids with desired characteristics. Under this approach, debugging com-
puter programs for the generation of grids in domains with complex boundary shapes, such as domains
around aircraft, takes several months of collective efforts of large teams of researches. For these reasons, the
method proposed and developed by the authors of this paper is more promising in terms of its convenience,
comprehensiveness, and possibility to be automated compared to the methods based on the numerical solu-
tion of the inverted Poisson equations.
In this paper, we describe the elements of a global grid code designed for grid generation pertaining to
the technology of generating local one-block grids and to the methods of their smooth matching for obtain-
ing multiblock grids.

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1602 VASEVA et al.

x3
Sx2

x2 x1

s2 S2 x(s) ξ2 x[s(ξ)]

ξ(s) Ξ2

s(ξ)

s1 ξ1

Fig. 1. The scheme of surface triangular grid generation.

1. MATHEMATICAL MODEL
1.1. Scheme of the Mapping Approach
The proposed grid generation mathematical model is formulated in the framework of the mapping tech-
n+k
nology, which can be used for an arbitrary n-dimensional physical geometry S xn ⊂ ⺢ (curve, domain, or
surface) that is locally specified by the parameterization
n n+k
x(s) : S ⺢ ,
(1.1)
1 n+k 1 n
x = ( x , …, x ), s = ( s , …, s ), n ≥ 1,

where S n is an n-dimensional parametric domain (interval for n = 1) and x(s) is a smooth vector function of
n
rank n at every point s ∈ S n (see Fig. 1). When k = 0, the surface S xn is a domain X n ⊂ ⺢ . In this case, X n can
be considered as a parametric domain (see Fig. 2).
In the mapping approach, the grid in physical geometry S xn is generated using the intermediate nonsin-
gular transformation
n n 1 n
s(x) : Ξ S , x = ( ξ , …, ξ ) (1.2)

from the parametric domain S n to the corresponding computational (logical) domain Ξn of a simple shape
that makes it possible to analytically determine points of the reference grid (Figs. 1, 2) [1, 3, 7–9]. The grid
nodes in S xn are determined by the following mapping of the reference grid defined on Ξn:
n xn n+k
x[s(x)] : Ξ S ∈⺢ . (1.3)

The shape of the computation domain Ξn and of the cells of the reference grid is chosen depending on the
shape of S xn and on the numerical algorithm (finite differences, finite elements, spectral methods) used to
solve the physical problem. In particular, Ξn can be a standard n-dimensional cube with rectangular cells
(Fig. 2), a trapezoid (triangle) with triangular cells (Fig. 1), a prism, or a frustum of a pyramid. Moreover,
the reference grid in Ξn may be unstructured.

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1603

S3 Ξ3
ξ(s)
s3 ξ3

s(ξ)

s1 s2 ξ1 ξ2

Fig. 2. The scheme of thee-dimensional hexahedral grid generation.

1.2. Grid Equations


In the version of the mapping approach considered in this paper, the intermediate transformation s(x)) is
defined as the mapping inverse of the vector function
n n 1 n
x(s) : S Ξ , x ( s ) = [ ξ ( s ), …, ξ ( s ) ]
(see Fig. 1), which is a solution of the Dirichlet problem
i
∂ jk ∂ξ
-------j  w ( s )g s -------k = 0, i, j, k = 1, 2, …, n,
∂s  ∂s  (1.4)
i i
ξ ∂S
n = ϕ ( s ), i = 1, 2, …, n.
jk s
Here, g s are the contravariant components of the prescribed monitor metric g ij on the set of points of the
physical geometry S xn defined in the parametric coordinates s1, …, sn obtained from (1.1); ∂S n and ∂Ξn are
the boundaries of S n and Ξn, respectively; j(s) = [ϕ1(s), …, ϕn(s)] is a one-to-one mapping between ∂S n and
∂Ξn; and w(s) > 0 is a weighting function that increases or decreases the influence of the metric in the spec-
ified regions of S xn.
Here and in what follows, we assume that, in the expressions involving identical indexes and not con-
taining the symbols + or –, the summation is performed over those indexes.
s
The equations in problem (1.4) are called the diffusion equations with respect to the monitor metric g ij .
s s
When w(s) = g , where gs = det( g ij ), the diffusion equations in (1.4) are actually the Beltrami equations
s
in the metric g ij . Moreover, when n ≠ 2, the diffusion equations in (1.4) are, in fact, the Beltrami equations
in the metric (see [1])
1 2
----------- -----------
s 2–n n–2 s
g ij = ( g ) [w(s)] g ij , i, j = 1, 2, …, n,
independently of the weighting function w(s).
Although the Beltrami equations are comprehensive (that is, any nonsingular twice differentiable inter-
mediate transformation (1.2) can be found as the inverse of the solution to these equations, see [1]), the dif-
fusion equations in (1.4) make it possible to more simply ensure the desired grid properties in various
regions of S xn, especially in the case n = 2.
The diffusion equations in (1.4) are the Euler–Lagrange equations for the diffusion functional
i i
1 jk ∂ξ ∂ξ 1
∫ ∫
ij
I [ x ] = --- w ( s )g s -------k -------j ds = --- w [ s ( x ) ]g x ds, i, j, k = 1, 2, …, n, (1.5)
2 ∂s ∂s 2
n n
S S

where
i j
ij kl ∂ξ ∂ξ
g x = g s -------k --------l , i, j, k, l = 1, 2, …, n,
∂s ∂s

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1604 VASEVA et al.

are the contravariant elements of the monitor metric in the coordinates ξ1, …, ξn.
s
For w(s) = g , (1.5) is the energy functional for the mapping x(s) : S n Ξn.

1.3. Inverted Equations


To find the grid nodes, the equations in (1.4) must be inverted to obtain equations with respect to the
intermediate transformation s(x). As a result, transformed problem (1.4) has the form (see [1])
2 i
kl ∂ s ∂ ji
w [ s ( x ) ]g x ---------------
k
-l = -------j ( w ( s )g s ),
∂ξ ∂ξ ∂s (1.6)
i i
s ∂Ξ
n = ψ ( x ), i, j, k, l = 1, 2, …, n.
Equations (1.6) will be called the inverted diffusion equations.
The inverted diffusion equations are equivalent to the following equations in conservative form (see [1]):
∂ ij
--------j { Jw [ s ( x ) ]g x } = 0, i, j = 1, 2, …, n. (1.7)
∂ξ
s
Here, J = det(∂s i/∂ξ j ). Substituting g for w(s) in these equations, we obtain the Beltrami equations in con-
servative form.
Equations (1.7) are the Euler–Lagrange equations for the inverted diffusion functional I[s], which is
obtained by replacing the integration domain S n with Ξn in functional (1.5); that is
i i
1 kl ∂ξ ∂ξ
2 ∫
I [ s ] = --- Jw [ s ( x ) ]g s -------k -------l dx,
n
∂s ∂s
i, k, l = 1, 2, …, n. (1.8)
Ξ

s
When w(s) = g , this is the inverted energy functional. Therefore, the inverted energy functional has the
form
i i
1 x kl ∂ξ ∂ξ
I [ s ] = ---
2 ∫ n
g g s -------k -------l dx,
∂s ∂s
i, k, l = 1, 2, …, n, (1.9)
Ξ

x
where gx = det( g ij ) = (J)2gs.
Functional (1.9) for the metric of the monitor surface, that is, for
s xs ∂f ∂f
g ij = g ij + -------i ⋅ -------j , i, j = 1, 2, …, n,
∂s ∂s
where f(s) is a vector function defined at the points of the physical geometry S xn in the coordinates s1, …,
sn, was first proposed in [11] for generating grids with node clustering in the zones of sharp variation of f(s).
For the case when S xn is a two-dimensional domain S 2 and f(s) is a scalar function f(s), that is, for the case
s i ∂f ∂f
g ij = δ j + -------i -------j , i, j = 1, 2, (1.10)
∂s ∂s
functional (1.9) proposed in [11] was successfully used for generating adaptive grids in gas dynamics, in
particular, in [13, 14]. For the numerical solution of the minimization problem for (1.9) with metric (1.10),
s i
a generalization of the method proposed in [15] for the Euler metric (i.e., for g ij = δ j , i, j = 1, 2) was used.
In the general case, boundary value problem (1.6), as well as the minimization problem for inverted func-
tional (1.9), can have no solutions. Note that, for any monitor metric, the equations in (1.4) are linear and ellip-
tic; hence, boundary value problem (1.4) and the minimization problem of functional (1.5) have a unique
smooth solution x(s) : S n Ξn. Therefore, if the solution s(x) : Ξn Sn of problem (1.6) and of the

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1605

minimization problem for functional (1.9) exists, then the Jacobian of the transformation s(x) is nonsin-
gular because s(x) is the inverse of x(s).
s
Note that, for the inverted Beltrami equations, i.e., for w(s) = g , boundary value problem (1.6) and the
s
minimization problem for inverted energy functional (1.9) are well posed for any monitor metric g ij for n = 1
and 2 if, for n = 2, Ξ2 is convex and homeomorphic to S 2 (see [16]). However, in the case of the Beltrami
equations for n = 3 and for the diffusion equations for n = 2 and 3, the problem of determining the monitor
metric that ensures the existence and, therefore, the nonsingularity of the transformation s(x) : Ξ n S n,
is open.

1.4. Finite Difference Algorithm


Solutions of the nonlinear boundary value problem (1.6) are found using the following algorithm. First,
s
multiply the left- and the right-hand sides of the inverted equations by (J)2 or by gx = det( g ij ) = gsJ2; thus,
we avoid the division by the Jacobian J when changing the derivatives ∂ξi/∂s j, which appear in the expres-
k
∂ ∂ξ ∂
sions for g x and -------j =  --------j   --------k in these equations, for the derivatives ∂sk/∂ξm. For definiteness, multi-
ij

∂s  ∂s ∂ξ   
ply system (1.6) by (J)2. This operation enables us to perform numerical computations of the grid nodes
using iterative methods for singular initial and intermediate transformations (see [1]). Note that we cannot
avoid the division by J in functional (1.5) and in conservative equations (1.7). As a result, in order to gen-
erate a grid using the numerical solution of Eqs. (1.7) and of the optimization problem for functional (1.5),
one must use a complicated technique (see [1, 12]) for avoiding the division by zero if the transformation is
singular at certain points.
The transformed elliptic problem is replaced by the parabolic boundary value problem with respect to
the functions s i(x, t) (i = 1, 2, …, n)
i 2 i m
∂s kl ∂ s ∂ξ ∂
------- = J  w [ s ( x ) ]g x ---------------
-l – --------j- --------m- { w [ s ( x ) ]g s } ,
2 ij
∂t  k
∂ξ ∂ξ ∂s ∂ξ 
i i n (1.11)
s ( x, t ) = ψ ( x ), x ∈ ∂Ξ , t ≥ 0,
i i n
s ( x, 0 ) = s 0 ( x ), x∈Ξ , i, j, k, l, m = 1, 2, …, n,
i
where s 0 (x) is the ith component of the initial transformation
n n 1 n
s0 ( x ) : Ξ S , s 0 ( x ) = [ s 0 ( x ), …, s 0 ( x ) ],
and the mapping
1 n n n
y ( x ) = [ ψ ( x ), …, ψ ( x ) ] : ∂Ξ ∂S
is the inverse of the mapping in (1.4):
n n
j ( x ) : ∂S ∂Ξ .
In the case when the right-hand side of system (1.11) is an elliptic operator, the solution of problem (1.11)
tends to the solution of (1.6) as t ∞.
Define the operator L[v] and the vector function f by


1 n
L[v] = L mp [ v ], f = ( f , …, f ),
m, p = 1, 2, …, n

where
2
2 mp ∂ v
L mp [ v ] = J w [ s ( x ) ]g x -----------------
m
-p ,
∂ξ ∂ξ

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1606 VASEVA et al.

Ξ2

i – 1, j + 1 i, j + 1 i + 1, j + 1

j(0, 1, . . . , N2)
i – 1, j i, j i + 1, j

i – 1, j – 1 i, j – 1 i + 1, j – 1

ξ2
i(0, 1, . . . , N1)
ξ1
Ξ2
j(0, 1, . . . , N2)

i – 1, j + 2

i – 1, j + 1 i, j + 1

i – 1, j i, j i + 1, j
i, j – 1 i + 1, j – 1

i + 1, j – 2

ξ2
i(0, 1, . . . , N1 – j)
ξ1

Fig. 3. The two-dimensional square and triangular stencil for the finite difference method.

k
i 2 ∂ξ ∂ ij
f = – J --------j --------k ( w [ s ( x ) ]g s [ s ( x ) ] ),
∂s ∂ξ
i, j, k, m, p = 1, 2, …, n, i, m, p are fixed.
In this notation, the equations in (1.11) take the form
∂s/∂t = L [ s ] + f . (1.12)
For n = 2, system (1.12) can be numerically solved on the grids depicted in Fig. 3 using the stabilizing cor-
rection method (see [10]). More precisely, the solution is found using the scheme
k + 1/2 k
s –s h k + 1/2 h k h k k
----------------------- = L 11 [ s ] + 2L 12 [ s ] + L 22 [ s ] + f ,
τ
k+1 k + 1/2
s –s h k+1 k
----------------------------- = L 22 [ s ] – L 22 [ s ].
τ
h
Here, L ij [v] is the finite difference operator that approximates the operator Lij [v] by central differences. The
initial transformation s(x, 0) = s0(x) is found using the transfinite interpolation (see [1]).
In the three-dimensional case, the scheme is similar.

2. MONITOR METRIC
To efficiently control the grid properties, we use the Beltrami and diffusion equations to define monitor
metrics on the set of points of the physical geometry S xn. The metrics are defined in terms of the variables

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1607

of the physical problem, the geometric characteristics of S xn, given vector fields, and the like; that is, they
are defined in terms of the quantities to which the grid should be adapted. The monitor metrics must be sim-
ple and sufficiently universal so as to be able to produce all the required grids. We use the following metric
tensors (see [1]) as the monitor metric satisfying these requirements:
s xs k k
g ij = ⑀ ( s )g ij + B i B j ,
(2.1)
i, j = 1, 2, …, n, k = 1, 2, …, l,
or
ij ij i j
g s = z ( s )g sx + D k D k ,
(2.2)
i, j = 1, 2, …, n, k = 1, 2, …, l.
xs ij 1
Here, g ij ( g sx ) are the covariant (contravariant) components of the physical geometry S xn, Bk = ( B k , …,
n k k
B k ) (Dk = ( D 1 , …, D n )) (k = 1, 2, …, l) is a covariant (contravariant) vector, and ⑀(s) ≥ 0 and z(s) ≥ 0 are
weighting functions.

2.1. Metric for Grid Clustering in the Regions of Sharp Variation of Physical Quantities
In the numerical simulation of factors affecting the behavior of aircraft and underwater vehicles, one
needs computer codes for generating grids that condense in the regions where some characteristics of the
physical medium (density, pressure, and the like) undergo sharp changes. In particular, such codes are
required for the investigation of multiple interactions of shock and rarefaction waves or contact boundaries.
In power engineering and kinetics, an important factor for improving numerical results is grid refinement
in the regions where some physical characteristics of combustion reactions in boilers of thermoelectric
power stations and in chambers of aviation engines and space rockets undergo sharp changes; it is also
important for taking into account kinetic reactions in discontinuity regions.
In the problem of determining the pollution of the environment by the remains of rocket propellants leav-
ing tanks of falling rocket stages, it is important to find the distribution of the fuel that reached the ground
in drop form and to describe the evolution of the cloud consisting of the propellant vapor formed when the
falling drops evaporate in the atmosphere. In the second case, the wind drift of the cloud parts and its smear-
ing due to the atmospheric turbulent diffusion plays an important role. This problem is three-dimensional,
and a substantial factor is the moving source of drops (the falling rocket stage) and the smearing source of
the vapor formed by the falling ensemble of evaporating drops. The use of moving adapted grids that con-
dense in the regions where the drops and propellant vapor are formed makes it possible to considerably
improve the efficiency of numerical algorithms in solving this class of problems.
Three-dimensional grids that condense in boundary layers are also important for studying global atmo-
spheric phenomena and, in particular, for precise weather prediction based on numerical calculations.
To generate grids with node clustering in the regions of large gradients of a function f(s) = ( f 1(s), …,
l
f (s)), monitor metric (2.1) is defined by (see [1, 11]
k k
s xs ∂f ∂f
g ij = ⑀ ( s )g ij + --------i --------,
j
∂s ∂s (2.3)
i, j = 1, 2, …, n, k = 1, 2, …, l.
The efficiency of metric (2.3) for ⑀(s) = const in the numerical solution of gas dynamics problems in
which grids refining in the regions of shock waves and boundary layers are required was demonstrated in
[12, 14].

2.2. Metric for Node Clustering in the Regions of Large or Small Function Values
To refine a grid in the regions where the interpolation error of the function u(s) and the equations’
approximation error are large, the monitor metric is defined in form (2.1) (see [17]) with
2
k ∂ u
B i = --------------
k
-i , i, k = n.
∂s ∂s

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1608 VASEVA et al.

In prediction of natural calamities (in particular, in tsunami prediction), the efficiency of numerical cal-
culations substantially depends on the adaptation of the grid to the shape of a basin, its depth, and its shoreline;
in particular, the grid must be refined in the regions of small depth. To generate grids for the physical geometry
S xn with node clustering in the regions of large values of a function v (s) (for example, error solution or the
reciprocal of the basin depth), the contravariant components of the monitor metric are defined by (see [12])
ij ij
g s = Ψ [ v ] ( s )g sx , i, j = 1, 2, …, n, (2.4)
where Ψ[v ] > 0 is a positive operator such that Ψ[v ](s) takes large (small) values where v (s) is small
(large). A generalization of metric (2.4) is given in [1].
Metric (2.4) can also be used for generating grids refining in the regions where the gradient of a function
f(s) is large; for this purpose, the operator A[gradf] is defined such that A[gradf](s) takes small values where
|gradf |(s) is large and vice versa. In this case, the monitor metric has the form
ij ij
g s = A [ grad f ] ( s )g sx , i, j = 1, 2, …, n.
This metric was used for generating adaptive grids in two-dimensional domains in problems concerning axi-
ally symmetric gas flows [12].

2.3. Metric for the Generation of Field-Aligned Grids


The contravariant elements of the monitor metric in form (2.2) are also useful for generating grids in
which the angle between the given vector field B = (B1, …, Bn) and the normal to a grid hypersurface ξi =
const is close to π/2. In this case, the contravariant elements of the monitor metric have the form (see [1])
ij ij i j
g s = ⑀ ( s )g sx + B k B k , i, j = 1, 2, …, n, k = 1, 2, …, l, (2.5)
where ⑀(s) and Bk (k = 2, 3, …, l) are small and B1 = B. The application of metric (2.5) for generating mag-
netic field-aligned grids used in plasma numerical calculations was demonstrated in [18].

2.4. Metric for Generating Balanced Grids


To generate balanced adaptive grids that are simultaneously field-aligned and adapt to the values of one
ij
function and to the gradient of another, the contravariant elements g s of the monitor metric can be defined
ij ij ij
in the form of a linear combination of the corresponding contravariant elements g al , g adg , and g ad v and
basis metrics (2.5), (2.3), and (2.4); therefore, they can be defined by
ij ij ij ij
g s = ⑀ 1 ( s )g al + ⑀ 2 ( s )g adg + ⑀ 3 ( s )g ad v , i, j = 1, 2, …, n, (2.6)
3
where ⑀i (s) ≥ 0 (i = 1, 2, 3) are weighting functions satisfying the condition Σ i = 1 ⑀ i ( s ) > 0.
The covariant elements of the balanced metric are defined similarly (see [1]).

2.5. Application of Layer-Type Functions for Defining the Monitor Metric


The definitions of monitor metrics (2.3), (2.4), and (2.5) include weighting and control functions to adapt
to the gradients of physical quantities, to align the grid lines with a vector field, and to balance the grid (2.6).
These functions either define the metric itself or regulate the contribution of basis metrics in the final result.
The set of functions that can be used for such purposes can be specified using three basis layer-type func-
tions ϕi (x, ε) (i = 1, 2, 3; x ≥ 0; 0 < ε Ⰶ 1). These functions describe the qualitative behavior of solutions of
singularly perturbed problems that have narrow zones (layers) in which the gradient of the solution under-
goes sharp changes (see [3]). The basis layer-type functions are as follows:
k
ϕ 1 ( x, ε ) = exp ( – b x – x 0 /ε ),
(2.7)
k > 0, b > 0, 0 ≤ x ≤ 1, 0 < ε Ⰶ 1,

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1609

Ξ12 X2 Ξ22
B1 C1 B1 B C1 C C2 B2 C2
B2

A2
A1 D1 A1 A D2 A2 D2
D1 D

B E C

A F D

Fig. 4. The scheme of smooth grid generation by solving grid equations.

is the exponential layer-type function;


kb
ε
ϕ 2 ( x, ε ) = ---------------------------------
k
-,
b
( ε + x – x0 ) (2.8)
k > 0, b > 0, 0 ≤ x ≤ 1, 0 < ε Ⰶ 1,

and is the power layer-type function;


–k
ln ( 1 + x – x 0 ε )
ϕ 3 ( x, ε ) = ------------------------------------------
–k
-,
ln ( 1 + ε ) (2.9)
k > 0, 0 ≤ x ≤ 1, 0 < ε Ⰶ 1,

is the logarithmic layer-type function.


The parameter ε determines the steepness of the function near the point x = x0. k and b are positive con-
stants used to control some characteristics of the functions and layers. In particular, k affects the scale of the
layer, and b affects the structure of the layer and the layer width.
If ε is small, basis layer functions (2.7)–(2.9) change sharply in a very narrow region. Therefore, they
can be used to specify weighting functions for localizing the contribution of the corresponding basis metrics
into the total monitor metric (2.6) for generating balanced grids. Examples of using layer-type functions for
generating balanced grids are discussed in Section 4.6.

3. GENERATION OF SMOOTH BLOCK GRIDS


In Section 1, we described the technology for generating single-block grids. However, it is often required
to use multiblock grids. In this case, there are difficulties in the smooth matching of grid lines of adjacent
blocks. In this section, we present two new iterative approaches to generating block grids in which the grid
lines match smoothly at the boundary of the adjacent blocks. These approaches can also be used for gener-
ating smooth grids of the O- and C-types in the vicinity of fictitious edges and faces. The main feature of
these methods is that both the boundary segments of the adjacent blocks and the distribution of the grid
nodes in these segments are determined in the course of the iterations.
In each block, the local grid is determined by solving the Dirichlet problem for inverted equations (1.6)
with respect to the monitor metric. The location of the boundary segments in the adjacent blocks and the
distribution of the grid nodes in these segments are determined by the numerical solution of grid equations
and by the interpolation by the nodes belonging to the grid hypersurfaces near the common boundary seg-
ments.

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1610 VASEVA et al.

(a) (b)

Fig. 5.

E F
D
C
B
A
i

Fig. 6.

3.1. Smoothing Using Grid Equations


The idea of this approach is illustrated in Fig. 4, where the scheme of generating a smooth grid with quad-
rilateral cells in two blocks of the two-dimensional domain X 2 is illustrated. The left-hand block is bounded
by the curves A1B1, B1C1, C1D1, and D1A1. The right-hand block is bounded by the curves A2B2, B2C2, C2D2,
and D2A2. The curves C1D1 and B2A2 coincide and are common for both blocks. First, the grid in X 2 is gen-
erated independently in each block using the numerical solution of the Beltrami or diffusion equations at
2 2
the nodes of the corresponding domains Ξ 1 and Ξ 2 with the identical distribution of nodes on the common
boundary in X 2. Then, the third (additional) block ABCD is introduced that contains the joining line EF (the
point E coincides with the points C1 and B2, and the point F, with D1 and A2), and, between every two (or
every several) iterations performed for the main blocks, the same equations are solved for the new block
ABCD. As a result, the grid points on the line EF will be mapped (depending on the adjacent nodes and grid
equations) to the dashed line that is the new boundary between the blocks. Next, the nodes inside the new
blocks are found, and so on. The process is continued for the new blocks until convergence is achieved. Sim-
ilarly, smooth block structured triangular and spatial grids are generated.
The main advantage of this approach is the use of the same grid equations for finding new nodes both on
the joining line and inside the blocks. As a result, the process of the joining line recalculation is fairly simple,
and the conditions imposed on the grid by the monitor metric remain valid.
Figure 5 shows a nonsmooth (a) and a smooth (b) grid on a surface generated using the proposed algo-
rithm.

3.2. Smoothing by Interpolation


In the framework of this approach, a node on the ith grid line of the new common boundary (the dashed
line in Fig. 6) is found using the following procedure. Upon determining the grid points inside both blocks
that have a common boundary with the node D on it, we choose the ith grid line the two nearest nodes to D
inside one block (the points B and C in Fig. 6) and the one nearest point in the other block (the point D in
Fig. 6). Then, we draw a smooth curve (for example, an arc of a circle) through these points. The new com-
mon boundary point E of the ith level belongs to this arc. Its location on the arc is determined by the equation
CE/EF = AB/BC , where A is the third grid point of the first block on the ith level (the bar over a segment

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1611

(a) (b)

Fig. 7.

(a) (b)

Fig. 8. Examples of triangular and quadrilateral grids generated using metric (2.3) that ensure grid clustering in the neigh-
borhood of certain specified curves.

denotes the distance between its endpoints). When all the grid points on the new common boundary are
found, the grid points inside both new blocks are found independently by solving grid equations. The pro-
cess is continued until a certain convergence condition is satisfied.
Figure 7 shows nonsmooth (a) and smooth (b) triangular O-type grids on a surface generated using the
proposed approach.

4. NUMERICAL RESULTS
In this section, we present examples of grids generated by the numerical solution of the inverted Beltrami
and diffusion equations with respect to the monitor metric.

4.1. Generation of Adaptive Grids


To generate a grid refining in the neighborhood of the hypersurface determined by the equation φ(s) = 0,
monitor metric (2.3) or (2.4) can be used. The monitor function can be specified using the basis layer-type
functions ϕi (x, ε) (i = 1, 2, 3), see (2.7)–(2.9).
If metric (2.3) is used to cluster the grid nodes near the hypersurface φ(s) = 0, the monitor function f(s)
must be chosen such that it changes sharply near this hypersurface. For example, we can use the function
f(s) = tanh [ φ ( s )/δ ] , where 0 < δ Ⰶ 1, which includes the layer-type mapping ϕ1(x, δ).
Figure 8a shows the grid generated on the monitor surface
2 2
v ( s ) = 1.5 1 – 2 ( s 1 – 0.5 ) – ( s 2 – 0.28 ) ,
defined over the domain with the boundaries
2 1 2 1
s = –0.4 ( s – 0.5 ) + 0.1, 0 ≤ s ≤ 1,
2 1 1
s = 3s , 0 ≤ s ≤ 0.5,

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1612 VASEVA et al.

(a) (b)

Fig. 9. Adaptive quadrilateral (a) and triangular (b) grids in a domain and on a surface generated using metric (2.4).

2 1 1
s = 3 ( 1 – s ), 0.5 ≤ s ≤ 1.
This grid is refined in the neighborhood of the curve ϕ1(s) = 0, where
1 2 2 2
ϕ 1 ( s ) = 20 ( ( s – 0.5 ) + ( s – 0.33 ) – 0.07 ).
Figure 8b shows the grid generated on the monitor surface
1 1 1
x ( s ) = s – 0.5 cos ( 8s ),
2 2 1
x ( s ) = s + 0.5 sin ( 8s ) ,
3 1 2
x (s) = (s ) ,
defined over the domain with the boundaries
1 1 2 2 1 2
0 ≤ s ≤ 1, ( s – 0.5 ) – 0.25 ≤ s ≤ ( s – 0.5 ) + 0.75.
This grid is refined in the neighborhood of the curve ϕ2(s) = 0, where
1 2 2
ϕ 2 ( s ) = ( s – 0.5 ) – s – 0.25.
The function f(s) for generating the grids shown in Fig. 8 was specified by the equation

 0.4tanh [ ϕ 1 ( s )/0.5 ] ( Fig. 8‡ ),


f (s) = 
 0.17tanh [ ϕ 2 ( s )/0.5 ] ( Fig. 8b ).
Figure 9a depicts the adaptive grid generated in the domain with the boundaries
1 2 2
s = 0.2 sin ( πt ) – 0.9, s = 2t – 0.9,
1 2
s = 0.4 sin ( πt ) + 1.1, s = 1.4t – 0.3,
1 2 2
s = 2t – 0.9, s = 0.6t – 0.9,
1 2
s = 2t – 0.9, s = 0.2 sin ( πt ) + 1.1,
where 0 ≤ t ≤ 1. The grid points cluster in the neighborhood of the curve φ(s) = 0, where
2 2 1 2 1 2 2 2
φ ( s ) = ( s ) ( s – 0.5 ) + ( s ) ( s – 0.4 ) – 0.02.
Let us write (2.4) in the form
ij ij
g s = ω [ z ( φ ) ]g sx , i, j = 1, 2, …, n,
where φ(s) = 0 is the hypersurface near which the grid should be refined.

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1613

(a) (b) (c)

Fig. 10.

The monitor functions are defined as follows:


ω [ z ] = 0.003 exp ( – exp ( – z/0.5 )/0.5 ),
z ( φ ) = tanh [ ( φ ( s )/0.03 ].
Thus, the grid in Fig. 9a is refined near the hypersurface φ(s) = 0; near this surface, the gradient of the func-
tion z(φ) is large.
Figure 9b depicts the surface
1 2
v ( s ) = 0.01 ( sin ( 15s ) sin ( 5s ) ),
defined over the domain bounded by the curve
1 2 2 2
( s – 0.5 ) + ( s – 0.5 ) = 0.25.
The functions φ(s) and ω[z(φ)] were defined by
2
[φ(s)]
ω [ z ( φ ) ] = 0.5 exp – 1.5 exp  – ----------------- ,
 0.01 
1 2 2 2
φ ( s ) = ( s – 0.475 ) /0.03 + ( s – 0.45 ) /0.07.
The resulting grid clusters in the neighborhood of the point (0.475, 0.45).
A prismatic grid in a cylinder is shown in Fig. 10a. Figures 10b and 10c use cross sections to demonstrate
examples of adaptive hexahedral grids in a ball. The monitor function was defined as
2
 2 exp [ – exp ( – R /0.001 )/0.5 ] ( Fig. 10b ),
f (s) = 
2
 2 exp [ – exp ( – ( R – 0.75 )/0.001 )/0.5 ] ( Fig. 10c ),
where R2 = (s1 – 0.5)2 + (s2 – 0.5)2.

4.2. Application of the Method for Calculating the Propagation


of Passive Impurities in the Atmosphere
The proposed grid generation method can be used to construct efficient algorithms for modeling the evo-
lution of a cloud of a passive impurity produced by a moving source in the atmosphere. For example, such
a source can be a flying object (aircraft, rocket, a falling rocket stage, and the like). Such a source ejects into
the atmosphere either light particles of a passive impurity or liquid or gaseous matter; while falling, this mat-
ter evaporates and forms a cloud of the impurity vapor. A specific feature of this problem is the presence of
a moving localized source (aircraft, rocket, or falling rocket stage) and a moving distributed source (falling
vaporizing drops). This feature stipulates the use of moving adaptive grids because a fixed spatial grid does
not make it possible to adequately describe the corresponding physical processes.
The problem of the Earth pollution by the remains of rocket fuel (unsymmetrical dimethylhydrazine)
flowing out of the tanks of a spent rocket stage was considered in [19]. When flowing out, the fuel disinte-
grates into drops, which then undergo wind drift, and their mass decreases due to evaporation. As the mass

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1614 VASEVA et al.

(a) (b)
10 km

East

Fig. 11.

of the drops decreases, the vertical rate of fall decreases. Figure 11a shows the falling trajectories of indi-
vidual drops as they are ejected one-by-one from the tank of a falling rocket stage (open dots). Only the
trajectories of the drops with the same initial diameter of 3 mm are depicted. The corresponding Gaussian
distributions of the surface density of the fuel that reached the ground in drop form are shown in the same
figure. Such a distribution corresponds to the situation when the turbulent atmospheric diffusion is taken
into account, which smears the ensemble of falling drops. A large series of calculations for falling second
stages of the Proton carrier rockets launched from the Baikonur launching site was performed. Real-life
rocket launches (90 launches) were considered in which the second stages fall in three regions of the Altai.
The meteorological data concerning these launches were provided by the hydrometeorological service of
Russia. Since 90% of the fuel evaporates when the drops are falling, it is of interest to investigate the evo-
lution of the fuel vapor cloud. The propagation of the impurity vapors is determined by the wind drift and
the atmospheric turbulent diffusion. The corresponding dynamics of the impurity vapor density are gov-
erned by the transport–diffusion equation (see [3])
∂ρ ∂ ∂ρ ∂
------ = -------i  D -------i – -------i ( ρu ) + S,
i
i = 1, 2, 3,
∂t ∂x  ∂x  ∂x
where D is the impurity diffusion coefficient in the atmosphere, S is the density of the impurity source, ui
are the components of the local velocity, and ρ is the impurity density. In the framework of the approach
used in this paper, the variables are changed for the new variables ξ1, ξ2, ξ3 in which the transport–diffusion
equation has the form (see [3])
∂ ∂ ∂ρ
----- ( Jρ ) = – --------j  Jρ ( u – w ) – Jg D --------k + JS,
j j kj
j, k = 1, 2, 3,
∂t ∂ξ  ∂ξ 
where
j i j
j k ∂ξ j ∂ξ ∂ξ
u = u --------k , w = ------- --------i .
∂x ∂t ∂x
This equation is solved using the finite difference method simultaneously with the parabolized grid equa-
tions (1.11) in the variables ξ1, ξ2, ξ3. The monitor metric in form (2.4), which depends on the vapor density,
yields the desired grid refinement in the regions with high impurity density (see Fig. 11b).

4.3. Application of the Method for Solving Singularly Perturbed Diffusion Problems
Monitor metric (2.4) is effective for the numerical solution of problems with boundary and interior lay-
ers. By way of example, Figs. 12b and 13b show the results of solving the singularly perturbed diffusion
problem
–ε∆u + a ( x ) ⋅ ∇u + f ( x, u ) = 0, x ∈ G,
(4.1)
u ( x ) = u 0 ( x ), x ∈ ∂G,
2
where G ⊂ ⺢ , ∂G = G \G, x = (x1, x2), and a(x) = (a1(x1), a2(x2)).

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1615

(a) (b)
1.0
1.2
0.9
0.8 1.0
0.7 0.8
0.6 0.6
0.5 0.4
0.4 0.2
0.3 0
0.2 –0.2
0.1 0
0.5 1.0
0 0.2 0.4 0.6 0.8 1.0 1.0 0 0.2 0.4 0.6 0.8

Fig. 12. Application of metric (2.3) for the generation of an adaptive quadrilateral grid (a) and for solving two-dimensional
singularly perturbed problem (4.1) (b).

x2 (a) (b) u(x1, x2)


0.6
1.0
0.4 0.8

0.2 0.6

0.4
0 0.2 0.4 0.6 0.8 1.0
x1 0 0.2
x2
0.4 0.8 x1 0.4 0

Fig. 13. Application of metric (2.3) for the generation of an adaptive triangular grid (a) and for solving two-dimensional
singularly perturbed problem (4.1) (b).

Figure 12 shows the grid (Fig. 12a) used to solve problem (4.1) and its results (Fig. 12b) with the parameters
1 1 2 2 1 2
ε = 0.01, a1 ( x ) = – x , a2 ( x ) = – x , f ( x, u ) = 4u – sin ( 5x x ) + 1,
1 2
u 0 ( x ) = 0, if x = 1 or x = 1,
1 2 2
u0 ( x ) = 1 – ( x ) , if x = 0,
2 2 1
u0 ( x ) = 1 – ( x ) , if x = 0.
The grid shown in Fig. 13a was used to solve problem (4.1) with the parameters
1 1
ε = 0.005, a ( x ) ≡ 0, f ( x, u ) = x 1 ( sin ( x ) + 3 )u – cos ( x ), u 0 ( x ) = 1.

4.4. Field-Aligned Grids


Figure 14 shows the integral lines of a vector field B (Fig. 14a) in the two-dimensional domain S 2 and
the corresponding grid (Fig. 14b). This grid was generated using monitor metric (2.5) with k = 1. The field
B is defined using the model function ψ(s) as
∂ψ ∂ψ
B =  – -------2, -------1 . (4.2)
 ∂s ∂s 

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1616 VASEVA et al.

(a) (b)

Fig. 14.

(a) (b)

2
1
x 1
3

Fig. 15.

This vector field satisfies the natural (for vector fields) condition divB = 0. The grid was obtained using the
following expressions for ⑀(s) and ψ(s):
2
⑀ ( s ) = 0.05  ----------------------2 ,
0.3
 0.3 + B 

2 2 1 2 2 2
ψ ( s ) = φ ( s ) ( 1 – φ ( s ) ) [ ( s – 0.5 ) – 6 ( φ ( s ) – 0.5 ) ],
2
φ ( s ) = 0.5 1 + tanh  ----------------- .
2 s – 0.5
 0.2 

4.5. Grid in a Tokamak Edge Region


Generation of magnetic field-aligned grids in a tokamak chamber is important in plasma physics; in par-
ticular, it is important in the research aimed at creating a nuclear fusion reactor [20, 21]. To understand the
processes occurring in a tokamak, one needs highly accurate numerical models. The application of adaptive
grids considerably improves the accuracy and efficiency of such models.
Figure 15a depicts the tokamak design, and Fig. 15b shows the magnetic field lines in an axially sym-
metric cross section of the tokamak. Such a field has a singular point x at which it degenerates. At this point,
the magneticline called the separatrix has a self-intersection. The topology of the domain under consider-

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1617

(a)

(b)

Fig. 16.

(a) (b) (c)

Fig. 17.

ation is defined by three blocks (see Fig. 15b). The magnetic lines in the second blocks are self-intersecting;
therefore, an O-type grid should be constructed in this block.
Figure 16a shows the grid generated in the tokamak edge region using metric (2.4), which enables one
to refine the grid in the neighborhood of the point x. Figure 16b shows a fragment of this grid. The grid nodes
on the separatrix were clustered in the neighborhood of x by solving one-dimensional diffusion equations.

4.6. Generation of Balanced Grids


To generate balanced field-aligned grids that adapt to the values of one function and to the derivatives of
another, formula (2.6) for the contravariant metric components of the monitor metric was used. This formula
was written in the form

ij ij ij ij
g ( s ) = ( 1 – α )g al + α ( ( 1 – β )g adg + βg ad v ), i, j = 1, 2, …, n. (4.3)

Examples of balanced two-dimensional grids in the domain S 2 are shown in Fig. 17. In Fig. 17a, a grid
∂ψ ∂ψ
aligned with the vector field B =  – -------2, -------1 (formula (4.2)) and adapted to the values of the function ϕ1(s)
 ∂s ∂s 
is shown. The grid depicted in Fig. 17b is aligned with the same vector field and adapted to the gradient of
the function f2[ϕ2(s)]. The grid in Fig. 17c is aligned with the same field and is adapted to the values of one
function and to the gradient of the other. These grids were generated using metric (4.3). The functions

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


1618 VASEVA et al.

appearing in this metric for generating the grids in Fig. 17 were defined using the basis layer-type functions
(2.7) in the form
f 1 ( ϕ 1 ) = exp ( – ϕ 1 ),
2 2 2
( ( s 1 – 0.45 ) + ( s 2 – 0.5 ) ) 
ϕ 1 ( s ) = 50 exp  – -----------------------------------------------------------------
- ,
 0.000001 
ϕ2
f 2 ( ϕ 2 ) = 20 tanh ------------
-,
0.025
2 2
ϕ 2 ( s ) = ( s 1 – 0.45 ) + ( s 2 – 0.5 ) – 0.04,
1 2 2
ψ ( s ) = v ( 1 – v ) [ ( s – 0.5 ) + 1.5 ( v – 0.5 ) ],
2
s – 0.5
where v = 0.5 1 + tanh ----------------- .
0.2
The coefficients α and β in (4.3) were as follows:
2
α = ε ( s ) = 0.1 exp ( – B /0.04 ), β = 1 (Fig. 17a),
2
α = ε ( s ) = 0.9 exp ( – B /0.03 ), β = 0 (Fig. 17b),
2
α = ε ( s ) = 0.9 exp ( – B /0.03 ), β = 0.5 (Fig. 17c).

ACKNOWLEDGMENTS
This work was supported by the Russian Foundation for Basic Research, project no. 07-01-00336, and by the
Complex Integration Project of the Siberian Branch of the Russian Academy of Sciences, project no. 1.8.

REFERENCES
1. V. D. Liseikin, A Computational Differential Geometry Approach to Grid Generation (Springer, Berlin, 2007).
2. Yu. I. Shokin, V. D. Liseikin, A. S. Lebedev, et al., Riemanian Geometry Techniques in Grid Generation (Nauka,
Novosibirsk, 2005) [in Russian].
3. V. D. Liseikin, Grid Generation Methods (Springer, Berlin, 1999).
4. S. K. Godunov and G. P. Prokopov, “On Calculation of Conformal Mappings and Grid Generation,” Zh. Vychisl.
Mat. Mat. Fiz. 7 (5), 1031 (1967).
5. J. F. Thompson, B. K. Soni, and J. Hauser, “A Reflection on Grid Generation in the 90s: Trends, Needs Influences,”
in Numerical Grid Generation in Computational Field Generation, Ed. by B. K. Soni, J. F. Thompson, J. Hauser,
and P. R. Eiseman (ERC Press, Mississippi State University, Starkville, 1996), no. 1, p. 1029.
6. H. J. Raveche, D. H. Lawrie, and A. M. Despain, A National Computing Initiative (SIAM, Philadelphia, 1987).
7. P. Knupp and S. Steinberg, Fundamentals of Grid Generation (CRC, Boca Raton, Florida, 1993).
8. J. F. Thompson, Z. U. A. Warsi, and C. W. Mastin, Numerical Grid Generation. Foundations and Applications
(Elsevier Science, New York, 1985).
9. Z. U. A. Warsi, “Tensors and Differential Geometry Applied to Analytical and Numerical Coordinate Generation,”
MSSU-EIRS-81-1 (Mississippi State University, Starkville, 1996).
10. N. N. Yanenko, The Split-Step Method in Multidimensional Problems of Mathematical Physics (Nauka, Novosi-
birsk, 1967) [in Russian].
11. V. D. Liseikin, “On the Generation of Regular Grids on n-Dimensional Surfaces,” Zh. Vychisl. Mat. Mat. Fiz. 31
(11), 41 (1991).
12. N. T. Danaev, V. D. Liseikin, and N. N. Yanenko, “On the Numerical Computation of the Motion of Viscous Gas
around a Bodies of Revolution Using A Moving Grid,” in Numerical Methods in Mechanics of Continua (ITPM
SO AN SSSR, Novosibirsk, 1980), vol. 11, no. 1, p. 51 [in Russian].
13. A. A. Charakch’yan and S. A. Ivanenko, “A Variational Form of the Winslow Grid Generator,” J. Comput. Phys.
136, 385 (1997).

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008


SOME ASPECTS OF GRID GENERATION 1619

14. B. N. Azarenok, “Variational Barrier Method of Adaptive Grid Generation in Hyperbolic Problems of Gas Dynam-
ics,” SIAM J. Numer. Analys. 40 (4), 651 (2002).
15. S. A. Ivanenko and A. A. Charakhch’yan, “Curvilinear Quadrilateral Grids,” Zh. Vychisl. Mat. Mat. Fiz. 28 (4),
503 (1988).
16. G. Liao, “On Harmonic Maps,” in Mathematical Aspects of Numerical Grid Generation, Frontiers in Appl. Math.
(SIAM, Philadelphia, 1991), vol. 8, no. 123.
17. P. J. Frey and P. L. George, Mesh Generation, Application to Finite Elements (Hermes Sci., Paris, 2000).
18. A. G. Glasser, V. D. Liseikin, and I. A. Kitaeva, “Control of the Properties of Numerical Grids through Monitor
Metrics,” Zh. Vychisl. Mat. Mat. Fiz. 45 (8), 1466 (2005) [Comput. Math. Math. Phys. 45, 1416–1432 (2005)].
19. E. G. Klimova, Yu. N. Morokov, G. S. Rivin, et al., “Mathematical Evaluation of Regions of Pollution by Rocket
Fuel Caused by Falling Spent Parts of Carrier Rockets,” Opt. Atmos. Okeana 18 (5-6), 525 (2005).
20. A. H. Glasser and X. Z. Tang, “The SEL Macroscopic Modeling Code,” Comput. Phys. Commun. 164, 237 (2004).
21. T. D. Rognlien, X. Q. Xu, and A. C. Hinmarsh, “Application of Parallel Implicit Methods to Edge-Plasma Numer-
ical Simulations,” J. Comput. Phys. 175, 249 (2002).

COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS Vol. 48 No. 9 2008

You might also like