Alternating Direction Implicit (ADI) Methods for Solving Two-Dimensional Parabolic Interface Problems with Variable Coefﬁcients

: The matched interface and boundary method (MIB) and ghost ﬂuid method (GFM) are two well-known methods for solving elliptic interface problems. Moreover, they can be coupled with efﬁcient time advancing methods, such as the alternating direction implicit (ADI) methods, for solving time-dependent partial differential equations (PDEs) with interfaces. However, to our best knowledge, all existing interface ADI methods for solving parabolic interface problems concern only constant coefﬁcient PDEs, and no efﬁcient and accurate ADI method has been developed for variable coefﬁcient PDEs. In this work, we propose to incorporate the MIB and GFM in the framework of the ADI methods for generalized methods to solve two-dimensional parabolic interface problems with variable coefﬁcients. Various numerical tests are conducted to investigate the accuracy, efﬁciency, and stability of the proposed methods. Both the semi-implicit MIB-ADI and fully-implicit GFM-ADI methods can recover the accuracy reduction near interfaces while maintaining the ADI efﬁciency. In summary, the GFM-ADI is found to be more stable as a fully-implicit time integration method, while the MIB-ADI is found to be more accurate with higher spatial and temporal convergence rates.


Introduction
This work aims to develop alternating direction implicit (ADI) finite difference methods for solving a two-dimensional (2D) parabolic equation over a rectangular domain Ω ⊂ R 2 with a Dirichlet boundary condition imposed on the boundary ∂Ω and an initial condition defined at an initial time, i.e., t = 0. Domain Ω is split into two subdomains, an outer subdomain Ω + and an inner subdomain Ω − , by a closed smooth curve, called an interface, such that Γ = Ω − ∩ Ω + . In Equation (1), the diffusion coefficient β(x, y) ≥ β 0 > 0 is assumed to be smooth in each subdomain, Ω − and Ω + , but could be discontinuous across the interface Γ, i.e., it is defined as a piecewise smooth function β(x, y) = β + (x, y), if (x, y) ∈ Ω + , β − (x, y), if (x, y) ∈ Ω − .
Similarly, the source term f (x, y) is assumed to be a piecewise smooth function. Due to the discontinuities of β(x, y) and f (x, y) on the interface, one can expect that the solution to Equation (1) is also a piecewise smooth function Of course, u − and u + are not independent and should be related to each other on Γ by certain physical jump conditions. In this work, we assume the following general jump conditions x, y), [βu n ] := β + u + n − β − u − n = ψ(t, x, y), for (x, y) ∈ Γ, (4) in which the limiting value from each side of the interface has been taken for both β and u.
Here φ and ψ are known functions and n denotes the outer normal direction. A cartoon demonstration is provided in Figure 1. In addition, at an interface point, the tangential direction is denoted by τ and the angle formed by the normal direction n and the positive x-direction is denoted by θ in Figure 1. Equations (1) and (4) yield a mathematical model known as the parabolic interface problem, which plays an important role in the fields of biophysics, engineering, material sciences, and so on, for studying physical quantities propagating across material interfaces between two media [1][2][3]. Exact solutions to parabolic interface problems are known only for a few simplified cases, while numerical approximations are usually demanded for most real-world applications. Because the physical solution could be non-smooth or even discontinuous across the interface, standard numerical algorithms are not capable of delivering accurate approximations. In the worst scenario, numerical computation could even fail to converge.
In the past few decades, a lot of efforts have been devoted towards developing accurate and efficient numerical methods to solve parabolic interface problems, based on both fitted and unfitted meshes, such as [4][5][6][7][8][9][10]. This study focuses on an unfitted mesh where a simple Cartesian grid is used and does not need to conform with the material interface. Consequently, carefully designed numerical procedures are required to account for jump conditions (4) in the numerical formulations so that numerical accuracy near the interface can be recovered. Such Cartesian grid interface algorithms have been successfully developed in many finite difference methods [4,6,8,[10][11][12][13][14][15][16][17] and finite element methods [18][19][20].
Based on Cartesian grids, the alternating direction implicit (ADI) method [21,22] is known to be one of the most efficient algorithms for time integration of parabolic par-tial differential equations (PDEs). Such a high efficiency comes from two factors. First, for parabolic problems without material interfaces, the ADI method is usually unconditionally stable so that a large time step size can be used for saving the total number of time integration steps. Second, in each time step, a multidimensional system will be reduced to sets of independent one-dimensional (1D) subsystems, and the resulting matrices with tridiagonal structures can be efficiently inverted by using, for instance, the Thomas algorithm [23]. For a total spatial degree of freedom N, the complexity of ADI methods is of the order N, i.e., O(N). This is much faster than other implicit step stepping schemes, in which the multidimensional system has to be solved by iterative algorithms. Indeed, due to its efficiency, the ADI method can also be applied as an algebraic solver, instead of a time stepper, for solving various PDEs [14,24,25]. For parabolic equations with variable coefficients, high accuracy ADI methods have been developed in [26].
The development of fast ADI methods for solving parabolic PDEs with material interfaces has attracted much research interest. The first study of this kind was carried out by Li and Mayo in 1993 [4], which combines the ADI with the immersed interface method (IIM) [27], yielding an IIM-ADI scheme. In solving a simplified parabolic interface problem with the material coefficient β being a constant throughout the domain, the IIM-ADI scheme introduces some correction terms in the ADI formulation so that the accuracy near interfaces can be recovered back to second order. Later, this IIM-ADI scheme was applied to other parabolic PDEs [28,29]. For general jump conditions (4), the first ADI method that can not only maintain O(N) efficiency but also produce second order spatial accuracy is the matched ADI (mADI) introduced by Zhao in 2015 [10]. Based on the matched interface and boundary (MIB) method [30,31] for general interface problems, a tensor product decomposition is conducted in the mADI to reduce jump conditions into 1D ones. Then these 1D conditions along Cartesian directions are enforced to secure a second order of convergence. A perturbed tridiagonal matrix is frequently encountered in the MIB-ADI computation, in which a few non-zero entries appear outside three diagonals due to interface treatments. An improved Thomas algorithm has been introduced in [10] for solving such systems with O(N) complexity. The MIB-ADI method has been further formulated in the Peaceman-Rachford form [12] and for solving three-dimensional (3D) parabolic interface problems [13]. In [15], a popular interface algorithm-the ghost-fluid method (GFM) [32], is combined with the ADI for solving parabolic PDEs with constant coefficients. Comparing with the MIB-ADI scheme, the GFM-ADI is found to be more stable while being less accurate. Recently, another advance in this direction was presented in [14], in which a new IIM-ADI scheme is constructed for handling general jump conditions (4). This is achieved in an augmented IIM (AIIM) formulation by introducing auxiliary variables on the interface so that one can still solve an interface problem without material parameter β. The resulting AIIM-ADI scheme yields second order accuracy in both space and time.
Comparing with general interface algorithms for parabolic PDEs [6,8,11,[16][17][18][19][20], the interface treatment in the ADI framework is more subtle. This is because the jump conditions (4) are prescribed in the normal direction so that the usual interface treatments naturally couple spatial derivatives in all Cartesian directions. However, in the ADI formulation, the jump conditions have to be enforced in a 1D manner, and such enforcement in different Cartesian directions shall be independent from each other. This is realized through two types of strategies in the existing studies. In the IIM-ADI methods [4,14], an argument formulation is employed, and simplified jump conditions can be satisfied multidimensionally through introducing corrections to standard central difference discretization of Laplacian operator. Then, the usual ADI splitting can be utilized to decompose the discrete Laplacian into 1D ones. In the MIB-ADI or mADI methods [10,12,13], the original jump conditions are decomposed in a tensor product manner to 1D, and the resulting 1D jump conditions are enforced in each alternating direction. The decomposition requires jump data in tangential directions at the future time step, say t n+1 . In order to avoid unwanted coupling, the tangential jumps are extrapolated by using function values at the current time step t n in the mADI methods. Thus, the MIB-ADI methods are semi-implicit in nature and are conditionally stable in general. We note that the AIIM-ADI scheme [14] is also conditionally stable. Fortunately, the stability constraints of MIB-ADI and IIM-ADI methods are still much less severe than those of the explicit time integration methods.
To the best of the authors' acknowledge, all existing interface ADI methods concern only constant coefficient parabolic PDEs, and no efficient and accurate ADI method has been developed for variable coefficient parabolic interface problems. By using the augmented formulation, it may be possible to generalize the AIIM-ADI scheme [14] to solve variable coefficient problems. In fact, for elliptic interface problems, the generalization from constant coefficient to variable coefficient has been realized via the augmented formulation for both IIM [12] and the immersed finite element method [33]. Nevertheless, the ADI scheme is utilized as an algebraic solver in the AIIM-ADI method [14] and has to be calculated multiple times within each time step. This is less efficient than applying the ADI as a time stepper, in which the ADI procedure is executed only once per time step.
In this paper, the mADI method [10,12,13] will be generalized for solving variable coefficient parabolic interface problems, in which the ADI scheme serves as a time stepper. Away from the interface, the central difference discretization of Laplacian in divergence form will be employed, in which β will be evaluated at half grid points. Near the interface, fictitious values for both u and β will be assumed. Fictitious values of β are obtained by using the diffusion coefficient definition from the other side, while those of u are solved from 1D jump conditions that are generated by the mADI procedure. In spatial discretization, we will examine both the first order GFM and second order MIB schemes for enforcing jump conditions. In time discretization, both the Douglas and Peaceman-Rachford ADI schemes will be employed as time steppers. More details about these ADI methods and their comparison will be provided in the following sections.
The rest of this work is organized as follows. In Section 2, the mADI procedure for solving variable coefficient parabolic interface problems will be presented. Details on spatial and temporal discretizations of the proposed MIB-ADI and GFM-ADI schemes will be offered. Numerical comparisons of four ADI methods are conducted on various examples in Section 3. Convergence rates and stability will be explored numerically as well, followed by concluding remarks in Section 4.

Theory and Algorithm
Standard finite different notations are adopted throughout this section to describe the proposed numerical methods for solving the parabolic interface problem governed by Equations (1) and (4). More specifically, we assume Equation (1) The temporal domain [0, T] is discretized into N t equally spaced subintervals by a uniform time step ∆t = T N t , and the spatial domain is discretized by a uniform mesh size h in both xand ydirections, yielding N x + 1 and N y + 1 grids in xand ydirections, respectively, so that h = b−a N x = d−c N y . Numerical approximation to the exact solution u(t n , x i , y j ) at grid (x i , y j ) and time instant t n is denoted by u n i,j for all i = 0, 1, . . . , N x , j = 0, 1, . . . , N y and n = 0, . . . , N t .
For the sake of simplicity, the superscript of u n i,j is dropped when semi-discretized spatial methods are described in Section 2.1, and the subscripts of u n i,j are dropped when semi-discretized temporal schemes are described in Section 2.2. Both super-and subscripts are then used when fully-discretized methods are demonstrated in Section 2.3.

Spatial Discretization
It is important to take jump conditions (4) into account when constructing finite difference formulas to approximate the two spatial derivatives, ∂ ∂x β ∂ ∂x u and ∂ ∂y β ∂ ∂y u, in Equation (1). To this end, we denote corresponding finite difference operators as δ xx ≈ ∂ ∂x β ∂ ∂x and δ yy ≈ ∂ ∂y β ∂ ∂y and demonstrate their constructions by showing δ xx u i,j ≈ ∂ ∂x β ∂ ∂x u(x i , y j ) at a grid (x i , y j ) for 0 < i < N x on one grid line y = y j . In a similar manner, δ yy u i,j ≈ ∂ ∂y β ∂ ∂y u(x i , y j ) at a grid (x i , y j ) on a grid line x = x i for 0 < j < N y can be obtained.

A Matched Interface and Boundary (MIB) Method
At a grid (x i , y j ) away from the interface Γ, a second order approximation of δ xx u i,j can be constructed as However, Equation (5) must be adjusted to incorporate jump conditions (4) at grids near the interface Γ, where jumps take place and the solution u is piecewise defined as in Equation (3). To this end, all grids on the grid line y = y j are classified into three categories. A grid (x I , y j ) is called a regular grid if three grids in the stencil {(x I−1 , y j ), (x I , y j ), (x I+1 , y j )} are all on the same side, either the Ω + -or Ω − -side, of the interface Γ. For instance, (x i−1 , y j ) and (x i+2 , y j ) are two regular grids in Figure 2a. A grid (x I , y j ) is called an irregular grid if one of its two adjacent grids, (x I−1 , y j ) or (x I+1 , y j ), is on the opposite side of the interface Γ. In this case, the interface Γ cuts the grid line y = y j at a point ( ). Without loss of generality, we assume (x Γ , y j ) is off-grid and call it an irregular interface point. For instance, (x i , y j ) and (x i+1 , y j ) in Figure 2a are a pair of irregular grids. A grid (x I , y j ) is called a corner grid if both adjacent grids are on the opposite side of the interface Γ and the two associated interface points, denoted by (x Γ 1 , y j ) and (x Γ 2 , y j ), are called corner interface points. In this case, the left and right grids, (x I−1 , y j ) and (x I+1 , y j ), are also called corner grids. For instance, {(x i−1 , y j ), (x i , y j ), (x i+1 , y j )} in Figure 2b are three corner grids.  After all grids on the grid line y = y j are properly classified, we propose to correct Equation (5) as andū i±1,j = u i±1,j , if (x i±1 , y j ) and (x i , y j ) are on the same side of Γ u i±1,j , if (x i±1 , y j ) and (x i , y j ) are on the opposite side of Γ.
The essential idea of Equation (6) is that when the involved function values of β and u are from the opposite side of the interface, fictitious values, instead of the actual values, shall be employed, while at regular grids, Equation (6) is identical to Equation (5). The fictitious values of β can be simply generated by applying the piecewise definition of the current side via Equation (2), but at a node on the other side. This is why in Equation (7),β i± 1 2 ,j is always calculated according to the domain sign of the node (x i , y j ). In Equation (8),ũ i±1,j denotes a fictitious value imposed at either irregular or corner grids. Such fictitious values are unknown and need to be approximated by using the jump conditions via the matched interface and boundary (MIB) method proposed in [10] and further discussed in [12,15]. One can view the fictitious values as approximations to the values of Equation (3) extended from the opposite side of the interface Γ. For instance, if (x i , y j ) ∈ Ω − is an irregular grid,ũ i,j ≈ u + (x i , y j ) where u + (x i , y j ) is obtained by extending u + from subdomain Ω + to subdomain Ω − and evaluated at (x i , y j ). Fictitious values play an important role and have significant impact on the accuracy and stability of the proposed method. A brief description is provided below to demonstrate how fictitious values are constructed via the MIB method, while one can find more detailed description in [10,15].
Let (x i , y j ) and (x i+1 , y j ) be a pair of irregular grids shown in Figure 2a, and we consider applying Equation (6) for calculating δ xx u i,j and δ xx u i+1,j . Without loss of generality, it is assumed that (x i−1 , y j ) and (x i , y j ) are on the Ω + -side while (x i+1 , y j ) is on the opposite Ω − -side of the interface Γ. A pair of fictitious values,ũ i,j andũ i+1,j , can be solved by considering jump conditions imposed at the interface (x Γ , y j ), where fictitious valueũ i+1,j is used for calculating δ xx u i,j and fictitious valueũ i,j is used for calculating δ xx u i+1,j by Equation (6). However, the jump condition ψ = [βu n ] cannot be used immediately because it is on the normal direction n, which usually does not coincide with the x-direction. It must be converted to a jump condition in the x-direction, i.e.,ψ: = [βu x ], before it can be used in numerical formations. As indicated in Zhao's work [10],ψ can be expressed as where φ τ is the derivative of φ along the tangential direction, and u + τ and u − τ are the tangential derivatives of u from the Ω + -and Ω − -sides of the interface, respectively. Equations (9) and (10) allowψ to be calculated from either side of the interface Γ. Moreover, one can see that all quantities involved on the right-hand sides of Equations (9) and (10) can be analytically obtained except that the two derivatives along the tangential direction τ, i.e., u + τ and u − τ , must be estimated via certain numerical procedures. A new numerical procedure to approximate u + τ and u − τ will be proposed in the next subsection. At this moment, assuming either u + τ or u − τ has been numerically generated, the two jump conditions at the interface point (x Γ , y j ) shown in Figure 2a are ready to be used. Denoting the values of β at (x Γ , y j ) as β + Γ,j and β − Γ,j , a system of equations. (12) are pre-calculated by the Fornberg's method [34] to maintain second order in all approximations. The representations ofũ i,j andũ i+1,j are then used in Equation (6) for calculating δ xx u i,j and δ xx u i+1,j .
In Figure 2b, jump conditions at the left and right corner interface points, (x Γ 1 , y j ) and (x Γ 2 , y j ), are taken into consideration at the same time so that a system of four equations can be obtained from jumps in a similar manner. In order to accommodate the resulting system of equations, the MIB method suggests four fictitious values,ũ i−2,j ,ũ i−1,j ,ũ i,j , andũ i+1,j , to be imposed and solved from for the case shown in Figure 2b where w Γ 1 's and w Γ 2 's are pre-calculated weights obtained at the left and right corner interface points, respectively. Solving the system of Equation (13) Representations of three fictitious values,ũ i−1,j ,ũ i,j , andũ i+1,j , are then used in Equation (6) for calculating δ xx u i−1,j , δ xx u i,j and δ xx u i+1,j . The above discussions provide a second order accurate procedure to construct the finite difference approximation δ xx u ≈ ∂ ∂x β ∂ ∂x u at all internal grids on grid line y = y j for j = 1, . . . , N y − 1. A similar produce can be carried out for constructing δ yy ≈ ∂ ∂y β ∂ ∂y u at all internal grids on grid line x = x i for i = 1, . . . , N x − 1. More specifically, a formula analogous to Equation (6) is given by and applied to all grids on grid line x = x i for i = 1, . . . , N x − 1. Herê The fictitious valuesũ i,j±1 are obtained by enforcing either jump conditions at two nearby corner interface points together. In addition,ψ is obtained bŷ with u + τ and u − τ being approximated via the same numerical procedure discussed in the next subsection.

Approximating u +
τ and u − τ in the MIB Method It is clear now how the MIB method enforces jump conditions (4) in its finite difference formulation. In this process, it is assumed that u + τ and u − τ are known in Equations (9) and (10) to generateψ from the given jump condition ψ. In practice, these tangential derivatives need to be calculated numerically. A couple of numerical treatments have been proposed in our previous work [10,12] for estimating u + τ and u − τ in either one direction or in alternating directions. For usual curved interfaces, these treatments maintain the overall second order of spatial accuracy. However, it was also noticed that they all have limitations when the shape of interface Γ becomes highly irregular. An improved treatment is introduced in this work to deliver accurate estimations of u + τ and u − τ for complex interfaces. Work in this direction is demonstrated below using Figure 3.
In Figure 3, the interface Γ (green curve) cuts grid line y = y j at an interface point (x Γ , y j ) where either u + τ or u − τ is desired. To this end, the tangent line, with its positive direction assumed to point from y = y j−1 to y = y j+1 , through the interface point is drawn (red dashed line) and cuts the lower grid line y = y j−1 at a point (x AL , y j−1 ) and the upper grid line y = y j+1 at a point (x AR , y j+1 ). These two points are named auxiliary points (red open triangles). The interface point is the midpoint of the two auxiliary points because all grid lines are uniformly spaced. Denoting the distance between the interface point and one auxiliary point as D, u + τ and u − τ at interface point (x Γ , y j ), denoted by (u + τ ) Γ,j and (u − τ ) Γ,j , can be approximated by the central difference method where u ± AR,j+1 and u ± AL,j−1 are the values of u ± at the auxiliary points and D = O(h). However, u ± AR,j+1 and u ± AL,j−1 are not ready to be used in Equation (19) because the two auxiliary points are in general off-grid so that they must be interpolated or extrapolated using the values of u ± at nearby grids, which are named supporting grids. In our previous studies [10,12], one simple choice of supporting grids is to select nearby grids from the Ω + -side of interface Γ on both grid lines, y = y j−1 and y = y j+1 , for approximating (u + τ ) Γ,j , or select nearby grids from the Ω − -side of interface Γ on both grid lines for approximating (u − τ ) Γ,j . However, this choice can fail when the curvature of the interface changes rapidly near the given interface point (x Γ , y j ) such that no sufficient supporting grids can be found from one side of the interface Γ on both grid lines. We need a more carefully-designed systematic method that allows supporting grids to be chosen for accurate approximations of (u + τ ) Γ,j or (u − τ ) Γ,j at the interface point even when the interface is complex and irregularly shaped. A more thoroughgoing procedure is proposed in this work as follows. Assuming that the two auxiliary points are off-grid in general, three supporting grids on grid line y = y j−1 and three supporting grids on grid line y = y j+1 are needed for quadratic interpolation/extrapolation of the values at the lower and upper auxiliary points. To this end, at most, five closest nearby grids are taken into consideration on each of the grid lines y = y j−1 and y = y j+1 . By the Pigeonhole principle, the three closest grids, denoted by , y j−1 )}, on grid line y = y j−1 are on one side of the interface Γ, and three closest grids, denoted by {(x i 1 , y j+1 ), (x i 2 , y j+1 ), (x i 3 , y j+1 )}, on grid line y = y j+1 are on one side of the interface Γ. They are the six supporting grids to be chosen. When all six supporting grids are on the same side of the interface Γ, it is obvious that either the pair of values {u + AR,j+1 , u + AL,j−1 } or the pair of values {u − AR,j+1 , u − AL,j−1 } can be interpolated or extrapolated using values at these six supporting grids, and then Equation (19) is utilized to estimate (u + τ ) Γ,j or (u − τ ) Γ,j . When the two sets of supporting grids are on the opposite sides of the interface Γ, the procedure is demonstrated using Figure 3.
In Figure 3, the three supporting grids, {(x i −2 , y j−1 ), (x i −1 , y j−1 ), (x i , y j−1 )}, on grid line y = y j−1 are on the Ω + -side of the interface so that u + AL,j−1 is extrapolated, while the three supporting grids, {(x i , y j+1 ), (x i +1 , y j+1 ), (x i +2 , y j+1 )}, on grid line y = y j+1 are on the Ω − -side of the interface so that u − AR,j+1 is extrapolated. Using two jump conditions and obtained u + AL,j−1 and u − AR,j+1 , second order finite difference approximations lead to a system of two equations to solve for u − AL,j−1 and u + AR,j+1 . After Equation (20) is solved, both positive and negative values at the two auxiliary points are obtained and ready to be used for approximating (19). The proposed procedure can be used to estimate u + τ and u − τ for complex interfaces. It is implemented and coupled with linked lists for dynamically storing interface points on grid lines in a scientific program called the finite difference interface problem solver (FDIPS) for solving interface problems with various examples in multidimensional spaces. Numerical experiments are demonstrated in Section 3 after temporal and full discretization methods are discussed in the next two subsections.
The MIB method proposed in Section 2.1 coupled with the technique presented in this subsection results in a spatial discretization scheme, which will still be called the MIB in this paper.

The Ghost Fluid Method (GFM)
The ghost fluid method (GFM) is another popular method utilized to solve the interface problems. It was discussed and compared with the MIB methods in the work of [15]. In the GFM, it is assumed that jump conditions in the xand ydirections can be obtained from the jump condition in the normal direction. That is, for instance,ψ ≈ ψ cos(θ), where θ is the angle formed by the normal direction and the positive x-direction. When compared this assumption with Equations (9) and (10), one can see that the GFM's treatment is merely a numerical simplification by completely dropping tangential jumps. This assumption allows the coefficient matrix of the linear system resulting in each time advancing step be symmetric and diagonally dominant when the diffusion coefficient β is defined as piecewise constants inside and outside the interface Γ. In this case, it follows that the GFM, when coupled with implicit time advancing schemes demonstrated in the next subsection, yields stable yet less accurate fully discretized methods for solving the parabolic interface problems. More detailed discussions can be found in [15].
Unfortunately, when the diffusion coefficient β is variable, the resulting coefficient matrix is still diagonally dominant, as shown in Equations (6) and (14), but there is no guarantee that the resulting coefficient matrix is symmetric. It is our interest to see how the GFM performs and whether it is still able to produce satisfying numerical solutions in this case. To this end, the GFM is also implemented in this work and compared with the proposed MIB method.

Temporal Discretization
Implicit time evolution schemes are of great interest to be employed to solve Equation (1) due to the fact that many applications of interface problems require long-term simulations until solutions in steady state are achieved. In our previous work [10,12,15], a couple of alternating direction implicit (ADI) methods have been studied and utilized to solve parabolic interface problems with piecewise constant diffusion coefficients. When comparing the ADI methods to other implicit methods, such as the implicit Euler method and Crank-Nicolson method, the ADI methods are of similar accuracy but much more efficient [15]. It is our interest to explore how well these ADI methods perform when solving the interface problems with variable coefficients.
The first ADI method to be considered is the Douglas ADI method, denoted by ADID1, which is given by where δ xx ≈ ∂ ∂x β ∂ ∂x and δ yy ≈ ∂ ∂y β ∂ ∂y are two finite difference operators approximating the second derivatives with respect to x and y at time step t n , respectively. The diffusion coefficient β is divided throughout Equations (21) and (22) so that one can compare Equations (21) and (22) to a similar formula proposed in [10] for solving the parabolic interface problems with piecewise constant coefficients. The convergence rate of the ADID1 method is found to be one, i.e., O(∆t), when solving the parabolic interface problems with piecewise constant coefficients [10,15].
The second ADI method is the Peaceman-Rachford ADI method, denoted by ADIPR, which is given by The results of solving the parabolic interface problems with piecewise constant coefficients by the ADIPR method were reported in [12]. The convergence rate of the ADIPR method is found to be close to two, i.e., O(∆t 2 ), when solving the parabolic interface problems with piecewise constant coefficients [12].

Fully Discretized Methods and Stability Discussion
Coupling the two spatial numerical methods, MIB and GFM, with the two temporal advancing methods, ADID1 and ADIPR, yields four fully discretized methods for solving the parabolic interface problems.
In particular, the ADID1 method (21) and (22) are rewritten as The first fully discretized method is denoted by MIB-ADID1 when the finite difference operators δ xx and δ yy are obtained by the MIB method, while the second method is denoted by GFM-ADID1 when δ xx and δ yy are obtained by the GFM. Similarly, the next two methods, MIB-ADIPR and GFM-ADIPR, are obtained by utilizing MIB and GFM in the framework of the ADIPR method (23) and (24), yielding Stability is discussed using Equation (25) as an example. When the MIB method is utilized at time step t n , the finite difference operator δ yy appearing on the right-hand side of Equation (25) can be further decomposed as δ yy u n i,j = D yy u n i,j +Bu n i,j +φ n .
The first term D yy u n i,j on the right-hand side of Equation (29) involves the values of u at the stencil {(x i , y j−1 ), (x i , y j ), (x i , y j+1 )} at a regular node on the grid line x = x i . The matrix representation of difference operator D yy has a band-width of three if (x i , y j ) is a regular grid, a band-width of four if (x i , y j ) is an irregular grid, and a band-width of five if (x i , y j ) is a corner grid. Moreover, D yy is unchanged at all time steps so that it only needs to be computed once. The second termBu n i,j is due to the values of u at supporting nodes on the left and right grid lines, x = x i−1 and x = x i+1 , used to estimate u + τ or u − τ at nearby irregular or corner interface points. The matrix representation of difference operator B consists of pre-calculated weights at corresponding grids and thus stays unchanged. The last termφ n is a collective term containing all non-homogeneous contributions from jump conditions φ n , ψ n , and φ n τ and naturally needs to be updated at each time step. In contrast, δ xx appears on the left-hand side of Equation (25) so that δ xx u n+1 i,j is decomposed and approximated by This means that the tangential derivatives calculated at time t n will be used to approximate those at time t n+1 such that 1D finite difference operators δ xx become decoupled for different y = y j lines [10,12,15]. This has two numerical consequences as reported in the previous mADI methods [10,12,15]. First, this limits the temporal order to be one, i.e., O(∆t). Second, the mADI scheme becomes semi-implicit in nature so that the MIB-ADID1 becomes a conditionally stable scheme instead of an unconditionally stable method. However, the stability condition of the MIB-ADID1 is not severe, so that reasonable large time step sizes can still be used for efficient time integration. Numerical verification will be provided in the next section.
On the other hand, when the GFM is used in Equation (25), the last two terms in Equations (29) and (30) do not exist so that the fully discretized method GFM-ADID1 stays fully implicit and, thus, is expected to be unconditionally stable. However, its hypothesis that jumps in the xand y-directions purely come from the jump condition in the normal direction not only lowers the accuracy of approximated solutions but also jeopardizes its stability. Thus, we still expect it to be conditionally stable rather than unconditionally stable.
In summary, we expect all four proposed methods to be conditionally stable methods for solving the parabolic interface problems. There are other factors, such as the jump conditions and the geometry of the interfaces, which could also affect the accuracy and stability of the proposed methods. A form stability analysis is extremely difficult to be carried out to account for diverse cases. Numerical verification is the best we can achieve at this moment. Various numerical examples are constructed and results are reported in the next section.
where β + and β − are the limiting values of β at this interface point. We note that both jump conditions are temporally and spatially dependent to represent the most general jump conditions imposed on the interface Γ.
All numerical experiments were conducted on a high-performance computing (HPC) cluster equipped with 24 Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz and 128 GB RAM. Numerical L ∞ and L 2 errors, which are defined as at various final times are reported for all examples in order to quantitatively measure the accuracy of the proposed methods. The execution time, known as the wall clock time, taken from the start of the scientific program, FDIPS, to the end was used to demonstrate the efficiency of the proposed methods.

Efficiency Demonstration
The efficiency of ADI time stepping schemes is demonstrated first in this subsection. To this end, a simple "squircle" interface with a parametric form γ(ρ) = 0.5 + 0.05 sin(4ρ) for 0 ≤ ρ ≤ 2π is considered. For simplicity, a piecewise constant β, which is defined as β = 1 in Ω − and β = 10 in Ω + , is adopted, and the analytical solution is given by Equation (31). The interface and solution are shown in Figure 4a. The ADID1 method is employed for time advancing and compared to its analog, the implicit Euler (IE) method, to solve the 2D parabolic interface problem when both time stepping methods are coupled with the MIB method from an initial time t 0 = 0 to a final time T = 1 with a fixed time step ∆t = 1.0 × 10 −5 .Various numbers of grid sizes with N x (= N y ) ranging from 41 to 201 are used. The obtained L 2 and L ∞ errors are shown in Figure 4b. One can see the both MIB-IE and MIB-ADID1 schemes yield similar errors and have the same convergence pattern. The ADI errors are consistently smaller and such differences are believed to be caused by a higher perturbation term β∆t 2 δ xx δ yy u as indicated in [10]. The wall clock time of the two methods is demonstrated in Figure 4c. It is obvious that MIB-ADID1 is more efficient, for instance, about four times faster than MIB-IE at N x = 201. This is because a large linear system has to be solved by an iterative algorithm in each time step for the MIB-IE scheme. Provided the fact that both ADID1 and IE produce close errors while ADID1 is more efficient in time advancing, it is natural to choose ADI-type time stepping schemes in the proposed methods, which are utilized to solve the following 2D examples.

Variable Coefficient Examples
In all examples of this subsection, the diffusion coefficient β is defined as a piecewise smooth function Example 1. In the first example, the interface Γ is an ellipse constructed by the level set function Contour plots of the diffusion coefficient (37) and exact solution (31) over the whole domain Ω are shown in Figure 5. Discontinuity on the interface can be easily observed in both graphs. Spatial convergence tests are conducted first to compare the performance of the two spatial discretization methods, MIB and GFM. To this end, the time step is fixed to be small, ∆t = 1.0 × 10 −6 , and N x (= N y ) varies from 41 to 201 with an increment of 10 for all four proposed numerical methods. Log-log plots of L ∞ and L 2 errors at the final time T = 1 are shown in Figure 6a,b, respectively. All four methods are found to converge and be capable of achieving reasonable accuracy. The two MIB-involved methods achieve similar accuracy in the range of (1.0 × 10 −5 , 1.0 × 10 −3 ) for L ∞ error and (1.0 × 10 −6 , 1.0 × 10 −4 ) for L 2 error, respectively, which are about two-magnitude smaller than those achieved by the two GFM-involved methods in all tested cases. Moreover, convergent rates are calculated using MATLAB subroutine polyfit and reported in Figure 6a,b as well. It can be seen that for the L 2 errors, the rates of the MIB schemes are about 1.6, while those of the GFM schemes are essentially 1. We believe the difference is caused by the hypothesis made in the GFM-it not only lowers the accuracy but also degrades the convergence rate. By considering a fixed number of time steps, wall clock times against N x are presented using log-log plot in Figure 6c. Execution times of all four methods are found to be almost same and increase at a similar rate slightly less than two. It is thus our belief that all methods are essentially equivalently efficient and they are all fast O(N 2 )-methods where N stands for the number of grids per direction. We next test the stability of four methods. To this end, we will consider various ∆t values, and for each ∆t, a very long time integration is conducted with the number of time steps being 10,000. By considering two spatial meshes with N x = 81 and N x = 281, stability results are presented in Table 1. All computations are found to be stable, except for one case of the MIB-ADIPR method with N x = 281 and ∆t = 1.0 × 10 −2 . The errors for this unstable case are skipped and marked with dash signs in Table 1. The present study suggests that the MIB-ADIPR is the least stable method among the four methods. Moreover, the results shown in Table 1 also indicate that the two MIB-involved methods are usually more accurate than two GFM schemes.    It is meaningful to numerically study the condition of ∆t in terms of h when the MIB-ADIPR converges. To this end, N x = 181, 281, 381, 481 are selected and for each N x value, and the largest stable ∆t value is searched via the bisection method. The least square fitting of the resulting ∆t's and h's lead to a numerical stability condition for the MIB-ADIPR scheme, i.e., ∆t ≤ 11.7h 1.88 .
Temporal convergence is studied next. In this set of tests, the spatial mesh is fixed to be reasonably large, N x = N y = 391, while the time step varies from ∆t = 1.0 × 10 −2 down to ∆t = 1.0 × 10 −4 . The resulting L ∞ -and L 2 -errors at the final time T = 1 are reported in Table 2. Corresponding convergent rates are calculated by errors obtained at two consecutive tested time steps in Table 2. A few important observations can be made on the results obtained in the temporal convergence tests. First, several entries are skipped in Table 2, because the MIB-ADIPR is unstable when ∆t ≥ 1.0 × 10 −2 . We note that the errors of unstable cases are much less than those in Table 1 in terms of magnitude. This is because the stopping time is fixed to be T = 1 in the present study. Thus, the number of time steps is actually quite small for large ∆t values. Consequently, the error accumulation is not significant. On the other hand, all other three methods produce reasonably small errors and are believed to converge in all tested cases. Secondly, the convergence rates of the two MIB-involved methods are mostly within the range between one and two as expected. For the MIB-ADID1, the temporal convergence rate is about one initially but becomes close to two as ∆t is small enough. This is believed to be rooted in how the jump conditions are treated in the MIB method, i.e., tangential derivatives u + τ and u − τ at the next time step are approximated by their values at the current time step. The order of such approximation is O(∆t), which significantly affects the temporal precision when ∆t is large. When ∆t is small enough, such approximation becomes negligible so that the temporal convergence is dominated by the ADI scheme itself. Thus the MIB-ADID1 method attains a second order temporal convergence when ∆t < 1.0 × 10 −3 . For the MIB-ADIPR method, once it is stable, its temporal convergence rate is about two, as shown in Table 2. However, the rates obtained by MIB-ADIPR are not seen to be significantly higher than those obtained by MIB-ADID1. Thirdly, the temporal rates of two GFM methods are about one initially but quickly drop to zero as ∆t becomes smaller. This means that the GFM spatial discretization invokes a quite large error, which finally dominates the computation. The refinement in time does not reduce the total error any further so that the temporal order becomes zero. In comparing with two GFM schemes, the two MIB-involved methods produce relatively larger errors when ∆t ≥ 1.0 × 10 −3 , but far fewer errors when ∆t < 1.0 × 10 −3 . A similar trend was observed when the diffusion coefficient is piecewise constant and is reported in Reference [15].
Results obtained in this example suggest that all four methods are able to produce satisfying numerical solutions when the step size is small. However, the MIB-ADID1 method is by far our most favorable method considering it is the most accurate and stable method. The geometric shape of the interface used in this example is rather simple, and we thereby continue to test the four methods in the next example with a more complicated interface.

Example 2.
In the second example, the interface Γ is similar to that shown in the work [35]. The level set function is given by with parameters Contour plots of the diffusion coefficient and exact solution are shown in Figure 7. It is obvious that the shape of the interface in Example 2 is much more complex than that in Example 1. We want to see how the geometry of the interface impacts the proposed methods. Results obtained in spatial convergence, stability tests, and temporal convergence using the same numerical setup as that in Example 1 are shown in Figure 8, Tables 3 and 4, respectively.    In Figure 8a,b, it is found that convergence rates obtained by the two MIB-involved methods are reduced to slightly less than one but are still much greater than the convergence rates obtained by the two GFM-involved methods. It is believed that the reduction of spatial convergence rates is due to the more complicated shape of the interface when jump conditions need to be taken care of at more irregular and corner pointers in the numerical procedure. Moreover, the corresponding wall clock time shown in Figure 8c is found to be higher than those obtained in Example 1 due to additional calculations required for additional jump conditions. However, the overall complexity is still O(N 2 ) for both MIB and GFM methods.
The "negative" impact of the interface can also be observed in stability tests. In Table 3, both MIB-ADIPR and GFM-ADIPR become unstable for N x = 281 and ∆t = 1.0 × 10 −2 . It is definitely different from the results we obtained for solving problems with a piecewise constant diffusion coefficient in the work of [15], because all GFM-ADI methods are unconditionally stable in that context. For constant coefficient problems, the GFM finite difference matrices for δ xx and δ yy are symmetric. However, such symmetry is lost for the present variable coefficient problems. Consequently, the GFM-ADIPB becomes conditionally stable.
The temporal convergence tests are shown in Table 4. Both the MIB-ADID1 and GFM-ADID1 schemes produce larger errors than those obtained in Table 2, while the convergence patterns are very similar. Limited by the spatial accuracy of the GFM, the ADID1 stops to convergence as ∆t decreases. For the MIB-ADID1, the temporal order increases from one to two, as ∆t is decreasing. Moreover, more cases of the two ADIPR-involved methods are found to diverge, no matter which spatial discretization, either MIB or GFM, is used. As a matter of fact, it is hard to tell which spatial discretization method is better in terms of stability when solving problems with variable diffusion coefficient β.
Based on results presented in Examples 1 and 2, it is reasonable to believe that ADID1 is superior to ADIPR to be used for temporal discretization in terms of convergence and stability-both ADID1-involved methods converge in almost all tested cases, and the two ADIPR-involved methods converge only when the time step ∆t is small, and the results they obtain are not seen to be more accurate than those obtained by MIB-ADID1. Moreover, it seems that the MIB-ADID1 method, which maintains reasonable convergence rates in both spatial and temporal convergence tests, is the best method among all four proposed methods. In the examples that follow, we will just focus on testing the two ADID1-involved methods.  Example 3. In our first example, a grid line cuts the interface at most at two irregular interface points due to the simplicity of the interface's geometry. In the second example, a grid line can cut the interface more than twice, but corner interface points only occurred in a few cases.
In the examples which follow, we would like to have both irregular and corner interface points occurring in many interface locations in order to earn more profound insight on how they are going to affect the proposed numerical methods. To this end, an interface constructed by a parametric function is used in this and next example. Here b > 0 governs the magnitude and curvature of the interface, k > 0 is a positive integer determining the number of "heads" of the curve, and η is an angle in the range of [0, 2π]. By choosing parameters (b, k) = (0.25, 4), a four-head interface, together with imposed β and exact solution, is demonstrated in Figure 9. When compared to the interfaces used in Examples 1 and 2, this interface has sharper curvature at four corners so that corner interface points are encountered in almost all tested cases.  Using the same numerical setup, results obtained for spatial, temporal and stability tests on the two ADID1-invloved methods are reported in Figure 10, Tables 5 and 6, respectively. No significant differences are observed in the results obtained in this example when compared to those obtained in the previous two examples. In fact, the rates obtained in spatial tests ( Figure 10) and temporal tests (Table 6) are similar to those obtained in Examples 1 and 2, and no divergence is found in stability tests (Table 5). It suggests that the numerical treatments introduced in both MIB and GFM methods are equally accurate when dealing with the jumps imposed at irregular and corner interface points. Moreover, wall clock time shown in Figure 10b is between those shown in Figures 6c and 8c, suggesting that the efficiency of both methods is not jeopardized significantly by the corner points either.     (40), resulting in a six-head interface with fast changing curvature shown in Figure 11. Similar numerical results are shown in Figure 12 and Tables 7 and 8. Once again, no significant differences are observed, and both methods well maintain their performance in previous examples as expected. In fact, the ADI-ADID1 attains the second order convergence in space for this variable coefficient example.       Provided the interface used in this example is the most general one reported in this work, one additional set of tests is conducted to study one more factor, the contrast of β's values inside and outside the interface, which could also affect the convergence and stability of the methods. To this end, the diffusion coefficient β in Equation (37) is redefined as with an additional ratio coefficient r > 0 so that the contrast of β values inside and outside the interface can be varied. Results obtained by varying the value of r from r = 1/320 to r = 320 are presented in Table 9, with the other numerical parameters being fixed as: N x = 281, ∆t = 1.0 × 10 −2 , and T = 10 4 * ∆t = 1.0 × 10 2 . One can see that both methods are stable and able to produce reasonable errors when the contrast ratio r is small, while MIB-ADID1 starts to become unstable and produce relatively large errors when r is large, i.e., r > 20. On the other hand, GFM-ADID1 is still able to maintain its stability and produce reasonable errors even when the ratio r is as large as 320. Moreover, one may also notice that, in Table 9, errors obtained by GFM-ADID1 are smaller than those obtained by MIB-ADID1. Based on the results shown in Table 9, we conclude that GFM-ADID1 has a better chance to converge when the contrast of β's values and time step ∆t are large, while MIB-ADID1 shall be better when small ∆t is utilized. This conclusion matches what we observed for piecewise constant β in [15]. Table 9. β tests of Example 4.

Conclusions
In this paper, two new alternating direction implicit (ADI) schemes are developed and compared for solving parabolic interface problems with variable coefficients. In order to enforce the 2D jump conditions in the dimension-by-dimension ADI computations, a tensor product decomposition shall be conducted to generate 1D jump conditions for correcting the finite difference discretization. To this end, the tangential jumps are estimated from the previous time step in the matched interface and boundary (MIB) scheme, while they are simply neglected in the ghost fluid method (GFM). The resulting MIB-ADI method is semi-implicit, while the GFM-ADI method is still fully implicit. Moreover, in addition to the Douglas ADI (ADID1) scheme, the Peaceman-Rachfor ADI (ADIPR) scheme is also employed to couple with both MIB and GFM methods. Various numerical tests are conducted to investigate the accuracy, efficiency, and stability of the proposed ADI methods. When the time step ∆t is small, all four ADI schemes can recover the accuracy reduction near interfaces, while maintaining the ADI efficiency.
A comparison of four ADI schemes for solving variable coefficient parabolic interface problems has been carried out and can be summarized as follows: • Stability: Two ADIPR schemes are found to be unstable when ∆t is large, while most reported ADID1 results are stable. This is because the ADIPR scheme is constructed based on the Crank-Nicolson time integration, which is less stable than the implicit Euler time integration behind the ADID1 scheme. Although no instability is detected for the GFM-ADID1 scheme, both MIB-ADID1 and GFM-ADID1 methods are believed to be conditionally stable for variable coefficient heat equations with material interfaces. For the MIB-ADID1 scheme, this is due to its semi-implicit nature. The GFM-ADID1 method is known to be unconditionally stable for solving parabolic interface problems with a piecewise constant diffusion coefficient [15] because the GFM finite difference matrices for δ xx and δ yy are symmetric and diagonal dominate. However, such symmetry is lost for the present variable coefficient problems. As a consequence, the GFM-ADID1 could become conditionally stable. Based on the present result for the MIB-ADIPR, the stability condition of the proposed ADI methods shall take the general form ∆t ≤ Ch 2 , where the constant C should depend on the ADID1 or ADIPR time integration, as well as the diffuse coefficient β. Although the stability condition has the same form as that of the explicit methods, the constant C is usually a quite large number in the ADID1 methods, so that when h is not too small, the computation is still stable for large ∆t values. • Spatial accuracy: The GFM method can improve the accuracy of finite difference discretization. When the interface shape is simple, the GFM method could deliver a first order of accuracy in space. However, it is barely convergent for complex interface shapes. The MIB method yields a satisfactory spatial convergence, with the rates being at least one and sometimes up to two. By correcting the standard finite difference discretization of the Laplacian in divergence form, the MIB interface treatment maintains second order accuracy in all approximations. It is noted that the MIB-ADI method achieved a second order of accuracy in space in solving parabolic interface problems with constant coefficients [10,12,15]. However, due to the complex nature involved in the variable coefficient and jump discontinuity, the second order convergence in space is not always attainable in the present study. We also note that for elliptic interface problems with a variable coefficient, a sophisticated finite difference scheme involving up-winding techniques has been employed to secure spatially second order of accuracy [12]. • Temporal accuracy: For two GFM-ADI methods, the numerical error is dominated by the spatial discretization, so that the temporal convergence rate becomes zero when ∆t is decreasing. For the MIB-ADID1 scheme, the temporal convergence rate is about one initially but becomes close to two as ∆t is small enough. This is due to the fact that the tangential derivative approximation in spatial discretization depends on ∆t, i.e., O(∆t). This significantly affects the temporal precision when ∆t is large. When ∆t is small enough, such approximation becomes negligible so that the temporal convergence is dominated by the ADI scheme itself. Thus the MIB-ADID1 method attains a second order temporal convergence when ∆t is small enough. • Efficiency: Both MIB-ADI and GFM-ADI methods maintain the high efficiency of the classical ADI method. For a 2D problem with the spatial degree of freedom being N 2 , the complexity of all new methods in each time step is just O(N 2 ), which is the same as explicit time stepping schemes. Moreover, for the ADID1 scheme, a stable computation is possible by using a large time increment ∆t, so that total time steps could be reduced to save CPU time, when comparing with explicit time integrations.
In summary, the MIB-ADID1 method seems the best in terms of accuracy and stability among all four ADI methods. In the future, efficient and accurate ADI methods will be further explored so that second order convergence in both space and time could be achieved for variable coefficient parabolic interface problems.  Data Availability Statement: Data sharing is not applicable to this article as no datasets were generated or analyzed during the study.

Conflicts of Interest:
The authors declare no conflict of interest.