Acessibilidade / Reportar erro

Grid generation and adaptation by functionals

Abstract

Accuracy of a simulation is strongly depend on the grid quality. Here, quality means orthogonality at the boundaries and quasi-orthogonality within the critical regions, smoothness, bounded aspect ratios, solution adaptive behavior, etc. We review various functionals for generating high quality structured quadrilateral meshes in two dimensional domains. Analysis of Winslow and Modified Liao functionals are presented. Numerical examples are also presented to support our theoretical analysis. We will demonstrate the use of the Area functional for generating adaptive quadrilateral meshes.

grid generation; adaptation; functional; quadrilateral mesh


Grid generation and adaptation by functionals

Sanjay Kumar Khattri

Stord Haugesund University College, Norway, E-mail: sanjay.khattri@hsh.no, http://ans.hsh.no/home/skk/

ABSTRACT

Accuracy of a simulation is strongly depend on the grid quality. Here, quality means orthogonality at the boundaries and quasi-orthogonality within the critical regions, smoothness, bounded aspect ratios, solution adaptive behavior, etc. We review various functionals for generating high quality structured quadrilateral meshes in two dimensional domains. Analysis of Winslow and Modified Liao functionals are presented. Numerical examples are also presented to support our theoretical analysis. We will demonstrate the use of the Area functional for generating adaptive quadrilateral meshes.

Mathematical subject classification: 65M50, 76-08.

Key words: grid generation, adaptation, functional, quadrilateral mesh.

1 Introduction

Accuracy of numerical solutions of partial differential equations on a grid is very much depend on the quality of the underlying grid. There are various parameters for measuring grid quality. For example, orthogonality of grid lines and grid density in the regions of large solution gradients. A desired grid may be an orthogonal grid with high grid density in the areas of sharp solution gradients. Variational methods has been used for improving quality of a given grid [1]. In the variational methods, a grid functional is defined. Grid functional is an algebraic expression of the position vectors of the internal nodes of a mesh. Optimization of the grid functional may result in a grid with desired properties such as orthogonal grid lines, equal cell areas, linear or parallelogram cells [see 2] and untangled mesh [4, 5, 6]. There are many algebraic functionals for grid generation and optimization [cf. 2, 4, 5, 6, 7, 8, 9]. The first study of grid generation by algebraic functionals were done in [10]. Castillo and Steinberg introduced Length, Orthogonality and Area functionals [10]. Area functional are well known for producing robust quadrilateral meshes. For a detailed description of properties of area functionals, the interested readers are referred to [9]. Recently the area functional has been used for generating adaptive quadrilateral meshes [12].

Let x(x, h) and y(x, h) be the coordinates of a node in a mesh. Let us further assume that x and y are twice differentiable functions of the independent variables x and h. An integral functional can be defined as follows

We are interested in finding the functions x(x, h) and y(x, h) for which the integral functional attains an extremal value. Such coordinates x and y define a mesh with desirable properties. The integral functional is also referred to as control function for adaptive grid generation [1]. The conditions for the extremal value of the integral functional are expressed by the Euler-Lagrange equations. The two Euler-Lagrange equations are

The functions x and y, which satisfy the above Euler-Lagrangian equations, are called the extremal of the integral functional .

Let us define some quantities of interest. Figure 1 shows a quadrilateral cell, and this cell belongs to a mesh. Let the co-variant vector at the node o and in the direction oa is g1, and another co-variant vector at the node o but in the direction ob is g2. These vectors are given as

Other interesting quantities such as the Jacobian and g-tensor matrix can be defined from the co-variant vectors. The columns of the Jacobian matrix are the co-variant vectors. The g-tensor matrix is the product of the Jacobian matrix with it's transpose. Thus, the Jacobian matrix and the g-tensor at the node o and for the cell shown in the Figure 1 are given as

The layout of the paper is as follows. In the Section 2, several functionals are presented. Continuous and discrete versions of the functionals are presented. Section 3 presents several numerical experiments, and finally Section 4 concludes the paper.


2 Discrete Functionals

Let us first introduce some quantities of interest. These will be used later in formulating algebraic functionals. Figure 2 is a 2×2 structured mesh. We use this figure for defining these quantities.


J(ki) refers to the Jacobian (determinant of the Jacobian matrix J(ki)) at the node k and for the cell i. Table 1 lists the Jacobian matrix for the four cells surrounding the node k. g1(ki) refers to the co-variant base vector at the node k and for the cell i. The base vector g1 points along horizontal grid lines. Similarly, g2(ki) refers to the co-variant base vector at the node k and for the cell i, and it points along the vertical grid lines. Table 2 lists the co-variant vectors for the Figure 2. It should be noted that column vectors of the Jacobian matrix are the co-variant base vectors. For example, the column vectors of J(k1) are g1(k1) and g2(k1). That is J(k1) = [g1(k1) g2(k1)]. g(ki) refers to the co-variant metric tensor at the node k and for the cell i. It is defined as g(ki) = J(ki)tJ(ki). gmn(ki) refers to the (m, n) coefficient of the co-variant metric tensor g(ki) for the node k and for the cell i. It can be seen that g11(ki) = g1(ki)t·g1(ki) and g12(ki) = g1(ki)t·g2(ki). Similarly, other coefficients can be defined. The coefficient g12 is a measure of the angle between the co-variant base vectors g1 and g2. While, the coefficient g11 is a measure of the discrete L2 length of the co-variant vector g1.

Let us consider a structured quadrilateral mesh (each internal node is surrounded by four quadrilaterals) consisting of n internal nodes. The following functionals can be defined

2.1 Area Functional

The integral form of the standard Area functional is given as

The Euler-Lagrangian equations for the Area functional are

In the simplified form the above equations can be written as

[see 9]. The above Euler-Lagrangian equations are non-elliptic, coupled and quasi-linear [cf. 9]. For generating adaptive mesh, the author proposed the following variation in the Area functional

[12]. In the above equation, s(k) is called the adaptive function, and s(ki) is the value of the adaptive function at the node k and for cell i.

2.2 Length Functional

The integral form of the Length functional is given as

[7, 8, 9, and references therein]. The conditions of extremality of the above length functional are given by the following Euler-Lagrangian equations

The above Laplace's equations can be solved in the computational domain [0,1] × [0,1] with a specified value of x and y on the boundary. The Euler-Lagrangian equations associated with the Length functional are linear and uncoupled.

The discrete Length functional [1, 10] is give as follows

2.3 Orthogonality Functional

The integral form of the Orthogonality functional [7, 8, 9, and references therein] is given as follows

The Euler-Lagrangian equations corresponding to the minimization of the above integral are

These Euler-Lagrangian equations are quasilinear, coupled and non-elliptic in nature [9]. A simplified form the above Euler-Lagrangian equations is

[see 9]. This functional takes only non-negative values, and it would attain a minimum value of zero for a completely orthogonal grid. The discrete version of the above Orthogonality functional [1, 10] is given as follows

It is found [cf. 1, 7, 8, 10, 13, 14] that a linear combination of Area, Length and Orthogonality functionals can produce robust grids in complicated 2D domains.

2.4 Combination of Length, Area and Orthogonality Functionals

A combined functional is given as

[1, 7, 8, 10, 13, 14]. Here, the parameters

A, L and O satisfy\colon A + L + O = 1.0 and A> 0, L> 0, O> 0. A serious drawback of the above combined functional is a suitable choice of the parameters. It requires an experience in coming up with a good set of parameters [10]. It was found [13, 14] that the following choice of parameters

produces robust grid in many practical domains. The corresponding functional is referred as the Knupp's functional. Presented numerical work shows that this functional can produce good grids. The Euler-Lagrangian [10] equations for the minimization of the Knupp's functional are

2.5 Winslow Functional

The Winslow functional is given as follows

[1, 3, 16]. Here, | J(ki)| is the determinant of the Jacobian matrix. One very important feature of the above functional is that it has barrier. It means the value of the functional approaches infinity when the cells degenerate. That is | J| ® 0. Thus, this functional produces unfolded grids. Numerical experiments also prove this feature of the Winlow functional. Since g11 = g1·g1, and g22 = g2·g2. It can be shown that the numerator (g11+g22) in the Winslow functional (30) is the Frobenius norm of the Jacobian matrix. That is

Here, Jmn are the components of the Jacobian matrix J. Thus, the Winslow functional 30 can be written as follows

It can be seen easily that the Frobenius norm a 2×2 matrix A, and its inverse are related as ||A-1|| = . Here, |A| is the determinant of the matrix A. The condition number K( A) of a matrix A can be written as K(A) = ||A|| ||A-1||. Here, the norm is the Frobenius norm. Thus, the Winslow functional can be written as follows

Thus, the minimization of the functional (30) is equivalent to the minimization of the condition number of the Jacobian matrix. A detailed description ofthe above analysis can also be found in [4, 5, 6, 16]. The condition number K( J(ki)) can also be expressed as

The g(ki) tensor matrix is give as

Let l1 and l2 be the eigenvalues of the matrix g(ki). Then

Here, we have used the relation |J|2 = |g|. Thus, the Winslow functional is bounded from below.

2.6 Liao Functional

The Liao functional for grid generation was proposed in [11], and is give as follows

2.7 Modified Liao Functional

The Liao functional can produce folded grids. We will explore it through numerical experiments. In the literature, following modification [1] of the Liao functional is given

In the above equation, g(ki) is the determinant of the covariant metric tensor g(ki). It can be shown that g = J2, where J is the Jacobian (determinant of the Jacobian matrix), and g is the determinant of the co-variant metric tensor. Thus, this functional, similar to the Winslow functional (30), has a barrier. The value of the functional approaches infinity when the cells degenerate. That is |J| ® 0. Thus, this functional produces unfolded grids. Numerical experiments also prove this feature of the functional. The above functional can remove the folded grids produced by the Liao functional. The Modified Liao functional can also be written as follows

The Modified Liao functional minimizes the square of the condition number where as the Winslow functional minimizes the condition number.

3 Numerical examples

We are interested in finding such a mesh for which the gradient of the functionals vanish. The minimization of functionals can be performed by a line search algorithms such as Newton's iteration. For the numerical experiments instead of performing the global optimization we solved the local minimization problems for a single node at a time [15]. In all numerical examples, initial grid was generated by linear transfinite interpolation [1].

3.1 Adaptive Grid by Area Functional

It is generally not recommended to uniformly refine the whole mesh in the hope of capturing the underlying physics. It is desired to adapt a given grid to the requirement of the underlying problem. A grid generating algorithm should be able to allocate more grid nodes in the part of the domain where large solution gradients occur, and fewer grid nodes in the part of the domain where solution is flat. Such grids are called solution-adaptive. Behavior of the underlying solution can be obtained by posteriori indicators [17]. These indicators can be computed on a coarse mesh, and they can be used to formulate adaptive function s(x,y) in the equation (12). In the present work, the adaptive function s(x,y) is given in the analytic form.

Figures 3 and 4 report the outcome of our numerical experiments. It should be noted that even after adaptation the quadrilateral meshes are convex. One other advantage of mesh adaptation by Area functional is that it preserves the mesh topology, and writing a solver for a structured mesh is easier compared to unstructured mesh.


3.2 Winslow Functional vs Algebraic Method

Algebraic grid generation methods such as transfinite interpolations [1] are extensively used for generating grids. Though, they are one of most simplest method of grid generation but algebraic methods can produce folded grids for curved domains as can be seen in the Figure 5. One other disadvantage of algebraic grid generation is that boundary discontinuity can prorogate inside the domain. It is clear from Figure 6 that Winslow functional smooth the grid, and removes the folded grid lines.


3.3 Liao, Modified Liao and Area Functionals

In this example, we perform experiments for comparing Liao, Modified and Area functional on a simple domain. Outcome of our results are shown in Figures 10, 11 and 12. It can be seen from these figures that Modified Liao functional does indeed removes the inverted elements from the mesh but still the quality of the mesh generated by the area functional shown in the Figure 11 is certainly better than both Liao and Modified Liao.


3.4 Length, Area and Knupp's Functionals

In this example, we compare the Length, the Area and the Knupp functionals. Figures 10, 11 and 12 are the outcome of our numerical work. The Figure 10 is a grid by the Length functional, the Figure 11 is a grid by the Area functional, and the Figure 12 is a grid by the Knupp's functional. It can be seen that grid by the Area and Knupp's functional are better than the grid produced by the Length functional.

3.5 Length and Knupp's Functionals

In this example, we are comparing Length, and the Knupp's Functional. Outcome of our numerical work is reported in Figures 13 and 14. Figure 13 is a grid generated by the Length functional. Figure 14 is grid generated by the Knupp's functional. It can be seen that the grid generated by the Knupp's functional is of superior quality.


4 Conclusions

We have presented the formulation of various functionals for generating quadrilateral meshes, and an analysis of Winslow and Modified Liao functionals that is consistent with the numerical experiments. Numerical experiments show that Winslow and Modified Liao functionals can remove the folded grids as was expected from theoretical analysis. It has been shown that Area functionals can be used for generating robust adaptive meshes. Further research is required in formulating adaptive function from a posteriori error estimators.

Received: 26/VI/06. Accepted: 22/II/07.

#672/06.

  • [1] J.F. Thompson, B.K. Soni and N.P. Weatherill, Handbook of Grid Generation. CRC Press, 1998.
  • [2] S.K. Khattri, A New Smoothing Algorithm for Quadrilateral and Hexahedral Meshes,Lecture Notes in Computer Science, Volume 3992, Apr 2006, Pages 239-246, DOI 10.1007/ 11758525_32, URL http://dx.doi.org/10.1007/11758525_32
  • [3] A.M. Winslow, Equipotential zoning of two dimensional meshes. J. Computat. Physics, 1 (1967).
  • [4] P.M. Knupp, Jacobian-Weighted Elliptic Grid Generation. SIAM J. Sci. Comput., 17(6) (1996), 1475-1490.
  • [5] P.M. Knupp, Algebraic mesh quality metrics. SIAM J. Sci. Comput., 23 (2001), 193-218.
  • [6] P.M. Knupp, Hexahedral Mesh Untangling and Algebraic Mesh Quality Metrics. Proceedings, 9th International Meshing Roundtable, Sandia National Laboratories. 9 (2002), 173-183.
  • [7] J.G. Tinoco-Ruiz and P. Barrera-Sánchez, Area control in generating smooth and convex grids over general plane regions. J. Comput. Appl. Math., 103 (1999), 19-32.
  • [8] J.G. Tinoco-Ruiz and P. Barrera-Sánchez, Smooth and convex grid generation over general plane regions. Math. Comput. Simulation, 46 (1998), 87-102.
  • [9] J.G. Tinoco, P. Barrera and A. Cortés, Some Properties of Area Functionals in Numerical Grid Generation. X Meshing RoundTable, Newport Beach, California, USA. 2001.
  • [10] J.E. Castillo, On Variational Grid Generation. Ph.D. Thesis, The University of New Mexico, Albuquerque, New Mexico, 1987.
  • [11] G. Liao and H. Liu, Existence and C(0, a) regularity of a minimum of a functional related to grid generation problems. Num. Math. PDEs, 9 (1993).
  • [12] S.K. Khattri, Analysing finite volume for single phase flow in porous media. Journal of Porous Medium, 10 (2007).
  • [13] P.M. Knupp and S. Steinberg, Fundamentals of Grid Generation. CRC Press. Boca Raton, Ann Arbor, London, Tokyo, 1993.
  • [14] P.M. Knupp, A robust elliptic grid generator. J. Comp. Phys., 100 (1992), 409-418.
  • [15] S.K. Khattri, An effective quadrilateral mesh adaptation. Journal of Zhejiang University Science A., 7 (2007), 2018-2021.
  • [16] P.M. Knupp, L. Margolin and M. Shashkov, Reference Jacobian Optimization-Based Rezone Strategies for Arbitrary Lagrangian Eulerian Methods. Report No. LA-UR-01-1194. On line avaibale report at "http://cnls.lanl.gov/ shashkov/papers/report.ps".
  • [17] S.K. Khattri, Analysing an Adaptive Finite Volume for Flow in Highly Heerogenous Porous Medium. Accepted for publication in the International Journal of Numerical Methods for Heat & Fluid Flow. Available at http://www.mi.uib.no/ ~ sanjay/publicatins.html

Publication Dates

  • Publication in this collection
    24 July 2007
  • Date of issue
    2007

History

  • Accepted
    22 Feb 2007
  • Received
    26 Apr 2006
Sociedade Brasileira de Matemática Aplicada e Computacional Sociedade Brasileira de Matemática Aplicada e Computacional - SBMAC, Rua Maestro João Seppe, nº. 900 , 16º. andar - Sala 163, 13561-120 São Carlos - SP Brasil, Tel./Fax: 55 16 3412-9752 - São Carlos - SP - Brazil
E-mail: sbmac@sbmac.org.br