## 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

 ${\displaystyle AT=b}$, (1)

where ${\displaystyle A\in {R^{NxN}}}$ is the coefficient matrix, ${\textstyle T\in {R^{N}}}$ is the variable of interest and ${\textstyle b\in {R^{N}}}$ 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 (${\textstyle \rho _{loc}}$) 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 ${\textstyle {0}\leq {x}\leq {1}}$, ${\textstyle {0}\leq {y}\leq {1}}$ and the discretization of the equations is done using a uniform grid with a number of points given by ${\textstyle N=N_{x}.N_{y}}$ , where ${\textstyle N_{x}}$ and ${\textstyle N_{y}}$ are the number of points in the directions ${\displaystyle x}$ and ${\displaystyle y}$, 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,

 ${\displaystyle -\left|{{g}^{2}}+\varepsilon \,{{w}^{2}}\right|\,{{u}_{xx}}+2\left(1-\varepsilon \right)g\,w\,{{u}_{xy}}-\left|{{w}^{2}}+\varepsilon \,{{g}^{2}}\right|\,{{u}_{yy}}=S}$
(2)

where ${\displaystyle g=\cos(\alpha )}$, ${\displaystyle w=sen\,(\alpha )}$, ${\displaystyle 0\leq \alpha \leq {\frac {\pi }{2}}}$ and ${\displaystyle 0<\varepsilon <<1}$ or ${\displaystyle \varepsilon >>1}$.

For ${\displaystyle \alpha ={\frac {\pi }{2}}}$, it is considered that the expression given by Eq. (2) is aligned with the axis of the coordinate y, so it becomes

 ${\displaystyle -\varepsilon \,{{u}_{xx}}-\,{{u}_{yy}}=S.}$
(3)

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

 {\displaystyle \left\{{\begin{aligned}&-\varepsilon {{T}_{xx}}-\,{{T}_{yy}}=S\\&T\left(0,y\right)=T\left(x,0\right)=T\left(x,1\right)=T\left(1,y\right)=0\\\end{aligned}}\right.}
(4)

where T is the temperature, ${\textstyle T_{xx}}$ is the second derivative of T as a function of ${\textstyle x}$, ${\textstyle T_{yy}}$ is the second derivative as a function of ${\textstyle y}$ and ${\textstyle \varepsilon >0}$.

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

 ${\textstyle S=2\left[\varepsilon \left(1-6{{x}^{2}}\right){{y}^{2}}\left(1-{{y}^{2}}\right)+\left(1-6{{y}^{2}}\right){{x}^{2}}\left(1-{{x}^{2}}\right)\right]}$ and ${\textstyle T(x,y)=({{x}^{2}}-{{x}^{4}})({{y}^{4}}-{{y}^{2}})}$.
(5)

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

 ${\displaystyle {{a}_{P}}{{T}_{P}}+{{a}_{W}}{{T}_{W}}+{{a}_{N}}{{T}_{N}}+{{a}_{E}}{{T}_{E}}+{{a}_{S}}{{T}_{S}}={{b}_{P}}}$, (6)

where ${\displaystyle T}$ 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 ${\textstyle (i,j),(i-1,j),(i+1,j),(i,j+1),(i,j-1)}$ in Figure 1(a), respectively.

 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

 ${\displaystyle \left({\begin{matrix}{{k}_{11}}&{{k}_{12}}\\{{k}_{21}}&{{k}_{22}}\\\end{matrix}}\right)}$.

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

 ${\displaystyle \left({\begin{matrix}\varepsilon &0\\0&1\\\end{matrix}}\right)}$,

which represents a case of orthotropy.

The discretization of Eq. (4) results in Eq. (6), and for the inner points, considering ${\textstyle h_{x}^{}={\frac {1}{N_{x}^{}-1}}}$ and ${\textstyle h_{y}^{}={\frac {1}{N_{y}^{}-1}}}$

 ${\displaystyle {{a}_{P}}=\left({\frac {2\varepsilon }{h_{x}^{2}}}+{\frac {2}{h_{y}^{2}}}\right)}$, ${\displaystyle {{a}_{W}}={{a}_{E}}=-{\frac {\varepsilon }{h_{x}^{2}}},{{a}_{N}}={{a}_{S}}=-{\frac {1}{h_{y}^{2}}}}$, ${\displaystyle {{b}_{P}}={{S}_{P}}}$.
(7)

For the boundaries north, south, east and west,${\textstyle {{a}_{P}}=1}$, ${\displaystyle {{a}_{W}}={{a}_{E}}={{a}_{N}}={{a}_{S}}=0}$.

### 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 ${\displaystyle {\text{P}}{{\text{W}}_{\text{x}}}}$ and ${\displaystyle {\text{P}}{{\text{W}}_{\text{y}}}}$, respectively, applied in problems involving geometric anisotropy was proposed. These operators are given in stencil notation as

 ${\displaystyle {\text{P}}{{\text{W}}_{\text{x}}}}$ : ${\textstyle I_{h}^{2h}={\frac {1}{4}}{{\left[{\begin{matrix}0&0&0\\1&2&1\\0&0&0\\\end{matrix}}\right]}_{h}}}$, ${\displaystyle {\text{P}}{{\text{W}}_{\text{y}}}}$ : ${\displaystyle I_{h}^{2h}={\frac {1}{4}}{{\left[{\begin{matrix}0&1&0\\0&2&0\\0&1&0\\\end{matrix}}\right]}_{h}}}$.
(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

 ${\displaystyle {{L}_{h}}={{\left[{\begin{matrix}0&-1&0\\-\varepsilon &2+2\varepsilon &-\varepsilon \\0&-1&0\\\end{matrix}}\right]}_{h}}}$.
(9)

The ${\displaystyle {\mbox{ILU}}}$ decomposition of the same operator will be given by

 ${\displaystyle {{L}_{h}}={{\left[{\begin{matrix}f&g&0\\c&d&q\\0&a&b\\\end{matrix}}\right]}_{h}}}$,
(10)

note that in this case, ${\textstyle b=f=0}$.

Thus, the ${\displaystyle {\mbox{ILU}}}$ decomposition is represented by:

 ${\displaystyle {{{\overset {}{\mathop {L}}}\,}_{h}}={{L}_{h}}{{U}_{h}}-{{R}_{h}}}$,
(11)

where ${\displaystyle {{L}_{h}}}$ is the stencil of a lower triangular matrix, ${\displaystyle {{U}_{h}}}$ is the stencil of an upper triangular matrix and ${\displaystyle {{R}_{h}}}$ is the residual matrix.

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

 ${\displaystyle {{r}^{m}}=b-A{{T}^{m}}}$, ${\displaystyle {{L}_{h}}\,{{y}^{m}}={{r}^{m}}\,}$, ${\displaystyle {{U}_{h}}\,{{\sigma }^{m}}={{y}^{m}}}$, ${\displaystyle {{T}^{m+1}}={{T}^{m}}+{{\sigma }^{m}}}$.
(12)

Depending on the ordination of the grid points, different directions can be obtained for the ${\displaystyle {\mbox{ILU}}}$ decomposition. In lexicographical order, ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ [18], is given by

 ${\displaystyle {{L}_{h}}={{\left[{\begin{matrix}0&0&0\\\gamma &\delta &0\\0&\alpha &\beta \\\end{matrix}}\right]}_{h}},{{U}_{h}}={{\left[{\begin{matrix}\zeta &\eta &0\\0&\delta &\mu \\0&0&0\\\end{matrix}}\right]}_{h}},{{R}_{h}}={{\left[{\begin{matrix}{{p}_{2}}&0&0&0&{}\\{}&0&{{p}_{3}}&0&{}\\{}&0&0&0&{{p}_{1}}\\\end{matrix}}\right]}_{h}}}$.
(13)

Another example of ordination for ${\displaystyle {\mbox{ILU}}}$, ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$ [18], is given by

 . ${\displaystyle {{L}_{h}}={{\left[{\begin{matrix}\zeta &0&0\\\gamma &\delta &0\\0&\alpha &0\\\end{matrix}}\right]}_{h}},{{U}_{h}}={{\left[{\begin{matrix}0&\eta &0\\0&\delta &\mu \\0&0&\beta \\\end{matrix}}\right]}_{h}},{{R}_{h}}={{\left[{\begin{matrix}{{p}_{1}}&{}&{}\\0&0&0\\0&{{p}_{3}}&0\\0&0&0\\{}&{}&{{p}_{2}}\\\end{matrix}}\right]}_{h}}}$.
(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 ${\displaystyle r=2}$ (standard coarsening) [18]. The grid transfer operators employed were: Injection Restriction (INJ), Half Weighting (HW), Full Weighting (FW) (see [6]), Partial Weighting in ${\textstyle x}$ (${\textstyle {\mbox{PW}}_{\mbox{x}}}$ ), Partial Weighting in ${\textstyle y}$ (${\textstyle {\mbox{PW}}_{\mbox{y}}}$) 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 (${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$, ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$, 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

 ${\textstyle {{r}^{m}}=b-A{{T}^{m}}}$,
(15)

where ${\displaystyle T^{m}}$ is the solution of the unknown in the iteration ${\displaystyle m}$.

Considering ${\displaystyle {{L}^{m}}={{\left\|r_{}^{m}\right\|}_{1}}}$ and ${\displaystyle {{L}^{0}}={{\left\|R_{}^{0}\right\|}_{1}}}$, if ${\displaystyle {\frac {{L}^{m}}{{L}^{0}}}\leq tol}$ the iterative process is interrupted if ${\displaystyle tol={{10}^{-10}}}$ .

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 ${\displaystyle G_{h}}$ , where the influence of the boundaries can be dismissed [6].

Consider the grid functions of the form of

 ${\textstyle {{\phi }_{h}}\left(\theta ,x\right)={{e}^{{i\theta x}/{h}\;}}}$ , with ${\textstyle \theta =({{\theta }_{1}},{{\theta }_{2}})\in {{R}^{2}}}$ ,
(16)

where ${\displaystyle x}$ varies in the infinite grid ${\displaystyle G_{h}}$ and ${\displaystyle \theta }$ is a parameter that characterize the frequency of the function concerning to grid ${\displaystyle G_{h}}$ .

For ${\displaystyle -\pi \leq \theta <\pi }$ , every function of the grid ${\displaystyle {{\phi }_{h}}\left(\theta ,x\right)}$ are eigenfunctions of a discrete operator that can be written as a stencil.

Thus,

 ${\displaystyle {{L}_{h}}\,{{\phi }_{h}}\left(\theta ,x\right)={{\tilde {L}}_{h}}(\theta ){{\phi }_{h}}\left(\theta ,x\right)}$,
(17)

where

 ${\displaystyle {{L}_{h}}\,(\theta )={{\left[{{s}_{k}}\right]}_{h}},{{\tilde {L}}_{h}}(\theta )=\sum \limits _{k}{{{s}_{k}}{{e}^{i\,\theta \,k}}}}$
(18)

and ${\displaystyle {{s}_{k}}}$ is the stencil notation of the operator, were ${\displaystyle k\in \{(-1,-1),\,(-1,0),(-1,1),...,(1,-1),(1,0),(1,1)\}}$ 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 ${\displaystyle G_{h}}$ and ${\displaystyle G_{2h}}$ .

It is known that [6] only

 ${\displaystyle {{\phi }_{h}}\left(\theta ,x\right)}$ with ${\textstyle -{\frac {\pi }{2}}\leq \theta <{\frac {\pi }{2}}}$,
(19)

are visible in ${\displaystyle G_{h}}$ .

For each ${\textstyle {\bar {\theta }}\in \left[-{\frac {\pi }{2}},{\frac {\pi }{2}}\right)\times \left[-{\frac {\pi }{2}},{\frac {\pi }{2}}\right)}$, three other frequency components ${\displaystyle {{\phi }_{h}}\left(\theta ,x\right)}$ with ${\textstyle \theta \in [-\pi ,\pi )\times [-\pi ,\pi )}$ coincide in ${\displaystyle G_{2h}}$ with ${\displaystyle {{\phi }_{h}}\left({\bar {\theta }},x\right)}$ and are not visible in ${\displaystyle G_{2h}}$ . Therefore, the low- and high-frequency components are defined as follows:

${\displaystyle \phi }$ is a low-frequency component${\displaystyle \Leftrightarrow \theta \in {{T}^{low}}=\left[-{\frac {\pi }{2}},{\frac {\pi }{2}}\right)\times \left[-{\frac {\pi }{2}},{\frac {\pi }{2}}\right)}$

${\displaystyle \phi }$ is a high-frequency component${\displaystyle \Leftrightarrow \theta \in {{T}^{high}}=\left[-\pi ,\pi \right)\times \left[-\pi ,\pi \right)\backslash \left[-{\frac {\pi }{2}},{\frac {\pi }{2}}\right)\times \left[-{\frac {\pi }{2}},{\frac {\pi }{2}}\right)}$ (see Figure 2).

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

Considering the frequencies

 {\displaystyle {{\bar {\theta }}_{i}}:=\left\{{\begin{aligned}&{{\theta }_{i}}+\pi \,,\,\,\,{\text{if}}\,\,{{\theta }_{i}}<0\\&{{\theta }_{i}}-\pi \,,\,\,\,{\text{if}}\,\,{{\theta }_{i}}\geq 0\,\,\,\\\end{aligned}}\right.},
(20)

the correction operator of the coarse grid is given by ${\displaystyle K_{h}^{2h}}$ ans is represented by a 4x4 matrix ${\displaystyle {\hat {K}}_{h}^{2h}}$ , as follows

 ${\displaystyle {\hat {K}}_{h}^{2h}\left(\theta \right)={{\hat {I}}_{h}}-\left({\hat {I}}_{2h}^{h}\left(\theta \right)\right){{\left({\hat {L}}_{2h}^{}\left(2\theta \right)\right)}^{-1}}{{\left({\hat {I}}_{h}^{2h}\left(\theta \right)\right)}_{y}}{\hat {L}}_{h}^{}\left(\theta \right)}$ with ${\displaystyle \theta \in {{T}^{low}}}$,
(21)

where ${\displaystyle {\hat {I}}_{h}^{}}$ is represented by a 4x4 identity matrix.

${\displaystyle {{\hat {L}}_{h}}(\theta )}$ is the 4x4 matrix:

 ${\displaystyle {{\hat {L}}_{h}}=\left({\begin{matrix}{{\tilde {L}}_{h}}({{\theta }^{(0,0)}})&{}&{}&{}\\{}&{{\tilde {L}}_{h}}({{\theta }^{(1,1)}})&{}&{}\\{}&{}&{{\tilde {L}}_{h}}({{\theta }^{(1,0)}})&{}\\{}&{}&{}&{{\tilde {L}}_{h}}({{\theta }^{(0,1)}})\\\end{matrix}}\right)}$ ,
(22)

where ${\displaystyle {{\tilde {L}}_{h}}}$ are eigenvalues, evaluated by ${\displaystyle {{\tilde {L}}_{h}}(\theta )=\sum \limits _{\kappa }{{{s}_{\kappa }}{{e}^{i{{\theta }^{\alpha }}\kappa }}}}$, and ${\displaystyle {{s}_{\kappa }}\in R}$ are stencil coefficients. (see [7])

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

 ${\displaystyle {{\hat {L}}_{h}}=\left({\begin{matrix}{{\tilde {L}}_{1}}&{}&{}&{}\\{}&{{\tilde {L}}_{2}}&{}&{}\\{}&{}&{{\tilde {L}}_{3}}&{}\\{}&{}&{}&{{\tilde {L}}_{4}}\\\end{matrix}}\right)}$,
(23)

where ${\displaystyle {{\tilde {L}}_{1}}=(2+2\varepsilon )-2(\varepsilon \cos({{\theta }_{1}})+\cos({{\theta }_{2}}))}$, ${\displaystyle {{\tilde {L}}_{2}}=(2+2\varepsilon )-2(\varepsilon \cos({{\bar {\theta }}_{1}})+\cos({{\bar {\theta }}_{2}}))}$, ${\displaystyle {{\tilde {L}}_{3}}=(2+2\varepsilon )-2(\varepsilon \cos({{\bar {\theta }}_{1}})+\cos({{\theta }_{2}}))}$ and ${\displaystyle {{\tilde {L}}_{4}}=(2+2\varepsilon )-2(\varepsilon \cos({{\theta }_{1}})+\cos({{\bar {\theta }}_{2}}))}$.

The restriction operator ${\displaystyle {\hat {I}}_{h}^{2h}(\theta )}$ is a 1x4 matrix, and is given by:

 ${\displaystyle {\hat {I}}_{h}^{2h}=\left({\begin{matrix}{\tilde {I}}_{h}^{2h}\left({{\theta }^{(0,0)}}\right)&{\tilde {I}}_{h}^{2h}\left({{\theta }^{(1,1)}}\right)&{\tilde {I}}_{h}^{2h}\left({{\theta }^{(1,0)}}\right)&{\tilde {I}}_{h}^{2h}\left({{\theta }^{(0,1)}}\right)\\\end{matrix}}\right)}$,
(24)

For the ${\displaystyle {\mbox{INJ}}}$ restricion operator, ${\displaystyle {\overset {}{\mathop {{\tilde {I}}_{h}^{2h}}}}\,\left({{\theta }^{\alpha }}\right)=1}$, for the ${\displaystyle {\mbox{HW}}}$ restriction operator, ${\displaystyle {\overset {}{\mathop {{\tilde {I}}_{h}^{2h}}}}\,\left({{\theta }^{\alpha }}\right)={\frac {1}{4}}(2+\cos {{\bar {\theta }}_{1}}+\cos {{\bar {\theta }}_{2}})}$, for the ${\displaystyle {\mbox{FW}}}$ restriction operator, ${\displaystyle {\overset {}{\mathop {{\tilde {I}}_{h}^{2h}}}}\,\left({{\theta }^{\alpha }}\right)={\frac {1}{4}}(1+\cos {{\bar {\theta }}_{1}})(1+\cos {{\bar {\theta }}_{2}})}$, for the ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ (see Eq.(8)), ${\displaystyle {\overset {}{\mathop {{\tilde {I}}_{h}^{2h}}}}\,\left({{\theta }^{\alpha }}\right)={\frac {1}{2}}(1+\cos {{\bar {\theta }}_{1}})}$ and for the ${\textstyle {\mbox{PW}}_{\mbox{y}}}$ (see Eq.(8)), ${\displaystyle {\overset {}{\mathop {{\tilde {I}}_{h}^{2h}}}}\,\left({{\theta }^{\alpha }}\right)={\frac {1}{2}}(1+\cos {{\bar {\theta }}_{2}})}$.

The prolongation operator ${\displaystyle {\hat {I}}_{2h}^{h}(\theta )}$ is a 4x1 matrix, and is given by:

 ${\displaystyle {\hat {I}}_{2h}^{h}\left(\theta \right)=\left({\begin{matrix}{\overset {}{\mathop {{\tilde {I}}_{2h}^{h}}}}\,\left({{\theta }^{(0,0)}}\right)\\{\overset {}{\mathop {{\tilde {I}}_{2h}^{h}}}}\,\left({{\theta }^{(1,1)}}\right)\\{\overset {}{\mathop {{\tilde {I}}_{2h}^{h}}}}\,\left({{\theta }^{(1,0)}}\right)\\{\overset {}{\mathop {{\tilde {I}}_{2h}^{h}}}}\,\left({{\theta }^{(0,1)}}\right)\\\end{matrix}}\right)}$,
(25)

For the bilinear prolongation operator, ${\displaystyle {\overset {}{\mathop {{\tilde {I}}_{2h}^{h}}}}\,\left({{\theta }^{\alpha }}\right)=(1+\cos {{\bar {\theta }}_{1}})(1+\cos {{\bar {\theta }}_{2}})}$ and for the 7-point prolongation operator, ${\displaystyle {\overset {}{\mathop {{\tilde {I}}_{2h}^{h}}}}\,\left({{\theta }^{\alpha }}\right)=\left(1+\cos {{\bar {\theta }}_{1}}+\cos {{\bar {\theta }}_{2}}+\cos({{\bar {\theta }}_{1}}-{{\bar {\theta }}_{2}})\right)}$ [10].

The operator of the grid coarse ${\displaystyle {{\left({{\hat {L}}_{2h}}(2\theta )\right)}^{-1}}}$ is a 1x1 matrix, and for the discrete Laplace operators, ${\displaystyle {{\tilde {L}}_{2h}}}$ is represented by ${\displaystyle {{\tilde {L}}_{2h}}\,(2\theta )=\sum \limits _{k}{{{s}_{k,2h}}{{e}^{i2\,\theta \,k}}}}$or ${\displaystyle {{\tilde {L}}_{2h}}={\frac {(2+2\varepsilon )-2(\varepsilon \cos(2{{\theta }_{1}})+\cos(2{{\theta }_{2}}))}{2{{h}^{2}}}}}$.

A representation for the operator of two grids ${\textstyle M_{h}^{2h}}$ can be obtained by a matrix ${\displaystyle {\hat {M}}_{h}^{2h}(\theta )}$ of the form

 ${\displaystyle {\hat {M}}_{h}^{2h}:={{({{\hat {S}}_{h}}(\theta ))}^{{v}_{2}}}{\hat {K}}_{h}^{2h}(\theta )\,{{({{\hat {S}}_{h}}(\theta ))}^{{v}_{1}}}}$,
(26)

where ${\displaystyle {\hat {K}}_{h}^{2h}(\theta )}$ is given by Eq. (21) and ${\displaystyle {{\hat {S}}_{h}}(\theta )}$ is a 4x4 matrix and represents the smoothing operator ${\displaystyle {{S}_{h}}(\theta )}$ given by:

 ${\displaystyle {{\hat {S}}_{h}}=\left({\begin{matrix}{{\tilde {S}}_{h}}({{\theta }^{(0,0)}})&{}&{}&{}\\{}&{{\tilde {S}}_{h}}({{\theta }^{(1,1)}})&{}&{}\\{}&{}&{{\tilde {S}}_{h}}({{\theta }^{(1,0)}})&{}\\{}&{}&{}&{{\tilde {S}}_{h}}({{\theta }^{(0,1)}})\\\end{matrix}}\right)}$.
(27)

In order to perform the LFA using the ${\textstyle {\mbox{ILU}}}$ solver, the smoothing operator ${\displaystyle {{S}_{h}}}$, according to [6], is given by

 ${\displaystyle {{S}_{h}}\phi (\theta ,x)={{\tilde {S}}_{h}}\phi (\theta ,x)}$, ${\displaystyle -\pi \leq \theta <\pi }$,
(28)

with

 ${\displaystyle {{\tilde {S}}_{h}}(\theta ):={\frac {\lambda _{h}^{R}(\theta )}{{{\lambda }_{h}}(\theta )+\lambda _{h}^{R}(\theta )}}}$.
(29)

where ${\displaystyle {{\lambda }_{h}}(\theta )=1}$, for ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$, ${\displaystyle \lambda _{h}^{R}(\theta )\,={{p}_{1}}{{e}^{i(2{{\theta }_{1}}-{{\theta }_{2}})}}+{{p}_{3}}+{{p}_{2}}{{e}^{i(-2{{\theta }_{1}}+{{\theta }_{2}})}}}$ and for ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$, ${\displaystyle \lambda _{h}^{R}(\theta )\,={{p}_{1}}{{e}^{i(-{{\theta }_{1}}+2{{\theta }_{2}})}}+{{p}_{3}}+{{p}_{2}}{{e}^{i({{\theta }_{1}}-2{{\theta }_{2}})}}.}$.

The asymptotic convergence factor ${\displaystyle \rho \left(M_{h}^{2h}\right)}$ can be calculated by

 ${\displaystyle \rho \left(M_{h}^{2h}\right)=\sup \left\{\rho \left({\hat {M}}_{h}^{2h}(\theta )\right):\,\,\theta \in {{T}^{low}},\,\,\theta \notin \Lambda \right\}}$,
(30)

where ${\displaystyle \Lambda =\left\{\theta \in {{T}^{low}}:\,{{\tilde {L}}_{h}}(\theta )=0\,\,{\text{or}}\,\,{{\tilde {L}}_{2h}}(\theta )=0\right\}}$ and ${\displaystyle \rho \left({\hat {M}}_{h}^{2h}(\theta )\right)}$ is the spectral radius of the 4x4 matrix ${\displaystyle {\hat {M}}_{h}^{2h}(\theta )}$.

In this work, LFA was used to determine the asymptotic convergence factor of the multigrid method ${\displaystyle {\bigl (}\rho \left(M_{h}^{2h}\right)={{\rho }_{loc}}{\bigr )}}$ combining ${\displaystyle {\mbox{ILU}}}$ solvers in several directions (such as ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ and ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$), ${\displaystyle {\mbox{FW}}}$, HW, INJ, ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ and ${\textstyle {\mbox{PW}}_{\mbox{y}}}$ 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 ${\displaystyle \varepsilon ={{10}^{\kappa }}}$ and ${\displaystyle \varepsilon ={{10}^{-\kappa }}}$, with ${\displaystyle \kappa \in \mathrm {K} =\{0,\,\,1,\,\,2,\,\,3,\,\,4,\,\,5,\,\,6,\,\,7\}}$. When ${\displaystyle \varepsilon ={{10}^{\kappa }}}$ or ${\displaystyle \varepsilon ={{10}^{-\kappa }}}$ in this work, there is symmetric orthotropy. For instance, ${\displaystyle \varepsilon ={{10}^{2}}}$ is an orthotropy symmetric to ${\displaystyle \varepsilon ={{10}^{-2}}}$.

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 ${\displaystyle {{\rho }_{loc}}}$, given by Eq. (30), with ${\textstyle {\mbox{ILU}}}$ in the EN, NE, ES, SE directions, ${\displaystyle {\mbox{FW}}}$ restriction, bilinear prolongation, number of inner iterations ${\displaystyle v=2}$, ${\displaystyle \varepsilon ={{10}^{\kappa }}}$ and ${\displaystyle \varepsilon ={{10}^{-\kappa }}}$, with ${\displaystyle \kappa \in K}$.

 Figure 3. ${\displaystyle {{\rho }_{loc}}}$ versus orthotropy coefficients ${\displaystyle {\bigl (}\varepsilon {\bigr )}}$ with ${\textstyle {\mbox{ILU}}}$ in different directions.

It is noticed that for ${\displaystyle 0<\varepsilon <<1}$, ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ has a good performance. For ${\displaystyle \varepsilon >>1}$, ${\displaystyle {\mbox{ILU}}_{\mbox{NE}}}$ also has a good performance, that is, ${\displaystyle {{\rho }_{loc}}<<1}$. By using ${\textstyle {\mbox{ILU}}}$ 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 ${\displaystyle {{\rho }_{loc}}}$ using as solvers, ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ for ${\displaystyle 0<\varepsilon <<1}$ and ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$ for ${\displaystyle \varepsilon >>1}$; ${\displaystyle \nu =2}$; ${\displaystyle {\mbox{FW}}}$ restriction; 7-point and bilinear prolongation; ${\displaystyle \varepsilon ={{10}^{\kappa }}}$ and ${\displaystyle \varepsilon ={{10}^{-\kappa }}}$, with ${\displaystyle \kappa \in K}$.

 Figure 4. ${\displaystyle {{\rho }_{loc}}}$ versus orthotropy coefficients ${\displaystyle {\bigl (}\varepsilon {\bigr )}}$ with different interpolation operators.

It can be observed that the restriction|prolongation combinations ${\displaystyle {\mbox{FW}}}$|bilinear and ${\displaystyle {\mbox{FW}}}$|7-points had a good performance ${\displaystyle {\bigl (}{{\rho }_{loc}}<<1{\bigr )}}$ 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 ${\displaystyle {{\rho }_{loc}}}$ using as solvers, ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ for ${\displaystyle 0<\varepsilon <<1}$ and ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$ for ${\displaystyle \varepsilon >>1}$; ${\displaystyle \nu =2}$; ${\displaystyle {\mbox{FW}}}$, HW, INJ, ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ and ${\textstyle {\mbox{PW}}_{\mbox{y}}}$ restriction; bilinear prolongation; ${\displaystyle \varepsilon ={{10}^{\kappa }}}$ and ${\displaystyle \varepsilon ={{10}^{-\kappa }}}$, with ${\displaystyle \kappa \in K}$.

 Figure 5. ${\displaystyle {{\rho }_{loc}}}$ versus orthotropy coefficients ${\displaystyle {\bigl (}\varepsilon {\bigr )}}$ with different restriction operators.

Figure 5 demonstrates that for ${\displaystyle \varepsilon ={{10}^{\kappa }}}$ and ${\displaystyle \varepsilon ={{10}^{-\kappa }}}$, with ${\displaystyle \kappa \in K}$ (symmetric orthotropies), ${\displaystyle {{\rho }_{loc}}}$ presents very similar values. It is noted that for orthotropic problems ${\displaystyle {\bigl (}\kappa \neq 0{\bigr )}}$, the lowest values for ${\displaystyle {{\rho }_{loc}}}$ are achieved with ${\displaystyle {\mbox{FW}}}$ and ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ restriction, which show very similar values.

Based on the results presented, we propose Algorithm 1, which combines ILU solver in different directions, with ${\displaystyle {\mbox{FW}}}$ and ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ restrictions. The algorithm is presented below. The abbreviation REST, used in the algorithm represents any of the restrictions (${\displaystyle {\mbox{FW}}}$ or ${\textstyle {\mbox{PW}}_{\mbox{x}}}$) previously defined.

Algorithm 1.
_______________________________________________________

if ${\displaystyle \varepsilon >1}$ then

Apply ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$ smoothing with REST restriction

else if ${\displaystyle \varepsilon =1}$ then

Apply ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$ smoothing with ${\displaystyle {\mbox{FW}}}$ restriction

else

Apply ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ 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 ${\displaystyle {{\rho }_{loc}}}$, calculated by LFA, and the empiric asymptotic convergence factor ${\displaystyle \rho _{h}}$, for different orthotropy coefficients, are presented.

Figure 6 shows Algorithm 1 with REST ${\textstyle ={\mbox{PW}}_{\mbox{x}}}$ , ${\displaystyle \nu =2}$ and bilinear prolongation.

 Figure 6. ${\displaystyle {{\rho }_{loc}}}$ and ${\displaystyle \rho _{h}}$ versus orthotropy coefficients ${\displaystyle {\bigl (}\varepsilon {\bigr )}}$.

It is observed that ${\displaystyle \rho _{loc}\approx \rho _{h}<<1}$ for every orthotropy coefficients assessed. Furthermore, ${\displaystyle {{\rho }_{loc}}}$ calculated by LFA is in accordance with ${\displaystyle \rho _{h}}$ calculated experimentally.

Figure 7 depicts the numerical asymptotic convergence factor ${\displaystyle {{\rho }_{loc}}}$ calculated by LFA and the experimental asymptotic convergence factor ${\displaystyle \rho _{h}}$, for different orthotropy coefficients for different grids. Algorithm 1 with REST = ${\textstyle {\mbox{PW}}_{\mbox{x}}}$, ${\displaystyle \nu =2}$ and bilinear prolongation was used. As the grid becomes more refined, ${\displaystyle \rho _{h}\rightarrow \rho _{loc}}$ for every orthotropy coefficient analyzed, what demonstrates the robustness of the methodology assessed.

 Figure 7. ${\displaystyle {{\rho }_{loc}}}$ and ${\displaystyle \rho _{h}}$ versus orthotropy coefficients ${\displaystyle {\bigl (}\varepsilon {\bigr )}}$ for different number of grid points.

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

Table 1. ${\displaystyle {{\rho }_{loc}}}$ and ${\displaystyle \rho _{h}}$ for some orthotropy coefficients ${\displaystyle {\bigl (}\varepsilon {\bigr )}}$ and different number of grid points.
 ${\displaystyle \varepsilon }$ ${\displaystyle \rho _{h}}$ ${\displaystyle (N=513\times 513)}$ ${\displaystyle \rho _{h}}$ ${\displaystyle (N=1025\times 1025)}$ ${\displaystyle \rho _{h}}$ ${\displaystyle (N=2049\times 2049)}$ ${\displaystyle \rho _{l}oc}$ ${\displaystyle 10^{-5}}$ ${\displaystyle 4.181939\times {{10}^{-4}}}$ ${\displaystyle 0.006544947}$ ${\displaystyle 0.01993340}$ ${\displaystyle 0.02943536}$ ${\displaystyle 10^{-4}}$ ${\displaystyle 0.01569827}$ ${\displaystyle 0.025212810}$ ${\displaystyle 0.02806990}$ ${\displaystyle 0.02943000}$ ${\displaystyle 10^{-3}}$ ${\displaystyle 0.02748596}$ ${\displaystyle 0.028578500}$ ${\displaystyle 0.02884448}$ ${\displaystyle 0.022941390}$ ${\displaystyle 10^{-2}}$ ${\displaystyle 0.02858316}$ ${\displaystyle 0.028703710}$ ${\displaystyle 0.02874592}$ ${\displaystyle 0.02921000}$ ${\displaystyle 10^{-1}}$ ${\displaystyle 0.02683346}$ ${\displaystyle 0.026852440}$ ${\displaystyle 0.02685995}$ ${\displaystyle 0.02725823}$

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 ${\displaystyle {\mbox{FW}}}$ and ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ restrictions, respectively, that for the isotropic problem ${\displaystyle {\bigl (}\varepsilon =1{\bigr )}}$, the ${\textstyle t_{CPU}}$ is not lower. As the problem becomes more orthotropic ${\displaystyle {\bigl (}0<\varepsilon <<1\,\,\,{\text{or}}\,\,\,\varepsilon >>1{\bigr )}}$, the ${\displaystyle t_{CPU}}$ decreases for every N value assessed. For every orthotropy coefficient assessed, the ${\displaystyle t_{CPU}}$ with ${\displaystyle {\mbox{FW}}}$ restriction is very similar to the ${\displaystyle t_{CPU}}$ with ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ restriction, that is, ${\textstyle t_{CPU}\left(FW\right)\approx t_{CPU}\left({\mbox{PW}}_{\mbox{x}}\right)}$ .

It is also observed for symmetric orthotropies ${\displaystyle {\bigl (}\varepsilon ={{10}^{-\kappa }}\,\,\,{\text{and}}\,\,\,\varepsilon ={{10}^{\kappa }}{\bigr )}}$ with ${\displaystyle \kappa \in \{1,2,3,4\}}$, that the values of ${\displaystyle t_{CPU}}$ obtained are extremely similar.

 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 ${\displaystyle {{t}_{CPU}}=c{{N}^{p}}}$ [20] was made, where ${\displaystyle p}$ represents the complexity order of the solver, N is the number of grid points and${\displaystyle N}$ ${\displaystyle c}$ is a constant that depends on the method. The closer the value of ${\displaystyle p}$ is to one, the better the performance of the method used. Ideally, multigrid presents ${\displaystyle p=1}$, what means that the CPU time grows linearly with the increase of N. Results are shown in Table 2 for both restrictions assessed${\displaystyle N}$ (${\displaystyle {\mbox{FW}}}$ and ${\textstyle {\mbox{PW}}_{\mbox{x}}}$).

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

Table 2. Complexity order ${\displaystyle {\bigl (}p{\bigr )}}$ for different orthotropy coefficients ${\displaystyle {\bigl (}\varepsilon {\bigr )}}$.
 ${\displaystyle \varepsilon }$ ${\textstyle p({\mbox{PW}}_{\mbox{x}})}$ ${\textstyle p({\mbox{FW}})}$ ${\displaystyle 10^{-4}}$ ${\displaystyle 1.07747}$ ${\displaystyle 1.07733}$ ${\displaystyle 10^{-2}}$ ${\displaystyle 1.05023}$ ${\displaystyle 1.05894}$ ${\displaystyle 1}$ ${\displaystyle 1.05940}$ ${\displaystyle 1.04380}$ ${\displaystyle 10^{2}}$ ${\displaystyle 1.07255}$ ${\displaystyle 1.06199}$ ${\displaystyle 10^{4}}$ ${\displaystyle 1.07627}$ ${\displaystyle 1.07775}$

The values obtained for the convergence factor, presented in section 4.1, and for the complexity order concerning to the ${\displaystyle {\text{PW}}_{x}}$ and ${\displaystyle {\mbox{FW}}}$ 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 ${\displaystyle N_{10}=10}$ (${\displaystyle N_{10}}$ is the number of points of the finest grid, considering a problem whose maximum number of levels is ${\displaystyle L_{\text{max}}=10}$) and for some values of ${\displaystyle \varepsilon }$. Table 3 presents the ratio between number of flops of a V-cycle and number of points of the finest grid ${\displaystyle N_{10}}$. Table 4 shows the ratio between number of flops performed in each restriction and the number of points of the finest grid ${\displaystyle N_{10}}$.

Table 3. Ratio between number of flops of a V-cycle and the number of points of the finest grid.
 ${\displaystyle \varepsilon }$ ${\textstyle {\mbox{flops}}({\text{V-cycle}}|{\mbox{PW}}_{\mbox{x}})/N_{10}}$ ${\textstyle {\mbox{flops}}({\text{V-cycle}}|{\mbox{FW}})/N_{10}}$ ${\displaystyle 10^{-2}}$ ${\displaystyle 1510.221554}$ ${\displaystyle 1543.296057}$ ${\displaystyle 10^{-1}}$ ${\displaystyle 1798.299366}$ ${\displaystyle 1837.988770}$ ${\displaystyle 1}$ ${\displaystyle 2368.277388}$ ${\displaystyle 2126.896785}$ ${\displaystyle 10^{1}}$ ${\displaystyle 1860.997604}$ ${\displaystyle 1900.687008}$ ${\displaystyle 10^{2}}$ ${\displaystyle 1564.958717}$ ${\displaystyle 1598.033220}$

Table 4. Ratio between number of flops of the restriction and number of points of the finest grid.
 ${\displaystyle \varepsilon }$ ${\textstyle {\mbox{flops}}({\mbox{PW}}_{\mbox{x}})/N_{10}}$ ${\textstyle {\mbox{flops}}({\mbox{FW}})/N_{10}}$ ${\displaystyle 10^{-2}}$ ${\displaystyle 11.57607615}$ ${\displaystyle 44.65057942}$ ${\displaystyle 10^{-1}}$ ${\displaystyle 13.89129130}$ ${\displaystyle 53.58069530}$ ${\displaystyle 1}$ ${\displaystyle 18.37833483}$ ${\displaystyle 62.02688007}$ ${\displaystyle 10^{1}}$ ${\displaystyle 13.89129137}$ ${\displaystyle 53.58069530}$ ${\displaystyle 10^{2}}$ ${\displaystyle 11.57607615}$ ${\displaystyle 44.65057942}$

According to Table 3, the multigrid cycle that requires the lowest number of flops is the cone with ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ operator, except for the isotropic case ${\displaystyle {\bigl (}\varepsilon =1{\bigr )}}$. Considering only the restriction step, results presented in Table 4 show a great advantage of the ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ operator over the ${\displaystyle {\mbox{FW}}}$ operator regarding the number of flops performed. For every case, the number of flops for ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ is roughly 75% lower than the number of flops for ${\displaystyle {\mbox{FW}}}$.

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 ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ operator.

## 5. Conclusions

- For the ${\displaystyle {\mbox{ILU}}}$ directions assessed (EN, NE, ES, SE) for standard multigrid method (${\displaystyle {\mbox{FW}}}$ restriction operator and bilinear prolongation), it is concluded that ${\displaystyle \rho _{loc}\approx 0.02}$ when using ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ for ${\displaystyle 0<\varepsilon <<1}$ and ${\textstyle {\mbox{ILU}}_{\mbox{NE}}}$ for ${\displaystyle \varepsilon >>1}$.

- With ${\displaystyle {\mbox{FW}}}$ restriction, ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ for ${\displaystyle 0<\varepsilon <<1}$ and ${\displaystyle {\mbox{ILU}}_{\mbox{NE}}}$ for ${\displaystyle \varepsilon >>1}$, results showed that the 7-point and bilinear prolongation operators presented a similar performance, and for every value of ${\displaystyle \varepsilon }$ assessed, ${\displaystyle \rho _{loc}<<1}$ was obtained.

- With bilinear interpolation, ${\textstyle {\mbox{ILU}}_{\mbox{EN}}}$ for ${\displaystyle 0<\varepsilon <<1}$ and ${\displaystyle {\mbox{ILU}}_{\mbox{NE}}}$ for ${\displaystyle \varepsilon >>1}$, the lowest values of ${\displaystyle {{\rho }_{loc}}}$ are obtained with ${\displaystyle {\mbox{FW}}}$ and ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ restriction operators, and the values of ${\displaystyle {{\rho }_{loc}}}$ with these operators are very similar.

- Using Algorithm 1, ${\displaystyle {{\rho }_{loc}}\approx {{\rho }_{h}}<<1}$ for every orthotropy coefficient assessed and ${\displaystyle {{\rho }_{h}}\to {{\rho }_{loc}}}$ as the grid becomes more refined.

- The ${\textstyle t_{CPU}\left({\mbox{FW}}\right)\approx t_{CPU}\left({\mbox{PW}}_{\mbox{x}}\right)}$ for every value of ${\displaystyle \varepsilon }$ assessed.

- The complexity order ${\displaystyle p}$ of the multigrid method with Algorithm 1 is close to one for every orthotropy assessed. For ${\displaystyle \varepsilon ={{10}^{-4}}}$, for example, ${\displaystyle p=1.07747}$ 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 ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ restriction, the computational cost is 75% lower than with ${\displaystyle {\mbox{FW}}}$ restriction.

- The Algorithm 1 with ${\textstyle {\mbox{PW}}_{\mbox{x}}}$ 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.

### 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