- Research
- Open Access
- Published:

# A mass-conservative higher-order ADI method for solving unsteady convection–diffusion equations

*Advances in Difference Equations*
**volume 2020**, Article number: 513 (2020)

## Abstract

In the paper, a high-order alternating direction implicit (ADI) algorithm is presented to solve problems of unsteady convection and diffusion. The method is fourth- and second-order accurate in space and time, respectively. The resulting matrix at each ADI computation can be obtained by repeatedly solving a penta-diagonal system which produces a computationally cost-effective solver. We prove that the proposed scheme is mass-conserved and unconditionally stable by means of discrete Fourier analysis. Numerical experiments are performed to validate the mass conservation and illustrate that the proposed scheme is accurate and reliable for convection-dominated problems.

## 1 Introduction

At the present time, the population explosion, the high standard of living, and the industrial expansion have led to the rise of pollutants into the aquatic environment. In eliminating or at least reducing this pollution, the pollutant transport processes induced by the advection-diffusion equation need to be well studied. Moreover, the processes to be committed should be adapted to the nature of these processes [1]. The following is the two-dimensional (2D) mathematical expression of the unsteady advection-diffusion equation without the source term:

Here, *u* is an unknown function. The constants *p* and *q* are nonnegative speeds of convection, and the constants *a* and *b* are positive diffusivity, respectively, in the *x*- and *y*-direction. Engaging a conjunction of convection and diffusion, these processes are encountered in science and engineering phenomena very frequently. Also, these problems appear in a number of applications, for instance, in ground water pollutants and air flow, the transportation of oil reservoir, semi-conductor modeling, and so on. By convection, we refer to an actual behavior with some characteristic carried by the flow’s ordered motion. On the other hand, diffusion means a physical process with the property transported by random motion of the fluid’s molecules. The behavior of fluid subjected to mass, vorticity, and heat transfer can be investigated using the mathematical model formulated by the conservation laws of momentum, mass, and energy.

Difficulty in the development of a numerical method is treating the first derivative term that contains large coefficients (convection dominated) in a convection–diffusion equation. It follows that a numerical method that simultaneously solves both hyperbolic term (advection) and parabolic term (dispersion) is needed. However, there is no numerical method that can completely solve this problem [2]. Therefore, every effort has been put to develop the efficient and stable numerical techniques. To solve the convection–diffusion equation, a huge body of research on proficient numerical methods, such as the finite element method (see, e.g., [3–5]), the finite difference method (see, e.g., [6–23]), and others, has been created. We now concentrate on the research about the finite difference method. According to ease of implementation as a conventional approach, the finite difference method is always utilized to solve partial differential equations. High-order compact (HOC) finite difference methods happen to be one of the most commonly used numerical methods to solve the unsteady convection–diffusion equation, that may extremely enhance the approximate precision (see, e.g., [6–12]).

Since the objective of the alternating direction implicit (ADI) method is decreasing multi-dimensional problems to a series of one-dimensional (1D) problems, and it is only required to solve the tridiagonal systems, the ADI method is greatly effective in solving parabolic and hyperbolic initial boundary value problems. Presented by Peaceman and Rachford [13], the ADI scheme has been considered to be one of the most approved means to solve the higher-dimensional problems due to its unconditional stability and huge efficiency. Nevertheless, the Peaceman–Rachford ADI scheme appears to be second-order accurate in space, and it can generate significant dissipation and phase errors. For gaining resolutions with higher order, many efforts are attempted to use HOC schemes for spatial estimations of Eq. (1). To solve unsteady convection–diffusion equations, a high-order compact ADI scheme was presented by Karaa and Zhang [14]. On that account, great accuracy and great computational efficiency are coincidentally achieved. For 2D unsteady convection–diffusion equations, a Padé scheme-based ADI (PDE-ADI) model was presented by You [15]. It has finer phase and amplitude characteristics. Tian and Ge presented [16] an exponential high-order compact alternating direction implicit (EHOC-ADI) method used to solve 2D unsteady convection–diffusion equations. It highly accomplishes solving convection-dominated equations with high Reynolds numbers. Subsequently, the logical HOC scheme with the ADI (RHOC-ADI) method to solve unsteady convection–diffusion equations was investigated by Tian [17]. On this account, its great effectiveness on solution accuracy and computational efficiency was demonstrated. All of those methods are second-order accurate in time and fourth-order accurate in space (see more [18–20]). Additional developments on a series of ADI methods have recently been completed. Some researchers are using the higher-order difference schemes with ADI methods [21–23] for achieving sixth-order accuracy in space.

In this paper, we consider the 2D unsteady advection-diffusion equation with the homogeneous boundary conditions

and the initial condition

where \(\phi (x,y)\) is a known smooth function. The solution is supposed to have the following asymptotic values: \(|u(x,y)|\to 0\) as \(|x|,|y|\to +\infty \). For that reason, if \(x_{L}\ll 0\), \(y_{L}\ll 0\), \(x_{R}\gg 0\), and \(y_{R}\gg 0\), the initial-boundary value problem is in agreement with the Cauchy problem of Eq. (1).

From the past, many conservative schemes have been presented by researchers for examining solutions of various nonlinear partial differential equations. The conservativeness is obviously one of the necessary characteristics of fluid or propagating waves. Confirmed by schemes of the energy or mass conservation, the accomplishment for a numerical approximation in the long-time behavior is one example. A mass-conservative finite difference scheme that conserves the solution for the convection–diffusion equation is therefore required. In the same way, the significant feature which the convection–diffusion problems occupy is the balance of mass. That is, if there exists no source, the mass must be conserved. Some of conservative methods shown in [24–28] preserve mass balance identity well. At this point, work on the family of ADI methods is not necessary.

According to the benefit of ADI methods and conservative discretization simultaneously, the improvement of the solution accuracy in the spatial domain based on the HOC-ADI method, which is a compact sixth-order scheme that inherits mass preserving properties, will be focused on. The novel HOC scheme for the 1D steady convection–diffusion equation will be first implemented. Then, a scheme for solving the 2D unsteady advection-diffusion equation based on the ADI technique and an exponential difference operator are introduced. We note that no additional computational cost is needed for the compact scheme. Thus, the compact scheme has better effectiveness than the noncompact scheme does.

The paper is structured as follows: Numerical methods consisting of spatial and temporal discretized methods of the 2D convection–diffusion equations are explained in Sect. 2 in detail. Solvability and the conservative property are proved in Sect. 3. In Sect. 4, the analysis of the linearity of Fourier stability for the proposed ADI scheme is presented. Various numerical examples and detailed numerical results in 1D and 2D cases of unsteady advection-diffusion equation are provided to justify the theory analysis and show the performance of the present ADI scheme. The behavior of numerical solutions is also discussed when the Reynolds number increases. Eventually, remarkable conclusions are summarized to finalize the research paper.

## 2 Description of the numerical methods for 2D convection–diffusion equations

### 2.1 Notations

In this section, we provide some notations which are used in this paper. For a positive integer *N*, denote \(\tau =\frac{T}{N}\), \(t_{n}=nk\), \(n=0,1,2,\ldots ,N\). Let \(\overline{\varOmega }=\varOmega \times (0,T]\) be the solution domain which is covered by a uniform grid \((x_{i},y_{j},t_{n})\) as defined by

where \(h_{x}=(x_{R}-x_{L})/M_{x}\) and \(h_{y}=(y_{R}-y_{L})/M_{y}\) are the uniform step sizes in the *x* and *y* spatial directions, respectively. Denote \(u_{i,j}^{n}=u(x_{i},y_{j},t_{n})\) and the solution space

The following notations are introduced for the simplicity for \(u^{n}\in Z_{h}^{0}\):

and \(\Vert u^{n} \Vert _{\infty }=\max_{i,j} \vert u_{ij}^{n} \vert \). For convenience, we let

### 2.2 Double compact high-order ADI finite difference method (DHOC-ADI)

To develop a new HOC-ADI method, we begin with the elementary 1D steady convection diffusion equation

where *a* is the positive constant conductivity, *p* is the constant convective velocity, and *f* is a sufficiently smooth function of *x*. The technique outline is to combine the HOC-ADI proposed by [14] and Richardson’s extrapolation for solving the steady convection diffusion equation. By using the Taylor series expansion, we have

First, we differentiate both sides of Eq. (4) with respect to *x* and obtain

Differentiating both sides of Eq. (6), we have

Substituting Eqs. (6) and (7) into Eq. (5) and rearranging it, we get

Apply the fourth-order difference operator for the second-order derivative, and it yields

To this end, again, we differentiate both sides of Eq. (7) with respect to *x* and obtain

Also, differentiating both sides of Eq. (10), we have

Similarly, substituting Eqs. (10) and (11) into Eq. (9) and rearranging it, we get

By using the Richardson extrapolations, we get

Combine the above equation and Eq. (12) using the second-order difference operator for the third- and fourth-order derivative; it yields

The truncation error analysis shows that Eq. (13) is a sixth-order scheme for the convection–diffusion equation (4). Scheme (13) may be named double compact high-order (DHOC) finite difference scheme. In fact, Eq. (13) can be symbolically formulated as

where

Notice that the operator \(L_{x}^{-1}\) has symbolic meaning only. By observation, to derive the higher-order compact scheme for numerical solution of transport problems involving convective and diffusive processes, the symbolic operator approximate technique has been extensively used (for more details, see [14, 16, 17]. An analogous symbolic sixth-order compact approximation operator can also be applied for the *y* variable. Therefore, we define the difference operator in the *y*-direction as follows:

This yields

when the sixth-order compact difference operators \(L_{x}^{-1}A_{x}\) and \(L_{y}^{-1}A_{y} \) are applied to the unsteady 2D convection–diffusion equation (1). For 2D unsteady convection–diffusion problem, the term \(f_{ij}\) can be replaced by \(-\partial u/ \partial t\) to obtain

where \(O(h^{6})\) refers to \(O(h_{x}^{6}+h_{y}^{6})\). To complete the discrete scheme, we apply the semi-discrete approximation technique in [14, 16, 17]. Using the forward Taylor series development, we get

By applying the commutativity of the difference operators and Taylor expansions with Eq. (17), we obtain

which yields

when we apply both sides of Eq. (18) with difference operators \(L_{x}L_{y}\). The resulting approximation Eq. (19) is second-order accurate in time and sixth-order accurate in space. By introducing an intermediate variable \(u^{*}\), Eq. (19) can be solved in two steps as follows:

It is worth to notice that the DHOC-ADI scheme (20)–(21) is second-order accurate in time and sixth-order in space. The solution to the resulting DHOC-ADI schemes can be computed by solving the one-dimensional penta-diagonal matrix. The boundary condition for \(u^{*}\) can be obtained by Eq. (21). Therefore, by considering the boundary conditions Eq. (2), it is logical to assume that \(u^{*}\) has the same asymptotic value as boundary as Eq. (2).

## 3 Solvability and mass-conservative property

### 3.1 Solvability

The following lemmas and theorems are well-known and elementary results which are essential for proving the solvability of the new DHOC-ADI scheme (20)–(21).

### Lemma 1

*For any two mesh functions* \(u,v\in Z_{h}^{0}\), *we have*

*Moreover*,

### Lemma 2

*For any mesh function* \(u\in Z_{h}^{0}\), *we have*

### Lemma 3

([29])

*For any mesh function* \(u\in Z_{h}^{0}\), *we have*

*and*

### Theorem 4

*There exist* \(u^{n},u^{*}\in Z_{h}^{0}\)*satisfying the difference scheme* (20)*–*(21).

### Proof

It follows from the original problem that \(u_{0}\) satisfies scheme (20)–(21). By using the mathematical induction, for \(n\le N-1\), assume that there exist \(u^{0},u^{1},\ldots ,u^{n}\), with corresponding \(u^{*}\) in each step, satisfying Eqs. (20)–(21). Next, we prove that there exist \(u^{n+1}\), \(u^{*}\) satisfying scheme (20)–(21). By considering the homogenous form of Eq. (20)

taking the inner product of Eq. (22) with \(u^{*}\), we obtain

By using the boundary conditions, Lemma 1, and Lemma 2, we see that

By using Lemma 3, we have

which yields

where Eqs. (24) and (25) are applied in Eq. (22). This implies that

Hence, it uniquely admits a zero solution satisfying scheme (22). Therefore, \(u^{*}\) is uniquely solvable. Repeating the same arguments to the homogenous form of Eq. (21), we can easily obtain the solvability and the uniqueness of \(u^{n+1}\). This completes the proof. □

### 3.2 Mass-preserving properties

### Theorem 5

*Suppose* \(u_{0}(x,y)\in Z_{0}^{h}(\varOmega )\), *then the finite difference scheme* (20)*–*(21) *is conservative for discrete mass in the sense of*

### Proof

Multiplying Eq. (21) with \(h_{x}h_{y}\) and summing up for *i* from 1 to \(M_{x}-1\) and *j* from 1 to \(M_{y}-1\), we obtain

According to the boundary conditions, we see that

and

which yield

Hence, Eq. (26) gives

Next, we again multiply Eq. (20) with \(h_{x}h_{y}\), summing up for *i* from 1 to \(M_{x}-1\) and *j* from 1 to \(M_{y}-1\), we obtain

Again, by using the boundary conditions, we obtain

which yield

Consider the right term of Eq. (28), we see that

It is not difficult to see that

by the fact that

Hence, Eq. (28) gives

where Eqs. (29) and (30) are used. Consider the right term of Eq. (31) and use the boundary conditions

From Eqs. (27) and (31), we finally arrive at

as desired. □

## 4 Stability analysis

In this section, we study the stability of the proposed scheme (20)–(21) via the von Neumann method for linear stability analysis. Following the method, we assume that the numerical solution can be expressed by virtue of a Fourier series, whose typical term is

where \(I=\sqrt{-1}\), \(\eta ^{n}\) is the amplitude at time level *n*, and \(\theta _{x}=k_{x}\theta _{x}\) and \(\theta _{y}=k_{y}h_{y}\) are phase angles with the wave number \(k_{x}\) and \(k_{y}\) in the *x*− and *y*− directions, respectively. Substituting the discrete Fourier mode into Eq. (19), the amplification factor \(G(\theta _{x},\theta _{y})=\eta ^{n+1}/\eta ^{n}\) is found to be

where \(g_{x}(\theta _{x})\) is given by

with

The other term \(g_{y}(\theta _{y})\) can be defined in a similar way by replacing *x*, *a*, *p*, and \(h_{x}\) with *y*, *b*, *q*, and \(h_{y}\), respectively, in the above expression. To obtain the stability, it is sufficient to show that \(|g_{x}(\theta _{x})|\le 1\) (and also \(|g_{y}(\theta _{y})|\le 1\)), which is equivalent to \(\gamma _{1}\gamma _{2}+\gamma _{3}\gamma _{4}\ge 0\). Simple calculations show that

which yields

Consider

From Eqs. (34)–(35), they give

Hence \(\gamma _{1}\gamma _{2} +\gamma _{3}\gamma _{4}\ge 0\), it follows that \(|g_{x}(\theta _{x})|\le 1\) for all \(\theta _{x}\in [-\pi ,\pi ]\). In a similar way, we also have an inequality for \(g_{y}(\theta _{y})\). We then conclude that the present scheme is unconditionally stable.

## 5 Numerical experiment

For verifying the effectiveness and correctness of our theoretical results in the previous sections, several numerical experiments are performed in this section and compared with some existing schemes in the recent literature [14, 16, 17, 30–32]. The comparison of numerical solutions with the exact solutions can prove the accuracy of the method, and then the rate of convergence can be measured by using the ratio

where \(\mathrm{Error}_{1}\) and \(\mathrm{Error}_{2}\) are the norm errors relevant with the grid sizes *h* and \(h/2\), respectively.

### 5.1 1D convection–diffusion equation

Consider the 1D convection–diffusion equation

whose analytic solution is of the form

where the boundary condition is from the above analytic solution.

In the simulations, we take the computational domain in the interval \([-12,28]\) with \(p=0.8\) and \(a=0.1\). Adapted into the 1D case, the comparison of numerical results using the implementation of the present ADI scheme and the similar approach of ADI, such as the Karaa and Zhang ADI (HOC-ADI) scheme [14], the Tian and Ge ADI (EHOC-ADI) scheme [16], and the rational higher-order compact ADI (RHOC-ADI) [17], is given in Tables 1 and 2. In Table 1, to neglect the error domination in terms of temporal step size for verifying only the spatial sixth-order accuracy, we choose the value of *τ* to be sufficiently small as of 0.0001. The final time *T* is set to be 5. The rate of convergence is approximately 6 for the proposed DHOC-ADI which is in good agreement as to the theoretical prediction. However, for the HOC-ADI, EHOC-ADI, and RHOC-ADI, the rate of convergence is approximately 4 due to the limitation of those schemes. When *h* reduces to 0.1, both \(L^{2}\) and \(L^{\infty }\) error norms obtained by the proposed ADI scheme provide more accuracy than others up to three digits. Especially, the most accurate simulation obtained from our method is with the choices for which the \(L^{\infty }\) error norm is less than \(4.80\times 10^{-9}\), while the most accurate simulation of other methods can be reduced to only \(2.43 \times 10^{-6}\). In conclusion, we see that the proposed DHOC-ADI scheme in this paper provided more accurate results in comparison with others.

To verify the rate of convergence in time, one can have the fixed value of the spatial step size \(h=0.01\). It is clearly seen that all schemes provide the second-order rate of convergence which is close to the theoretical prediction, as recorded in Table 2. However, no significant difference between results obtained by our method and the ones obtained by other methods can be observed in these cases.

Next, we consider the absolute errors on the interval \([0,1]\) at different locations and make a comparison with those mentioned ADI schemes and other recorded results proposed in [30–32] including the cubic B-spline method [30], the weighted finite difference method [31], and the exponential B-spline method [32]. The results are reported in Table 3. It can be seen from Table 3 that the numerical solutions obtained with the methods in [30–32] are more accurate than those obtained with HOC-ADI schemes in the case of \(h=0.01\) and \(\tau =0.001\). However, when the coarse grid size \(h=0.1\) and the smaller temporal step size \(\tau =0.0001\) are used, the great numerical resolution is obtained by the present ADI method, while other ADI methods give very poor results. That is, the present scheme can give accurate solutions comparable with solutions by the methods in [30–32] when the step size *τ* is small enough even when using the coarse grid size *h*.

We also provide the distribution of the Gaussian pulse in Fig. 1, which is in excellent agreement with the exact solutions, especially the sub-plot (top) in the sub-interval \([0,1]\). The corresponding absolute error distribution is presented in the sub-plot (bottom).

### 5.2 2D convection–diffusion equation

Consider the 2D convection–diffusion equation

The analytic solution is given, as in [33], by

where the boundary and initial conditions can be taken directly from Eq. (38).

In our experiments, we set the computational domain to be \((x,y,t)\in [-1,3]\times [-1,3]\times (0,T]\). First, we employed the present scheme in Eqs. (20)–(21) for \(a=b=0.01\) and \(p=q=0.8\) in our simulations. To explore the efficiency of the proposed DHOC-ADI scheme, we provide the comparison of numerical results using the present DHOC-ADI scheme and the original HOC-ADI scheme, which are given in Tables 4 and 5. Besides, to show the accuracy of the scheme proposed here, a temporal step size is chosen to be sufficiently small as \(\tau =2.5\times 10^{-6}\) so that it does not have impact on the accuracy in space while the fine grid \(h_{x}=h_{y}=0.01\) is chosen to verify the accuracy in time. The simulations run up to \(T=1.25\). Numerical results in terms of errors and rates of convergence are listed in Tables 4 and 5. In Table 4, the rate of convergence of the DHOC-ADI scheme in space tends to 6 as reported, when \(h_{x}=h_{y}=0.2,0.1,0.02\), and 0.025, while the rate of convergence in space of the HOC-ADI scheme seems to be 4, the same as the theoretical prediction. In Table 5, the errors and rates of convergence in time are reported, where \(\tau =0.1,0.05,0.025\), and 0.0125 are used. From the table, we may see that the convergence rate obtained by the present DHOC-ADI scheme and the HOC-ADI scheme is 2, which is expected to confirm the theoretical prediction. In terms of the grid point number, the computational performance of the new DHOC-ADI scheme is clearly better than that of the HOC-ADI schemes. That is, the results of our DHOC-ADI scheme show improvement over the HOC-ADI scheme. Especially, our DHOC-ADI scheme can reduce errors from the HOC-ADI scheme up to 97% in the case \(h_{x}=h_{y}=0.025\) and \(\tau =2.5\times 10^{-6}\). However, in terms of the temporal grid point number, the \(L^{2}\) and \(L^{\infty }\) error norms are comparable and no significant improvement is noticed.

We also listed the comparison on errors versus the recorded results [33–35] using the average error and the \(L^{\infty }\) norm error with the same parameters \(a=b=0.01\) and \(p=q=0.8\) at final time \(T=1.25\) in Table 6. One can find that the computational efficiency of the DHOD-ADI scheme satisfies in the case \(h_{x}=h_{y}=0.025\) with \(\tau = 0.0125\). Moreover, when the coarse grid \(h_{x}=h_{y}=0.05\) and \(\tau =0.00625\) are used, the error obtained by present ADI scheme is much better than the that by other ADI schemes and is considered as a comparable accurate solution with the recorded ones. In addition, the most accurate simulation as obtained from our scheme is with the choice \(h_{x}=h_{y}=0.025\) and \(\tau =0.0001\) for which the average error and \(L^{\infty }\) norm error is less than \(4.98\times 10^{-6}\), which is clearly better than others.

Figure 2 presents the numerical solutions and its obtained contours based on the present DHOC-ADI scheme within the sub-region \([1,2]\times [1,2]\) at \(T=1.25\), where \(h_{x}=h_{y}=0.05\), \(\tau =0.00625\) (top) and \(h_{x}=h_{y}=0.025\), \(\tau =0.00001\) (bottom) used. The contour plots of the analytic and computed pulses in the sub-region \([1,2]\times [1,2]\) capture the moving pulse very well and are almost visually indistinguishable from the exact solution.

The absolute error distributions and the contour plots are shown in Fig. 3. It can be observed that the maximum error is taken around the peak amplitude of the Gaussian pulse in both cases. However, using coarse grid sizes \(h_{x}=h_{y}=0.05\) and \(\tau =0.00625\), one can observe that errors occur a lot at the bottom left of the pulse base.

As observed in Table 3, in 1D case, the numerical resolution can be made by choosing a small time step; even coarse grid spacing is used. Also, as reported in Table 6, one can see that the most accurate solution is obtained when small temporal step size is used. Figure 4 shows errors obtained by the present ADI scheme and mentioned ADI schemes as a function of time step. From the simulations, the errors can be improved when the time step is decreased as we expected. The performance of the DHOC-ADI scheme is clearly better than that of others. However, the error slightly increases as the time step is decreased less than \(\tau =0.0625\), presumably because of the increase in round-off error.

Next, the proposed DHOC-ADI scheme is applied to verify the conservation of the numerical model. It results from the present method in case \(h_{x}=h_{y}=0.01\), \(\tau =0.025\) and \(h_{x}=h_{y}=0.05\), \(\tau =2.5\times 10^{-6}\) that the values of \(Q^{n}\) at any time \(t\in [0,1.25]\) coincide with Theorem 5 as presented in Table 7. The results show that the mobility constant slightly differs from the exact value by less than \(5.7\times 10 ^{-15}\) when \(h_{x}=h_{y}=0.01\) and \(\tau =0.025\) is used while less than \(5.3\times 10 ^{-12}\) when \(h_{x}=h_{y}=0.05\) and \(\tau =2.5\times 10^{-6}\).

To explore the superiority of the present ADI scheme, the numerical simulation at a high Reynolds number is the major indicator as studied before in [15, 17]. Here, three cases of Reynolds numbers are presented: \({\mathit{Pe}}=100\), 1000, and \(10\text{,}000\), corresponding to the convective velocities \(p=q=100\), \(p=q=1000\), and \(p=q=10\text{,}000\), respectively. The value of viscosity coefficients is set to be \(a=b=0.01\). As previously observed, the numerical resolution can be achieved when the temporal step size is sufficiently small as shown in Fig. 4. We then choose the temporal step size of \(\tau =2.5\times 10^{-5}\), \(2.5\times 10^{-6}\), and \(2.5\times 10^{-7}\) for \(\mathit{Pe}=100\), \(\mathit{Pe}=1000\), and \(\mathit{Pe}=10\text{,}000\), respectively. To compare the accuracy of the numerical solution, the spatial step size \(h_{x}=h_{y}=0.01\) is used.

The numerical solutions against the exact solution in the sub-region \(1.2\le x\), \(y \le 1.8\) for each test carried out are plotted in Figs. 5–7, where the solid line indicates the exact solution and the dash-dot line indicates the numerical solutions. Results of the cases present the moving center of the initial Gaussian pulse from \((0.5,0.5)\) to \((1.5,1.5)\). The numerical solutions obtained by the presented DHOC-ADI and the RHOC-ADI schemes produce the solution that is in good agreement with the exact solution for all cases (see Figs. 5–7(a), (d)), while small pulse distortion can be observed by the EHOC-ADI scheme (see Figs. 5–7(c)). However, the HOD-ADI scheme produces a noticeable dissipated solution, which can be observed from Figs. 5–7(b) with the same agreement as [15, 17]. Thus, it is worth noting that at the high Reynolds numbers the present scheme produces better results than the HOC-ADI scheme does.

Table 8 reports the average error, the \(L^{2}\) norms error, and the \(L^{\infty }\) norms error using \(\mathit{Pe}=100\), 1000, and \(10\text{,}000\). The results from the present DHOC-ADI scheme are compared with those from the HOC-ADI scheme, the EHOC-ADI scheme, and the RHOC-ADI scheme. It is clear that our scheme can reduce errors from other ADI schemes. Especially, the present DHOC-ADI scheme obtains over 90% less error than the HOC-ADI scheme does and up to approximately 95% when \(\mathit{Pe}=10\text{,}000\). Again, in terms of errors, this clearly shows that the DHOC-ADI scheme provides more incredible resolution than the standard HOC-ADI scheme. Finally, the computations using the DHOC-ADI scheme in three cases of Reynolds numbers \(\mathit{Pe}=100\), 1000, and \(10\text{,}000\) at final time \(t=0.01\), \(t=0.001\), and \(t=0.0001\), respectively are shown in Fig. 8.

## 6 Concluding remarks

In this paper, with the help of the Richardson extrapolation and the technique used in [14], we proposed a new high-order alternating direction implicit (DHOC-ADI) method for solving 2D unsteady convection–diffusion equations which inherit the mass-preserving property. The method is second-order in time and sixth-order in space and the unconditional stability was proved through a discrete Fourier analysis. Numerical studies were carried out in both 1D and 2D cases to demonstrate the accuracy and superiority over some existing schemes. In the 2D case, the DHOC-ADI scheme gave high accurate solutions and preserved the mass exactly. Additionally, it is obvious that moving of the Gaussian pulse by the proposed scheme can be smoothed out at high Reynolds numbers, which is superior to the classical HOC-ADI scheme. Furthermore, the multi-dimensional convection–diffusion equation can be easily extended by a similar approach.

## References

Srivastava, R.: Flow Through Open Channels. Oxford University Press, London (2008)

de M. Baptista, A.E.: Solution of advection-dominated transport by Eulerian–Lagrangian methods using the backward method of characteristics. Ph.D. thesis, MIT, Cambridge (1987)

Baccouch, M., Temimi, H.: Analysis of optimal error estimates and superconvergence of the discontinuous Galerkin method for convection–diffusion problems in one space dimension. Int. J. Numer. Anal. Model.

**13**, 403–434 (2016)Barrenechea, G., Burman, E., Karakatsani, F.: Blending low-order stabilised finite element methods: a positivity-preserving local projection method for the convection–diffusion equation. Comput. Methods Appl. Mech. Eng.

**317**, 1169–1193 (2017)Wang, C., He, M., Sun, P.: A new combined finite element-upwind finite volume method for convection-dominated diffusion problems. Numer. Methods Partial Differ. Equ.

**32**, 799–818 (2016)Noye, B., Tan, H.: Finite difference methods for solving the two-dimensional advection–diffusion equation. Int. J. Numer. Methods Fluids

**26**, 1615–1629 (1988)Rigal, A.: High order difference schemes for unsteady one-dimensional diffusion–convection problems. J. Comput. Phys.

**114**, 59–76 (1994)Kalita, J.C., Dalal, D.C., Dass, A.K.: A class of higher order compact schemes for the unsteady two-dimensional convection–diffusion equation with variable convection coefficients. Int. J. Numer. Methods Fluids

**38**, 1111–1131 (2002)Tian, Z.F., Dai, S.Q.: High-order compact exponential finite difference methods for convection–diffusion type problems. J. Comput. Phys.

**220**, 952–974 (2007)Sari, M., Gurasian, G., Zeytinoglu, A.: High-order finite difference schemes for solving the advection–diffusion equation. Math. Comput. Appl.

**15**, 449–460 (2010)Ding, H., Zhang, Y.: A new difference scheme with high accuracy and absolute stability for solving convection–diffusion equations. J. Comput. Appl. Math.

**230**, 600–606 (2011)Liao, W.Y.: A compact high-order finite difference method for unsteady convection–diffusion equation. Int. J. Comput. Methods Eng. Sci. Mech.

**13**, 135–145 (2012)Peaceman, D.W., Rachford, H.H.: The numerical solution of parabolic and elliptic differential equations. J. Soc. Ind. Appl. Math.

**3**, 28–41 (1959)Karaa, S., Zhang, J.: High order ADI method for solving unsteady convection–diffusion problems. J. Comput. Phys.

**198**, 1–9 (2004)You, D.: A high-order Pade ADI method for unsteady convection–diffusion equations. J. Comput. Phys.

**214**, 1–11 (2006)Tian, Z.F., Ge, Y.B.: A fourth-order compact ADI method for solving two-dimensional unsteady convection–diffusion problems. J. Comput. Appl. Math.

**198**, 268–286 (2007)Tian, Z.F.: A rational high-order compact ADI method for unsteady convection–diffusion equations. Comput. Phys. Commun.

**182**, 649–662 (2011)Karaa, S.: A high-order compact ADI method for solving three-dimensional unsteady convection–diffusion problems. Numer. Methods Partial Differ. Equ.

**22**, 983–993 (2006)Dai, R., Zhang, J., Wang, Y.: Higher order ADI method with completed Richardson extrapolation for solving unsteady convection–diffusion equations. Comput. Math. Appl.

**71**, 431–442 (2015)Ge, Y.B., Tian, Z.F., Zhang, J.: An exponential high-order compact ADI method for 3D unsteady convection–diffusion problems. Numer. Methods Partial Differ. Equ.

**29**, 186–205 (2013)Li, J., Chen, Y., Liu, G.: High-order compact ADI methods for parabolic equations. Comput. Math. Appl.

**52**, 1343–1356 (2006)Mishra, N., Sanyasiraju, Y.: Exponential compact higher order schemes and their stability analysis for unsteady convection–diffusion equations. Int. J. Comput. Methods

**11**, 1350053 (2014)Sun, H., Li, L.: A CCD-ADI method for unsteady convection–diffusion equations. Comput. Phys. Commun.

**185**(3), 790–797 (2013)Healy, R.W., Russell, T.F.: Solution of the advection–diffusion equation in two dimension by a finite volume Eulerian–Lagrangian localized adjoint method. Adv. Water Resour.

**21**, 11–26 (1998)Rui, H.: A conservative characteristic finite volume element method for solution of the advection–diffusion equation. Comput. Methods Appl. Mech. Eng.

**197**(45), 3862–3869 (2008)Rui, H., Tabata, M.: A mass-conservative characteristic finite element scheme for convection–diffusion problems. J. Sci. Comput.

**43**, 416–432 (2009)Fu, K., Liang, D.: The time second order mass conservative characteristic FDM for advection–diffusion equations in high dimensions. J. Sci. Comput.

**73**, 26–49 (2017)Zhang, J., Zhang, Y., Guo, H., Fu, H.: A mass-conservative characteristic splitting mixed finite element method for convection-dominated Sobolev equation. Math. Comput. Simul.

**160**, 180–191 (2019)Wongsaijai, B., Poochinapan, K., Disyadej, T.: A compact finite difference method for solving the general Rosenau–RLW equation. Int. J. Appl. Math.

**44**, 192–199 (2014)Nazir, T., Abbas, M., Ismil, A.I.M., Majid, A.A., Rashid, A.: The numerical solution of advection–diffusion problems using new cubic trigonometric B-splines approach. Appl. Math. Model.

**40**, 4586–4611 (2016)Dehghan, M.: Weighted finite difference techniques for the one-dimensional advection–diffusion equation. Appl. Math. Comput.

**147**, 307–319 (2004)Mohammadi, R.: Exponential B-spline solution of convection–diffusion equations. Appl. Math.

**4**, 933–944 (2013)Noye, B.J., Tan, H.H.: Finite difference methods for solving the two-dimensional advection–diffusion equation. Int. J. Numer. Methods Fluids

**9**, 75–89 (1989)Kalita, J.C., Dalal, D.C., Dass, A.K.: A class of higher order compact schemes for the unsteady two-dimensional convection–diffusion equation with variable convection coefficients. Int. J. Numer. Methods Fluids

**38**, 1111–1131 (2002)Kalita, J.C., Chhabra, P.: An improved \((9,5)\) higher order compact scheme for the transient two-dimensional convection–diffusion equation. Int. J. Numer. Methods Fluids

**51**, 703–717 (2006)

### Acknowledgements

The authors would like to thank the handling editors for the help in the processing of the paper.

### Availability of data and materials

Not applicable.

## Funding

The Centre of Excellence in Mathematics, the Commission on Higher Education, Thailand and Chiang Mai University.

## Author information

### Authors and Affiliations

### Contributions

All authors read and approved the final manuscript.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Wongsaijai, B., Sukantamala, N. & Poochinapan, K. A mass-conservative higher-order ADI method for solving unsteady convection–diffusion equations.
*Adv Differ Equ* **2020**, 513 (2020). https://doi.org/10.1186/s13662-020-02885-6

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13662-020-02885-6

### Keywords

- Mass-conservative
- High-order compact scheme
- Unsteady convection–diffusion equation
- Alternating direction implicit (ADI) method