A fourth-order accurate compact difference scheme for solving the three-dimensional Poisson equation with arbitrary boundaries
Shirzad Hosseinverdi, Hermann F. Fasel

TL;DR
This paper introduces a high-order compact difference scheme combined with a preconditioned BiCGSTAB method for efficiently solving the 3D Poisson equation with irregular boundaries, maintaining fourth-order accuracy without jump corrections.
Contribution
The work develops a fourth-order accurate 3D Poisson solver that remains precise and efficient near immersed boundaries without requiring jump corrections, unlike previous methods.
Findings
Achieves fourth-order accuracy on irregular domains.
Maintains efficiency regardless of boundary complexity.
Demonstrates superior convergence and computational performance.
Abstract
This paper presents an efficient high-order sharp-interface method for solving the three-dimensional (3D) Poisson equation with Dirichlet boundary conditions on a nonuniform Cartesian grid with irregular domain boundaries. The new approach is based on the combination of the fourth-order compact finite difference scheme and the preconditioned stabilized biconjugate-gradient (BiCGSTAB) method. Contrary to the original immersed interface method by LeVeque and Li [1], the new method does not require jump corrections, instead, the (regular) compact finite difference stencil is adjusted at the irregular grid points (in the vicinity of the interfaces of the immersed bodies) to obtain a solution that is sharp across the interface while keeping the fourth-order global accuracy. The contribution of the present work is the design of a fourth-order-accurate 3D Poisson solver whose accuracy and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A fourth-order accurate compact difference scheme for solving the three-dimensional Poisson equation with arbitrary boundaries
Shirzad Hosseinverdi
Hermann F. Fasel
Department of Aerospace and Mechanical Engineering, University of Arizona, Tucson, AZ 85721, USA
Abstract
This paper presents an efficient high-order sharp-interface method for solving the three-dimensional (3D) Poisson equation with Dirichlet boundary conditions on a nonuniform Cartesian grid with irregular domain boundaries. The new approach is based on the combination of the fourth-order compact finite difference scheme and the preconditioned stabilized biconjugate-gradient (BiCGSTAB) method. Contrary to the original immersed interface method by LeVeque & Li [1], the new method does not require jump corrections, instead, the (regular) compact finite difference stencil is adjusted at the irregular grid points (in the vicinity of the interfaces of the immersed bodies) to obtain a solution that is sharp across the interface while keeping the fourth-order global accuracy. The contribution of the present work is the design of a fourth-order-accurate 3D Poisson solver whose accuracy and efficiency does not deteriorate in the presence of an immersed boundary. This is attributed to (i) the modification of the discrete operators near immersed boundaries does not lead to a wide grid stencil due to the compact nature of the discretization and (ii) a preconditioning technique whose efficiency and cost are independent of the complexity of the geometry and the presence or not of an immersed boundary. The accuracy and computational efficiency of the proposed algorithm is demonstrated and validated over a range of problems including smooth and irregular boundaries. The test cases show that the new method is fourth-order accurate in the maximum norm whether an immersed boundary is present or not, on uniform or nonuniform grids. Furthermore, the efficiency of the preconditioned BiCGSTAB is demonstrated with regard to convergence rate and “extra” floating-point operation () which is due to the presence of immersed boundaries. It is shown that the solution method is equally efficient for domains with and without irregular boundaries, with a negligible in the presence of immersed boundaries.
keywords:
3D Poisson equation , immersed interface method , compact finite difference , high-order
††journal: Journal of Computational Physics
1 Introduction
In this paper, a new numerical method is presented for solving the three-dimensional (3D) Poisson equation with Dirichlet boundary conditions in the 3D rectangular box which can contain an arbitrary immersed body (IB) with boundary ,
[TABLE]
where is an unknown function defined in the domain with prescribed boundary values on its boundary and is a known source function. There has been a great deal of research work on the development of high-order finite difference numerical solution of 3D Poisson equations in the past two decades [2, 3, 4, 5, 6], with particular focus on the fourth-order accurate compact difference scheme. However, the majority of these schemes are limited to simple domains with uniform mesh distributions. For many practical applications, however, the numerical computation of the 3D Poisson equation in a domain with irregular boundaries is required. In the presence of an IB, the domain is divided by the surface into two subdomains and corresponding to the outside and inside of the immersed body, respectively (see Fig. 1). One would typically solve Eq. (1) defined on the open region with boundary conditions on (the outer boundary which conforms to the computational domain), and , the immersed boundary. The solution in the region may or may not be of interest. In either case, the immersed boundary represents a singularity, thus field variables and/or their derivatives will be discontinuous across the immersed boundary. In the present work, we refer to and solid and fluid regions, respectively, and the solution inside the immersed body, , is trivial and set to zero.
Most of the numerical algorithms capable of handling complex geometries use body-fitted structured or unstructured grids. However, generating high-quality structured grids is generally cumbersome and it becomes very laborious as the complexity of the geometry increases. The grid generation process becomes a very difficult task, even for the simplest geometries, when more than one body is located within the domain. Grids with poor qualities (smoothness, orthogonality, aspect ratio) could negatively impact the accuracy and convergence properties of the numerical method for solving the Poisson equation. On the other hand, unstructured grids which are more suited for complex geometries, suffer from slow rate of convergence which could lead to a substantial increase in the computation time [7]. Compared to structured grids, unstructured grids require a larger amount of memory and the extension of the numerical schemes to higher-order is not straightforward.
An alternative approach is to discretize Eq. (1) on a fixed Cartesian grid which is allowed to intersect with an immersed boundary . As a result, the grid does not conform to the solid boundaries. The main advantage in this case lies in the use of Cartesian grids for which there is almost no grid generation cost and high-order numerical methods developed for Cartesian grids, can be employed. A main challenge here is the imposition of boundary conditions on the immersed boundaries such that the accuracy and efficiency of the Cartesian solvers is maintained. Several methods have been proposed in the past to handle the singularity associated with the immersed boundary. Generally, they can be classified into two categories: the so-called immersed boundary methods (IBM), and immersed interface methods (IIM).
The original IBM was pioneered by Peskin [8, 9] to handle elastic boundaries for simulating blood flow in the heart. In Peskin‘s approach, the boundary conditions are enforced through a smooth forcing term added to the Navier-Stokes equations. This type of IBM is classified as continuous forcing (diffuse) approach. One disadvantage of diffuse methods is that the effect of the boundary is distributed over a band of several grid points which causes a smearing effect near the boundary. This smearing has a detrimental effect on the accuracy of the numerical scheme. The other approach in IBM is discrete forcing (sharp) methods [10]. In the discrete IBM, the numerical discretization near the immersed boundary is modified such as to account directly for the presence of the boundary, so that the interface remains “sharp“. The “ghost cell“ in the finite-difference method and the “cut-cell“ within the finite volume framework fall into this category.
In the ghost cell method, boundary conditions at the immersed boundary are enforced through ghost cells. The ghost cell refers to a fictitious cell that lies inside the solid region and whose value is extrapolated from the boundary condition at the immersed boundary and the surrounding fluid points (in the fluid region). While the approach is well suited for achieving second-order accuracy, extension to higher-order formulations is problematic. Higher-order formulations require large interpolation stencils which could lead to robustness issues. For example, for a fourth-order accurate scheme in three dimensions, at least 35 points are required to evaluate the ghost cell [11]. Hence, most of the existing immersed-boundary ghost cell methods are of second-order accuracy [12, 13, 14]. On the other hand, being based on the finite volume approach, the cut-cell method is designed to provide better conservation properties, especially for cells at the immersed boundary [15, 16]. Grid cells cut by the immersed boundary, whose cell centers are inside the fluid region, are reshaped by discarding the portion of these cells that lies in the solid. The disadvantages of this method are related with the process of cutting the cells. The reshaping may in some cases result in very small grid cells with an adverse impact on numerical stability. Hence, the cut cells near boundaries must be adjusted, modified and/or merged. In case of very complex geometries, this process may even fail to preserve the geometrical representation of bodies. The extension of this approach to 3D problems becomes very complicated and a non-trivial task. Similar to the ghost cell method, most of the cut-cell based IMB methods are second-order accurate such as the one adopted by Seo and Mittal [17] to solve the pressure Poisson equation as part of the solution of Navier-Stokes equations.
Standard finite-difference schemes fail when applied to non-smooth functions because the underlying Taylor expansions upon which they are based are invalid. To avoid this problem, jump correction terms need to be added to the finite difference schemes at jump discontinuities for the function value and its derivatives. Based on this key idea, LeVeque & Li [1] developed a second-order accurate sharp immersed interface method to solve elliptic problems with discontinuous and non-smooth solutions. The advantages of this technique are that boundary conditions are imposed directly at the location of the boundary and high-order local accuracy can be achieved around the immersed boundary. An important application of sharp IIM is the treatment of problems defined in an irregular domain where the solution inside or the outside the interface is not of interest and is trivial [18, 19]. Apart from the IBM and IIM, other approaches have been proposed in the literature to solve 3D elliptic equations with irregular boundaries such as the second-order accurate Shortley–Weller embedded finite-difference method for the solution of the 3D Poisson equation [20] and high-order matched interface and boundary method for solving elliptic equations with discontinuous coefficients and non-smooth interfaces [21].
Eq. (1) is an elliptic partial differential equation with a broad range of applications in electromagnetism, geophysics, astrophysics and fluid mechanics. Therefore, there is great interest to develop highly-accurate and computationally efficient numerical methods for the numerical solution of Eq. (1) for simple and complex geometries. Building on our previous research [22], the main goal of this paper is to present a solver for the 3D Poisson equation in a domain with immersed boundaries on a nonuniform grid which combines high accuracy and high efficiency. The objective of the present work is twofold: (1) Developing a uniformly fourth-order-accurate finite-difference algorithm on an irregularly shaped boundary, and (2) designing an efficient and cost-effective iterative solver which easily and efficiently accommodates the irregular immersed boundaries. The paper is organized as follows: The discretization of Eq. (1) on a nonuniform grid is presented in Section 2. It contains the numerical procedure to construct a fourth-order accurate compact difference stencils for regular and irregular grid points, as well as a formal proof for the order of accuracy. A spectral analysis of the resulting coefficient matrices for simple and irregular domains and the solution strategy of the discretized equations is explained in Section 3. Then, in Section 4, the proposed method is validated for several test cases, which demonstrate the high efficiency and confirm the fourth-order convergence. A summary and conclusions are provided in Section 5.
2 Discretization
Eq. (1) is solved in a cubic domain defined on . The domain is divided into uniform/nonuniform cells by the points , and . The discretization of Eq. (1) for regular and irregular grid points are discussed in detail in this section. A grid point is said to be regular if all the 26 neighboring grid points are outside the immersed body, otherwise, it is defined as an irregular point. A grid point is called a solid point if it lies inside an immersed body. Furthermore, the locations where the immersed/irregular boundary intersects with the grid are called immersed/irregular boundary intersection (IBI) points. The IBI points are the locations where the boundary conditions can be enforced. Regular, irregular and IBI points are illustrated in Fig. 1.
2.1 Fourth-order compact difference scheme on nonuniform grids
In this section, the discretization for regular grid points away from the immersed boundary is discussed, so that the compact difference scheme is well-defined and valid. The discretization of Eq. (1) is based on three one-dimensional, fourth-order compact finite-difference schemes for second derivatives in , and :
[TABLE]
where the finite difference (FD) operators are given by
[TABLE]
and
[TABLE]
Here , and represent numerical approximations to the second partial derivatives in , and directions, respectively. Coefficients for compact FD operators in the direction in Eqs. (3) and (4), obtained by matching the coefficients in the Taylor expansion about in the direction, are given by
[TABLE]
where and . The coefficients for compact FD operators in the and directions in Eqs. (3) and (4) are the same except that is replaced with and , respectively. Combining Eq. (2) at three consecutive , and locations centered at point () leads to
[TABLE]
Applying the FD operators in Eq. (6) and using Eq. (1) leads to a 27-points, fourth-order compact scheme at the regular grid point () inside the computational domain as follows:
[TABLE]
where the RHS is obtained using the following relation
[TABLE]
The coefficients for LHS in Eq. (7) and the coefficents for RHS in Eq. (8) are given by
[TABLE]
In Eq. (9), is 0, 1 and 2 with corresponding , and , respectively.
2.2 Treatment of irregular grid points: Fourth-order sharp immersed interface method
In this section, the method to determine the coefficients of the compact scheme stencil at an irregular grid point is presented. Our method falls into the sharp interface category. However, it distinguishes itself from other IIMs
in that jump corrections are no longer required. The key aspect of the new method is to modify and adjust the compact finite-difference operators, Eqs. (3)-(4), when they intersect an immersed boundary to obtain a solution that is sharp across the interface while keeping the fourth-order global accuracy. In particular, for an irregular grid point located at (), modified FD operators need to be employed along each grid line in the range , and , if there is an intersection with the immersed boundary. Otherwise, the standard FD operators can be used. For example, in the direction, in the range , check if the grid lines passing through , and in the planes , and , have any intersection with the immersed boundary. If yes, modified FD operators have to be used along that line, otherwise, the standard FD operators in the direction given by Eqs. (3)-(4) are valid and can therefore be used. Similar approach is employed in the and directions. The modified compact FD stencil will be built based on the combination of the standard and modified FD operators.
For illustration, we consider the point 3D stencil centered at irregular grid point () as shown in Fig. 2(a). In the direction, the lines , , and in the plane , and the lines and in the plane do intersect the immersed boundary. In the direction, the line passing through in the plane crosses the immersed boundary. Finally, the lines , , and in the plane do intersect the immersed boundary in the direction. The FD operators along these lines need to be adjusted to take into account the immersed boundary while maintaining the formal fourth-order accuracy. Eq. (6) is rewritten as
[TABLE]
In the above equation, the FD operators with the overbar are modified, while the other operators are the same as those given in Eqs. (3)-(4). A key point is that the coefficients used in the modified LHS FD operators () in Eq. (10) must be kept the same as those used in Eq. (3). However, the coefficients corresponding to the grid points inside the immersed body have to be dropped. Therefore, to maintain the formal fourth order accuracy, additional grid points are needed to determine the coefficients for the modified RHS FD operators () in Eq. (10). Furthermore, the line passing through in the plane in the direction falls into the subdomain , hence, the corresponding FD operators are dropped (struck through in Eq. 10).
In the direction along the planes and (see Fig. 2d), where
[TABLE]
In Eqs. (11)-(12), is , , and for with corresponding , and , respectively. For , is , and with and . Furthermoe, is the known function value at the body intercept location . It can be seen that the term is not included in Eq. (11) since it is inside the immersed body. For the right-hand side operator, Eq. (12), we use three additional grid points to keep the fourth-order accuracy (see Fig. 2d). Taylor series expansions about are used to find the coefficients by solving the following system of equations:
[TABLE]
In the above equation, the coefficient matrix is defined as
[TABLE]
where , , , and . Note that the coefficients for the RHS in Eq. (13) are given by Eq. (5). For the stencil passing through the line along as shown in Fig. 2(e), where the modified FD operators are given by
[TABLE]
denoting the known boundary value at IBI location 6, . One should note that the Taylor expansion about is used to find the coefficients in Eq. (16) as follows
[TABLE]
where in the matrix , given by Eq. (14), , , , and . Finally, for the stencil along the plane , the FD scheme takes the form
[TABLE]
The above equations hold for (see Fig. 2c). For and , the modified FD operators are given by
[TABLE]
with and for and , respectively (see Fig. 2b). Matching the Taylor series coefficients about in the direction, the coefficients in Eq. (19) can be found from
[TABLE]
where , , , and are used in the matrix . In Eq. (21), the coefficients are obtained by matching the Taylor coefficients about
[TABLE]
where , , , and are used in the coefficient matrix in Eq. (14). Applying the above equations to Eq. (10), we get the modified compact scheme stencil at the irregular grid point ()
[TABLE]
with the modified coefficients
[TABLE]
The modified RHS term is the same as the one in Eq. (8) except that all the coefficients corresponding to the grid points that lie inside the immersed body are set to zero. In Eq. (24), includes the known function values at the immersed boundary intercept points,
[TABLE]
and contains the additional points used to keep the fourth-order formal accuracy
[TABLE]
It is worth noting that the coefficients without the overbar in Eq. (24) are the same as the coefficients obtained for the regular grid points in Eq. (9). It should be noted that the coefficients for the solid grid points are not used in Eq. (24) since the function value is zero at those grid points (struck through in Eq. 24).
2.3 Special case: multiple intersections with immersed boundary
In the previous section, the immersed boundary has only one intersection with each grid line in the range of , and . In many practical applications, however, the immersed boundary can cross the grid lines more than once as shown in Fig. 3, for example. In this case, the compact finite-difference stencil centered at the irregular grid point () takes the following form:
[TABLE]
According to Fig. 3(a), the line passing though in the plane in the direction falls into the subdomain , hence, the corresponding FD operators are dropped (struck through in Eq. 28). In the direction, the plane passing through crosses the immersed boundary at the , and . Along this plane, where
[TABLE]
In Eqs. (29)-(30), is , and with corresponding , and , respectively. The coefficients in Eq. (30) can be found from matching the Taylor series coefficients about in the direction (see Eq. 13). In the direction, however, the lines , and in the plane intersect the immersed boundary at more than one location as shown in Fig. 3(b), namely & along , & along and & along . Therefore, special care is needed here to modify FD operators along these lines.
For the stencil passing through the plane in the direction, where and , with , and . The modified FD operators are given by
[TABLE]
and
[TABLE]
with , and for , and , respectively. Here, the Taylor series expansions in the direction about and are used to find the coefficients in Eqs. (32) and (34), respectively. Using the original FD operators provided by Eqs. (3)-(4) for the unmodified operators in Eq. (28) and applying the modified FD operators given by Eqs. (29)-(34) to Eq. (28), the modified compact scheme stencil at the irregular grid point () can be obtained,
[TABLE]
The modified coefficients are
[TABLE]
The correction term, , is given by
[TABLE]
The known function values at the points of intersection with the immersed boundary are included in ,
[TABLE]
2.4 Order of original and modified compact finite-difference stencils
In this section, the order of accuracy of the compact FD stencils for regular and irregular grid points developed in Sections 2.12.3, is formally verified. It is worth noting that all the FD operators employed to construct the original and modified compact FD stencils, are based on the desired fourth-order compact finite-difference approximations. Using the fact that the eigenfunctions of the exact Laplace operator are known to be with corresponding eigenvalues , one can estimate the order of discrete FD operators where eigenvalues change according to the order of the accuracy of finite-difference approximations [23, 24]. In the derivation of the compact FD stencils, one operator acts on the field , and one operator operates on the source term , i.e. , where and are discrete operators, see Eqs. (7)-(8) for example. Therefore, a generalized eigenvalue problem, , has to be solved. As pointed out by Sutmann and Steffen [23], both and have the desired property that eigenfunctions are sampled continuous eigenvectors. As a result, only the eigenvalues need to be considered. For practical purposes one may insert the eigenfunctions of the exact operator and estimate the order of FD approximations in , i.e.,
[TABLE]
where is the order of the difference approximation. Without loss of generality, it is assumed that the grid is uniform in each direction, however, the grid spacing in each direction could be different, i.e. . Furthermore, the locations of the points of intersection with the immersed boundary are estimated according to Figs. (2)-(3). Applying the FD coefficients developed in Sections 2.12.3, provides the order of the compact FD stencils for a regular grid point, Eq. (7), and irregular grid points, Eqs. (24) and (35), as follows:
[TABLE]
where H.O.T refers to higher order terms. For all the FD stencils developed for the regular and irregular grid points, the expected fourth-order accuracy is recovered.
3 Solution strategy
The discretization of the 3D Poisson equation on a uniform/nonuniform grid with points leads to a set of linear equations for all unknown function inside the computational domain, , and . The system of linear equations can be represented in the matrix-vector form as
[TABLE]
where is the coefficient matrix (see Eq. 7), is the source term (see Eq. 8) and is the unknown vector containing all in the interior of the computational domain. The coefficient matrix has a 27-diagonal structure for a simple domain without immersed boundary. It is worth noting that the matrix is not symmetric in general. The only situation where the matrix is symmetric is for a domain with uniform grid spacing.
The discretization of Eq. (1) for all regular and irregular grid points inside the computation domain with an immersed boundary leads to a linear system
[TABLE]
where includes the known function values at the points of intersection with the immersed boundary (see Eqs. 26 and 38). The coefficient matrix has the same dimension as matrix , i.e. where . However, as discussed in the previous sections, the finite-difference schemes are modified when the 27-point stencil intersects with the immersed boundary. As a result, this introduces additional points to the 27-point compact discretization that are solution dependent, so that the coefficient matrix is no longer 27-diagonal. The matrix is non-symmetric even for a domain with uniform grid spacing.
3.1 Spectral analysis: eigenvalue spectra of the coefficient matrices
The eigenvalue spectra of the resulting coefficient matrices for a simple domain and a domain with an immersed boundary is investigated in this section. The numerical stability involving a finite difference approximation for Eq. (1) requires that all eigenvalues () of (or in the case with immersed boundaries) satisfies [25]. The eigenvalues of the discrete finite-difference operator will depend upon the geometry and grid resolution of the problem. Therefore, it is necessary to evaluate the effect of the extended stencil due to the presence of an immersed boundary on the eigenvalue spectra of matrix . The eigenvalue spectra of the fourth-order-accurate compact difference scheme for two different cases are investigated on a cuboid of dimensions : (i) A simple domain and (ii) a domain with an immersed sphere located at the center of the domain with radius 0.2.
The eigenvalue spectra of the resulting discretization matrix for the two cases when computed for a uniform grid are presented in Fig. 4. The eigenvalues are normalized with . For the simple domain, all eigenvalues are real and negative as the coefficient matrix is symmetric. As can be seen the immersed boundary introduces complex eigenvalues, however, all the eigenvalues have negative real components and therefore satisfy the stability condition.
3.2 Preconditioned BiCGSTAB
The fourth-order compact finite-difference discretization of Eq. (1) at all grid points forms a large sparse linear system. In this work, a stabilized biconjugate gradient (BiCGSTAB) method is implemented for solving the linear system, which is efficiently adjusted to account for the sharp immersed boundaries [26]. Algorithm 1 shows a schematic of the BiCGSTAB iterative method for a simple domain (without immersed boundary) with starting guess .
As discussed in the previous section, in the presence of immersed boundaries, the coefficient matrix is replaced with the matrix . The matrix can be decomposed into
[TABLE]
where the modified matrix has the same structure as matrix (27-diagonal matrix). In fact, all the rows corresponding to the regular grid points are the same as the ones in matrix , however, some of the coefficients in the rows corresponding to the irregular grid points are modified. In Eq. (43), the matrix represents irregular entries caused by the extended stencils at the irregular grid points, see Eqs. (27) and (37). The following changes are incorporated into algorithm 1. We have three matrix vector multiplications in algorithm 1 , lines 1, 5 and 9. Thus, they are modified accordingly ~{}~{}1:~{}~{}\boldsymbol{r}_{0}=\boldsymbol{q}-\overline{\mathcal{A}}\boldsymbol{u}_{0}+\big{<}\boldsymbol{b}-\mathcal{C}\boldsymbol{u}_{0}\big{>} ~{}~{}5:~{}~{}~{}\hskip 1.87772pt\boldsymbol{v}=\overline{\mathcal{A}}\boldsymbol{\hat{p}}+\big{<}\mathcal{C}\boldsymbol{\hat{p}}\big{>} ~{}~{}9:~{}~{}~{}\hskip 2.98741pt\boldsymbol{t}=\overline{\mathcal{A}}\boldsymbol{\hat{s}}+\big{<}\mathcal{C}\boldsymbol{\hat{s}}\big{>} In the modified lines 1, 5 and 9 of algorithm 1, the corresponds to the additional operation due to the presence of immersed boundaries. These operations are carried out only for irregular grid points.
3.3 Preconditioner based on second-order finite-difference approximation
Although BiCGSTAB is one of the most effective Krylov subspace methods, it can suffer from slow rate of convergence or even total breakdown. Preconditioning is a key ingredient for the improvement of both the efficiency and the robustness of Krylov subspace methods. In this section, the development of a preconditioning technique whose efficiency and cost are independent of the presence or not of an immersed boundary is presented. In algorithm 1, is a preconditioner matrix which approximates in some sense (or in the case with immersed boundaries). From a practical point of view, an efficient preconditioner should be low-cost to construct and the preconditioned system should be inexpensive to solve (see lines 4 and 8 in algorithm 1).
The matrix is built based on the discretization of with zero Dirichlet boundary condition on the boundaries. The second partial derivatives are approximated using a second-order standard (non-compact) finite-difference schemes in , and :
[TABLE]
where the coefficients in the direction are given by
[TABLE]
where and . The coefficients in and directions in Eq. (44) are the same except that we replace with and , respectively. Incorporating Eq. (44) into leads to a seven-point, second-order scheme at the regular grid point () as shown in Fig. 5(a)
[TABLE]
Now consider the seven-point stencil centered at the irregular grid point located at () which intersects with an immersed boundary as illustrated in Fig. 5(b). We use the same irregular grid point and immersed boundary as shown in Fig. 2. The immersed boundary intercepted point, is located at . As a result, the second derivative in the direction needs to be adjusted to take into account the immersed boundary. Therefore
[TABLE]
with the modified coefficients
[TABLE]
where . It should be noted that . This leads to the modified stencil at the irregular grid point centered at ()
[TABLE]
Note that the grid point located at () falls into , hence, it is dropped in the above equation (struck through in Eq. 49). It is important to note that the preconditioner matrix has a seven-diagonal structure
with or without the presence of an immersed boundary. It is thus a convenient algorithm that easily accommodates immersed boundaries, yet the cost to build and solve the preconditioned system is independent of the complexity of the geometry and the presence or not of an immersed boundary. In the present work, this preconditioned system is solved iteratively using the modified strongly implicit (MSI) procedure [27]. The MSI method has very good convergence properties was shown to outperform Stone’s strongly implicit procedure [stone], incomplete lower-upper decomposition (ILU) and successive over-relaxation methods.
3.4 Floating-point operation counts
Another important aspect of the solution of Poisson equation with a high-order discretization method is the extra floating-point operation (FLOP) of the algorithm components due to the presence of an immersed body. The preconditioned BiCGSTAB algorithm is built from several basic components: Sparse matrix vector products (SPMV) such as , inner products of two vectors (DOT-PROD) like and combined scalar vector multiplication and vector addition (SVPV) for example . Moreover, algorithm 1 contains two preconditioned systems (PCS) that need to be solved. Table 1 lists the FLOP counts for the preconditioned BiCGSTAB algorithm per outer iteration for a simple domain and a domain with immersed boundary.
In Table 1, refers to the number of inner iteration for solving the preconditioned system, is the total number of grid points and is the number of irregular grid points. Therefore, the extra FLOP counts due to the presence of an immersed body as a percentage of FLOPs for a simple domain is
[TABLE]
It should be noted that the FLOP counts for , which corresponds to the operations carried out for irregular grid points come from the fact that there are nine FD operators for each direction and for each FD operator, there is a maximum of four additional grid points, resulting in 8 FLOPs (see Eq. 27 for example). Therefore, the maximum FLOP count for each irregular grid point will be FLOPs. For which is typical for
a preconditioned BiCGSTAB solver, we could have which in most cases is negligible. It is worth mentioning that a different iterative solver for the preconditioned system () will result in a different FLOP count (PCS). However, the number of FLOPs for PCS will be the same regardless of the presence or absence of an immersed body.
4 Numerical experiments
In this section, numerical experiments are conducted to demonstrate the accuracy and efficiency of the present method for solving Eq. (1) on uniform and nonuniform grids with immersed boundaries. All problems are solved on the cuboid domain with the same number of grid points in the , and directions. The order of accuracy is computed using the definition
[TABLE]
where and are the infinity norms of the errors between the analytical, , and the numerical, , solutions for two different grids with and points in each direction. For the preconditioner solver, eight inner iterations are performed for all grid sizes. The initial guess is the zero vector.
4.1 Problem 1
To demonstrate the accuracy of the new method and the efficiency of the preconditioned BiCGSTAB solver, solving the following Poisson equation with Dirichlet boundary conditions is considered:
[TABLE]
where . Eq. (52) is solved on a cuboid of dimensions with a uniform grid in the , and directions for two cases: (i) simple domain without immersed boundary and (ii) a domain with one immersed toroidal surface with an outer radius of 0.35 and an inner radius of 0.05 plus an immersed sphere with radius 0.08 (see Fig. 6, bottom plots). Computed solutions and the corresponding errors, are shown in Fig. 6 on a grid. The reader’s attention is drawn to the sharp interface of the obtained solution, and the relative smoothness of the error distribution in the vicinity of the immersed boundary. The solution and the corresponding error is computed for several grids. The errors in the infinity-norm, , are plotted as a function of grid size in Fig. 7(a). The results confirm
the fourth-order accuracy of the new method for both the simple domain and, most importantly, also for the domain with immersed boundaries. No loss of accuracy for the domain with immersed boundary is observed.
In the following, the convergence characteristics and the of the new method for solving Eq. (52) is compared between the simple domain and domain with immersed bodies. Figure 7(b) displays the convergence rates for various grid sizes for the two cases described above. It shows the infinity-norm of the error after each outer iteration. The convergence behaviour is very similar for the two cases for the different grid sizes. With a proper design of the discretization operator and the preconditioning strategy, the new solution strategy is proven to be equally efficient for domains with immersed boundaries and for simple domains (without immersed boundaries). Table 2 presents the extra FLOP counts for the problem with immersed boundaries. For the problem sizes of interest, Table 2 shows that the due to the presence of the immersed boundary is negligible for the preconditioned BiCGSTAB solver. For the largest grid size investigated, the is about 0.11%.
4.2 Problem 2
Consider the following equation with Dirichlet boundary conditions:
[TABLE]
with and . In this example, the computational domain is set to and the immersed body is a finite tapered wing with a NACA 5514 airfoil section. Figure 8 illustrates the parameters that define the wing shape which are the wing span , the wing root chord , and the tip chord . Numerical investigations of the external flow over a finite wing represent one of the difficult challenges in the field of computational fluid dynamics. One of the main difficulties lies in the generation of a high-quality mesh around the wing tip. Sharp immerse interface method are therefore very useful for that type of problems.
Eq. (53) is solved on a uniform grid in the and directions while a non-uniform grid is used in the direction, for which the stretching function is given by
[TABLE]
The parameter is defined as
[TABLE]
where and . The parameter is the clustering parameter which controls the nonuniformity of the grid around . It is set to which puts more grid points around .
Figure 9 displays the numerical solution to Eq. (53) and the corresponding error for a grid with points. The solutions are sharp across the interfaces and the local error has a smooth distribution in the vicinity of the immersed boundary. Table 3 shows the numerical errors based on the infinity-norm of the current method for different sets of grids which demonstrates that the method is fourth-order-accurate. The extra FLOP as a result of the immersed
body in this problem is presented in Table 4, which varies from 0.11(%) to 1.68(%) depending on the grid size.
4.3 Problem 3
Next, we consider solving the following Poisson equation on a uniform grid
[TABLE]
where and . Eq. (56) is solved in the cuboid domain with dimensions in presence of four immersed bodies as illustrated in Fig. 10. In this example, the immersed bodies imitate tall buildings encountered in wind engineering, where wind-induced load effects on buildings with different heights and proximities are regularly investigated. Fig. 10 shows the numerical solution computed by the preconditioned BiCGSTAB method using grid points as well as the contour lines of the local errors.
The results of the error study are presented in Table 5 which demonstrates that the method is fourth-order-accurate based on the error measured in the infinity-norm.
4.4 Problem 4
For the final test case, the following equation with Dirichlet boundary condition on a nonuniform grid with irregular boundaries is solved:
[TABLE]
where and . The domain is the region inside the boundary as shown in Fig. 11. In contrast to the other test problems, Eq. (57) is solved inside the immersed boundary. This test problem is designed to show the accuracy and efficiency of the new method for simulations of internal flows such as the flow through a channel or stenosed aorta.
Grid points are distributed uniformly in the direction for while the stretching function for the nonuniform grids in the and directions is given by
[TABLE]
where and for Eqs. (58) and (59), respectively. The parameter given by Eq. (55) is computed with & for Eq. (58) and with & for Eq. (59). This test case could be a
model of stenosis pipe flow with 66% reduction of the area. Shown in Fig. 11 is a curved pipe centered at , and with an inner diameter of . The inner diameter of the reduced area is defined as
[TABLE]
where is a coefficient to apply a 66% area reduction, denotes the length of the stenosis and its center is located at . The numerical solutions and error obtained for Eq. (57) are illustrated in Fig. 12 for a grid size of . Different grid sizes ranging from to were used to evaluate the order of accuracy summarized in Table 6. It can be observed that the new method preserves its fourth-order accuracy for this problem as well. Furthermore, the extra FLOP counts per outer iteration varies from 6.3% for the smallest grid size to 0.46% for the largest grid size.
5 Conclusion
In this paper, the development of a sharp-interface and high-order method to solve the three-dimensional Poisson equation with Dirichlet boundary conditions on nonuniform grids with immersed boundaries is presented. Fourth-order compact difference schemes are used to discretize the Poisson equation on the nonuniform grid resulting in 27-point FD regular stencils. The sharp representation of the interface of the immersed body is accomplished by modifying the finite difference stencils at irregular grid points (near the immersed boundary). In particular, additional grid points are added to the standard 27-point FD stencils to obtain a sharp solution across the interface while retaining the fourth-order formal accuracy.
A preconditioned BiCGSTAB method is designed to solve the large sparse algebraic system that arose from the discretization of the Poisson equation. A second-order standard (non-compact) finite-difference scheme is employed to discretize the preconditioned system leading to a seven-diagonal matrix. The extra floating-point operation () count associated with the presence of immersed boundaries versus the case with simple domain ( grid points) showed that , where is the number of irregular grid points. Two factors contribute to the cost-effectiveness and efficiency of the new method: (1) the preconditioner cost which is independent of the presence of an immersed boundary, and (2) the compact nature of the finite-difference discretization, which minimizes the additional operations per irregular grid point.
The accuracy and the efficiency of the new method was demonstrated through verification using problems with analytical solutions for domains with and without immersed boundaries on uniform and nonuniform grids. The numerical results demonstrate that the solutions are sharp across the interface and that the new method is fourth-order-accurate in the maximum norm, including the irregular grid points near the interface of the immersed boundary. For the test cases investigated, the solution technique was found to be very efficient in the sense that the accuracy and the convergence behavior do not deteriorate with the presence of irregular boundaries while the per outer iteration remains insignificant.
Acknowledgements
This work was supported in part by the Air Force Office of Scientific Research (AFOSR) under grant number FA9550-14-1-0184 and by National Science Foundation (NSF) under grant number 1805273, with Dr D. Smith and Dr R. Joslin serving as the program manager, respectively.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Leveque and Li [1994] R. J. Leveque, Z. Li, The immersed interface method for elliptic equations with discontinuous coefficients and singular sources, SIAM J. Numer. Anal. 31 (1994) 1019–1044.
- 2Spotz and Carey [1996] W. F. Spotz, G. F. Carey, A high-order compact formulation for the 3D Poisson equation, Num. Meth. for Part. Dif. Eq. 12 (1996) 235–243.
- 3Wang et al. [2006] J. Wang, W. Zhong, J. Zhang, A general meshsize fourth-order compact difference discretization scheme for 3D Poisson equation, Applied Math. and Comp. 183 (2006) 804–812.
- 4Sutmann and Steffen [2006 a] G. Sutmann, B. Steffen, High-order compact solvers for the three-dimensional Poisson equation, J. Comput. Appl. Math. 187 (2006 a) 142–170.
- 5Ge [2010] Y. Ge, Multigrid method and fourth-order compact difference discretization scheme with unequal meshsizes for 3D Poisson equation, J. Comp. Phys. 229 (2010) 6381–6391.
- 6Ge et al. [2013] Y. Ge, F. Cao, J. Zhang, A transformation-free HOC scheme and multigrid method for solving the 3D Poisson equation on nonuniform grids, J. Comp. Phys. 234 (2013) 199–216.
- 7Nejat and Ollivier-Gooch [2003] A. Nejat, C. Ollivier-Gooch, A high-order accurate Unstructured GMRES solver for Poisson‘s equation, in: 11th annual conference of the computational fluid dynamics society of Canada, 2003.
- 8Peskin [1972] C. S. Peskin, Flow patterns around heart valves: a numerical method, J. Comput. Phys. (1972) 252–271.
