Abstract

A high-order compact difference scheme for solving the two-dimensional (2D) elliptic problems is proposed by including compact approximations to the leading truncation error terms of the central difference scheme. A multigrid method is employed to overcome the difficulties caused by conventional iterative methods when they are used to solve the linear algebraic system arising from the high-order compact scheme. Numerical experiments are conducted to test the accuracy and efficiency of the present method. The computed results indicate that the present scheme achieves the fourth-order accuracy and the effect of the multigrid method for accelerating the convergence speed is significant.

1. Introduction

In this paper, we consider the 2D elliptic equation with a mixed derivative term in the form of where is a constant, the coefficients , and forcing function , and the solution are assumed to be continuously differentiable and have the required partial derivatives on the computational domain.

While elliptic equations are a kind of basic partial equations, it is of great importance to study their accurate, stable, and efficient numerical methods. In the past decades, high-order compact difference methods for solving the elliptic equations have attracted increasing interests [123]. In [3], Gupta et al. derived a fourth-order compact finite difference approximation for the 2D convection-diffusion equation. Then, they extended the method to the 2D elliptic equation without mixed derivative term [4]. Karaa extended Gupta et al.’s work in [4] to the 2D elliptic and parabolic problems with mixed derivatives [5]. The basic idea of their methods lies in utilizing the Taylor expansions by 2D power series of all the functions involved in the differential equation at the reference grid point , substituting these expansions into the original equation and comparing the coefficients of to get the linear constraints on the unknown coefficients. Additionally, high-order compact difference schemes for the Poisson equations can be found in [610], for the convection-diffusion equations in [1117], and for some practical problems that have boundary layers or local singularities in the computational domain in [1417]. The Richardson extrapolation technique and the operator interpolation scheme were utilized to solve the 2D and 3D convection-diffusion equations in [18, 19] and the sixth-order accurate numerical solutions are achieved. Fourth-order difference schemes on hexagonal grids and rotated grids for solving the 2D convection-diffusion equation were proposed in [20, 21].

It needs to solve large linear algebraic systems arising from the discretization of partial differential equations by finite element or finite difference, etc. As for the limitations of the computer storage space and the effect of the rounding error, it is difficult to achieve satisfactory solutions for these large linear algebraic systems by using direct methods like Gauss elimination methods. Therefore, iterative methods such as Jacobi method, Gauss-Seidel method, or Successive Overrelaxation (SOR) method become common approaches for solving large linear algebraic systems. However, the convergence speed of the traditional iterative methods is slow. In order to obtain a fast convergence, the various convergence accelerating techniques have been proposed, such as biconjugate gradient stabilized method (BiCGStab) [24], preconditioned iterative method [25], and multigrid method [26]. Since Brant published his pioneering work [26], multigrid method has been widely used in numerical solutions of various kinds of differential equations discretized by finite difference methods [14, 17, 23, 2739] and finite element methods [4043]. It has been proved a high efficient and effective iterative method for solving linear elliptic problems. Multigrid method combined with high-order compact difference schemes for solving the Poisson equations and the convection-diffusion equations can be found in [14, 23, 3139]. In this paper, we will employ it to solve the elliptic equation (1) discretized by the novel high-order compact difference scheme.

We are aiming at developing a fourth-order compact difference scheme and multigrid method for solving the 2D elliptic equation (1). The reminder of this paper is organized as follows. In Section 2, a fourth-order compact difference scheme for the 2D elliptic equation (1) is proposed by including compact approximations to the leading truncation error terms of the central difference scheme. In Section 3, a multigrid method is presented. Section 4 displays the numerical results to demonstrate the accuracy and efficiency of the present method. Finally, a brief conclusion is given in Section 5.

2. Fourth-Order Compact Difference Scheme

We consider a square domain , and divide the interval into subintervals by grid points , and . The length of subintervals is given by in the both - and -directions, and is the number of subintervals. The finite difference approximation of (1) is derived on a square mesh cell with the grid point and its eight adjoining neighbors , ,, and .The values of at the nine points are denoted by , , , , , , , , and ,respectively.

The points and can be expanded in Taylor series at the grid point as follows:From (2) and (3), we can getThus the first- and second-order central difference operators in the -direction can be defined asWith the similar derivations, the first- and second-order central difference operators in the -direction can be defined asThus, (4) and (5) can be written in the form ofSimilarly,Substituting (8)-(12) into (1), we can obtain the following scheme:where is the truncation error and can be written as in whichIf is ignored in (13), the central difference scheme (CDS) is obtained: Obviously, the truncation error is . In order to get a compact fourth-order accurate discretization, the third- and the fourth-order derivatives in the truncation error given by (14) may be discretized. Therefore, by differentiating (1) with respect to and , respectively, we getDifferentiating (17) and (18) again with respect to and , respectively, we obtainDifferentiating (17) with respect to y and rearranging it, this results inWe notice that all the derivatives in the right hand of (17)-(21) can be discretized compactly with the central difference operators. Substituting (17)-(21) into (14), the truncation error can be written as whereCombining (13) and (22), we getUsing the definitions of the first- and second-order central difference operators , and above and the other difference operators as follows:substituting them into (24), dropping off the high-order truncation error term , and rearranging it, finally we can derive a fourth-order compact (FOC) difference scheme for solving (1), written out explicitly aswhere the coefficients are given by From the process of the derivation, it is easy to know the scheme has fourth-order accuracy. We also point out that if letting and , it reduces to the fourth-order compact scheme for the elliptic equation in [5], which was derived by Karaa by a different way. Since nine points are used for both the present scheme and the scheme in [5], the structure of both matrix equations is the same. The difference is that the expressions of R1-R9 are different. If letting all and in R1-R9, then the present matrix (26) reduces to the matrix equation in [5]. Furthermore, if letting , and , it reduces to the fourth-order compact scheme proposed by Gupta et al. [3] for solving the 2D convection-diffusion equation.

3. Multigrid Method

Multigrid method is one of the fastest and most efficient iterative methods for solving linear algebraic systems arising from the discretization of the elliptic differential equations. The main characteristics of multigrid method are to solve error equation (also called residual equation) by using conventional relaxation methods on each coarse grid level until the error is convergent and then return the error correction results to fine grid by means of interpolation method. Multigrid method can be implemented through its cycle algorithm. A simple multigrid V-cycle process includes the following three steps: (1) smooth the error by using a relaxation method (such as Gauss-Seidel or Jacobi methods, etc.); (2) project the residuals to the coarse grid and solve an approximation to the error equation on the coarse grid; (3) return the error correction results to the fine grid and finally add them to the approximation. If relaxation sweeps are performed at each grid level before projecting the residuals to the coarse grid space (presmoothing sweeps), and relaxation sweeps are performed after interpolating the coarse grid correction back to the fine grid space (post-smoothing sweeps), it is called a multigrid V cycle algorithm.

Projection, interpolation, and relaxation operators are three important factors in multigrid method and only when they are suitably chosen and match with each other well, the multigrid method can get convergent results with the least computational cost [44]. The commonly used residual projection operator is the direct injection or the full weighting. The injection operator is the cheapest projection operator, but it is not accurate. The full weighting operator evaluates the residuals at all the nearest nine points in a square stencil at the reference point and then projects a weighted average value to the coarse grid, so it is more accurate than the direct injection operator is. The full weighting projection operator on equal-mesh size-discretization grids [44] is used in this paper:For interpolation operator, the bilinear interpolation operator on equal-mesh size-discretization grids [44] is used: Here is the residual at the fine grid points and is the corresponding residual at coarse grid points .

Relaxation operator (the smoother) plays an important role in the multigrid method. Its role is not to remove the errors, but to dump the high frequency components of the errors on the current grid while leaving the low frequency components to be removed by the coarser grids. The point Gauss-Seidel relaxation in lexicographical ordering, in red-black ordering, in four-coloring, the line Gauss-Seidel relaxation, and the alternating line Gauss-Seidel relaxation are very popular in relaxation operators. In [45], Fourier analyses are conducted for the point Gauss-Seidel relaxation, the line Gauss-Seidel relaxation, and the alternating line Gauss-Seidel relaxation. It showed that the point Gauss-Seidel relaxation and line Gauss-Seidel relaxation may be good smoothers for small Reynolds number problems and the alternating line Gauss-Seidel relaxation is a robust smoother for all Reynolds number problems of the convection-diffusion equations discretized by the fourth-order compact scheme. So, in this paper, we prefer to use the alternating line Gauss-Seidel relaxation to remove the residuals on each coarse grid.

4. Numerical Tests

In order to verify the high-order accuracy and high efficiency of the present method, we compute the following three elliptic problems with exact solutions on the square domain of . For comparison, numerical results computed by the central difference scheme are also examined. The forcing function and the Dirichlet boundary conditions are chosen to satisfy the given exact solution . Re is referred to as the Reynolds number and changed between 1 and . Computer programs are coded in Fortran 77 programming language and run in double precision on P4/2.8G dual-core personal computer with 2GB memory. All computations begin with zero guesses and are terminated when the error residuals in -norm on the finest grid are reduced by a factor of .The maximum absolute error () and convergence rate () are defined asand Here and are maximum absolute errors on the grids with the mesh size of and , respectively.

For comparison, Tables 13 show the maximum absolute error and convergence rate computed by the central difference scheme and the fourth-order compact difference scheme with different at for Problems 1–3, respectively. Since Re is moderate, multigrid V(1,1) cycle is used. Number of multigrid V(1,1) iterations (Num) and correspondingly CPU time are also reported in Tables 13. From the results, we note that both schemes seem to maintain their typical accuracy orders, while the fourth-order compact scheme yields much better solution than the central difference scheme. The results reveal that the fourth-order compact difference scheme on coarse grid can achieve equivalent accuracy to the central difference scheme on fine grid. For instance, in Tables 13, the maximum absolute errors computed by the fourth-order compact difference scheme with are approximately equal to that of the central difference scheme with . Additionally, comparing the numbers of multigrid V(1,1) iterations and CPU time of the two schemes, we find that the numbers of multigrid V(1,1) iterations of the two schemes are almost equal for each mesh size , though the CPU time of the fourth-order compact difference scheme with the multigrid method is a little bigger than that of the central difference scheme with the multigrid method. However, if we consider a certain accuracy, e.g., maximum absolute error is around 1.18 × 10−5 for Problem 3, fine grid () is needed, and the CPU time is 1.047 seconds for the central difference scheme while just coarse grid () is needed and the CPU time is just 0.032 seconds for the fourth-order compact difference scheme. Similar comparison can be made for other data to reach similar conclusions.

By computation, we find multigrid V(1,1) cycle with both schemes cannot converge for large Re number () for these three problems. Therefore, for comparisons under the same circumstance, we use multigrid V(2,2) cycle to compute all Re numbers changed from 1 to . Tables 46 give the comparison of number of multigrid V(2,2) iterations and CPU time of the central difference scheme and the fourth-order compact difference scheme for Problems 1–3 with different and Re numbers, respectively. The numerical results show that the multigrid method with the fourth-order compact difference scheme is more stable than that with the central difference scheme. It always converges with all and numbers computed. However, it diverges with the central difference scheme when . The results also reveal that the number of multigrid V(2,2) iterations with the two schemes for each and is close when , but it increases with the increase of when for the fourth-order compact difference scheme. Generally speaking, the effect is quite significant by using multigrid method combined with the fourth-order compact difference scheme for accelerating the speed of iteration convergence.

When , the central difference scheme diverges, so we just report maximum absolute error computed by the fourth-order compact difference scheme with , 1/128, and 1/256 for Problems 1–3 in Tables 79, respectively. Figures 13 describe the maximum absolute errors of the present scheme changes with the Reynolds number (Re) for the three problems, respectively. The mesh size is set to be . The results show that the magnitude of affects the computed accuracy of the discretization scheme inversely. The present scheme yields inaccuracy solution when the convection is dominant. For all test problems, the fourth-order compact scheme seems to maintain fourth-order accuracy when . However it fails to achieve its optimal accuracy order when . It becomes typically second- to third-order accuracy for . The reason is the truncation error of this scheme is ; i.e., when Re number becomes large, the coefficient of accuracy order also becomes large, it lowers the accuracy of the scheme. This fact is consistent with the conclusions of the 2D convection-diffusion problems studied in [25, 33].

5. Conclusion

In this paper, a fourth-order compact finite difference scheme has been developed for solving the 2D elliptic boundary value problems by including compact approximations to the leading truncation error terms of the central difference scheme. A multigrid method is employed to overcome the difficulties caused by traditional iterative methods when they are used to solve the linear algebraic system arising from the fourth-order compact difference scheme. Finally, numerical experiments are carried out to test the accuracy of the present scheme and the efficiency of the multigrid method. It showed that the fourth-order compact scheme with the multigrid method is very robust and efficient in solving this kind of elliptic problems.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was funded by Major Innovation Projects for Building First-class Universities in China’s Western Region (Grant no. ZKZD2017009).