Abstract

This paper proposes an efficient and robust algorithm for solving a physical orthotropy problem. The algorithm is based on choosing the most efficient restriction operator and on an incomplete LU decomposition suited for each orthotropy direction. Local Fourier Analysis (LFA) is carried out in order to increase the efficiency of the multigrid method. Pure diffusion with orthotropy aligned to the coordinate axis x is the model considered. Equations are discretized by Finite Difference Method with uniform grid and second-order numerical scheme. Problems are solved with geometric multigrid method, correction scheme, V-cycle and standard coarsening ratio. The asymptotic convergence factor is calculated for different multigrid components, such as restriction operators, prolongation operators and solvers. Based on the optimum components obtained by LFA, we carried out experiments to analyze the complexity and computational cost of the algorithm proposed. The main conclusion is that the methodology proposed is efficient for the resolution of problems with strong orthotropy.

Keywords: Physical orthotropy, multigrid components, diffusion, local Fourier analysis

1. Introduction

Computational Fluid Dynamics (CFD) is a branch of Computational Science that studies numerical methods used for simulating fluid flow problems. It is known that these methods usually have a high computational cost. In general, this happens as the problems that have to be solved require the resolution of algebraic equation systems whose coefficient matrices are large and sparse [1].

Linear systems are obtained by discretizing the mathematical model, which consists in approximating, through algebraic equations, each term of the mathematical model for each grid node or point. This process leads to an algebraic equation system of the form

, (1)

where is the coefficient matrix, is the variable of interest and is the independent vector.

In CFD, the methods that are traditionally employed in this process are: Finite Difference Method (FDM) [2], Finite Volume Method (FVM) [3] and Finite Element Method (FEM) [4].

The algebraic equation system given by Eq. (1) can be solved using direct or iterative methods. In this work, iterative methods were employed due to the aforementioned characteristics of linear systems in CFD (sparse and large coefficients matrices), for which iterative methods are recommended. The multigrid method is one of the most effective methods to accelerate the convergence of iterative methods when solving linear or nonlinear systems, isotropic or anisotropic problems, among others [5-7].

Anisotropic problems are fairly common in Engineering and appear in many phenomena, such as when a material has different heat conduction behaviors in different directions. In this case, the coefficients of the differential equations are distinct among themselves and generate what is called physical anisotropy. Anisotropies can also appear from discretization of grids with different spacing in each direction, for instance, boundary layer problems. This is called geometric anisotropy [5,6]. The efficiency of the multigrid method has not yet been fully achieved for problems with strong anisotropy, either physical or geometric [8].

Physical anisotropic convection problems have been investigated by Rabi and de Lemos [9], who discretized two-dimensional pure diffusion, pure advection and advection-diffusion equations by applying the finite volume method. The multigrid method was employed using correction scheme and V- and W-cycles. The authors presented a study on the different speed ranges, number of grids, number of smoothing steps at each grid level and different solvers. They concluded that there was a significant reduction in the computational effort required for increasing the values of the components of the advection velocity.

Wienands and Joppich [10] presented an in-depth study on the Local Fourier Analysis (LFA) and its application on several problems, including anisotropic problems. The authors calculated the convergence factor of the multigrid method for an anisotropic diffusion equation with different solvers and restriction and prolongation operators.

Johannsen [11] solved an anisotropic diffusion problem using finite volume method for discretizing the equations and 9-point incomplete LU (ILU) decomposition for solving the systems of linear equations. The author employed LFA to demonstrate the superior smoothing properties of ILU.

Oliveira et al. [8] evaluated geometric anisotropy for different grids and aspect ratios. They also assessed some components of the multigrid method, such as: solvers, type of restriction, number of levels and number of inner iterations, among several coarsening algorithms. They concluded that Partial Weighting (PW) had a good performance.

Vinogradova and Krukier [12] solved a three-dimensional advection-diffusion problem with intermediate anisotropy using FDM for discretizing equations and ILU for the resolution of the linear systems. They concluded that the proposed methodology is efficient, however, the coefficients of the mixed derivatives present limitations, which is a disadvantage and has no physical significance.

Vassoler-Rutz et al. [13] analyzed the effect of physical anisotropy on the multigrid method for two anisotropic diffusion problems. They used FAS scheme, V-cycle as well as Modified Strongly Implicit (MSI) and Gauss-Seidel (GS) solvers. They concluded that, for strong anisotropies, the complexity order of the multigrid method is not suitable. 

Several works on the implementation of the multigrid method found in the literature demonstrate that the choice of the multigrid components is crucial for the convergence or not of the method. Trottenberg et al. [6] state that this choice is difficult and thus small changes can considerably improve convergence. In this sense, LFA can help this choice as it allows to predict the performance of the multigrid method, since it provides estimates of the convergence rates based on the variation of the multigrid method components.

Pinto et. al. [14] solved an anisotropic diffusion problem using ILU in triangular grids. They used LFA to highlight the good smoothing properties of the solver and the asymptotic convergence of the multigrid.

Franco et. al. [15] performed LFA in transient problems and obtained the critical value of the parameter that represents the level of space-time anisotropy for 1D and 2D Fourier equations.

Oliveria et. al. [16] solved an 2D anisotropic diffusion equation. The equation was discretized by the Finite Difference Method (FDM) and Central Differencing Scheme (CDS). Correction Scheme (CS). An xy-zebra-GS smoother was proposed, which proved to be efficient and robust for the different anisotropy coefficients. They concluded that, the convergence factors calculated empirically and by LFA are in agreement.

A particular case of anisotropy is denominated orthotropy, which happens when the anisotropy occurs in orthogonal directions. In this work, an efficient and robust method for solving physical orthotropy problems using LFA is proposed. A two-dimensional diffusion mathematical model is considered, in which physical orthotropy appears in the coefficients and it will be denominated diffusion orthotropy. Equations were discretized using FDM with second-order central difference scheme.

The asymptotic convergence factor () of the multigrid method was calculated by assessing the ILU solver in different directions [7] as well as several restriction and prolongation operators. The results obtained via LFA were used to assess the influence of the diffusion orthotropy on the computational cost and took into account the CPU time and number of operations in each V-cycle and at the restriction step.

The remainder of this work is organized as follows: section 2 presents the mathematical and numerical models; section 3 discusses considerations regarding the LFA used; section 4 presents the results of the convergence analysis and complexity analysis; and section 5 presents the conclusion.

2. Mathematical and Numerical Models

For the problem presented below, the calculus domain used is given by , and the discretization of the equations is done using a uniform grid with a number of points given by , where and are the number of points in the directions and , respectively, including the boundaries.

2.1. Mathematical Model and Discretization

A model that exemplifies physical and geometric anisotropy for a two-dimensional diffusion equation is given by Trottenberg et al. (2001) as shown below,

(2)

where , , and or .

For , it is considered that the expression given by Eq. (2) is aligned with the axis of the coordinate y, so it becomes


(3)

From here, the diffusion orthotropic problem will be assessed by means of the two-dimensional diffusion equation given by Eq. (4) [5,6]

(4)

where T is the temperature, is the second derivative of T as a function of , is the second derivative as a function of and .


The source term S and the analytical solution T are given by

and .
(5)

Eq. (4) was discretized using FDM with CDS, resulting in

, (6)


where is the unknown of the system.

Figure 1(b) depicts the notation of the grid points in Figure 1(a). The points P (central), W (west), E (east), N (north) and S (south) in Figure 1(b) correspond to the points in Figure 1(a), respectively.


2345.png
Figure 1. Points of a uniform two-dimensional grid.

The classic 5-point finite difference is not convergent for cases of general anisotropy, such as the example given by the full tensor

.

Therefore, this methodology cannot be generalized to any type of anisotropic problem. In this paper, we analyze a specific case of anisotropy given by the tensor

,

which represents a case of orthotropy.


The discretization of Eq. (4) results in Eq. (6), and for the inner points, considering and

, , .
(7)

For the boundaries north, south, east and west,, .

2.2. Multigrid Method and Computational Details

The multigrid method accelerates the convergence rate of iterative methods. It consists in employing a group of grids with different refinement levels. At each refinement level of the grid, the more oscillatory errors are smoothed, and only low frequency errors remain. After passing to another grid, the remaining low frequency errors become more oscillatory. The efficiency of this process, called smoothing, depends on the choice of a suitable solver.

For employing multigrid, besides a solver with good smoothing properties, grid transfer operators are required (restriction and prolongation).

In [8] and [17], restriction through partial weighting in the directions x and y, henceforth denoted by  and , respectively, applied in problems involving geometric anisotropy was proposed. These operators are given in stencil notation as

 : ,  : .
(8)

In this work, such restriction was combined with 7-point incomplete LU decomposition (henceforth denoted by ILU). According to [18], this decomposition has a better convergence factor than 5-point incomplete LU decomposition for orthotropic problems.

In Eq. (4), discretized using FDM, the stencil for the 5-point Laplacian operator is given by

.
(9)

The decomposition of the same operator will be given by

,
(10)


note that in this case, .

Thus, the decomposition is represented by:

,
(11)

where is the stencil of a lower triangular matrix, is the stencil of an upper triangular matrix and is the residual matrix.

The iterative process for solving Eq. (4) can be:

,

,

,

.

(12)

Depending on the ordination of the grid points, different directions can be obtained for the decomposition. In lexicographical order, [18], is given by

.
(13)

Another example of ordination for , [18], is given by

.

.

(14)

The linear system given by Eq. (1) was solved using geometric multigrid method [5,6] with correction scheme (CS), V-cycle and zero initial guess.

The coarsening ratio is given by (standard coarsening) [18]. The grid transfer operators employed were: Injection Restriction (INJ), Half Weighting (HW), Full Weighting (FW) (see [6]), Partial Weighting in ( ), Partial Weighting in () as well as prolongation by bilinear interpolation and 7-point interpolation. The systems of equations obtained by means of discretization were resolved using 7-point ILU solvers in different directions (, , among others).

The stop criterion used to interrupt the iterative process is based on the nondimensionlized residual norm. The residual of the system of algebraic equation is defined by

,
(15)

where is the solution of the unknown in the iteration .

Considering and , if the iterative process is interrupted if .

Double precision arithmetic was used for the simulations. The numerical codes were implemented in the Fortran 2003 language, using the Intel 9.1 Visual Fortran application. All numerical results were obtained in a computer with Intel Core i7 2.66 GHz processor, 16 GB RAM and Windows 8 operating system, 64-bit version.

3. Local Fourier Analysis

LFA allows to predict the performance of the multigrid method as it supplies estimates of the convergence rate of its components. Therefore, LFA becomes a powerful tool in quantitative analysis and in the research of efficient multigrid methods.

In order to perform the LFA, general discrete linear operators with constant coefficients are considered, which are defined in an infinite grid , where the influence of the boundaries can be dismissed [6].

Consider the grid functions of the form of

, with ,
(16)

where varies in the infinite grid and is a parameter that characterize the frequency of the function concerning to grid .

For , every function of the grid are eigenfunctions of a discrete operator that can be written as a stencil.

Thus,

,
(17)

where

(18)

and is the stencil notation of the operator, were for  the 5-point stencil.

In order to smooth as well as to analyze the two grids, it is necessary to distinguish between components of low and high frequency of and .

It is known that [6] only

with ,
(19)


are visible in .

For each , three other frequency components with coincide in with and are not visible in . Therefore, the low- and high-frequency components are defined as follows:

is a low-frequency component

is a high-frequency component (see Figure 2).

234.png
Figure 2. Low- (inner white area) and high-frequency (hatched area) areas.


Considering the frequencies

,
(20)

the correction operator of the coarse grid is given by ans is represented by a 4x4 matrix , as follows

with ,
(21)

where is represented by a 4x4 identity matrix.

is the 4x4 matrix:

,
(22)

where are eigenvalues, evaluated by , and are stencil coefficients. (see [7])

The discrete Laplace operator given by Eq. (9) is represented by:

,
(23)

where , , and .

The restriction operator is a 1x4 matrix, and is given by:

,
(24)

For the restricion operator, , for the restriction operator, , for the restriction operator, , for the (see Eq.(8)), and for the (see Eq.(8)), .

The prolongation operator is a 4x1 matrix, and is given by:

,
(25)

For the bilinear prolongation operator, and for the 7-point prolongation operator, [10].

The operator of the grid coarse is a 1x1 matrix, and for the discrete Laplace operators, is represented by or .

A representation for the operator of two grids can be obtained by a matrix of the form

,
(26)

where is given by Eq. (21) and is a 4x4 matrix and represents the smoothing operator given by:

.
(27)


In order to perform the LFA using the solver, the smoothing operator , according to [6], is given by

, ,
(28)

with

.
(29)

where , for , and for , .

The asymptotic convergence factor can be calculated by

,
(30)

where and is the spectral radius of the 4x4 matrix .


In this work, LFA was used to determine the asymptotic convergence factor of the multigrid method combining solvers in several directions (such as and ), , HW, INJ, and restriction operators and bilinear and 7-point prolongation operators.

4. Numerical Results

An orthotropic diffusion equation was solved using 7-point ILU solver in different directions. Several restriction operators and two prolongation operators were employed. We proposed an algorithm that presents the lowest asymptotic convergence factor values and the lowest computational cost for the multigrid method.

Equation (4) was assessed for and , with . When or in this work, there is symmetric orthotropy. For instance, is an orthotropy symmetric to .

Section 4.1 presents the convergence analysis by means of LFA. Only the optimum components obtained via LFA will be used in the complexity analysis in section 4.2.

4.1. Convergence Analysis

Figure 3 depicts , given by Eq. (30), with in the EN, NE, ES, SE directions, restriction, bilinear prolongation, number of inner iterations , and , with .

Review 644666424766 2434 Fig3.png
Figure 3. versus orthotropy coefficients with in different directions.


It is noticed that for , has a good performance. For , also has a good performance, that is, . By using solvers in the ES and SE directions, the multigrid method did not present a good performance for any of the orthotropy coefficients studied.

For the analyses presented below, tests were carried out using only the solvers that had the best performances in previous analysis.

Figure 4 presents using as solvers, for and for ; ; restriction; 7-point and bilinear prolongation; and , with .


Fig4.png
Figure 4. versus orthotropy coefficients with different interpolation operators.


It can be observed that the restriction|prolongation combinations |bilinear and |7-points had a good performance and presented very similar convergence factors.

Bilinear prolongation operator was used in the following analysis as it is easy to program and demands fewer memory resources. The asymptotic convergence factors were compared with different restriction operators.

Figure 5 presents using as solvers, for and for ; ; , HW, INJ, and restriction; bilinear prolongation; and , with .

Fig5.png
Figure 5. versus orthotropy coefficients with different restriction operators.


Figure 5 demonstrates that for and , with (symmetric orthotropies), presents very similar values. It is noted that for orthotropic problems , the lowest values for are achieved with and restriction, which show very similar values.

Based on the results presented, we propose Algorithm 1, which combines ILU solver in different directions, with and restrictions. The algorithm is presented below. The abbreviation REST, used in the algorithm represents any of the restrictions ( or ) previously defined.


Algorithm 1.
_______________________________________________________

if then

Apply smoothing with REST restriction

else if then

Apply smoothing with restriction

else

Apply REST restriction

end if
_______________________________________________________


Remark 1: Pinto et. al. [14] solved an anisotropic diffusion problem using ILU in triangular grids and several anisotropies not aligned with x or y. The authors noted that ILUNE and ILUEN were efficient for some of the anisotropies, making it is possible to adapt this algorithm to an alternating form so it will work well for any anisotropy.

Remark 2:   One of the biggest problems in the literature is the numerical resolution of the Navier-Stokes equation. Depending on its numerical formulation (simplec, projections [19]), a great computational effort is required at the numerical solution of the continuity equation, which can be represented by Poisson’s equation. Moreover, the algorithm depends on the mesh sweep and is independent of the complexity of the proposed problem equation. Therefore, this algorithm can be adapted to certain orthotropic problems with a certain degree of complexity.

Next, the asymptotic convergence factor , calculated by LFA, and the empiric asymptotic convergence factor , for different orthotropy coefficients, are presented.

Figure 6 shows Algorithm 1 with REST , and bilinear prolongation.

Fig6.png
Figure 6. and versus orthotropy coefficients .


It is observed that for every orthotropy coefficients assessed. Furthermore, calculated by LFA is in accordance with calculated experimentally.

Figure 7 depicts the numerical asymptotic convergence factor calculated by LFA and the experimental asymptotic convergence factor , for different orthotropy coefficients for different grids. Algorithm 1 with REST = , and bilinear prolongation was used. As the grid becomes more refined, for every orthotropy coefficient analyzed, what demonstrates the robustness of the methodology assessed.

Fig7.png
Figure 7. and versus orthotropy coefficients for different number of grid points.


Some of the data presented in Figure 7 can be better visualized in Table 1.


Table 1. and for some orthotropy coefficients and different number of grid points.


Next section presents the complexity analysis of multigrid. For the analysis, multigrid was built with the components that had the best convergence factors according to LFA. In addition, a comparison between partial weighting and full weighting will be presented.

4.2. Complexity Analysis

In order to assess the effect of the number of unknowns on CPU time, optimum components obtained via LFA were used. Figures 8 (a) and 8 (b) show, for and restrictions, respectively, that for the isotropic problem , the is not lower. As the problem becomes more orthotropic , the decreases for every N value assessed. For every orthotropy coefficient assessed, the with restriction is very similar to the with restriction, that is, .

It is also observed for symmetric orthotropies with , that the values of obtained are extremely similar.


Fig8 a.png
Fig8 b.png
Figure 8. CPU time versus number of nodes (N).


In order to assess the performance of the multigrid method with different anisotropy coefficients, a curve adjustment of the form [20] was made, where represents the complexity order of the solver, N is the number of grid points and is a constant that depends on the method. The closer the value of is to one, the better the performance of the method used. Ideally, multigrid presents , what means that the CPU time grows linearly with the increase of N. Results are shown in Table 2 for both restrictions assessed ( and ).

One can observe in Table 2 that, for every orthotropy employed, the multigrid method has a good performance, since in every case. These results prove the efficiency and robustness of Algorithm 1, proposed in this work.

Table 2. Complexity order for different orthotropy coefficients .


The values obtained for the convergence factor, presented in section 4.1, and for the complexity order concerning to the and restriction operators (Table 2) are quite similar and thus insufficient to decide which one results in a more efficient algorithm.

To complement the analysis, the number of arithmetical operations performed in each V-cycle and at the restriction step for each one of the operators was assessed.

These arithmetical operations concern to floating-point operations (flops) performed during the iterative process and are not affect by the hardware used. Each addition, multiplication and division operation correspond to 1 flop.

Tests were carried out for ( is the number of points of the finest grid, considering a problem whose maximum number of levels is ) and for some values of . Table 3 presents the ratio between number of flops of a V-cycle and number of points of the finest grid . Table 4 shows the ratio between number of flops performed in each restriction and the number of points of the finest grid .

Table 3. Ratio between number of flops of a V-cycle and the number of points of the finest grid.


Table 4. Ratio between number of flops of the restriction and number of points of the finest grid.


According to Table 3, the multigrid cycle that requires the lowest number of flops is the cone with operator, except for the isotropic case . Considering only the restriction step, results presented in Table 4 show a great advantage of the operator over the operator regarding the number of flops performed. For every case, the number of flops for is roughly 75% lower than the number of flops for .

Remark 3: 75% of the reduction in the number of operations in the restriction was expected. However, this has little impact on the total cost of the cycle, which shows the great concentration of operations in the execution of the solver.

The remaining orthotropy coefficients assessed showed similar performances to those presented in Figure 5 and Tables 3 and 4, what confirms the efficiency and robustness of the algorithm proposed, in addition to the low computational cost with the use of the operator.

5. Conclusions

- For the directions assessed (EN, NE, ES, SE) for standard multigrid method ( restriction operator and bilinear prolongation), it is concluded that when using for and for .

- With restriction, for and for , results showed that the 7-point and bilinear prolongation operators presented a similar performance, and for every value of assessed, was obtained.

- With bilinear interpolation, for and for , the lowest values of are obtained with and restriction operators, and the values of with these operators are very similar.

- Using Algorithm 1, for every orthotropy coefficient assessed and as the grid becomes more refined.

- The for every value of assessed.

- The complexity order of the multigrid method with Algorithm 1 is close to one for every orthotropy assessed. For , for example, with this algorithm.

- The computational cost of multigrid depends on the number of flops of the restriction in a V-cycle. Using Algorithm 1 with restriction, the computational cost is 75% lower than with restriction.

- The Algorithm 1 with restriction proposed in this work is efficient, robust and has low computational cost.

Acknowledgements

The authors would like to acknowledge the Graduate Program in Numerical Methods for Engineering (PPGMNE) of the Federal University of Parana (UFPR). The first author would like to thank the Federal Institute of Education, Science and Technology of Santa Catarina (IFSC) for the financial support.

References

[1] Thekale, T. Gradl, K. Klamroth, U. Rüde, U. Optimizing the number of multigrid cycles in the full multigrid algorithm. Numerical Linear Algebra with Applications. Vol. 17 (2010) 199–210.

[2] R.H. Pletcher, J.C. Tannehill, D.A. Anderson, Computational Fluid Mechanics and Heat Transfer, 3ª ed. CRC Press, USA, 2013.

[3] G.H. Golub, J.M. Ortega, Scientific Computing and Differential Equations: an Introduction to Numerical Methods, Academic Press, 1992.

[4] Y. Saad, Iterative Methods for Sparse Linear Systems, 2ªed., PWS, Philadelphia, 2003.

[5] W.L. Briggs, V.E. Henson, S.F. Mccormick, A Multigrid Tutorial, 2ª ed., SIAM, USA, 2000.

[6] U. Trottenberg, C. Oosterlee, A. Schüller, Multigrid, Academic Press, England, 2001.

[7] P. Wesseling, An Introduction to Multigrid Methods, John Wiley & Sons, England, 1992.

[8] F. Oliveira, M.A.V. Pinto, C.H. Marchi, L.K. Araki. Optimized partial semicoarsening multigrid algorithm for heat diffusion problems and anisotropic grids. Applied Mathematical Modelling. Vol. 36 (2012) 4665–4676. 

[9] J.A. Rabi, M.J.S. de Lemos. Optimization of convergence acceleration in multigrid numerical solutions of conductive-convective problems. Applied Mathematics and Computational. Vol. 124 (2001) 215-226.

[10] R. Wienands, W. Joppich, Practical Fourier Analysis for Multigrid Methods, CRC Press, USA, 2005.

[11] K. Johannsen. A robust 9-point ILU smoother for anisotropic problems, IWR Preprint, University of Heidelberg, 2005.

[12] S.A. Vinogradova, L.A. Krukier, The use of incomplete LU decomposition in modeling convection-diffusion processes in an anisotropic medium. Mathematical Models and Computer Simulations. Vol. 5 (2013) 190-197.

[13] G. Vassoler-Rutz, M.A.V. Pinto, R. Suero, Comparison of the physical anisotropy of multigrid method for two-dimensional diffusion equation, in: Proceedings of COBEM, Rio de Janeiro, Brazil, (2015) 6-11.

[14] M.A. V. Pinto, C. Rodrigo, F.J. Gaspar, C.W. Oosterlee. On the robustness of ILU smoothers on triangular grids, Applied Numerical Mathematics. Vol. 106 (2016), 37-52.

[15] S.R. Franco, F.J. Gaspar, M.A.V. Pinto, C. Rodrigo. Multigrid method based on a space-time approach with standard coarsening for parabolic problems. Applied Mathematics and Computation. Vol. 317 (2018) 25-34.

[16] M.L. Oliveira, M.A. V. Pinto, S.F.T. Gonçalves, G. Vassoler-Rutz. On the Robustness of the xy-Zebra-Gauss-Seidel Smoother on an Anisotropic Diffusion Problem. CMES. Vol.117 (2018) 251-270.

[17] F. Oliveira. Effect of Two-Dimensional Anisotropic Meshes on the Performance of the Geometric Multigrid Method. Tese de doutorado, UFPR, 2010. In portuguese.

[18] P. Wesseling, C.W. Oosterlee. Geometric Multigrid with Applications to Computational Fluid Dynamics. Journal of Computation and Applied Mathematics. Vol. 128 (2001) 311-334.

[19] J.L. Guermond, P. Minev, Jie Shen. An overview of prejection methods for incompressible flows. Computer methods in apllied mechanics and engineering. Vol. 195 (2006)  6011-6045.

[20] R.L. Burden, J.D. Faires, Numerical Analysis, 9ª ed., Cengage Learning, USA, 2010.

Back to Top

Document information

Published on 11/03/19
Accepted on 07/03/19
Submitted on 09/04/18

Volume 35, Issue 1, 2019
DOI: 10.23967/j.rimni.2019.03.001
Licence: CC BY-NC-SA license

Document Score

0

Views 110
Recommendations 0

Share this document