A Preconditioner for Galerkin–Legendre Spectral All-at-Once System from Time-Space Fractional Diffusion Equation
Next Article in Journal
Modular Conjectures for Direct Product of Finite Groups
Previous Article in Journal
Simultaneous Confidence Intervals for All Pairwise Differences between Means of Weibull Distributions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Preconditioner for Galerkin–Legendre Spectral All-at-Once System from Time-Space Fractional Diffusion Equation

School of Mathematics, Jilin University, Changchun 130012, China
*
Author to whom correspondence should be addressed.
Symmetry 2023, 15(12), 2144; https://doi.org/10.3390/sym15122144
Submission received: 31 October 2023 / Revised: 25 November 2023 / Accepted: 30 November 2023 / Published: 2 December 2023

Abstract

:
As a model that possesses both the potentialities of Caputo time fractional diffusion equation (Caputo-TFDE) and symmetric two-sided space fractional diffusion equation (Riesz-SFDE), time-space fractional diffusion equation (TSFDE) is widely applied in scientific and engineering fields to model anomalous diffusion phenomena including subdiffusion and superdiffusion. Due to the fact that fractional operators act on both temporal and spatial derivative terms in TSFDE, efficient solving for TSFDE is important, where the key is solving the corresponding discrete system efficiently. In this paper, we derive a Galerkin–Legendre spectral all-at-once system from the TSFDE, and then we develop a preconditioner to solve this system. Symmetry property of the coefficient matrix in this all-at-once system is destroyed so that the deduced all-at-once system is more convenient for parallel computing than the traditional timing-step scheme, and the proposed preconditioner can efficiently solve the corresponding all-at-once system from TSFDE with nonsmooth solution. Moreover, some relevant theoretical analyses are provided, and several numerical results are presented to show competitiveness of the proposed method.

1. Introduction

Classical integer order diffusion equation (IDE) is usually applied to describe normal diffusion phenomena such as the diffusion of particles in liquids or gases [1]. However, with further exploration for complicated diffusion phenomena in mechanics and engineering fields [2,3], researchers have encountered challenges in accurately utilizing IDE to simulate the diffusion motion of particles in fractal media (known as anomalous diffusion) [4]. Therefore, studies about time-space fractional diffusion equation (TSFDE) of the following form [5] are particularly popular
0 c D t β u ( x , t ) = κ α u ( x , t ) | x | α + g ( x , t ) , ( x , t ) ( a , b ) × ( 0 , T ] , u ( x , 0 ) = ψ ( x ) , x ( a , b ) , u ( a , t ) = u ( b , t ) = 0 , t ( 0 , T ] ,
where κ > 0 is the generalized diffusion coefficient, u ( x , t ) exhibits the concentration of interest at location x of time t, g ( x , t ) represents the source item and is a continuous function, ψ ( x ) is a given smooth function, ( a , b ) and ( 0 , T ] represent spatial and temporal domains, 0 c D t β u ( x , t ) and α u ( x , t ) | x | α are the Caputo fractional derivatives and the Riesz fractional derivatives defined as
0 c D t β u ( x , t ) = 1 Γ ( 1 β ) 0 t ( t θ ) β u ( x , θ ) θ d θ , α u ( x , t ) | x | α = 1 2 c o s ( α π / 2 ) 2 x 2 + | x η | 1 α u ( η , t ) d η ,
where Γ ( · ) is the Gamma function, and β ( 0 , 1 ) and α ( 1 , 2 ) are fractional orders of the time and space derivatives, respectively.
For β = 1 , α ( 1 , 2 ) , Equation (1) is equivalent to a symmetric case of the two-sided fractional diffusion equation, which is called Riesz-space fractional diffusion equation (Riesz-SFDE) [6]. Riesz fractional operator is an effective tool to explore nonlocal effects for engineering and physics applications [7], hence Riesz-SFDE is usually applied to model complicated phenomenon with path dependency and nonlocality [8]. Equation (1) is reduced to Caputo-time fractional diffusion equation (Caputo-TFDE) if β ( 0 , 1 ) , α = 2 . Note that Caputo derivative is defined pointwise for continuously differentiable functions [9], so that Caputo fractional differential operator can well overcome the supersingularity [10], and then Caputo-TFDE is practical for modeling long term memory phenomenon [11]. As a model that possesses both potentialities of Caputo-TFDE and symmetric two-sided space fractional diffusion equation (Riesz-SFDE) [12], Equation (1) is usually used to describe subdiffusion phenomenon if 0 < 2 β / α < 1 , superdiffusion phenomenon if 2 β / α > 1 , and normal diffusion if α = 2 β . In fact, for simulating the anomalous diffusion of particles, coefficients of fractional derivative in Equation (1) are usually used to describe the competitive relationship between long waiting time and large jumps of particles [13]. Moreover, Equation (1) is usually related to the scaling limits of the continuous time random walks and extensively applied in numerous engineering and scientific fields [14]. For instance, in ocean dynamics, Equation (1) can be used to describe the anomalous transport problem that the sticky trajectories within the boundary layers of the islands, where the boundary layers of the islands is regarded as a fractal support [15], and in financial economics, by modeling prices as random variables and varying waiting times between two consecutive transactions into a stochastic fashion. The authors in Ref. [16] utilize Equation (1) to model the behavior of returns and derive a rather general phenomenological theory in financial markets. In addition, as a foundation for more complicated diffusion modeling, Equation (1) can also be developed into variable-order model [17], distributed-order model [18], random-order model [19], nonlinear model [20], and other forms [21] for better application.
Due to the nonlocality of the fractional derivatives, analytical solutions for Equation (1) are usually difficult to obtain explicitly. Accordingly, numerical schemes for their approximate solutions have received much attention [22]. As a numerical scheme that typically converges with high order [23], in recent years, spectral methods are well developed for discretizing those FDEs. For example, after applying the generalized Jacobi functions and Fourier-like basis functions on time and space of TFDE respectively, Sheng and Shen [24] obtained a space-time Petrov-Galerkin spectral method for TFDE, this method can reach spectral accuracy in both space and time. To further improve the efficiency in discretization, Li and Xu [25] proposed a new spectral method for TFDE. This method can solve the problem with long-time solution since the “global time dependence” makes the storage requirement considerably relaxed. However, Li and Xu only applied this method to a 1D problem, for the discretization of high-order TFDE, by utilizing Legendre polynomials and their variants to approximate both temporal and spatial variables. Fakhar-Izadi and Shabgard [26] derived a new time-space spectral Galerkin method. This method can be stable for a kind of fourth-order TFDE. In fact, for the inverse problem of TFDE, spectral methods can also reach an exponential convergence. Based on the work of Lin et al. [27], who applied the spectral scheme to approximate TFDE, Ye et al. [28] proposed a spectral optimization method for its inverse problem, under the assumption that the optimal initial condition is smooth. The proposed method can indeed reach the exponential convergence rate. In addition, to further exploit the stability and high convergence of spectral methods in solving different variants of Equation (1), Zaky et al. [29,30] developed a class of semi-implicit Galerkin–Legendre spectral schemes. These methods are stable for nonlinear time-space fractional Schrödinger equation and can reach spectral accuracy even for those TSFDEs with nonsmooth solutions. Discussions about spectral methods for solving other variants of Equation (1) are exploited in Refs. [31,32,33,34,35]. The methods in these works are stable and can usually reach spectral accuracy. Moreover, in order to further save the computational cost of those methods, numerous fast algorithms are also designed for solving TFDE [36], TSFDE [37], and their variants [38,39,40]. In these methods, by utilizing the sum-of-exponential technique to approximate the kernel function in the tempered Caputo fractional derivative or using the Laplace transform for time integration of a semi-discretized system, these methods are stable and usually have a low computational cost.
One may observe that with the timing-step schemes mentioned above, one should solve the discrete system on each time level sequentially since the right-hand-side vector usually depends on the solution from a previous time level, which may lead to less convenience for parallel computing in the solving of Equation (1). For this reason, people turn to studying the all-at-once technique. At first, the all-at-once technique was proposed for solving the evolutionary equation with integer order. In these works, McDonald [41], Goddard [42], Lin [43], and Wu [44] stacked all the time steps in a vector to obtain an all-at-once system in the discretization process and then solved it. The right-hand-side vectors in these corresponding all-at-once systems only rely on the solutions at the initial time, and this phenomenon is truly convenient for parallel computing. After that, with the exploration of efficient solving for Equation (1), the all-at-once technique combined with finite differential method (FDM) or finite element method (FEM) spatial discretization and uniform temporal discretization (such as L1 [45], L1-2 [46], and L 2 - 1 σ [47]) has been well utilized to solve those fractional diffusion equation, and the solving of corresponding all-at-once systems are also well studied. In general, coefficient matrices in these all-at-once systems from the above scheme no longer maintain the symmetry property but turn into Toeplitz block lower triangular matrices with Toeplitz subblocks. In order to reduce the computational complexity in the solving of those kinds of all-at-once systems, Huang, et al. [48] and Jia, et al. [49] proposed two fast methods. These two methods are mainly based on the divide and conquer technique, and they are well applied to Equation (1) and TFDE with space-time-dependent variable order, respectively.
Note that the coefficient matrix in the above all-at-once system is usually ill-conditioned, so utilization of a preconditioners is necessary [50]. Block preconditioner is a straightforward method to improve the illness of the coefficient matrix [51]. Based on this idea, Chen et al. [52] proposed four block preconditioners for solving the all-at-once system originating from Equation (1). Among these four block preconditioners, the banded block triangular preconditioner usually outperforms the other three if β is close to one. Besides, Zhao [53], Gu [54,55], and Zhu [56] conducted extensive research on block preconditioning strategies for solving the all-at-once system especially those with Toeplitz coefficient matrix. These block preconditioners proposed by them can effectively accelerate the matrix-vector product and can usually reach the linear computing complexity. Furthermore, for the Volterra subdiffusion problem discrete by FDM in space and with combination of graded and uniform time-steps temporal discretization, Zhao et al. [57] combined a block lower tridiagonal preconditioner and a semi-circulant preconditioner to solve the corresponding all-at-once system. This method can also be extended to solve the system arising from semilinear subdiffusion problems.
Based on the above observations, we note that solving Equation (1) using spectral methods typically yields high-order discretization accuracy. However, traditional timing-step schemes are not convenient for parallel computing, and there is limited research on combining spectral methods with the graded L 1 scheme and the all-at-once technique to solve Equation (1). Besides, the coefficient matrix of the all-at-once system obtained by spectral-method spatial discretization and graded L 1 temporal discretization in Equation (1) no longer maintains the Toeplitz structure, and the preconditioners mentioned above are not appropriate for solving the corresponding Galerkin–Legendre spectral all-at-once system. Therefore, in order to improve the efficiency of solving Equation (1), in this paper, we mainly focus on deriving and solving the corresponding Galerkin–Legendre spectral all-at-once system that arises from Equation (1). The main contribution of the present paper has two aspects: (i). This is the first study to combine the all-at-once technique with the Galerkin–Legendre spectral method and graded L 1 method to solve time-space fractional diffusion Equation (1), which is more convenient for parallel computing than the traditional timing-step spectral scheme. (ii). A new preconditioner is proposed to improve the efficiency of solving the corresponding Galerkin–Legendre spectral all-at-once system arising from Equation (1), and relevant theoretical analyses and numerical experiments are also provided to show the effectiveness of the proposed method.
The remaining part of this paper is organized as follows. In the following section, the graded L 1 -Galerkin–Legendre spectral scheme (G L 1 -GLS) is derived to approximate Equation (1) and then a Galerkin–Legendre spectral all-at-once system is obtained. In Section 3, based on the sparse pattern of the coefficient matrix, a block L-diagonal preconditioner is proposed to accelerate solving the all-at-once system and some relevant theoretical analyses are also provided. Numerical results are given in Section 4 to show the efficiency of the general block L-diagonal preconditioner, and selection of parameter in the proposed preconditioner is also discussed experimentally. Finally, concluding remarks are presented in Section 5.

2. GL1-GLS Discretization and the All-at-Once System

In this section, the graded L 1 -Galerkin–Legendre spectral (G L 1 -GLS) scheme [29] is applied to approximate Equation (1). Then, with several auxiliary symbols, a Galerkin–Legendre spectral all-at-once system is obtained.

2.1. The Time-Stepping Discretization

Notice that the solutions of Equation (1) may be non-smooth and singular near t = 0 even though the initial conditions and source terms are smooth, and the graded L 1 scheme can handle this problem well. Thus, in the following, the graded L 1 scheme is utilized for the temporal discretization of Equation (1).
Lemma 1
([29]). For a positive integer M and i = 1 , 2 , , M , let { t i = T ( i / M ) γ } i = 0 M be the graded mesh with grading parameter γ 1 , and denote the temporal step-size τ i of time t i by τ i t i t i 1 . Let { u n } n = 0 M be a sequence of functions defined on [ a , b ] . Then the graded discrete time-fractional difference Caputo operator Δ M β u n is given by
Δ M β u n = Σ i = 1 n a ˜ n i n δ t u i = Σ i = 0 n b ˜ n i n u i ,
where
a ˜ n i n = 1 Γ ( 2 β ) ( t n t i 1 ) 1 β ( t n t i ) 1 β t i t i 1 , 1 i n , b ˜ 0 n = a ˜ 0 n , b ˜ n n = a ˜ n 1 n , b ˜ n i n = a ˜ n i n a ˜ n i 1 n < 0 , i = 1 , 2 , , n 1 .
Since the spectral methods are usually with high-order discretization accuracy, in the following, the Galerkin–Legendre spectral scheme in [29] is used for the spatial discretization of Equation (1).
Lemma 2
([29]). Given a function space W N 0 s p a n { φ n ( x ) : n = 0 , 1 , , N 2 } . Then for each x ^ [ 1 , 1 ] , the base function φ n of spectral methods can be given by
φ n ( x ) = L n ( x ^ ) L n + 2 ( x ^ ) = 2 n + 3 2 ( n + 1 ) ( 1 x ^ 2 ) J n 1 , 1 ( x ^ ) ,
where x = 1 2 ( ( b a ) x ^ + a + b ) [ a , b ] and for μ , ν > 1 , J i μ , ν ( x ) is the i- t h order Jacobi polynomial of index defined on [ 1 , 1 ] .
Let u N n be the discrete approximation of solution u ( x , t n ) W N for x [ a , b ] and 0 i n . Then, we take Equations (2) and (3) into Equation (1), and get the following G L 1 -GLS scheme for Equation (1).
a ˜ 0 n ( u N n , v ) κ ( α | x | α u N n , v ) = a ˜ n 1 n ( u N 0 , v ) Σ i = 1 n 1 b ˜ n i n ( u N i , v ) + ( I N g n , v ) , u N 0 = P N ψ , v W N 0 , n = 1 , 2 , , M ,
where P N is an appropriate projection operator [29]. Denote
S i , j = Ω a D x α 2 φ i ( x ) x D b α 2 φ j ( x ) d x , S = ( s i , j ) i , j = 0 N 2 , m i , j = Ω φ i ( x ) φ j ( x ) d x , M ¯ = ( m i , j ) i , j = 0 N 2 , g i , n = Ω φ i ( x ) I N g n d x , F n = ( g 0 n , g 1 n , , g N 2 n , ) T , U n = ( u ^ 0 n , u ^ 1 n , , u ^ 0 N 2 ) T .
Then the G L 1 -GLS scheme can be rewritten into the matrix-vector form as
( a ˜ 0 n M ¯ κ c α ( S + S T ) ) U n = Σ j = 0 n 1 b ˜ n j n M ¯ U j + F n , n = 1 , 2 , , M ,
where c α = 1 2 s e c ( π α 2 ) .
According to Ref. [29], under certain assumptions about the regularity of the unique solution for Equation (1), the numerical solution obtained from above G L 1 -GLS scheme can achieve an optimal time convergence order for the optimal grading parameter γ o p t = m a x { 1 , ( 2 β ) / σ } , where σ = [ 0 , 1 ] [ 1 , 2 ] is used to reflect the regularity of the solution. Furthermore, more detailed convergence analyses of above G L 1 -GLS scheme can be found in Ref. [29].
From Equation (4), we find that based on the above G L 1 -GLS scheme, one needs to solve the discrete system on each time level sequentially since the right-hand-side vector in Equation (4) usually depends on the solution on a previous time level and this may lead to less convenience for parallel computing in the solving of Equation (1). For this reason, in the next subsection, the all-at-once technique is considered, and then Equation (4) can be transformed into the Galerkin–Legendre spectral all-at-once system, which is more convenient for parallel computing.

2.2. The Galerkin–Legendre Spectral All-at-Once System

To simplify the derivation of the Galerkin–Legendre spectral all-at-once system, several auxiliary symbols are introduced: O and I are zero and identity matrices of suitable orders. Furthermore, denote
A 0 n = a ˜ 0 n M ¯ κ c α ( S + S T ) , 1 n M , A k n = b ˜ k n M ¯ , 1 k M 1 , b n = b ˜ k n M ¯ U 0 + F n .
Then, based on Equation (4), we can get the following Galerkin–Legendre spectral all-at-once system
A u = b ,
where u = [ ( U 1 ) T , ( U 2 ) T , , ( U M ) T ] T , b = [ ( b 1 ) T , , ( b M ) T ] T and
A = A 0 1 O O O O A 1 2 A 0 2 O O A l 1 l O O A N 1 M 1 A l 1 M A 1 M A 0 M .
Note that the right-hand-side vector in Equation (5) only depends on the solution in the initial time level, and this makes Equation (5) truly convenient for parallel computing. In addition, from Equation (6), we find that although the block lower triangular coefficient matrix A in Equation (5) no longer maintains the symmetry property directly like A 0 n in Equation (4), each subblock of A is symmetric. In addition, by “⊗”, we denote the Kronecker product. Then the coefficient matrix in Equation (5) can be written as A = B M ¯ I M ( κ c α ( S + S T ) ) , where
B = a ˜ 0 1 0 0 0 0 b ˜ 1 2 a ˜ 0 2 0 0 0 b ˜ 2 3 b ˜ 1 3 a ˜ 0 3 0 b ˜ M 2 M 1 a ˜ 0 M 1 0 b ˜ M 1 M b ˜ M 2 M b ˜ 2 M b ˜ 1 M a ˜ 0 M .
From Equation (7) and Lemma 1, we find that values of elements in matrix B are mainly affected by the grading parameter γ of temporal graded mesh and the fractional order β of time derivative. Since A = B M ¯ I M ( κ c α ( S + S T ) ) , γ and β may also affect values of elements in matrix A . Besides, values of elements in matrix A may also be affected by fractional order α of space derivative. Details about the elements of matrix B and A with variant parameters are shown in Figure 1, Figure 2, Figure 3 and Figure 4, respectively.
To solve the linear system, Krylov subspace methods such as BICGSTAB and GMRES are usually efficient if the condition number of the coefficient matrix is small. Notice that the coefficient matrix A in Equation (5) is usually ill-conditioned. Therefore, an effective preconditioner, which can reduce the condition number or make the spectral distribution of the coefficient matrix cluster around 1 should be employed [50]. In the next section, we will mainly focus on developing such an efficient preconditioner.

3. The Block L-Diagonal Preconditioner

In this section, we propose a block L-diagonal preconditioner M L to solve Equation (5) and some corresponding theoretical analyses will also be provided.

3.1. Derivation of the General Block L-Diagonal Preconditioner M L

Firstly, we focus on observing the sparsity pattern of matrix B and the coefficient matrix A = B M ¯ I M ( κ c α ( S + S T ) ) .
As is shown in Figure 1 and Figure 2, the diagonal entries of the coefficient matrix B are decreased. Since A = B M ¯ I M ( κ c α ( S + S T ) ) , as can be seen from Figure 3 and Figure 4, the main information of A is gathered in the first L-nonzero diagonal blocks, where L is usually larger than 3. Based on the above observation, we can naturally propose a block L-diagonal preconditioner M L = B L M ¯ I M ( κ c α ( S + S T ) ) to solve Equation (5), where
B L = a ˜ 0 1 0 0 0 0 b ˜ 1 2 a ˜ 0 2 0 0 0 0 b ˜ L 1 l 0 0 0 b ˜ L 1 M b ˜ 1 M a ˜ 0 M .
It is obvious that M 1 = b l o c k d i a g ( A ) if L = 1 .

3.2. Theoretical Analyses of the Block L-Diagonal Preconditioner

For convenience of discussing the nonsingularity of the L-diagonal preconditioner M L , we present the following two lemmas.
Lemma 3
([29]). The nonzero components in the mass matrix M ¯ in Equation (5) are
m i j = m j i = b a 2 j + 1 + b a 2 j + 5 , i = j , b a 2 j + 5 , i = j + 2 .
Lemma 4
([29]). The components of the stiffness matrix S are s i j = a i j a i j + 2 a i + 2 j + a i + 2 j + 2 , for each i , j = 0 , 1 , , N 2 , and
a i j = ( b a 2 ) 1 α Γ ( i + 1 ) Γ ( j + 1 ) Γ ( i α 2 + 1 ) Γ ( j α 2 + 1 )   · r = 0 N ϖ r α 2 , α 2 J i α 2 , α 2 ( x r α 2 , α 2 ) J j α 2 , α 2 ( x r α 2 , α 2 ) ,
where Γ ( · ) is the Gamma function, J i μ , ν ( x ) is the i- t h order Jacobi polynomial of index defined on [ 1 , 1 ] , { x r α 2 , α 2 , ϖ r α 2 , α 2 } is the set of Jacobi–Gauss points and weights with respect to the weight function ω α 2 , α 2 = ( 1 x ) α 2 ( 1 + x ) α 2 .
Lemma 3 clarifies that M ¯ is symmetric positive definite and Lemma 4 shows detailed components of matrix S. Notice that a ˜ 0 n > 0 , c α > 0 and κ is a positive constant. Then, from Lemmas 3 and 4, we can see that all main diagonal blocks A 0 n = a ˜ 0 n M ¯ κ c α ( S + S T ) , 1 n M of the coefficient matrix A in Equation (5) is symmetric and invertible. Thus the coefficient matrix A and the preconditioner M L are nonsingular.
In order to analyze the approximation effect of block L-diagonal preconditioner M L on A , we present the estimation for the approximate error between M L and A in the following theorem.
Theorem 1.
Let | ς j 1 ς j τ j ς j 2 ς j 1 τ j 1 | < c j n , where τ j = t j t j 1 and ς j n = ( t n t j ) 1 β . Denote E = A M L . Then we have
| | E | | 13 ( b a ) 21 · Γ ( 2 β ) · max j = l 1 M 1 c j n , 1 n M .
Proof. 
Notice that
A = B M ¯ + I M ( κ c α ( S + S T ) ) , M L = B L M ¯ + I M ( κ c α ( S + S T ) ) .
Then we have
E = A M L = ( B B L ) M ¯ .
From Lemma 3, we know that
| | M ¯ | | = max b a 2 i + 1 + 2 ( b a ) 2 i + 5 , 1 i N 1   b a 3 + 2 ( b a ) 7 = 13 ( b a ) 21 .
Denote | ς j 1 n ς j n τ j ς j 2 n ς j 1 n τ j 1 | < c j n , where τ j = t j t j 1 and ς j n = ( t n t j ) 1 β . Thus we can get
| | E | | = | | ( B B L ) M ¯ | |   = | | ( B B L ) | | · | | M ¯ | |   max j = l 1 M 1 | b j n | | M ¯ | | , 1 n M   13 ( b a ) 21 · Γ ( 2 β ) · max j = l 1 M 1 c j n , 1 n M .
This completes the proof. □
Theorem 1 gives a clear indication that M L will approximate to A better and better as L gets larger and larger, and M L will be equal to A if L is equal to M. In the following Figure 5 and Figure 6, we will take M = 2 4 and depict the approximation error of M L to A numerically.
Figure 5 and Figure 6 verify that the approximation error | | E | | in Theorem 1 indeed gets smaller and smaller as L gets larger and larger. Furthermore, Figure 5 and Figure 6 also reveal the fact that even with variant α , β and N, the error between M L and A can always stay smaller than 1 as long as L is larger than 4.
Similar to the contents of the bi-diagonal preconditioner in Ref. [54], in order to analyze the preconditioned effect of block L-diagonal preconditioner, we consider the spectral property of the preconditioned coefficient matrix M L 1 A as follows.
Theorem 2.
All eigenvalues of M L 1 A are approximate to 1.
Proof. 
Let ∗ represent the nonzero block matrix. Then we obtain
M L 1 A = I N O O O I N O O O I N O O O O O I N ,
This indicates that the eigenvalues of M L 1 A are all approximate to 1. □
From Theorem 2 and the following Figure 7 and Figure 8, we can observe that the block L-diagonal preconditioner M L can indeed make the eigenvalues of the coefficient matrix A cluster around 1. Besides, Figure 7 and Figure 8 further exhibit numerically that the spectral distribution of M L 1 A clusters closer to 1 as L gets larger and larger.

4. Numerical Examples

In this section, we present two examples to verify the effectiveness of the block L-diagonal preconditioner for solving the Galerkin–Legendre spectral all-at-once system originating from Equation (1) with nonsmooth solution in temporal space [29]. To solve the preconditioned system by the PGMRES method (right-preconditioned GMRES), we use the built-in function “∖” in MATLAB to calculate M L 1 and the iterative process of PGMRES may terminate if the relative residual error satisfies r e s = b A u / b < 10 8 or the iteration number is more than 1000. The initial guess of PGMRES is set as zero vector and for simplicity, “TS” represents that we solve the linear system in timing-step scheme by using MINRES method, “PGMRES (L = 0)” means that we use GMRES without preconditioner and “PGMRES (L = 1, 2, 5, 8, 10)” exhibit that we utilize PGMRES with preconditioner M L (L is equal to 1 , 2 , 5 , 8 , 10 ) to solve the all-at-once system, respectively. Moreover, “cond” stands for the condition number of the coefficient matrix, “Its” and “Time” express the iterative time and total cost in PGMRES, and “†” represents that PGMRES can not converge within 1000 iterations. The unit of time is seconds.
All experiments are conducted in double precision arithmetic on Windows 10 and MATLAB R2017a with Intel (R) Core (TM) i7-8750H [email protected], using a PC with 8GB of memory.
Example 1.
Consider the Galerkin–Legendre spectral all-at-once system arising from the following fractional equation
0 c D t β u ( x , t ) = α u ( x , t ) | x | α + g ( x , t ) , ( x , t ) ( 1 , 1 ) × ( 0 , 1 ] , u ( x , 0 ) = 0 , x ( 1 , 1 ) , u ( 1 , t ) = u ( 1 , t ) = 0 , t ( 0 , 1 ] ,
where
g ( x , t ) = 1 2 c o s ( π β / 2 ) ( Γ ( 3 ) Γ ( 3 β ) ( x 2 β + ( 1 x ) 2 β ) Γ ( 4 ) Γ ( 4 β ) ( x 3 β + ( 1 x ) 3 β ) + Γ ( 5 ) Γ ( 5 β ) ( x 4 β + ( 1 x ) 4 β ) ) .
In order to investigate the effect of M L on PGMRES, we depict the number of iterations such that r e s < 10 8 with variant L for different α , β , and N in the following Figure 9.
Figure 9 indicates that even for different cases with various α , β , and N, PGMRES can always converge faster than GMRES. In addition, PGMRES converges faster and faster as L gets larger and larger, while the improvement of convergence is no longer significant if L is larger than 8. More detailed test results are shown in Table 1.
As can be seen from Table 1, for the improvement of illness in the coefficient matrix, performance of M L gets better and better as L increases. Additionally, Table 1 shows that GMRES cannot always converge within the specified 1000 iterations, while PGMRES can always converge, and this indicates that the preconditioner M L is effective for solving the all-at-once system (5). From Table 1, we can observe that PGMRES (L = 1, 2) usually converges within 60 iterations while PGMRES (L = 5) can converge within 8 iterative steps, PGMRES (L = 8) can converge within 6 iterations, and PGMRES (L = 10) can converge within 5 iterations. This informs us that reduction of the number of iterations in PGMRES is not obvious as L turns larger than 8 or smaller than 5. Accordingly, cost time of PGMRES (L = 5) and PGMRES (L = 8) are usually less than that of PGMRES with other L and this phenomenon is basically unaffected by the variance of α , β , and N. On the other hand, Table 1 also manifests that the total cost of TS is always more than that of PGMRES (L = 5) and PGMRES (L = 8), which reveals the fact that to solve TSFDE in this example, using PGMRES with preconditioner M L to solve the all-at-once system is more efficient than using MINRES to solve the traditional timing-step system, and L = 5–8 is appropriate.
Next, in order to further investigate the effect of parameter L on the application of M L for different cases with various M, we take N = 2 5 and show the test results in the following Table 2.
Table 2 states that for different cases with various α , β , and M, M L is always effective. Furthermore, M L is almost equally effective for the cases with different α , β while for the case with large M, the effectiveness of M L is usually more significant. As can be seen from Table 2, for the effectiveness of M L on PGMRES (L), the selection of parameter L is not significantly affected by the temporal discrete size M, and for different cases with various M, preconditioner M L turns out to be more efficient as the parameter L gets around 5 and 8. Therefore, for the sake of an overall performance, L does not need to be taken too large and L = 5–8 is usually appropriate.
In addition, in order to illustrate that the numerical solution obtained from the Galerkin–Legendre spectral all-at-once system is reasonable for Equation (1), we depict the numerical solutions for Equation (8) in Figure 10. We note that analytical solution in Equation (8) is difficult to obtain, hence we here consider the numerical solution under ra efined grid as the exact solution, and we also compare the numerical solutions obtained by different methods for Equation (8). Besides, in Figure 10, TS represents solving the timing-step scheme by MINRES and AAO(L) stands for solving the all-at-once scheme by PGMRES with preconditioner M L . Colors from light to dark represent the graded temporal mesh divided from 0 to 1.
As can be seen from Figure 10, the numerical solution obtained by using AAO is similar to that obtained by using TS, and they are both approximated to the numerical solution under the refined grid. Therefore, the numerical solution obtained from the Galerkin–Legendre spectral all-at-once system is reasonable for Equation (8).
Example 2.
Consider the Galerkin–Legendre spectral all-at-once system arising from the following fractional equation
0 c D t β u ( x , t ) = 0.5 α u ( x , t ) | x | α + g ( x , t ) , ( x , t ) ( 0 , 2 ) × ( 0 , 1 ] , u ( x , 0 ) = x 2 ( 1 x ) 2 , x ( 0 , 2 ) , u ( 1 , t ) = u ( 1 , t ) = 0 , t ( 0 , 1 ] ,
where
g ( x , t ) = 1 2 c o s ( π β / 2 ) ( 4 Γ ( 3 ) Γ ( 3 β ) ( ( 1 + x ) 2 β + ( 1 x ) 2 β ) 4 Γ ( 4 ) Γ ( 4 β ) ( ( 1 + x ) 3 β + ( 1 x ) 3 β ) + Γ ( 5 ) Γ ( 5 β ) ( ( 1 + x ) 4 β + ( 1 x ) 4 β ) ) .
Firstly, we take M = 2 4 , N = 2 5 , 2 6 , 2 7 with variant L to explore the effect of preconditioner M L on the number of iterations for PGMRES in the following Figure 11.
Figure 11 claims that PGMRES always converges faster than GMRES, and PGMRES converges faster and faster as L gets larger and larger. Nevertheless, the number of iterations in PGMRES barely decreases as L grows larger than 8, and this phenomenon is barely affected by the variance of α , β , and N. More detailed test results about the condition number of the coefficient matrix and total cost in the solving with different solvers are shown in Table 3.
Table 3 recounts that the condition number of the coefficient matrix is reduced and the number of iterations in PGMRES (L) is always less than that in GMRES. This explicates that the preconditioner M L is always effective for solving the all-at-once system (5). Besides, the number of iterations in PGMRES (L) gets smaller and smaller as L gets larger and larger while the total cost in PGMRES (L) does not always decrease as L increases. This phenomenon propagates the fact that an appropriate value of L is important for the application of M L in PGMRES (L). Based on the test results in Table 3, we see that the total cost of PGMRES (L = 5) and PGMRES (L = 8) are far less than that of TS and other PGMRES, which suggests that L = 5–8 is appropriate.
In order to further explore the effect of L on the application of preconditioner M L for different cases with various M, we take N = 2 5 and present the detailed test results in Table 4.
Table 4 illustrates that for different cases with various α , β , and M, M L is always effective and for the case with large M, the effectiveness of M L is usually significant. Besides, Table 4 also shows the effect of L on the application of M L for different cases with various M. As is shown in Table 4, similar to the results in Table 2 of Example 1, for the effectiveness of M L on PGMRES (L), the selection of parameter L is not significantly affected by the temporal discrete size M, and M L is more efficient as the parameter L gets around 5 and 8. Therefore, for an overall efficiency, L need not to be taken too large and L = 5–8 is usually appropriate.
In order to explore the reliability for the numerical solution obtained from the Galerkin–Legendre spectral all-at-once system, we compare the numerical solutions for Equation (9) with different methods in the following. We note that since the analytical solution in Equation (9) is difficult to obtain, here we also use the numerical solution under refined grid as the exact solution. Solutions for Equation (9) calculated by TS and AAO(L) are present in the following Figure 12.
From Figure 12, we see that the numerical solutions obtained by using AAO and TS are approximate to that obtained under the refined grid. This indicates that the numerical solution obtained from the Galerkin–Legendre spectral all-at-once system is reasonable for Equation (9).

5. Conclusions

In this paper, we mainly studied an efficient way to solve Equation (1). We combined the all-at-once technique with the Galerkin–Legendre spectral method and the graded L 1 method to solve the time-space fractional diffusion in Equation (1), and found that this scheme is more convenient for parallel computing than the traditional timing-step spectral scheme. With the observation that the coefficient matrix of the corresponding Galerkin–Legendre spectral all-at-once system is usually a block lower triangular and that the main information of the coefficient matrix is gathered in the first L-nonzero diagonal blocks, we proposed a block L-diagonal preconditioner M L to accelerate solving the Galerkin–Legendre spectral all-at-once system. Based on the analyses of approximation error and spectral distribution of the coefficient matrix, the proposed preconditioner M L can improve the illness of the coefficient matrix and M L usually performs better and better as L increases. Additionally, the numerical experiments further verify the effectiveness of M L and present the appropriate value of parameter L heuristically.
We note that the combination of the all-at-once technique with the Galerkin–Legendre spectral method and graded L 1 method is convenient for parallel computing in solving Equation (1), and the proposed block L-diagonal preconditioner M L can accelerate solving the corresponding Galerkin–Legendre spectral all-at-once system. However, similar to many existing works where the parameters can only be selected experimentally, in this paper, we also choose the parameter L heuristically. For future work, we will develop some adaptive techniques to set L adaptively with moderate computational cost. Furthermore, it is important to note that the time-space fractional diffusion Equation (1) considered in this paper can only be utilized to model the linear anomalous diffusion. To simulate more completed anomalous diffusion such as heterogeneous porous, non-Fickian diffusion in porous media and nonlinear diffusion in image denoising media, Equation (1) needs to be further developed into a variable-order model, distributed-order model, and nonlinear model for better application. We expect that the method proposed in this paper could be developed to handle more comprehensive models, and we plan to further explore these applications in future work.

Author Contributions

Conceptualization, M.W. and S.Z.; methodology, M.W. and S.Z.; software, M.W. and S.Z.; validation, M.W. and S.Z.; formal analysis, M.W. and S.Z.; investigation, M.W. and S.Z.; resources, M.W. and S.Z.; data curation, M.W. and S.Z.; writing—original draft preparation, M.W.; writing—review and editing, S.Z.; visualization, M.W. and S.Z.; supervision, S.Z.; project administration, M.W. and S.Z.; funding acquisition, S.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China under Grant No. 11671169.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Collins, R.E. Quantum mechanics as a classical diffusion process. Found Phys. Lett. 1992, 5, 63–69. [Google Scholar] [CrossRef]
  2. Fan, C.; Liu, K.X.; Chen, Y.G.; Xue, Y.C.; Zhao, J.; Khudoley, A. A new modelling method of material removal profile for electrorheological polishing with a mini annular integrated electrode. J. Mater. Process. Technol. 2022, 305, 117589. [Google Scholar] [CrossRef]
  3. Zhao, J.; Ge, J.Y.; Khudoley, A.; Chen, H.Y. Numerical and experimental investigation on the material removal profile during polishing of inner surfaces using an abrasive rotating jet. Tribol. Int. 2024, 191, 109125. [Google Scholar] [CrossRef]
  4. Bouchaud, J.; Georges, A. Anomalous diffusion in disordered media: Statistical mechanisms, models and physical applications. Phys. Rep. 1990, 195, 127–293. [Google Scholar] [CrossRef]
  5. Sun, H.G.; Chen, W.; Li, C.P.; Chen, Y.Q. Fractional differential models for anomalous diffusion. Phys. A 2010, 389, 2719–2724. [Google Scholar] [CrossRef]
  6. Chaves, A.S. A fractional diffusion equation to describe Lévy flights. Phys. Lett. A 1998, 239, 13–16. [Google Scholar] [CrossRef]
  7. Oldham, K.B.; Spanier, J. The Fractional Calculus; Academic Press: New York, NY, USA, 1974. [Google Scholar]
  8. Benson, D.A.; Wheatcraft, S.W.; Meerschaert, M.M. The fractional-order governing equation of Lévy Motion. Water Resour. Res. 2000, 36, 1413–1423. [Google Scholar] [CrossRef]
  9. Caputo, M. Linear models of dissipation whose Q is almost frequency independent II. Geophys. J. R. Astr. Soc. 1967, 13, 529–539. [Google Scholar] [CrossRef]
  10. West, B.J.; Bologna, M.; Grigolini, P. Physics of Fractal Operators; Springer: New York, NY, USA, 2003. [Google Scholar]
  11. Diethelm, K. The Analysis of Fractional Differential Equations: An Application-Oriented Exposition Using Differential Operators of Caputo Type; Springer Science and Business Media: New York, NY, USA, 2010. [Google Scholar]
  12. Gorenflo, R.; Mainardi, F.; Moretti, D.; Pagnini, G.; Paradisi, P. Discrete random walk models for space-time fractional diffusion. Chem. Phys. 2002, 284, 52–541. [Google Scholar] [CrossRef]
  13. Metzler, R.; Klafter, J. The random walk’s guide to anomalous diffusion: A fractional dynamics approach. Phys. Rep. 2000, 339, 1–77. [Google Scholar] [CrossRef]
  14. Meerschaert, M.M.; Benson, D.A.; Scheffler, H.P.; Baeumer, B. Stochastic solution of space-time fractional diffusion equations. Phys. Rev. E 2002, 65, 041103. [Google Scholar] [CrossRef] [PubMed]
  15. Saichev, A.I.; Zaslavsky, G.M. Fractional kinetic equations: Solutions and applications. Chaos Interdiscip. J. Nonlinear Sci. 1997, 7, 753–764. [Google Scholar] [CrossRef] [PubMed]
  16. Scalas, E.; Gorenflo, R.; Mainardi, F. Fractional calculus and continuous-time finance. Phys. A 2000, 284, 376–384. [Google Scholar] [CrossRef]
  17. Obembe, A.; Hossain, M.; Abu-Khamsin, S. Variable-order derivative time fractional diffusion model for heterogeneous porous media. J. Petrol. Sci. Eng. 2017, 152, 391–405. [Google Scholar] [CrossRef]
  18. Liang, Y.J.; Chen, W.; Xu, W.; Sun, H.G. Distributed order Hausdorff derivative diffusion model to characterize non-Fickian diffusion in porous media. Commun. Nonlinear Sci. 2019, 70, 384–393. [Google Scholar] [CrossRef]
  19. Sun, H.G.; Chen, Y.Q.; Chen, W. Random-order fractional differential equation models. Signal Process. 2011, 91, 525–530. [Google Scholar] [CrossRef]
  20. Kumar, S.; Alam, K.; Chauhan, A. Fractional derivative based nonlinear diffusion model for image denoising. SeMA 2022, 79, 355–364. [Google Scholar] [CrossRef]
  21. Zhang, H.; Lv, Y. Galerkin method for a backward problem of time-space fractional symmetric diffusion equation. Symmetry 2023, 15, 1057. [Google Scholar] [CrossRef]
  22. Guo, B.Y.; Wang, Z.Q. Legendre-Gauss collocation methods for ordinary differential equations. Adv. Comput. Math. 2009, 30, 249–280. [Google Scholar] [CrossRef]
  23. Shen, J.; Tang, T.; Wang, L.L. Spectral Methods, Algorithms, Analysis, and Applications; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  24. Sheng, C.T.; Shen, J. A space-time Petrov-Galerkin spectral method for time fractional diffusion equation. Numer. Math. Theory Methods Appl. 2018, 11, 854–876. [Google Scholar] [CrossRef]
  25. Li, X.J.; Xu, X.J. A space-time spectral method for the time fractional diffusion equation. SIAM J. Numer. Anal. 2009, 47, 2108–2131. [Google Scholar] [CrossRef]
  26. Fakhar-Izadi, F.; Shabgard, N. Time-space spectral Galerkin method for time-fractional fourth-order partial differential equations. J. Appl. Math. Comput. 2022, 68, 4253–4272. [Google Scholar] [CrossRef]
  27. Lin, Y.; Xu, C. Finite difference/spectral approximations for the time-fractional diffusion equation. J. Comput. Phys. 2007, 225, 1533–1552. [Google Scholar] [CrossRef]
  28. Ye, X.; Xu, C. Spectral optimization methods for the time fractional diffusion inverse problem. Numer. Math. Theory Methods Appl. 2013, 6, 499–519. [Google Scholar]
  29. Zaky, M.A.; Hendy, A.S.; Macias-Diaz, J.E. Semi-implicit Galerkin-legendre spectral schemes for nonlinear time-space fractional diffusion-reaction equations with smooth and nonsmooth solutions. J. Sci. Comput. 2000, 82, 1–27. [Google Scholar] [CrossRef]
  30. Zaky, M.A.; Hendy, A.S. Convergence analysis of an L1-continuous Galerkin method for nonlinear time-space fractional Schrodinger equation. Int. J. Comput. Math. 2021, 98, 1420–1437. [Google Scholar] [CrossRef]
  31. Zayernouri, M.; Karniadakis, G.E. Discontinuous spectral element methods for time-and space-fractional advection equations. SIAM J. Sci. Comput. 2014, 36, B684–B707. [Google Scholar] [CrossRef]
  32. Hu, C.; Lv, S.J.; Chen, W.P. Spectral methods for the time fractional diffusion-wave equation in a semi-infinite channel. Comput. Math. Appl. 2016, 9, 1818–1830. [Google Scholar]
  33. Huang, Y.; Skandari, M.H.N.; Mohammadizadeh, F.; Tehrani, H.A.; Georgiev, S.G.; Tohidi, E.; Shateyi, S. Space-time spectral collocation method for solving Burgers equations with the convergence analysis. Symmetry 2019, 11, 1439. [Google Scholar] [CrossRef]
  34. Wang, Y.; Cai, M. Finite difference schemes for time-space fractional diffusion equations in one-and two-dimensions. Commun. Appl. Math. Comput. 2023, 5, 1674–1696. [Google Scholar] [CrossRef]
  35. Dong, J.P.; Xu, M.Y. Space-time fractional Schrödinger equation with time-independent potentials. J. Math. Anal. Appl. 2008, 344, 1005–1017. [Google Scholar] [CrossRef]
  36. Shen, J.; Sun, Z.; Du, R. Fast finite difference schemes for time-fractional diffusion equations with a weak singularity at initial time. East Asian J. Appl. Math. 2018, 8, 834–858. [Google Scholar] [CrossRef]
  37. Duo, S.W.; Ju, L.L.; Zhang, Y.Z. A fast algorithm for solving the space-time fractional diffusion equation. Comput. Math. Appl. 2018, 75, 1929–1941. [Google Scholar] [CrossRef]
  38. Zhou, J.F.; Gu, X.M.; Zhao, Y.L.; Li, H. A fast compact difference scheme with unequal time-steps for the tempered time-fractional Black-Scholes model. Int. J. Comput. Math. 2023. [Google Scholar] [CrossRef]
  39. Zhao, Y.L.; Zhu, P.Y.; Luo, W.H. A fast second-order implicit scheme for non-linear time-space fractional diffusion equation with time delay and drift term. Appl. Math. Comput. 2018, 336, 231–248. [Google Scholar] [CrossRef]
  40. Li, M.; Wei, Y.F.; Niu, B.Q.; Zhao, Y.L. Fast L2-1σ Galerkin FEMs for generalized nonlinear coupled Schrödinger equations with Caputo derivatives. Appl. Math. Comput. 2022, 416, 126734. [Google Scholar]
  41. McDonald, E.; Pestana, J.; Wathen, A. Preconditioning and iterative solution of all-at-once systems for evolutionary partial differential equations. SIAM J. Sci. Comput. 2018, 40, A1012–A1033. [Google Scholar] [CrossRef]
  42. Goddard, A.; Wathen, A. A note on parallel preconditioning for all-at-once evolutionary PDEs. Electron. Trans. Numer. Anal. 2019, 51, 135–150. [Google Scholar] [CrossRef]
  43. Lin, X.L.; Ng, M.K.; Zhi, Y. A parallel-in-time two-sided preconditioning for all-at-once system from a non-local evolutionary equation with weakly singular kernel. J. Comput. Phys. 2021, 434, 110221. [Google Scholar] [CrossRef]
  44. Wu, S.L.; Zhou, T.; Zhou, Z. A uniform spectral analysis for a preconditioned all-at-once system from first-order and second-order evolutionary problems. SIAM J. Matrix Anal. Appl. 2022, 43, 1331–1353. [Google Scholar] [CrossRef]
  45. Stynes, M. A survey of the L1 scheme in the discretisation of time-fractional problems. Numer. Math. Theory Meth. Appl. 2022, 15, 1173–1192. [Google Scholar] [CrossRef]
  46. Gao, G.H.; Sun, Z.Z.; Zhang, H.W. A new fractional numerical differentiation formula to approximate the Caputo fractional derivative and its applications. J. Comput. Phys. 2014, 259, 33–50. [Google Scholar] [CrossRef]
  47. Alikhanov, A.A. A new difference scheme for the time fractional diffusion equation. J. Comput. Phys. 2015, 280, 424–438. [Google Scholar] [CrossRef]
  48. Huang, Y.C.; Lei, S.L. A fast numerical method for block lower triangular Toeplitz with dense Toeplitz blocks system with applications to time-space fractional diffusion equations. Numer. Algorithm 2017, 76, 605–616. [Google Scholar] [CrossRef]
  49. Jia, J.; Wang, H.; Zheng, X. A fast algorithm for time-fractional diffusion equation with space-time-dependent variable order. Numer. Algorithm 2023, 94, 1705–1730. [Google Scholar] [CrossRef]
  50. Saad, Y. Iterative Methods for Sparse Linear Systems, 2nd ed.; SIAM: Philadelphia, PA, USA, 2003. [Google Scholar]
  51. Bertaccini, D.; Durastante, F. Limited memory block preconditioners for fast solution of fractional partial differential equations. J. Sci. Comput. 2018, 77, 950–970. [Google Scholar] [CrossRef]
  52. Chen, H.; Zhang, T.; Lv, W. Block preconditioning strategies for time-space fractional diffusion equations. Appl. Math. Comput. 2018, 337, 41–53. [Google Scholar] [CrossRef]
  53. Zhao, Y.L.; Gu, X.M.; Li, M.; Jian, H.Y. Preconditioners for all-at-once system from the fractional mobile/immobile advection-diffusion model. J. Appl. Math. Comput. 2021, 65, 669–691. [Google Scholar] [CrossRef]
  54. Zhao, Y.L.; Zhu, P.Y.; Gu, X.M.; Zhao, X.L.; Cao, J. A limited-memory block bi-diagonal Toeplitz preconditioner for block lower triangular Toeplitz system from time-space fractional diffusion equation. J. Comput. Appl. Math. 2019, 362, 99–115. [Google Scholar] [CrossRef]
  55. Gu, X.M.; Zhao, Y.L.; Zhao, X.L.; Carpentieri, B.; Huang, Y.Y. A Note on parallel preconditioning for the all-at-once solution of Riesz fractional diffusion equations. Numer. Math. Theory Meth. Appl. 2021, 14, 893–919. [Google Scholar]
  56. Zhao, Y.L.; Gu, X.M.; Hu, L. A bilateral preconditioning for an L2-type all-at-once system from time-space non-local evolution equations with a weakly singular kernel. Comput. Math. Appl. 2023, 148, 200–210. [Google Scholar] [CrossRef]
  57. Zhao, Y.L.; Gu, X.M.; Ostermann, A. A preconditioning technique for an all-at-once system from Volterra subdiffusion equations with graded time steps. J. Sci. Comput. 2021, 88, 11. [Google Scholar] [CrossRef]
Figure 1. The elements of matrix B in [ 0 , T ] = [ 0 , 1 ] with M = 32 , γ = 5 and in (ac), β is taken as 0.8 , 0.5 , 0.2 , respectively.
Figure 1. The elements of matrix B in [ 0 , T ] = [ 0 , 1 ] with M = 32 , γ = 5 and in (ac), β is taken as 0.8 , 0.5 , 0.2 , respectively.
Symmetry 15 02144 g001
Figure 2. The elements of matrix B in [ 0 , T ] = [ 0 , 1 ] with M = 32 , γ = 8 and in (ac), β is taken as 0.8 , 0.5 , 0.2 , respectively.
Figure 2. The elements of matrix B in [ 0 , T ] = [ 0 , 1 ] with M = 32 , γ = 8 and in (ac), β is taken as 0.8 , 0.5 , 0.2 , respectively.
Symmetry 15 02144 g002
Figure 3. The elements of the coefficient matrix with γ = 5 , M = 16 , N = 4 , where (ac) are those of A in [ a , b ] × [ 0 , T ] = [ 1 , 1 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , (df) are those of A in [ a , b ] × [ 0 , T ] = [ 0 , 2 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , respectively.
Figure 3. The elements of the coefficient matrix with γ = 5 , M = 16 , N = 4 , where (ac) are those of A in [ a , b ] × [ 0 , T ] = [ 1 , 1 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , (df) are those of A in [ a , b ] × [ 0 , T ] = [ 0 , 2 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , respectively.
Symmetry 15 02144 g003
Figure 4. The elements of the coefficient matrix with γ = 8 , M = 16 , N = 4 , where (ac) are those of A in [ a , b ] × [ 0 , T ] = [ 1 , 1 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , (df) are those of A in [ a , b ] × [ 0 , T ] = [ 0 , 2 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , respectively.
Figure 4. The elements of the coefficient matrix with γ = 8 , M = 16 , N = 4 , where (ac) are those of A in [ a , b ] × [ 0 , T ] = [ 1 , 1 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , (df) are those of A in [ a , b ] × [ 0 , T ] = [ 0 , 2 ] × [ 0 , 1 ] , and α = 1.2 , β = 0.8 , α = 1.5 , β = 0.5 , α = 1.8 , β = 0.2 , respectively.
Symmetry 15 02144 g004
Figure 5. Approximation error of M L to A with variant α , β and N in Example 1.
Figure 5. Approximation error of M L to A with variant α , β and N in Example 1.
Symmetry 15 02144 g005
Figure 6. Approximation error of M L to A with variant α , β and N in Example 2.
Figure 6. Approximation error of M L to A with variant α , β and N in Example 2.
Symmetry 15 02144 g006
Figure 7. Spectral distribution of the coefficient matrices, where (a) is of A with α = 1.2 , β = 0.8 , M = 2 4 , N = 2 5 in Example 1, and (bf) is of M L 1 A with L = 1 , 2 , 5 , 8 , 10 , respectively.
Figure 7. Spectral distribution of the coefficient matrices, where (a) is of A with α = 1.2 , β = 0.8 , M = 2 4 , N = 2 5 in Example 1, and (bf) is of M L 1 A with L = 1 , 2 , 5 , 8 , 10 , respectively.
Symmetry 15 02144 g007
Figure 8. Spectral distribution of the coefficient matrices, where (a) is of A with α = 1.8 , β = 0.2 , M = 2 4 , N = 2 5 in Example 2, and (bf) is of M L 1 A with L = 1 , 2 , 5 , 8 , 10 , respectively.
Figure 8. Spectral distribution of the coefficient matrices, where (a) is of A with α = 1.8 , β = 0.2 , M = 2 4 , N = 2 5 in Example 2, and (bf) is of M L 1 A with L = 1 , 2 , 5 , 8 , 10 , respectively.
Symmetry 15 02144 g008
Figure 9. The number of iterations for PGMRES in Example 1 with M = 2 4 , and L = 0 represents GMRES without the preconditioner.
Figure 9. The number of iterations for PGMRES in Example 1 with M = 2 4 , and L = 0 represents GMRES without the preconditioner.
Symmetry 15 02144 g009
Figure 10. Solutions for Equation (8), where (a) is for α = 1.8 , β = 0.2 with M = 2 5 , N = 2 6 , (b,c) are for α = 1.8 , β = 0.2 with M = 2 4 , N = 2 5 , (d) is for α = 1.8 , β = 0.8 with M = 2 5 , N = 2 6 , and (e,f) are for α = 1.8 , β = 0.8 with M = 2 4 , N = 2 5 .
Figure 10. Solutions for Equation (8), where (a) is for α = 1.8 , β = 0.2 with M = 2 5 , N = 2 6 , (b,c) are for α = 1.8 , β = 0.2 with M = 2 4 , N = 2 5 , (d) is for α = 1.8 , β = 0.8 with M = 2 5 , N = 2 6 , and (e,f) are for α = 1.8 , β = 0.8 with M = 2 4 , N = 2 5 .
Symmetry 15 02144 g010
Figure 11. The number of iterations for PGMRES in Example 2 with M = 2 4 , and L = 0 represents GMRES without the preconditioner.
Figure 11. The number of iterations for PGMRES in Example 2 with M = 2 4 , and L = 0 represents GMRES without the preconditioner.
Symmetry 15 02144 g011
Figure 12. Solutions for Equation (9) with α = 1.8 , β = 0.2 , M = 2 4 , where N is taken to be 2 7 and 2 5 in (ac), respectively.
Figure 12. Solutions for Equation (9) with α = 1.8 , β = 0.2 , M = 2 4 , where N is taken to be 2 7 and 2 5 in (ac), respectively.
Symmetry 15 02144 g012
Table 1. Test results with different methods for Example 1, where M = 2 4 , γ = 1.8 .
Table 1. Test results with different methods for Example 1, where M = 2 4 , γ = 1.8 .
TSPGMRES (L = 0)PGMRES (L = 1)PGMRES (L = 2)
( α β )NTimeItsTimeCondItsTimeCondItsTime
(1.2, 0.2) 2 5 0.04671180.0260 8.0223 × 10 1 120.0624 8.0223 × 10 1 120.0684
2 6 0.13261291.1481 7.9859 × 10 1 120.1872 7.9859 × 10 1 120.2004
2 7 1.287114711.4620 7.9805 × 10 1 122.0208 7.9805 × 10 1 122.0796
(1.2, 0.8) 2 5 0.0457 5.6772 × 10 16 460.2397 5.6772 × 10 16 460.2623
2 6 0.1328 5.6676 × 10 16 590.9206 5.6676 × 10 16 590.9852
2 7 1.2962 5.6694 × 10 16 508.4211 5.6694 × 10 16 508.6656
(1.5, 0.5) 2 5 0.04712420.4841 3.9448 × 10 12 440.2289 3.9448 × 10 12 440.2508
2 6 0.15042842.5277 3.9432 × 10 12 440.6865 3.9432 × 10 12 440.7349
2 7 1.291333418.7640 3.9429 × 10 12 447.4096 3.9429 × 10 12 447.6252
(1.8, 0.2) 2 5 0.05002500.5007 1.4506 × 10 11 260.1301 1.4506 × 10 11 260.1483
2 6 0.13553372.9993 1.4676 × 10 11 240.3745 1.4676 × 10 11 240.4018
2 7 1.289945221.9922 1.4720 × 10 11 233.8733 1.4720 × 10 11 233.9859
(1.8, 0.8) 2 5 0.0496 4.2228 × 10 17 410.2132 4.2228 × 10 17 410.2338
2 6 0.1311 4.2250 × 10 17 410.6397 4.2250 × 10 17 410.6847
2 7 1.2867 4.2255 × 10 17 406.7361 4.2255 × 10 17 406.9324
PGMRES ( L = 5)PGMRES ( L = 8)PGMRES ( L = 10)
( α β ) N Cond Its Time Cond Its Time Cond Its Time
(1.2, 0.2) 2 5 1.3838 × 10 1 70.04412.226640.03641.330740.0484
2 6 1.3787 × 10 1 70.1253 2.2244 40.1024 1.3304 30.1113
2 7 1.3779 × 10 1 71.2747 2.2243 40.9460 1.3304 31.0827
(1.2, 0.8) 2 5 1.5818 × 10 13 70.0441 3.4837 × 10 8 50.0459 1.7446 × 10 3 50.0484
2 6 1.5824 × 10 13 70.1253 3.5053 × 10 8 50.1281 1.7210 × 10 3 40.1485
2 7 1.5838 × 10 13 71.2745 3.5135 × 10 8 61.4013 1.7159 × 10 3 41.4410
(1.5,0.5) 2 5 1.9160 × 10 7 70.0440 2.2722 40.0365 1.0929 40.0483
2 6 1.9241 × 10 7 70.1252 2.2805 40.1026 1.0929 40.1486
2 7 1.9262 × 10 7 71.2746 2.2826 40.9461 1.0929 41.4410
(1.8, 0.2) 2 5 1.4985 × 10 3 70.0442 1.4292 40.0365 1.0875 40.0485
2 6 1.5065 × 10 3 70.1255 1.4298 40.1025 1.0876 40.1486
2 7 1.5086 × 10 3 71.2745 1.4299 40.9461 1.0876 41.4411
(1.8, 0.8) 2 5 2.8177 × 10 14 60.0378 5.0197 × 10 10 40.0366 1.9088 × 10 7 40.0485
2 6 2.8207 × 10 14 60.1074 5.0249 × 10 10 40.1026 1.9117 × 10 7 40.1485
2 7 2.8347 × 10 14 61.0990 5.0262 × 10 10 40.9462 1.9125 × 10 7 31.0873
Table 2. Test results with different methods for Example 1, where N = 2 5 , γ = 5 .
Table 2. Test results with different methods for Example 1, where N = 2 5 , γ = 5 .
TSPGMRES (L = 0)PGMRES (L = 1)PGMRES (L = 2)
( α β )MTimeItsTimeCondItsTimeCondItsTime
(1.2, 0.2) 2 3 0.00611110.0777 6.2833 × 10 1 70.0063 6.2833 × 10 1 70.0091
2 4 0.03212190.4380 2.6591 × 10 2 110.0572 2.6591 × 10 2 110.0637
2 5 0.18263933.5370 2.2167 × 10 6 160.2512 2.2167 × 10 6 160.2703
(1.2, 0.8) 2 3 0.00733250.2279 4.9657 60.0054 4.9657 60.0079
2 4 0.03277201.9477 2.0546 × 10 5 90.0466 2.0546 × 10 5 90.0516
2 5 0.1831 1.0076 × 10 16 661.0363 1.0076 × 10 16 661.1201
(1.5, 0.5) 2 3 0.00752160.1520 6.5755 × 10 2 60.0057 6.5755 × 10 2 60.0078
2 4 0.03494170.8970 7.5937 × 10 3 110.0573 7.5937 × 10 3 110.0639
2 5 0.18589589.4513 1.2785 × 10 12 190.2984 1.2785 × 10 12 190.3231
(1.8, 0.2) 2 3 0.00561230.0867 2.3394 50.0047 2.3394 50.0056
2 4 0.03232430.4986 2.0477 × 10 6 110.0573 2.0477 × 10 6 110.0636
2 5 0.1722 1.4489 × 10 13 661.0371 1.4489 × 10 13 661.1206
(1.8, 0.8) 2 3 0.00702600.1822 1.8289 × 10 1 50.0045 1.8289 × 10 1 50.0059
2 4 0.03285421.3312 1.7490 × 10 4 90.0467 1.7490 × 10 4 90.0519
2 5 0.1744 1.3829 × 10 12 140.2199 1.3829 × 10 12 140.2376
PGMRES ( L = 3)PGMRES ( L = 5)PGMRES ( L = 8)
( α β ) N Cond Its Time Cond Its Time Cond Its Time
(1.2, 0.2) 2 3 6.838750.00711.124320.00371.000010.0059
2 4 9.2652 × 10 1 80.0480 9.1453 50.0322 1.3550 20.0330
2 5 3.3225 × 10 5 120.2112 9.9571 × 10 3 90.1647 1.3125 × 10 1 70.1813
(1.2, 0.8) 2 3 1.4280 50.0073 1.0102 30.0059 1.0000 10.0061
2 4 2.6038 × 10 4 70.0423 5.9225 × 10 2 50.0325 2.5358 30.0376
2 5 2.5282 × 10 15 220.3876 2.3686 × 10 14 90.1649 7.9200 × 10 12 60.1659
(1.5, 0.5) 2 3 5.1720 × 10 1 40.0057 1.5032 30.0056 1.0000 10.0063
2 4 8.8596 × 10 2 70.0425 1.4193 × 10 1 50.0325 1.0610 30.0379
2 5 4.1838 × 10 11 130.2289 5.7728 × 10 10 90.1646 2.3331 × 10 9 60.1657
(1.8, 0.2) 2 3 1.1211 40.0059 1.0033 20.0039 1.0000 10.0060
2 4 2.3756 × 10 5 80.0483 3.2439 × 10 3 50.0322 1.8113 30.0377
2 5 4.0994 × 10 12 330.5809 7.3077 × 10 11 90.1647 3.0587 × 10 10 70.1816
(1.8, 0.8) 2 3 2.5431 40.0059 1.0492 30.0057 1.0000 10.0063
2 4 2.0015 × 10 3 60.0362 3.8250 × 10 1 50.0323 1.1927 30.0377
2 5 4.2365 × 10 11 110.1941 4.7639 × 10 10 70.1281 2.2020 × 10 9 60.1555
Table 3. Test results with different methods for Example 2, where M = 2 4 , γ = 1.8 .
Table 3. Test results with different methods for Example 2, where M = 2 4 , γ = 1.8 .
TS PGMRES (L = 0)PGMRES (L = 1)PGMRES (L = 2)
( α β )NTimeItsTimeCondItsTimeCondItsTime
(1.2, 0.2) 2 5 0.0451 3.2603 × 10 20 29 0.1508 3.2603 × 10 20 290.1656
2 6 0.1136 3.0657 × 10 20 200.3121 3.0657 × 10 20 200.3341
2 7 1.1024 3.0489 × 10 20 305.0520 3.0489 × 10 20 305.1990
(1.2, 0.8) 2 5 0.0390 4.4239 × 10 17 13 0.0679 4.4239 × 10 17 130.0741
2 6 0.1137 4.5075 × 10 17 13 0.2029 4.5075 × 10 17 130.2173
2 7 1.1023929 25.6340 4.5332 × 10 17 13 2.1893 4.5332 × 10 17 132.2529
(1.5, 0.5) 2 5 0.03923290.6583 1.5184 × 10 15 13 0.0677 1.5184 × 10 15 130.0743
2 6 0.09603863.4356 1.4644 × 10 15 12 0.1875 1.4644 × 10 15 120.2004
2 7 0.9211451 21.8463 1.4507 × 10 15 12 2.0209 1.4507 × 10 15 122.0799
(1.8, 0.2) 2 5 0.02631720.3441 3.4310 0.0468 3.4310 90.0513
2 6 0.06012221.9758 3.4307 0.1249 3.4307 80.1336
2 7 0.5567295 17.0707 3.4306 1.3473 3.4306 81.3865
(1.8, 0.8) 2 5 0.0340 2.7782 × 10 17 110.0574 2.7782 × 10 17 110.0627
2 6 0.07785915.2599 2.7806 × 10 17 110.1717 2.7806 × 10 17 110.1838
2 7 0.9292 2.7822 × 10 17 111.8526 2.7822 × 10 17 111.9663
PGMRES ( L = 5)PGMRES ( L = 8)PGMRES ( L = 10)
( α β ) N Cond Its Time Cond Its Time Cond Its Time
(1.2, 0.2) 2 5 7.3722 × 10 17 7 0.0442 7.6596 × 10 13 40.0367 1.7423 × 10 10 30.0363
2 6 5.8231 × 10 17 60.1074 7.4080 × 10 13 30.0769 1.7221 × 10 10 30.1113
2 7 1.9544 × 10 17 61.0927 7.3371 × 10 13 30.7006 1.7207 × 10 10 31.0801
(1.2, 0.8) 2 5 4.1243 × 10 14 60.0379 1.4035 × 10 11 50.0455 1.3875 × 10 8 40.0485
2 6 4.2099 × 10 14 60.1076 1.4368 × 10 11 40.1024 1.4261 × 10 8 40.1486
2 7 4.2358 × 10 14 61.0927 1.4468 × 10 11 20.4716 1.4374 × 10 8 31.0804
(1.5, 0.5) 2 5 3.3323 × 10 10 60.0381 3.9761 × 10 1 40.0367 2.1642 30.0365
2 6 3.2233 × 10 10 50.0896 4.0209 × 10 1 40.1024 2.1625 30.1113
2 7 3.1964 × 10 10 50.9105 4.0327 × 10 1 40.9342 2.1621 20.7203
(1.8, 0.2) 2 5 1.6948 40.0253 1.2017 30.0274 1.0864 30.0365
2 6 1.6948 30.0538 1.2016 20.0521 1.0864 20.0742
2 7 1.6947 30.5464 1.2016 20.4717 1.0864 20.7204
(1.8, 0.8) 2 5 1.3425 × 10 14 50.0317 1.1693 × 10 10 40.0369 1.3003 × 10 6 30.0363
2 6 1.3446 × 10 14 40.0716 1.1716 × 10 10 30.0767 1.3038 × 10 6 20.0742
2 7 1.3452 × 10 14 50.9102 1.1722 × 10 10 20.4716 1.3048 × 10 6 20.7206
Table 4. Test results with different methods for Example 2, where N = 2 5 , γ = 5 .
Table 4. Test results with different methods for Example 2, where N = 2 5 , γ = 5 .
TS PGMRES (L = 0)PGMRES (L = 1)PGMRES (L = 2)
( α β )MTimeItsTimeCondItsTimeCondItsTime
(1.2, 0.2) 2 3 0.00731670.1336 1.5765 × 10 1 60.0061 1.5765 × 10 1 60.0090
2 4 0.03183010.9280 1.8061 × 10 6 100.0559 1.8061 × 10 6 100.0623
2 5 0.18186616.1404 2.6876 × 10 14 180.2376 2.6876 × 10 14 180.3130
(1.2, 1.8) 2 3 0.00793930.3157 6.2765 × 10 1 60.0059 6.2765 × 10 1 60.0089
2 4 0.03318242.0452 8.8437 × 10 4 70.0394 8.8437 × 10 4 70.0434
2 5 0.1809 5.3936 × 10 12 120.1585 5.3936 × 10 12 120.2083
(1.5, 0.5) 2 3 0.00682650.2123 4.9789 × 10 1 60.0061 4.9789 × 10 1 60.0091
2 4 0.03265501.5621 7.2266 × 10 5 100.0561 7.2266 × 10 5 100.0623
2 5 0.1792 9.9120 × 10 12 160.2116 9.9120 × 10 12 160.2776
(1.8, 0.2) 2 3 0.0071320.1059 1.7026 50.00501.7026 50.0075
2 4 0.03112400.5966 9.5716 × 10 1 80.0449 9.5716 × 10 1 80.0498
2 5 0.18014484.1666 5.2133 × 10 5 120.1587 5.2133 × 10 5 120.2086
(1.8, 0.8) 2 3 0.00742920.2336 3.0889 40.00413.0889 40.0060
2 4 0.03296771.7383 4.8210 × 10 6 70.0392 4.8210 × 10 6 70.0437
2 5 0.1797 9.9986 × 10 12 110.1456 9.9986 × 10 12 110.1916
PGMRES ( L = 3)PGMRES ( L = 5)PGMRES ( L = 8)
( α β ) N Cond Its Time Cond Its Time Cond Its Time
(1.2, 0.2) 2 3 1.540440.00811.006330.00691.000010.0071
2 4 3.0210 × 10 5 80.0552 8.8595 × 10 3 40.0300 1.1853 × 10 1 30.0279
2 5 1.9206 × 10 14 120.2196 4.4501 × 10 13 80.1536 3.2419 × 10 12 60.1590
(1.2,1.8) 2 3 4.5616 40.0083 1.0583 30.0067 1.0000 10.0073
2 4 6.9549 × 10 3 60.0414 2.1070 × 10 2 40.0304 2.4209 20.0213
2 5 1.6767 × 10 12 90.1649 1.9169 × 10 11 60.1152 9.1247 × 10 9 50.1325
(1.5, 0.5) 2 3 1.8809 40.0081 1.0168 20.0047 1.0000 10.0069
2 4 1.5682 × 10 5 60.0417 6.6103 × 10 3 40.0301 3.1226 × 10 1 30.0281
2 5 3.4526 × 10 12 110.2013 4.9716 × 10 11 80.1539 2.1660 × 10 10 50.1327
(1.8, 0.2) 2 3 1.1961 40.0085 1.0155 20.0051 1.0000 10.0067
2 4 3.9844 50.0347 1.1854 40.0299 1.0268 20.0213
2 5 6.9959 × 10 4 90.1646 1.5038 × 10 3 60.1150 2.2247 30.0795
(1.8, 0.8) 2 3 1.2631 30.0064 1.0061 20.0049 1.0000 10.0071
2 4 5.5338 × 10 5 50.0349 1.8368 × 10 4 30.0226 7.7079 × 10 1 20.0216
2 5 2.9805 × 10 12 80.1464 3.2775 × 10 11 50.0960 1.4581 × 10 10 30.0795
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, M.; Zhang, S. A Preconditioner for Galerkin–Legendre Spectral All-at-Once System from Time-Space Fractional Diffusion Equation. Symmetry 2023, 15, 2144. https://doi.org/10.3390/sym15122144

AMA Style

Wang M, Zhang S. A Preconditioner for Galerkin–Legendre Spectral All-at-Once System from Time-Space Fractional Diffusion Equation. Symmetry. 2023; 15(12):2144. https://doi.org/10.3390/sym15122144

Chicago/Turabian Style

Wang, Meijuan, and Shugong Zhang. 2023. "A Preconditioner for Galerkin–Legendre Spectral All-at-Once System from Time-Space Fractional Diffusion Equation" Symmetry 15, no. 12: 2144. https://doi.org/10.3390/sym15122144

APA Style

Wang, M., & Zhang, S. (2023). A Preconditioner for Galerkin–Legendre Spectral All-at-Once System from Time-Space Fractional Diffusion Equation. Symmetry, 15(12), 2144. https://doi.org/10.3390/sym15122144

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop