Linear-scaling selected inversion based on hierarchical interpolative factorization for self Green's function for modified Poisson-Boltzmann equation in two dimensions
간접 관련 수소연료전지 · (6) PEM(고분자전해질막) (5) 연료전지용 수분제어장치(가습기)(7) MEA(막전극접합체)
기본 정보
- 저자
- DOI
- 10.1016/j.jcp.2021.110893
- 저널
- Journal of Computational Physics
- 발행년도
- 2022
- 발행기관
- Elsevier BV
- 피인용수
- 2
- 라이선스
- publisher-specific-oa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.jcp.2021.110893
- 토픽
- Electrostatics and Colloid Interactions
- OpenAlex ID
- W3162729765
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 수소연료전지 · (6) PEM(고분자전해질막)
- 부 분야
- (5) 연료전지용 수분제어장치(가습기), (7) MEA(막전극접합체)
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- modified Poisson-Boltzmann equation, electrostatic correlations, dielectric inhomogeneity, ionic systems, numerical method
- 판단 근거
- 본 논문은 이온 시스템의 정전기적 상관관계를 설명하는 수정된 푸아송-볼츠만(MPB) 방정식을 효율적으로 풀기 위한 수치 해석 알고리즘을 다룹니다. 이는 수소연료전지(PEMFC)의 핵심 구성 요소인 전해질막(6) 및 막전극접합체(7) 내 이온 전도 및 전기화학적 거동을 모델링하는 기초 이론 및 시뮬레이션 기법에 간접적으로 활용될 수 있습니다.
- R&D 활용 포인트
- PEMFC용 고분자 전해질막 내 이온 이동 및 전기적 특성을 예측하기 위한 수치 모델링 및 시뮬레이션 소프트웨어의 계산 효율성을 개선하는 데 활용 가능합니다.
- 평가 입력
- 섹션 본문 33,836자 중 30,032자 발췌
초록
초록이 없습니다.
본문 34,788자
본문 펼치기
섹션 본문 85문단 · 33,109자
(제목 없음)
1This paper studies an efficient numerical method for solving modified Poisson-Boltzmann (MPB) equations with the self Green's function as a state equation to describe electrostatic correlations in ionic systems. Previously, the most expensive point of the MPB solver is the evaluation of Green's function. The evaluation of Green's function requires solving high-dimensional partial differential equations, which is the computational bottleneck for solving MPB equations. Numerically, the MPB solver only requires the evaluation of Green's function as the diagonal part of the inverse of the discrete elliptic differential operator of the Debye-Hückel equation. Therefore, we develop a fast algorithm by a coupling of the selected inversion and hierarchical interpolative factorization. By the interpolative factorization, our new selected inverse algorithm achieves linear scaling to compute the diagonal of the inverse of this discrete operator. The accuracy and efficiency of the proposed algorithm will be demonstrated by extensive numerical results for solving MPB equations.The theory introduces the self-energy of a test ion as a correction to the mean-field potential energy, which is described by the self Green's function. Based on the self-energy, the effect due to dielectric inhomogeneity has been considered[21,22,23,24]. The Green's function used in the field theory satisfies the generalized Debye-Hückel (DH) equation for which the numerical solution is expensive due to its high spatial dimensions (including both source and field coordinates). By finite-difference discretization, the self Green's function corresponds to the diagonal of the inverse of the discrete elliptic differential operator of the DH equation.In this paper, we propose a novel method for solving modified Poisson-Boltzmann (MPB) equations derived from the Gaussian variational field theory, particularly, a fast algorithm for obtaining the diagonal of the inverse matrix from the discretization of the DH equation. To show the basic idea, here we consider the following elliptic partial differential equation,with an appropriate boundary condition, where a(r) > 0, b(r), and f (r) are functions on Ω, and d = 2. Then Eq. (1.1) leads to a linear system after finite-difference discretization,where A ∈ R N ×N is sparse, u N and f N are the discrete forms of u(r) and f (r), respectively. Our goal here is to compute the diagonal of A −1 in O(N ) operations to obtain the self energy in the DH equation, which accelerates the numerical solver for MPB equations.Determining the diagonal of a matrix inverse has been previously studied especially in electronic structure calculation based on sparsity and low-rankness, e.g., Lin et al.[25,26,27]with O(N 3/2 ) computational complexity for 2D problems, and Xia et al. [28] with O(N poly(log N )) complexity. The selected inversion method [25] applies a hierarchical decomposition of the computational domain Ω and proposes a two-step procedure to form the diagonal of A −1 with O(N 3/2 ) complexity for 2D problems. First, hierarchical Schur complements of the interior points for the blocks of the domain are constructed in a bottom-up pass. Second, the diagonal entries are extracted efficiently in a top-down pass by exploiting the hierarchical local dependence of the inverse matrices. The method in Refs. [26, 27] uses a supernode left-looking LDL factorization of A to improve the efficiency of the selected inversion method by significantly reducing the prefactor in their complexity. Structured multifrontal LDL factorizations [28] are applied to obtain O(N poly(log N )) complexity.Recently, hierarchical interpolative factorization (HIF) [29] is used to a generalized LDL decomposition of A within O(N ) complexity in 2D problems. The HIF is a fast approximation of Multifrontal Factorization (MF) by introducing additional levels of compression based on skeletonizing separator fronts. Unlike[30,31,32,33,34] that keep the entire fronts but work with them implicitly using fast structured methods, the HIF allows us to reduce the fronts explicitly. Inspired by the HIF, we can replace the supernode left-looking LDL factorization with the HIF and revise the extraction procedure to approximate the diagonal of A −1 within O(N ) operations for 2D problems. We will present the main idea of skeletonizing separator fronts in the HIF and its application to the selected inversion method with a visible example and a complexity estimation. For the detailed introduction to the selected inverse and the HIF, see Refs. [26,27,29]and reference therein. We call the SelInvHIF for our algorithm in this paper.The rest of the paper is organized as follows. Section 2 discusses iterative solvers for MPB equations. In Section 3, we introduce some preliminary tools of skeletonization of matrix factorization, then the details of SelInvHIF algorithm are presented. Various numerical results of SelInvHIF are provided in Section 4 for solving the MPB equations. The conclusion and discussion for future work are presented in Section 5.
Introduction
2Electrostatic interaction plays important role in many fields of physical and biological sciences [1,2,3], as well as materials science such as nanoparticle assembly [4]. The Poisson-Boltzmann (PB) [5,6] and Poisson-Nernst-Planck (PNP) equations [7,8] are often used to describe the electrostatic phenomena of equilibrium and dynamical systems, respectively. The PB equation is mean-field theory and fails to capture many-body properties such as dielectric variation and ion correlation, which are essential components of electrostatic behaviors of many systems. Many improved theories have been introduced in the literature to take into account these many-body effects [9,10,11] and various numerical methods [12,13,14] have been proposed to solve the systems efficiently. Among them, the Gaussian variational field theory [15,16] is promising to describe the long-range Coulomb correlation including dielectric variation [17,18,19,20].
Numerical Method for MPB Equations
3In this section, we will present mathematical model and numerical scheme for the MPB equations to motivate our study of SelInvHIF. We consider an electrolyte of monovalent ions. In dimensionless units, the dynamics of the mobile ions can be described by the Nernst-Planck equations [12],
4where c i is the ionic concentration of the ith species, z i = ±1 is the valence, and D is the diffusion constant. Here, Ξ is the coupling parameter that describes the strength of the correlation energy. The Nernst-Planck equations are convection-diffusion equations, where the convection is due to the electrostatic force on each ion, namely the gradient of the electrostatic energy. In the modified PNP equations, the electrostatic energy is composed of the mean potential energy z i Φ and the self energy Ξu. The electric potential satisfies the Poisson equation,
5where ε is the dielectric coefficient and ρ f is the fixed charge distribution. We suppose ε = 1 in the electrolyte. The self energy is represented by the self Green's function, described by the following DH equation,
6where G 0 = 1/(ε|r − r ′ |) is the free-space Green's function. It can be seen that the DH equation is coupled with the PNP equations as the ionic strength I = i z 2 i c i is determined by the Nernst-Planck equations. When the correlation effect can be ignored (Ξ → 0), the whole systems become the classical PNP equations.
7At equilibrium, the ionic flux in Eq. (2.1) becomes zero and there is an explicit relation between the ionic concentration and the electrostatic energy,
8where Λ is the fugacity determined by the far-field boundary conditions. The MPB equation can be obtained when the Boltzmann distributions are used in the Poisson equation, written as,
9Together with the DH equation, we have the following system of equations [15,17],
10where the bold Λ indicates that it is Λ in the electrolyte domain and zero outside. Without loss of generality, we discuss the numerical method for solving Eq. (2.2) in this work. In particular, we focus on the numerical method for the self Green's function. The extension to the modified PNP is straightforward. A self-consistent iterative scheme for the solution of the partial differential equations in Eq. (2.2) was developed previously [35]. The iterative scheme is the following,
11for k = 0, 1, · · · , M . The stopping criteria is max Φ (M) − Φ (M−1) < δ with a small error criteria δ.
12The iterative scheme consists of two alternating steps. One solves the first equation in Eq. (2.3) for Φ with given u. Then for the given u and the acquired Φ, one solves the second equation in Eq. (2.3) to obtain G and then a new u is computed via the third equation in Eq. (2.3). These two steps are called PB and DH steps, respectively. One repeats these two steps until reaching the convergence criteria of the solution. Furthermore, the PB step can be efficiently solved using standard fast direct solvers. The problem at the core of obtaining Green's functions comes from the generalized DH equation. In two dimensions, we can write the discretization of the DH equation by,
13where G is a matrix representing the lattice Green's function, E is an identity matrix, and A is a coefficient matrix. Furthermore, we can arrive at the matrix inverse G = A −1 directly to achieve the solution of the Green's function with expensive calculation. To reduce the computation cost, let us express U by
14where U is a vector representing the correlation function u(r), G 0 is a lattice Green's function in the free space, and diag(·) is a vector representing the diagonals of the argument matrix. Thus, calculating the whole inverse of the matrix directly is expensive and unnecessary. Our SelInvHIF is used to just obtain the diagonal entries of the operator matrix inverse to solve our target problem efficiently.
The SelInvHIF Algorithm
15The SelInvHIF consists of two phases. In the first phase, we construct hierarchical Schur complements for the diagonal blocks of a matrix A discretized uniformly from the differential operator in (1.1) on a rectangular domain Ω. In the second phase, the diagonal of the inverse of A are extracted from the construction of the hierarchy of Schur complements. The total complexity of the proposed algorithm is analyzed at the end of this section. Before the formal introduction to our SelInvHIF algorithm, we first introduce some preliminary background of skeletonization of matrix factorization.
Preliminaries
16Suppose A is a symmetric matrix, p, q, I and J are index sets. A pq (or A(I, J)) denotes a submatrix of A corresponding to rows in p (or I) and columns in q (or J). The notation ":" is used to denote the whole row or column index set, e.g., A :,q consists of columns of A corresponding to indices in q. In the discussion below, we will follow the same notation to denote submatrices.
17Suppose the differential operator in Eq. (1.1) is defined on a domain Ω. A typical discretization of a differential operator results in a sparse matrix with special structures. Let A be a symmetric and nonsingular matrix
18obtained from the discretization of the differential operator in Eq. (1.1), where p, q, and r are index sets of A with a special order. In this matrix structure, we order rows and columns carefully such that p is related to the degrees of freedom (DOFs) of the interior points of a small given domain D ⊂ Ω, q corresponds to the DOFs on the boundary ∂D, and r is for the DOFs of the external domain Ω/D. In general, the DOFs q separates p from r, which is often very large.
Block Inversion
19The first preliminary tool we are going to use in SelInvHIF comes from the key observation in the selected inversion method: A diagonal block of the inverse of A can be computed via a diagonal block of the inverse of a submatrix of A, the repeated application of which could lead to an efficient recursive algorithm to compute the diagonal of A. The key observation is based on Lemma 3.1 below [25]. Its proof is based on block Gaussian elimination.
20Lemma 3.1. Suppose A is given by (3.1) with a nonsingular A pp and G = A −1 . Let A 1 be the Schur complement of A pp , i.e.,
21and let G 1 = A −1 1 . Then it holds,
22where G pp is the submatrix of G corresponding to the row and column index set p.
23According to Lemma 3.1, the calculation of G pp only requires the values of G 1 associated with row and column indices in q, rather than the whole inverse of the Schur complement A 1 . This implies that G pp is determined by (G 1 ) qq = (A −1 1 ) qq . Similarly, (G 1 ) qq can be determined using a diagonal block of the inverse of the Schur complement of a submatrix of A 1 . Repeatedly applying this idea results in a recursive algorithm to compute G pp efficiently.
Interpolative Decomposition
24The second tool repeatedly applied in the SelInvHIF is the interpolative decomposition (ID) [36] for low-rank matrices based on Lemma 3.2 below. Lemma 3.2. Let A ∈ R m×n with rank k ≤ min(m, n) and q be the set of all column indices of A. Then there exist a disjoint partition of q =q ∪q with |q|= k and a matrix T q ∈ R k×(n−k) such that A :,q = A :,q T q .
25The setsq andq are called the skeleton and redundant indices, respectively. In particular, the redundant columns of A can be expressed by its skeleton columns and the associated interpolation matrix from Lemma 3.2. The following corollary shows that matrix A can be sparsified by multiplying a triangular matrix constructed from the interpolation matrix T q in Lemma 3.2.
Block Inversion with Skeletonization
26The application of Corollary 3.3 can eliminate redundant DOFs of a dense matrix with low-rank off-diagonal blocks to form a structured matrix of the form (3.1) such that we can apply Lemma 3.1. This idea is called block inversion with skeletonization summarized in Lemma 3.4 below. The skeletonization idea was originally proposed in the HIF [29].
27be symmetric with A qp low-rank. Let p =p ∪p and T p satisfy A qp = A qp T p . Without loss of generality, rewrite
2)
28where
29Then the following formulas hold by Lemma 3.1 and (3.2),
30According to Lemma 3.4, the calculation of Gpp only requires the values ofḠ 1 associated with row and column indices inp, rather than the whole inverse of the Schur complement, i.e., this observation implies that Gpp is determined by (Ḡ 1 )pp, a diagonal block of the inverse of the matrixĀ 1 of a smaller size than the original larger matrix A. ThoughĀ 1 might be dense, as long as it has low-rank off-diagonal blocks, the same idea as in (3.2) can be applied toĀ 1 to compute a diagonal block of the inverse ofĀ 1 , which forms a recursive algorithm to compute the diagonal blocks of A efficiently.
31This skeletonization is the key contribution of Ho and Ying [29] and the reason why it is applicable is stated as follows. The key conclusion is that the above Schur complements have specific low-rank structures. The matrix A −1 pp from a local differential operator often has numerically low-rank off-diagonal blocks. Especially, the Schur complement interaction
32pp A T qp also has the same rank structure, which is verified by numerical experiments. In the next subsection, we apply Lemma 3.1 and Lemma 3.4 to construct the hierarchical Schur complements for the diagonal blocks of a matrix A.
Hierarchy of Schur Complements
33We discuss the differential operator domain with a grid size √ N × √ N = r 0 2 L−1 × r 0 2 L−1 and an initial index set J 0 (e.g., row-major ordering). The corresponding matrix A is of size N × N . A hierarchical disjoint partition of the domain Ω (bipartition in each dimension) is performed with r 0 × r 0 as the size of leaf domains and L as the total number of integer levels. Between L integer levels, L − 1 fractional levels are designed to take advantage of the low-rankness of A as much as possible. The hierarchy construction of Schur complements will be conducted at levels 1, 3 2 , 2, 5 2 , . . . , and L. For simplicity, consider the case of r 0 = 5 and L = 3. The whole domain is considered as the top level (Level 3) and is divided into four blocks at the next level (Level 2). Each block is again partitioned into four sub-blocks at a lower level (Level 1). Between two adjacent integer levels, one fractional level will be added to skeletonize low-rank matrices corresponding to the fronts between domain blocks. Hence, the whole domain is divided into 2 L−1 × 2 L−1 = 16 blocks at the bottom level (Level 1) as shown in
Level ℓ = 1
34The domain Ω is partitioned into 2 L−ℓ × 2 L−ℓ = 4 × 4 disjoint blocks at Level ℓ = 1. All points are separated into interior points and boundary points in each block. The interior points indicate that they are not related to the points of other blocks, and the boundary points indicate that they are related to the points of other blocks, i.e., having neighboring points in other blocks. The index set of the interior points are denoted as I 1;ij for each block (gray points in Figure 1), and the index set of the boundary points are denoted as J 1;ij of each block (black points in Figure 1), where i, j = 1, 2, 3, 4 are the indices of blocks in each dimension. The locality of differential operators leads to A(I 1;ij ,
35Firstly, Gauss elimination is used to eliminate the interior points, thereby shifting the focus of the problem to the boundary points. To do this, we need to apply necessary row and column permutations to the matrix A defined with the index set J 0 such that all the interior points are in front of the boundary points, that is, the indices J 0 is changed to J 0 P1 −→ (I 1;11 I 1;12 ...I 1;44 |J 1;11 J 1;12 ...J 1;44 ) by a permutation matrix P 1 . Then all interior points and boundary points are separated by notation |. In fact, the permutation matrix P 1 can permute the matrix A into a new matrix
36, where I 1 = I 1;11 I 1;12 ...I 1;44 gathering all the interior points, and J 1 = J 1;11 J 1;12 ...J 1;44 for all the boundary points. Represent A 1 via
37where U 1 is a block diagonal matrix as follows because the interior points of different blocks in Figure 1 are not related to the points of other blocks:
38is also a block diagonal matrix as follows because the interior points of each block just is related to the boundary points of the same block:
39with V 1;ij = A 1 (J 1;ij , I 1;ij ). As for W 1 , we just write it with index set,
40The inverse of U 1 can be computed directly as follows since it is a block diagonal matrix with diagonal blocks of a small size (r 0 − 2) 2 × (r 0 − 2) 2 ,
41Therefore, we can obtain the following inverse by Gaussian elimination,
42can be computed independently within each block with block diagonal matrices V 1 and U −1 1 ,
43Moreover, the block diagonal matrix V 1 U −1 1 V T 1 also can be represented as
Combining (3.3) and (3.4), we have
44is the inverse of the Schur complement of U 1 . Therefore, we reduce the problem to a smaller matrix W 1 − V 1 U −1 1 V T 1 by eliminating interior points, which is essentially the block inversion idea in Lemma 3.1.
Level ℓ = 3/2
45At this level, our goal is to find G 1 in (3.5), which is defined on the index set J 1 corresponding to boundary points of domain blocks in the first level (i.e., the black points in Figure 1). We will apply Lemma 3.4 to skeletonize the fronts. Partition the domain Ω into 2 L−ℓ+ 3 2 (2 L−ℓ+ 1 2 − 1) Voronoi cells [37] about the edge centers (red points in Figure 2 (a)). In this example, there are 24 Voronoi cells in total since L = 3. In Figure 2 (a), a Voronoi cell is an area centered at a redpoint with dashed lined compassed. Each DOF on the boundary between two adjacent Voronoi cells is randomly assigned to one and only one of these two cells. Thus a Voronoi cell includes the DOFs inside the corresponding area and some of the DOFs on its boundary. Since the DOFs of a Voronoi cell only interact with the DOFs of a few other cells nearby, that is, the matrix allows low-rank off-diagonal blocks. We can apply an ID to select the redundant and skeleton DOFs approximately in each cell and record the interpolation matrix T q as in Lemma 3.2. In the ith cell (see Figure 2 (a)), the redundant DOFs (gray points) are denoted by I 3 2 ;i , the skeleton DOFs (black points) are denoted by J 3 2 ;i , and the corresponding interpolation matrix is denoted by T 3 2 ;i . As in the former level, we reindex J 1 by a permutation matrix P 3 2 such that
I .
46Then we haveĀ
47whereŪ 3 2 andV 3 2 are block diagonal matrices with
48are block diagonal. Therefore,
49Therefore, we reduce the inversion problem to a smaller matrix
50by eliminating the redundant DOFs as in Lemma 3.4.
Level ℓ = 2
51At Level ℓ = 2, the domain Ω is partitioned into 2 L−ℓ × 2 L−ℓ = 2 × 2 blocks with interior and boundary points as shown in Figure 2 (b). Similarly, we reindex the points in J 3 2 into I 2 and J 2 , by a permutation matrix P 2 such that Apply a similar procedure as at Level 1 and denote
52Note that U 2 and V 2 are block diagonal. Analogously,
53Note that the update V 2 U −1 2 V T 2 is block diagonal. Now we have eliminated the interior points and the inversion problem is reduced to a smaller matrix W 2 − V 2 U −1 2 V T 2 as in Lemma 3.1.
Level ℓ = 5/2
54Just as in Section 3.2.2, at this level, we want to find G 2 indexed by J 2 . Again, we divide the domain Ω into 2 L−ℓ+ 3 2 (2 L−ℓ+ 1 2 − 1) = 4 Voronoi cells (see Figure 2 (c)). The DOFs on the boundary between two cells are randomly assigned to one of cells. Through ID, we distinguish the redundant DOFs I 5 2 ;i and the skeleton DOFs J 5 2 ;i in the ith cell, and record the interpolation matrix T 5 2 ;i . Reindexing J 2 with a permutation matrix P 5 2 such that
55withŪ 5 2 (I 5 2 ;i , I 5 2 ;j ) = 0,V 5 2 (J 5 2 ;i , I 5 2 ;j ) = 0, ∀i = j. Therefore,
56Note that U 5 2 and V 5 2 are block diagonal. The matrix inversion problem now has been reduced toW 5 2
Level ℓ = 3
57The domain Ω is partitioned into 2 L−ℓ × 2 L−ℓ = 1 × 1 block, i.e., no partition at this level. The interior and boundary points are shown in Figure 2 (d). Similar to previous integer levels, reindexing J 5 2 into the union of an interiors index set I 3 and a boundary index set J 3 with a permutation matrix P 3 such that
58Finally,
59We calculate the inverse of G 3 directly at this point.
Summary of Construction
60We consider the construction of the hierarchical structure of Schur complements of matrix A on an N × N grid. At each integer level, the points in each block are divided into interior points and boundary points. The interior points only interact with the points within the same block. We reindex the points and eliminate the interior points accordingly. At each fractional level, the domain is divided into Voronoi cells, and ID is applied to each unit to distinguish redundant points and skeleton points such that the redundant points only interact with the points within the same cell. We will reindex these points accordingly and eliminate the redundant points.
61The following relationship is defined for each level
62Based on (3.6), it follows the recursive relation with integer ℓ,
63Therefore, we can construct the hierarchy of Schur complements from the bottom. We organize this algorithm in Algorithm 1. Note that the reindexing is implicitly included in Algorithm 1, when we use the index sets I ℓ;ij and J ℓ;ij or I ℓ;i and J ℓ;i for A ℓ .
Extracting the Diagonal of the Inverse of Matrix
64After obtaining the hierarchical structure of Schur complements, we now apply the observation in Lemma 3.1 to extract the diagonal of the inverse matrix G. The point is that it is not necessary to compute the whole Schur complement G ℓ . More precisely, our observations show that:
65. Therefore, we can develop a linear scaling algorithm to exact the diagonal elements of G recursively. We organize this algorithm in Algorithm 2. Note that the reindexing is implicitly included in Algorithm 2, when we use the index sets J ℓ;ij or J ℓ;i for G ℓ .
Level ℓ = 3
66We start from the top level ℓ = L = 3 to extract information of interest. Given G 3 , G 5 2 is obtained by the following formula:
67Algorithm 1: Constructing the hierarchy of Schur complements of A 1 Determine ℓ max and decompose the domain hierarchically 2 Generate index sets I 1;ij and J 1;ij due to the permutation matrix P 3 . In fact, we only need to focus on G 5 2 (J 5 2 ;i , J 5 2 ;i ) instead of off-diagonal blocks in order to extract the diagonal entries of G 5 2 . Hence, represent G 5 2 as Therefore, the corresponding diagonal blocks of G 2 can be computed just using block-block multiplication accordingly. Furthermore, similar operations can be applied to G 2 . All matrices in the bracket of (3.7) are indexed by (I 5 2 |J 5 2 ). G 5 2 is indexed by J 2 = J 2;11 J 2;12 J 2;21 J 2;22 due to the permutation matrix P 5 2 . Similar to the previous level, we only need to seek the diagonal blocks G 2 (J 2;ij , J 2;ij ).
Level ℓ = 2
68At Level ℓ = 2, we have
69Similar to Level 3, submatrices in the bracket of (3.8) are indexed by (I 2 |J 2 ). G 3 2 is indexed by J 3 2 = J 3 2 ;1 · · · J 3 2 ;24 due to the permutation matrix P 2 . Again, only G 3 2 (J 3 2 ;i , J 3 2 ;i ) needs to be computed.
Level ℓ = 1
70At Level 1, the same procedure is done as at Level 2 and Level 3. We can obtain G 1 (J 1;ij , J 1;ij ) from Level 3 2 and G(J 0;ij , J 0;ij ) is computed directly. Finally, the diagonal elements in G can be obtained by combining the diagonal elements of each level.
Complexity Estimate
71We next investigate the computation complexity of the SelInvHIF. Let us assume the domain contains N = √ N × √ N points and set √ N = 2 L with ℓ max < L. We denote the number of blocks at level ℓ as n B (ℓ), and the following formula holds n B (ℓ) = 2 2(ℓmax−ℓ) , ℓ is integer; 2 2ℓmax−2(ℓ−1) − 2 ℓmax−ℓ+ 3 2 , ℓ is fractional.
72The number of points of each block or cell is denoted as n P (ℓ). Note that interior or redundant points of the previous level are not counted because they have been eliminated in previous levels.
73To approximate n P (ℓ) , we use the assumption about the skeletonization in [29]. Then it can be shown that the typical skeleton size of a cell is
74Then we have
75Firstly, the construction step is considered and the following steps are shown in Algorithm 1. At an integer level ℓ, we need to compute the inverse of U ℓ;ij (Step 9) for each block. Then multiply the inverse with V ℓ;ij to obtain K ℓ;ij (Step 10) and finally update the new A ℓ+ 1 2 (J ℓ;ij , J ℓ;ij ) (Step 11). At a fractional level ℓ + 1 2 , for each cell, we need to compute T ℓ+ 1 2 ;k using ID (Step 16, since each cell only interact with O(1) cells, then the cost for this step is O(n P (ℓ) 3 )). Then apply it (Step 19, 20, and 21) and multiply the inverse ofŪ ℓ+ 1 2 ;k (Step 25) withV ℓ+ 1 2 ;k to getK ℓ+ 1 2 ;k (Step 26). Finally, update A ℓ+1 (J ℓ+ 1 2 ;k , J ℓ+ 1 2 ;k ) (Step 27). The computational cost for these steps at each level is O(n P (ℓ) 3 ). Furthermore, the total cost for level ℓ is O(n B (ℓ)n P (ℓ) 3 ) for ℓ > 3 2 , since there are n B (ℓ) blocks at Level ℓ. Since
76where C and C 0 are constant. Let ℓ max = O(L), the total computational cost for the construction step is O(N ) (the cost for Step 32 is O(n P (ℓ) 3 )).
77Furthermore, the extraction step is analyzed now and the following steps are considered in Algorithm 2. At an integer level ℓ, G ℓ− 1 2 (I ℓ;ij , I ℓ;ij ) (
78Step 3) and G ℓ− 1 2 (J ℓ;ij , I ℓ;ij ) (Step 4) are calculated for each block. At a fractional level ℓ − 1 2 , for each cell, we need to calculate 14). The computational cost for these steps at each level is O(n P (ℓ) 3 ). Hence, the total cost for level ℓ is O(n B (ℓ)n P (ℓ) 3 ) for ℓ > 3 2 , since there are n B (ℓ) blocks at Level ℓ. Similarly, the complexity for the extraction step is also O(N ).
79Therefore, the total computational complexity is O(N ) by combining the construction step and extraction step if the assumption in [29] holds.
Numerical Results
80We show numerical results for the MPB equations in two dimensions to verify the performance of the proposed SelInvHIF. In particular, the scaling of the computational time by SelInvHIF is concerned. We set a uniform fugacity parameter Λ = 0.2 and a coupling parameter Ξ = 1. The error criteria are set as 10 −8 for both the PB and the self-consistent iterations. The relative precision of the ID step is 10 −8 and the initial values for the potentials in the iteration are always constant Φ (0) = 0 in our examples. It's worth noting that the choice about the accuracy of the ID step is a balance between the number of iterations and the factorization time for constructing hierarchical structure. Dirichlet boundary conditions are used for both the PB and the DH steps. The calculation is performed on a machine with Intel Xeon 2.2GHz and 2TB memory. The statistics of calculation time are averaged over five times. We show the first example about calculating the diagonals of the inverse of the elliptic differential operator before solving MPB equations.
81Example 1 (The discrete elliptic differential operator). We consider the diagonal part of the inverse of the discrete elliptic differential operator as the first example. Using the five-point stencil discretization, a 5-diagonal N × N sparse matrix D 5 is denoted as:
82We then calculate the diagonals of inverse of matrix D 5 by the SelInvHIF and the reference "exact" method in Ref. [25], respectively. The diagonals of D −1 5 are set as d s and d e , respectively. In Table 1, the absolute error E a = (d s − d e ) 2 /N between the SelInvHIF method and the reference "exact" method obtained with corresponding matrix size are displayed. The relative error E r = d s − d e 2 / d e 2 verifies the accuracy of the SelInvHIF. The two types of error show that diagonals of inverse of matrix are stable with the increasing grid size. Finally, Table 1
83where Φ is the electric potential computed at y = L/2 using SelInvHIF and Φ We then calculate the results of the MPB equations by the SelInvHIF. The left panel of Figure 3 visualizes the distribution of the convergent potential at y = L/2 in this system with different matrix sizes N = 256 2 , 512 2 and 1024 2 . The right panel of Figure 3 displays the numerical error |Φ − Φ ref | representing the difference vector between the numerical results and the reference solution obtained with a sufficiently large grid size N = 2048 2 . The relative L 2 errors maintain approximate accuracy of first-order in Table 2 due to the discontinuous of the derivative of the potential at y = L/2. Table 2 also shows the accuracy of the whole algorithm to compute the potential Φ compared to a reference potential computed with a sufficiently large grid size N = 2048 2 , which verifies the convergence of our algorithm. Furthermore, Table 2 also shows the computational time of the algorithm to verify the linear scaling of SelInvHIF. Finally, the scaling results of the SelInvHIF algorithm are shown in Figure 6. Example 3 (The charge density with radial symmetry). In the third example, the charge density with radial symmetry is considered. The computational interval is [0, L] 2 with L = 32 and the fixed charge density is
84We solve the MPB equations using the SelInvHIF. Similarly, the left panel of Figure 4 visualizes the distribution of the convergent potential at y = 0.5L in this system with different matrix sizes N = 256 2 , 512 2 , and 1024 2 . The right panel of Figure 4 displays the numerical error |Φ − Φ ref | between the numerical results and the reference solution obtained with a sufficiently large grid size N = 2048 2 . The relative L 2 errors maintain the approximate accuracy of first order in Table 3 due to the discontinuity of the potential derivative at circle. Table 3 also shows the accuracy of the whole algorithm to compute the potential Φ compared to a reference potential, which verifies the convergence of our algorithm. Furthermore, it is shown that the computational time of the algorithm verifies the linear scaling of the SelInvHIF. Finally, the scaling results of the SelInvHIF algorithm are shown in Figure 6. The dielectric in the region of [0.4L, 0.6L] is different from the other region and the dielectric ratio is set to be ε = 0.1. We solve the MPB equations using the SelInvHIF. The left panel of Figure 5 visualizes the distribution of the convergent potential at y = 0.5L in this system with different matrix sizes N = 256 2 , 512 2 , and 1024 2 . The right panel of Figure 5 displays the numerical error |Φ − Φ ref | between the numerical results and the reference solution obtained with a sufficiently large grid size N = 2048 2 . The relative L 2 errors maintain approximate accuracy of first-order in Table 4. Table 4 also shows the accuracy of the whole algorithm to compute the potential Φ compared to a reference potential, which verifies the convergence of our algorithm. Furthermore, Table 4 also shows the computational time of the algorithm verify the linear scaling of the SelInvHIF. Finally, the scaling results of the SelInvHIF algorithm are shown in Figure 6.
Conclusions
85A fast algorithm, SelInvHIF, is proposed to solve the MPB equations by combining the hierarchical interpolative factorization and the original selected inverse method. An O(N ) computational complexity in terms of the number of operations and memory is achieved to obtain the diagonal of the inverse of a sparse matrix discretized from an elliptic differential operator. We applied this algorithm to the two-dimensional MPB problems and attractive performance is obtained in terms of both accuracy and efficiency in solving the MPB equations. In the future, we will try to develop another fast algorithm with O(N ) complexity for three-dimensional problems based on a similar construction.
참고문헌 39건
- Fast Sparse Selected Inversion SIAM Journal on Matrix Analysis and Applications · Society for Industrial and Applied Mathematics · 2015 10.1137/14095755x
- Electrostatic Self-Assembly of Soft Matter Nanoparticle Cocrystals with Tunable Lattice Parameters ACS Nano · American Chemical Society · 2015 10.1021/acsnano.5b04912
- Hierarchical Interpolative Factorization for Elliptic Operators: Differential Equations Communications on Pure and Applied Mathematics · Wiley · 2015 10.1002/cpa.21582
- Voronoi diagrams—a survey of a fundamental geometric data structure ACM Computing Surveys · Association for Computing Machinery · 1991 10.1145/116873.116880
- Statics and dynamics of strongly charged soft matter Physics Reports · Elsevier BV · 2005 10.1016/j.physrep.2005.06.006
- Fluctuation in electrolyte solutions: The self energy Physical Review E · American Physical Society · 2010 10.1103/physreve.81.021501
- Self-energy-modified Poisson-Nernst-Planck equations: WKB approximation and finite-difference approaches Physical Review E · American Physical Society · 2014 10.1103/physreve.90.013307
- Derivation of Poisson and Nernst-Planck equations in a bath and channel from a molecular model Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 2001 10.1103/physreve.64.036116
- Dynamics of a local algorithm for simulating Coulomb interactions The Journal of Chemical Physics · American Institute of Physics · 2002 10.1063/1.1487821
- A Direct Solver with $O(N)$ Complexity for Variable Coefficient Elliptic PDEs Discretized via a High-Order Composite Spectral Collocation Method SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2014 10.1137/130918988
- An O(N) algorithm for constructing the solution operator to 2D elliptic boundary value problems in the absence of body loads Advances in Computational Mathematics · Springer Science+Business Media · 2013 10.1007/s10444-013-9326-z
- Electrostatic correlation forces between surfaces with surface specific ionic interactions The Journal of Chemical Physics · American Institute of Physics · 1989 10.1063/1.457535
- Ion Transport in Nanofluidic Channels Nano Letters · American Chemical Society · 2003 10.1021/nl0348185
- Steric Effects in Electrolytes: A Modified Poisson-Boltzmann Equation Physical Review Letters · American Physical Society · 1997 10.1103/physrevlett.79.435
- Variational charge renormalization in charged systems The European Physical Journal E · Springer Science+Business Media · 2003 10.1140/epje/i2002-10159-0
- On the Compression of Low Rank Matrices SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2005 10.1137/030602678
- Domain decomposition based $${\mathcal H}$$ -LU preconditioning Numerische Mathematik · Springer Science+Business Media · 2009 10.1007/s00211-009-0218-6
- Solving fluctuation-enhanced Poisson–Boltzmann equations Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2014.07.004
- Diffuse-charge dynamics in electrochemical systems Physical Review E · American Physical Society · 2004 10.1103/physreve.70.021506
- Double Layer in Ionic Liquids: Overscreening versus Crowding Physical Review Letters · American Physical Society · 2011 10.1103/physrevlett.106.046102
- Beyond Poisson-Boltzmann: Fluctuation effects and correlation functions The European Physical Journal E · Springer Science+Business Media · 2000 10.1007/s101890050023
- LI. <i>A contribution to the theory of electrocapillarity</i> The London Edinburgh and Dublin Philosophical Magazine and Journal of Science · Taylor & Francis · 1913 10.1080/14786440408634187
- Superfast Multifrontal Method for Large Structured Linear Systems of Equations SIAM Journal on Matrix Analysis and Applications · Society for Industrial and Applied Mathematics · 2009 10.1137/09074543x
- A free energy satisfying finite difference method for Poisson–Nernst–Planck equations Journal of Computational Physics · Elsevier BV · 2014 10.1016/j.jcp.2014.02.036
- A fast direct solver for elliptic problems on general meshes in 2D Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.10.013
- A Fast Parallel Algorithm for Selected Inversion of Structured Sparse Matrices with Application to 2D Electronic Structure Calculations SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2011 10.1137/09077432x
- SelInv---An Algorithm for Selected Inversion of a Sparse Symmetric Matrix ACM Transactions on Mathematical Software · Association for Computing Machinery · 2011 10.1145/1916461.1916464
- Transport phenomena in nanofluidics Reviews of Modern Physics · American Physical Society · 2008 10.1103/revmodphys.80.839
- Fast algorithm for extracting the diagonal of the inverse matrix with application to the electronic structure analysis of metallic systems Communications in Mathematical Sciences · International Press of Boston · 2009 10.4310/cms.2009.v7.n3.a12
- Dielectric Self-Energy in Poisson-Boltzmann and Poisson-Nernst-Planck Models of Ion Channels Biophysical Journal · Elsevier BV · 2003 10.1016/s0006-3495(03)75091-7
- Modified Poisson--Nernst--Planck Model with Accurate Coulomb Correlation in Variable Media SIAM Journal on Applied Mathematics · Society for Industrial and Applied Mathematics · 2018 10.1137/16m110383x
- Asymptotic Analysis on Dielectric Boundary Effects of Modified Poisson--Nernst--Planck Equations SIAM Journal on Applied Mathematics · Society for Industrial and Applied Mathematics · 2018 10.1137/18m1167218
- FLAM: Fast Linear Algebra in MATLAB - Algorithms for Hierarchical Matrices The Journal of Open Source Software · Open Journals · 2020 10.21105/joss.01906
- Self-consistent field model for strong electrostatic correlations and inhomogeneous dielectric media The Journal of Chemical Physics · American Institute of Physics · 2014 10.1063/1.4904728
- Statics and dynamics of strongly charged soft matter Physics Reports · Elsevier BV · 2005 10.1016/j.physrep.2005.06.006
- Beyond Poisson-Boltzmann: Fluctuation effects and correlation functions The European Physical Journal E · Springer Science+Business Media · 2000 10.1007/s101890050023
- A positivity-preserving, energy stable and convergent numerical scheme for the Poisson-Nernst-Planck system Mathematics of Computation · American Mathematical Society · 2021 10.1090/mcom/3642
- Modified Poisson--Nernst--Planck Model with Coulomb and Hard-sphere Correlations SIAM Journal on Applied Mathematics · Society for Industrial and Applied Mathematics · 2021 10.1137/19m1310098
- Domain-decomposition Based ℌ-LU Preconditioners Springer eBooks · Springer Nature · 2007 10.1007/978-3-540-34469-8_83