High order two-grid finite difference methods for interface and internal layer problems
Abstract
Second order accurate Cartesian grid methods have been well developed for interface problems in the literature. However, it is challenging to develop third or higher order accurate methods for problems with curved interfaces and internal boundaries. In this paper, alternative approaches based on two different grids are developed for some interface and internal layer problems, which are different from adaptive mesh refinement (AMR) techniques. For one dimensional, or two-dimensional problems with straight interfaces or boundary layers that are parallel to one of the axes, the discussion is relatively easy. One of challenges is how to construct a fourth order compact finite difference scheme at boarder grid points that connect two meshes. A two-grid method that employs a second order discretization near the interface in the fine mesh and a fourth order discretization away from the interface in the coarse and boarder grid points is proposed. For two dimensional problems with a curved interface or an internal layer, a level set representation is utilized for which we can build a fine mesh within a tube of the interface. A new super-third seven-point discretization that can guarantee the discrete maximum principle has been developed at hanging nodes. The coefficient matrices of the finite difference equations developed in this paper are M-matrices, which leads to the convergence of the finite difference schemes. Non-trivial numerical examples presented in this paper have confirmed the desired accuracy and convergence.
keywords: Two-grid method, interface problems, internal layer problems, finite difference method, discrete maximum principle, hanging nodes.
AMS Subject Classification 2000 65N06, 65N50.
1 Introduction
High order compact schemes are useful or even required for many applications such as high wave numbers, oscillatory solutions, and problems on large or infinite domains. In general, high order compact schemes are suitable for rectangular meshes and boundaries. For interface problems, the solutions often depend on the curvature of the interface, which presents challenges to develp high order discretizations near the interface. Various efforts have been made recently. For singular source only interface problems, fourth order schemes for Poisson equations have been developed, see for example [33, 25]; and a sixth order method if the interface has an analytic expressions [7]. A third order scheme for elliptic partial differential equations (PDEs) with piecewise constant but discontinuous coefficients in the presence of fixed interfaces in [25]. The implementation for high order schemes for interface problems with curved interface is rather complicated. Note that the curvature of an interface involves second order derivatives, and is non-linear. A related topic is how to resolve the solution accurately near an internal layer, which is a long outstanding challenging problem in computational fluid dynamics and other applications especially if the boundary layer is not parallel to one of the axes. It is well-known that often the accuracy of the pressure is one order lower than that of the velocity due to the boundary layer effect in solving incompressible Naiver-Stokes equations [4, 3, 5]. In some sense, to resolve the solution near an internal (boundary) layer is like solving an interface problem in a structured mesh.
Our idea in this paper is to use two-grid methods to solve these challenging problems. The idea is different from adaptive mesh refinement (AMR) techniques [23, 22, 2, 10, 9, 18, 19]. For one dimensional (1D) interface problems, we use a fourth order method on a mesh with a step size away from the interface; and a second order method with a finer mesh with step size near the interface. Thus, we can get an approximation with global accuracy. In the left diagram in Figure 1, we show a diagram of a two-grid for an interface problem (top); and a boundary layer problem (bottom). In the right plots in Figure 1, we show the solution and error plots for a famous boundary layer problem. In Figure 5, we show the solution and a two-grid for a two-dimensional example with a line interface; and in Figure 6 a two-grid for a circular interface. Interested readers can get an idea of the proposed two-grid methods from those plots.
Note also that there are different interpretations of ‘two-grid methods’ in the literature including different meshes for different variables [34, 6, 1]; different meshes for interior and boundary domains [32, 1, 35, 31]. For boundary layers that are parallel to one of the axes, a Shishkin mesh has been employed to capture the boundary layer effect, see for example, [8, 11, 12, 30].
In this paper, we develop high order two-grid methods that are as compact as possible with some new ideas. One of the keys in our methods is that we try to enforce the sign properties for elliptic differential equations so that the discrete maximum principle can be preserved, which leads to the convergence of the finite difference methods. For one-dimensional problems, we have developed a fourth-order compact scheme for Poison/Helmholtz equations with non-uniform grids. For two-dimensional (2D) interface problems with a line interface that is parallel to one of the axes, we have developed a new finite difference method that is fourth order away from the interface, second order in one coordinate direction with a fine mesh, and fourth order in the other with a coarse mesh. For 2D general interface problems, the algorithm and discussion are more complicated. One of difficulties is how to develop high order discretizations at hanging nodes, which can preserve the discrete maximum principle. Different from a traditional approach using ghost points and interpolations, which cannot guarantee the stability of the algorithm, we use a new undetermined coefficients method so that the sign property can be satisfied with the highest possible accuracy. The convergence of the developed two-grid methods is guaranteed with the sign property and the local truncation error analysis for elliptic interface problems and internal layer problems.
The rest of paper is organized as follows. In the next section, we discuss the two-grid method for one-dimensional interface problems, and two-dimensional interface problems with line interfaces that are parallel to one of the axes. Numerical examples are also presented. In Section 3, we discuss the two-grid method for general elliptic interface problems, some implementation details, and a new finite difference discretization at hanging nodes, which can preserve the discrete maximum principle. Several benchmark examples from the literature are tested and analyzed. We also present a numerical experiment of a non-trivial internal layer problem. We conclude in the last section.
2 Two-grid methods for 1D interface problems and 2D problems with line interfaces
We first show a simple and well-known one-dimensional boundary layer example,
(1) |
The solution exhibits a boundary layer near if is small.


For this example, we show the computed solution and error plot in Figure 1 using a standard centered finite difference discretization. Let be a coarse grid size and be the number of grid points in the interval . In the interval , where , we use a fine mesh for the discretization so that the central discretization has little effect on the solution even though that is relatively large.
Next, we use one-dimensional interface problems,
(2) |
with two linear boundary conditions (Dirichlet, Neumann, Robin) at and to demonstrate the two-grid method. The problem is equivalent to
(3) |
see [20]. We assume that the coefficient is a piecewise constant,
(6) |
Given a coarse grid parameter , a grid ratio , and a width parameter , we can easily generate a two-grid. First, we define , and let the fine mesh size be . The fine mesh is defined as if . The coarse mesh is defined as those and , see the left plot in Figure 3 for an illustration.
The standard fourth order compact scheme at a grid point for a uniform mesh, i.e. , is
(7) |
2.1 The IIM scheme near the interface
While it is possible to have fourth order schemes for regular one dimensional problems, see for example, Chapter 7 in [16], it is difficult to obtain fourth order accurate schemes in two and three dimensions for discontinuous coefficients and curved interfaces. One of the purposes of the two-grid method is to provide an alternative approach that can obtain comparable high order accuracy near the interface. We use a second order method near the interface with a finer mesh but a fourth order scheme away from the interface.

Assume that the interface is between two grid points and , that is, . The interface is one of the grid points when , see Figure 2 for an illustration. The finite difference equations at two irregular grid points and have the following forms, see [16],
(8) |
The coefficients of the finite difference equations for the special case have the following closed form:
(9) |
where
(10) |
The correction terms are given by
(11) |
The stability and consistency of the finite difference scheme are discussed in [16].
2.2 High-order compact FD discretization at boarder grid points
One of challenges in two-grid methods is to design a compatible high order finite difference discretization at grid points that border the coarse and fine grids. In this subsection, we assume that and are constants. Let be such a grid. Assume that and . We design the following compact finite difference scheme,
(12) |
There are six unknowns, and , . Define the ‘local truncation error’ as
(13) |
assuming that is the true solution. We want the finite difference scheme to be exact for all fourth order polynomials if possible. To achieve this, we expand the right hand side above at to get
where , , , , and and so on. Note that the first and second order derivatives of can be expressed as the derivatives of the solution below,
(14) |
from the differential equation. Thus, by collecting corresponding terms involving , , we get a system of equations for the coefficients and , . Note that the constraint is necessary to avoid the trivial solution. Thus, in the 1D case, we have the same number of unknowns and constraints and we have uniquely determined the coefficients. We list the coefficient matrix and the right hand side below for the special case , .
(27) |
The solution (the set of coefficients) has an analytic form that is obtained from the Maple symbolic package,
(28) |
We can see the ‘symmetry’ between the left and right grid points as expected. Note that when we recover the standard fourth-order compact formula. The finite difference coefficients satisfy the sign property needed for an M-matrix conditions. When , we can treat as a source term like , that is, we add the term
(29) |
to the left hand side of the finite difference equation.
2.3 A one-dimensional numerical example
This example is from [16]:
In this example, is continuous and the natural jump conditions and are satisfied across the interface . The exact solution is

A two-grid along the -axis, the exact solution (solid line) and computed solution (little o’s) with , , and . The maximum error is .
(uniform) (two-grid) 10 20 40
We use the two-grid method to solve the problem and show the numerical results in Figure 3. In the left plot, we can clearly visualize the two grids in which the parameters are , that is, we use a fine mesh in the interval ; with the refinement ratio , and . The total number of grids points is , and the maximum error is . In the right table, we carry out some grid refinement analysis with various coarse meshes and mesh ratio . The average convergence order is with respect to as expected. We observe better than fourth order convergence from to . Note that the fine mesh is within a tube and thus, it is more efficient in terms of the accuracy and complexity compared with that of a fourth high method using a uniform mesh.
2.4 2D problems with line interfaces that are parallel to one of the axes
Now we consider two dimensional Poisson equations with a line interface that is parallel to the -axis
(32) |
where and correspond to the jumps of and across , and . That is, all quantities in the -direction are continuous. More general problems with piecewise constant coefficients and curved interfaces will be discussed in the next section.
In the literature, a two-grid in one space dimension is often referred to as the Shishkin mesh that has been employed to capture boundary layer effects, see for example, [8, 11, 12, 30]. To solve (32), we use a two-grid in the -direction as discussed in the previous sub-section; and a uniform mesh in the -direction. Then, there are three types of grid points: coarse grid points (black dotted), fine grid points (blue dotted), and boarder grid points (red dotted), as demonstrated in Figure 4.
For a coarse gird point that is outside of the strip , we use the standard compact nine-point finite difference scheme, see for example, [29, 17]. The fourth order compact scheme for assuming the same step size in the and directions can be written as
(33) |
where is the discrete nine-point Laplacian operator whose coefficients at the four corners are , at the east-north-south-west grid points are , and at the center is ; is an averaging operator,
(34) |
where and so on.

In the strip as shown in Figure 4, that is, a fine grid in the direction but the same coarse grid size in the direction, with the immersed interface method (IIM) as discussed in Subsection 2.1, the finite difference equation that is second order in and fourth order in in the tube can be written as
(35) |
where is the standard three-point central finite difference operator in the -direction and is the correction term which is zero almost everywhere except at the two grid points ( and ) neighboring the interface . Note also that is independent of . Thus, the discretization can further be written as
(36) |
which leads to
The finite difference equation involves the nine-point compact stencil, and is second order accurate in and fourth order accurate in , respectively.
For the boarder grid points as shown in Figure 4, following the similar derivation process for 1D boarder grid points in subsection 2.2, we can obtain a compact finite difference equation at a boarder grid point . The finite difference coefficients for and the linear combination of are listed below,
where and
Now we have defined finite difference equations at all grid points with local truncation errors being . The discretize system of equations satisfy the discrete maximum principle, and thus, the global accuracy is also of .
Example 2.1.
This example is adapted from the 1D example in Subsection 2.3. A Poisson equation with a line interface on a domain , with the true solution,
(39) |
The source term is . Across the interface, the jump conditions are and .

A two grid along the -axis and the error plot with , , and . The maximum error is .
(two-grid) order 3.9585 4.0032 4.1156 A grid refinement analysis for the 2D example with a line interface. Fourth order convergence is confirmed when .
In the left plot of Figure 5, we show an error plot with and in which two grids with different mesh sizes are also visible. In the right table, we show a grid refinement analysis which indicates fourth order convergence in terms of when as expected.
3 A two-grid method for general 2D interface problems
For general two-dimensional elliptic interface problems, it is much more challenging to develop two-grid methods with general curved interfaces. We consider a general two-dimensional elliptic interface problem of the following form,
(40) |
together with jump conditions across interface
(41) |
and a boundary condition along , where is a rectangular domain, is a closed smooth interface that can be parameterized by a one-dimensional variable , say the arc-length. Within the domain ; and are two functions defined along the interface . Note that, when , the problem can be written as
(42) |
Second order methods on Cartesian grids have been developed in the literature. The challenge here is to develop higher (third or above) order compact methods. It is more useful but challenging for the case when is discontinuous. In this paper, we propose an alternative approach to a uniform mesh, that is, a two-grid method to obtain high order accurate methods, which is not only simpler but also avoids higher order derivatives required for jump conditions along the interface as well as the source terms and the solution.
We assume that the interface problem is defined in a rectangular domain . We start with a coarse Cartesian grid, , , , . The interface is implicitly represented by the zero level set of a Lipschitz continuous function :
(43) |
In the discrete case, is defined at grid points as . Often is the signed distance function from , or its approximations.

To generate a finer mesh around the interface , we first select parent grid points within a tube of the interface according to
(44) |
where is a control coefficient to adjust the width of the refinement tube. When a grid point within the tube is selected, we build a refined mesh with a finer mesh ( is refinement ratio, or , ) within the square: and . Generating a refined square for every such grid points yields a refined region around the interface. Figure 6 shows an example of the refinement mesh around a circular interface. The diagram at the right in Figure 7 is an illustration of some grid points in the coarse and finer grid with .
Once we have the two grids, we use the standard fourth-order compact finite difference scheme at interior coarse grid points; and the standard second order method at interior regular fine grid points; and second order maximum principle immersed interface method (IIM) [15, 16] at the fine irregular grid points within the tube. In all the three cases, the finite difference coefficients satisfy the sign property that guarantee the discrete maximum principle.
3.1 A new super-third order FD discretization for hanging nodes
One of the challenges for two-grid or adaptive mesh methods is how to treat hanging nodes, which has been intensively discussed in the literature. There are two main concerns about the discretization: accuracy, and the stability that is often more difficult to study. One sufficient (stronger) condition is to check the sign property of finite difference coefficients. Our new idea is to use the values of the solution, the source term , and the partial differential equations to derive finite difference equations that can be accurate for highest polynomials possible while satisfying the sign property. We also want the finite difference scheme to be robust so that the coefficients just need to be computed once for PDEs with constant coefficients.

There are various approaches in designing finite difference equations at hanging nodes in the literature. One commonly used strategy is to use ghost grid points, and then apply interpolation schemes. We refer the readers to [18] and references therein. Often, the developed finite difference equations are consistent. However, it is difficult to show the stability, and the convergence of the finite difference method.
In this paper, we employ a new strategy, see also [21], and some new ideas to develop finite difference equations at hanging nodes for elliptic PDEs
(45) |
assuming that and are constants. We use the left diagram in Figure 7 to illustrate the method in which . We develop a finite different equation for the hanging node (marked as a red five-star). In the figure, solid black circles are fine grid points, small rectangles are coarse ones. A grid point can be both fine and coarse. In fact, for the PDE above with constant coefficients, the coefficients of the finite difference equation and the weights for the source term are invariant in terms of the relative locations and the PDE. So we just need to use a reference geometry in the derivation as illustrated in Figure 7, in which there are three such hanging nodes along the line , and another three along the line .
After some research, testing, and reasoning based on symmetry arguments, we come to a conclusion that a seven-point stencil as demonstrated in Figure 7 is an ideal choice as we can see later in this section. In order to derive a high order compact (HOC) finite difference equation (7-point stencil) at the hanging node (marked as the red star), we use its neighboring six grid points (marked in blue square). The finite difference stencil has one coarse grid point, and six coarse and fine ones. Denote the coordinates at hanging node as . Then, the grid points involved are , , , and . Note that for . It is obvious that the finite difference equations for hanging points with and are the same using the symmetry arguments, which has been verified by symbolic computations. We design the finite difference equation as:
(46) |
Note that the indexes are not real ones for actual algorithms but just for the derivation of the finite difference equation. The coefficients are just needed to be computed once for all for constant and .
Define the ‘local truncation error’ as
(47) |
where is the true solution to the boundary value problem. To determine the finite difference coefficients ’s and the weight coefficients ’s, we expand all and terms at up to all fourth order derivatives of and second order derivatives of ; then we represent terms in terms of and its partial derivatives at the using the following relations,
(48) |
With the above relations, we can rewrite the local truncation error as
(49) |
where is the maximum norm of all ’s coefficients and so on. We want to be as small as possible in magnitude in terms of . So we set the coefficients of to be zero for all the coefficients, which leads to a linear system of equations for the coefficients ’s and the weight coefficients ’s. The equality constraint in (46) prevents the trivial solution (all zero coefficients). If we make all the coefficients of to be zero for all , we would obtain 16 equations with 14 unknowns (7 ’s and 7 ’s). It turns out that the system of equations is not consistent. Thus, we give up two equations corresponding to and terms to have equations and unknowns. The system of equations then is consistent and have infinity number of solutions. We can impose some additional conditions such as the symmetry, sign property to get desired solutions.
2 | 1 | 1/2 | 1/2 | 3 | 3 | 1/2 | 1/2 | -8 |
---|---|---|---|---|---|---|---|---|
4 | 1 | 7/12 | 5/12 | 41/6 | 11/6 | 7/12 | 5/12 | -32/3 |
2 | 1/2 | 1/2 | 3 | 3 | 1/2 | 1/2 | -8 | |
3 | 5/12 | 7/12 | 11/6 | 41/6 | 5/12 | 7/12 | -32/3 | |
8 | 1 | 5/8 | 3/8 | 59/4 | 43/28 | 5/8 | 3/8 | -128/7 |
2 | 7/12 | 5/12 | 41/6 | 11/6 | 7/12 | 5/12 | -32/3 | |
3 | 13/24 | 11/24 | 17/4 | 137/60 | 13/24 | 11/24 | -128/15 | |
4 | 1/2 | 1/2 | 3 | 3 | 1/2 | 1/2 | -8 | |
5 | 11/24 | 13/24 | 137/60 | 17/4 | 11/24 | 13/24 | -128/15 | |
6 | 5/12 | 7/12 | 11/6 | 41/6 | 5/12 | 7/12 | -32/3 | |
7 | 3/8 | 5/8 | 43/28 | 59/4 | 3/8 | 5/8 | -128/7 |
1/2 | 0 | 0 | 1/2 | 1/2 | 0 | 0 | 0 |
1/4 | 0 | 0 | 7/12 | 5/12 | 0 | 0 | 0 |
1/8 | 0 | 0 | 5/8 | 3/8 | 0 | 0 | 0 |
3/8 | 0 | 0 | 13/24 | 11/24 | 0 | 0 | 0 |
With the help of the Matlab symbolic package, we have analytically found one ‘good’ set of finite difference coefficients and weights of the source term when and as listed in Table 1 and Table 2 for . The last column in Table 1 lists the coefficients at the diagonals. The coefficients for are listed in Table 3. From these talbles, we have verified following properties of the finite difference scheme, which we referred as a ‘good’ set of the coefficients.
-
•
The finite difference coefficients satisfy the sign property, that is, all diagonals are negative while off-diagonals are positive. So the coefficient matrix for the finite difference equations is an M-matrix.
-
•
The finite difference coefficients and weights at hanging point are the same for any and with .
-
•
The finite difference coefficients and weights at hanging point for are the same as those for except they are in the reverse order.
-
•
Only two weight coefficients are nonzero: and , which are positive and their sum is one.
-
•
The discretization at a hanging node is super-third order accurate. In our numerical tests, the errors from the discretization at hanging nodes are less dominant compared with those at irregular grid points near the interfaces in the finer mesh.
1 | 31/48 | 17/48 | 737/24 | 57/40 | 31/48 | 17/48 | -512/15 | 31/48 | 17/48 |
2 | 5/8 | 3/8 | 59/4 | 43/28 | 5/8 | 3/8 | -128/7 | 5/8 | 3/8 |
3 | 29/48 | 19/48 | 227/24 | 521/312 | 29/48 | 19/48 | -512/39 | 29/48 | 19/48 |
4 | 7/12 | 5/12 | 41/6 | 11/6 | 7/12 | 5/12 | -32/3 | 7/12 | 5/12 |
5 | 9/16 | 7/16 | 211/40 | 179/88 | 9/16 | 7/16 | -512/55 | 9/16 | 7/16 |
6 | 13/24 | 11/24 | 17/4 | 137/60 | 13/24 | 11/24 | -128/15 | 13/24 | 11/24 |
7 | 25/48 | 23/48 | 593/168 | 187/72 | 25/48 | 23/48 | -512/63 | 25/48 | 23/48 |
8 | 1/2 | 1/2 | 3 | 3 | 1/2 | 1/2 | -8 | 1/2 | 1/2 |
3.2 Convergence analysis
Now we discuss the convergence of the two-grid method. The proof is based on the discrete maximum principle characterized by the M-matrix property and the local truncation errors.
Theorem 1.
Let be the finite difference solution obtained from the two-grid method for with a linear boundary condition (Dirichlet, Neumann, or Robin), and at least one point Dirichlet boundary condition. Assume that the finite difference coefficients satisfy the sign property at all the grid points with and , and the solution to the elliptic interface problem is piecewise smooth with the needed regularity, then,
(50) |
Here, is a generic constant, is the step size of the coarse mesh and is that of the fine mesh.
Proof.
Note that, in the interior domain, the regularity of the solution depends on the source term . In the neighborhood of coarse grid points, the needed regularity is and we have . In the neighborhood of hanging nodes, the needed regularity is and we know that the local truncation errors are bounded by . In the neighborhood of fine grid points including irregular grid points near the interface, the needed regularity is is piecewise and we have .
Note also that the coefficient matrix of the finite difference equations is an M-matrix. Thus, from Theorem 6.1 and Theorem 6.2 of Morton & Mayer’s book, [24] we obtain the conclusion.
Remark 1.
-
•
We have obtained explicit expressions for the coefficients and the weights for that satisfy the conditions of the theorem. Thus, the convergence is guaranteed and confirmed for those ’s.
-
•
In our numerous numerical tests, the largest errors seem to occurr near the interface rather than at the hanging nodes. We conjecture that the error should be bounded by instead of .
3.3 Numerical experiments for general 2D interface problems
We have tested the two-grid method for various benchmark problems in the literature. We list some of the results in this subsection.
Example 3.1.
Peskin’s IB model in two dimensions.
This example was first presented in [13], and later was employed by the AMR-IB method in [27, 28]. The partial differential equation is
(51) |
where is a circle interface with the radius within the square domain . The problem can be written equivalently as,
(52) |
in the domain . The true solution to the interface problem is
(55) |
where . The Dirichlet boundary condition is applied according to the true solution along the boundary of the square.
IB | IIM | (coarse ) | (fine) | |
20 | ||||
40 | ||||
80 | ||||
160 | ||||
320 | ||||
5 |
In Table 4, we show some numerical results. We can see that the the numerical results of the two-grid method performs much better compared with the immersed boundary (IB) method [26] and the IIM even with small . The errors in the coarse grid using the fourth-order method are comparable with that at the fine grid using the second order IIM. From the result using a uniform mesh, we observe fourth order convergence using the two-grid method when .
Example 3.2.
An example of discontinuous coefficient and solution, and a complicated interface.
This example is from [14, 16] where the augmented IIM was developed for elliptic interface problems with piecewise constant coefficients. We consider the elliptic interface problem in the domain with a flower shaped interface given by the following equation in the polar coordinates
(56) |
The coefficient is a piecewise constant: inside the interface and outside. The right hand side , the Dirichlet boundary conditions, and the jump conditions are all determined from the exact solution, see also Figure 8,
(59) |
(coarse ) | (fine) | |
---|---|---|
40 | ||
6.4903 | ||
80 | ||
160 | ||
320 | ||
(coarse ) | (fine) | |
---|---|---|
40 | ||
80 | ||
160 | ||
320 | ||


This is a general example in which both the coefficients and the solution are discontinuous. The interface is complicated with larger curvature at some part of the interface, see Figure 8. In the figure, we use blue dots to represent the values at the coarse grid, and red dots for those at the fine grid. In Table 5, we show the numerical results with . We have the same convergence properties as before, that is, compared with the results using a uniform mesh, we obtain roughly fourth order convergence when . Note also that the result of the two-grid method with has a fourth order convergence compared with that obtained with .
3.4 An internal layer example
Now we apply the developed two-grid method to an internal layer problem in which the solution to the Poisson equation is
(60) |
When is small, there is an internal layer centered at the circle . The source term below is obtained from Matlab symbolic ToolBox,
(61) |
The solution and the source term are displayed in Figure 9 at the coarse grid (blue dots) and the fine grid (red dots) with , , , and . An internal boundary layer centered along the circle can be seen clearly.


For this problem, we can apply the standard fourth order compact scheme both in the fine and coarse meshes since there is no interface which does not capture the internal layer well unless we use an unfordable fine mesh. The developed two-grid method worked well for the internal layer problem. In Table 6, we show some numerical methods with different and . In this example, the largest errors have mostly appeared at hanging nodes since they have the largest local truncation errors. We have the same convergence properties as before, that is, from the uniform grid to that obtained from , or from to , we obtain roughly fourth order convergence. The increased computational complexity only happened in the refined tube.
(coarse ) | (fine) | |
---|---|---|
20 | ||
40 | ||
80 | ||
160 | ||
In Figure 9, we plot the computed solution (left) and the source term (right) using blue dots to represent the values at the coarse grid, and red dots for those at the fine grid. The internal layer is caused from large variations in the source term near the center of the internal layer .
4 Conclusions and Acknowledgements
In this paper, we have developed two-grid methods for some elliptic interface and internal layer problems in one and two dimensions. The purpose is focused on the accuracy of the solutions near the interface or internal layers so that the accuracy is comparable with the solution in the coarse grid obtained from fourth order compact finite difference schemes. New high order finite difference schemes have been developed at boarder grid points neighboring two grids for one-dimensional and two-dimensional problems, and at hanging nodes for two dimensional problems. The developed two-grid methods preserve the discrete maximum principle from the sign property, which leads to the convergence of the finite difference methods.
We would like to thank Dr. Danfu Han of Hangzhou Normal University for the internal layer example. Zhilin Li was partially supported by a Simons grant 633724. K. Pan is supported by Science Challenge Project (No. TZ2016002), the National Natural Science Foundation of China (No. 41874086), the Excellent Youth Foundation of Hunan Province of China (No. 2018JJ1042).
References
- [1] D. M. Bedivan, A two-grid method for solving elliptic problems with inhomogeneous boundary conditions, Comput. Math. Appl. 29 (1995), no. 6, 59–66.
- [2] M. Berger and P. Colella, Local adaptive mesh refinement for shock hydrodynamics, J. Comput. Phys. 82 (1989), 64–84.
- [3] D. L. Brown, R. Cortez, and M. L. Minion, Accurate projection methods for the incompressible Navier-Stokes equations, J. Comput. Phys. 168 (2001), 464.
- [4] A. J. Chorin, On the convergence of discrete approximations of the Navier-Stokes equations, Math. Comp. 23 (1969), 341–353.
- [5] R. Cortez and D. Varela, Accurate projection methods for the incompressible Navier-Stokes equations, J. Comput. Phys. 138 (1997), 224–247.
- [6] Binbin Du, Jianguo Huang, and Haibiao Zheng, Two-grid Arrow-Hurwicz methods for the steady incompressible Navier-Stokes equations, J. Sci. Comput. 89 (2021), no. 1, Paper No. 24.
- [7] Qiwei Feng, Bin Han, and Peter Minev, Sixth order compact finite difference scheme for poisson interface problem with singular sources, Computers & Mathematics with Applications 99 (2021), 2–25.
- [8] Bosco García-Archilla, Shishkin mesh simulation: a new stabilization technique for convection-diffusion problems, Comput. Methods Appl. Mech. Engrg. 256 (2013), 1–16.
- [9] B. E. Griffith, A comparison of two adaptive versions of the immersed boundary method, Technical report, New York University (2009).
- [10] B. E. Griffith, R. D. Hornung, D. M. Mcqueen, and C. S. Peskin, An adaptive, formally second order accurate version of the immersed boundary method, J. Comput. Phys. 223 (2007), 10–49.
- [11] Alan F. Hegarty, John J. H. Miller, Eugene O’Riordan, and G. I. Shishkin, Special meshes for finite difference approximations to an advection-diffusion equation with parabolic layers, J. Comput. Phys. 117 (1995), no. 1, 47–54.
- [12] Natalia Kopteva and Eugene O’Riordan, Shishkin meshes in the numerical solution of singularly perturbed differential equations, Int. J. Numer. Anal. Model. 7 (2010), no. 3, 393–415.
- [13] R. J. LeVeque and Z. Li, The immersed interface method for elliptic equations with discontinuous coefficients and singular sources, SIAM J. Numer. Anal. 31 (1994), 1019–1044.
- [14] Z. Li, A fast iterative algorithm for elliptic interface problems, SIAM J. Numer. Anal. 35 (1998), 230–254.
- [15] Z. Li and K. Ito, Maximum principle preserving schemes for interface problems with discontinuous coefficients, SIAM J. Sci. Comput. 23 (2001), 1225–1242.
- [16] , The immersed interface method – numerical solutions of pdes involving interfaces and irregular domains, SIAM Frontier Series in Applied mathematics, FR33, 2006.
- [17] Z. Li, Z. Qiao, and T. Tang, An introduction to finite difference and finite element methods for ODE/PDEs of boundary value problems, Cambridge University Press, 2017.
- [18] Z. Li and P. Song, An adaptive mesh refinement strategy for immersed boundary/interface methods, Commun. Comput. Phys. 12 (2012), 515–527.
- [19] , Adaptive mesh refinement techniques for the immersed interface method applied to flow problems, Computers and Structures 122 (2013), 249–258.
- [20] Z. Li, L. Wang, E. Aspinwall, R Cooper, P Kuberry, A Sanders, and K Zeng, Some new analysis results for a class of interface problems, Mathematical Methods in the Applied Sciences 38(18) (2015), 4530–4539.
- [21] Zhilin Li and Kejia Pan, Can 4th-order compact schemes exist for flux type bcs?, submitted, 2021.
- [22] William F. Mitchell, A collection of 2D elliptic problems for testing adaptive grid refinement algorithms, Appl. Math. Comput. 220 (2013), 350–364.
- [23] William F. Mitchell and Marjorie A. McClain, A survey of -adaptive strategies for elliptic partial differential equations, Recent advances in computational and applied mathematics, Springer, Dordrecht, 2011, pp. 227–258.
- [24] K. W. Morton and D. F. Mayers, Numerical solution of partial differential equations, Cambridge press, 1995.
- [25] Kejia Pan, Dongdong He, and Zhilin Li, A high order compact FD framework for elliptic BVPs involving singular sources, interfaces, and irregular domains, Journal of Scientific Computing 88 (2021).
- [26] C. S. Peskin, The immersed boundary method, Acta Numerica 11 (2002), 479–517.
- [27] A. Roma, A multi-level self adaptive version of the immersed boundary method, Ph.D. thesis, New York University, 1996.
- [28] A. Roma, C. S. Peskin, and M. Berger, An adaptive version of the immersed boundary method, J. Comput. Phys. 153 (1999), 509–534.
- [29] J. C. Strikwerda, Finite difference scheme and partial differential equations, Wadsworth & Brooks, 1989.
- [30] S. V. Tikhovskaya, A two-grid method for an elliptic equation with boundary layers on a Shishkin mesh, Lobachevskii J. Math. 35 (2014), no. 4, 409–415.
- [31] Xin Tong, Lipo Wang, Jinqiang Chen, and Hua Ouyang, A Cartesian grid method with improvement of resolving the boundary layer structure for two-dimensional incompressible flows, Internat. J. Numer. Methods Fluids 93 (2021), no. 8, 2637–2659.
- [32] Yang Wang, Yanping Chen, and Yunqing Huang, A two-grid method for semi-linear elliptic interface problems by partially penalized immersed finite element methods, Math. Comput. Simulation 169 (2020), 1–15.
- [33] Y. Xie and W. Ying, A fourth-order kernel-free boundary integral method for implicitly defined surfaces in three space dimensions, J. Comput. Phys. 415 (2020).
- [34] Jinchao Xu, Two-grid discretization techniques for linear and nonlinear PDEs, SIAM J. Numer. Anal. 33 (1996), no. 5, 1759–1777.
- [35] A. I. Zadorin, S. V. Tikhovskaya, and N. A. Zadorin, A two-grid method for elliptic problem with boundary layers, Appl. Numer. Math. 93 (2015), 270–278.