EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

Enriched Spectral Methods and Applications to Problems with Weakly Singular Solutions

Journal of Scientific Computing (2018) 77:1468–1489 https://doi.org/10.1007/s10915-018-0862-z Enriched Spectral Methods and Applications to Problems with Weakly Singular Solutions Sheng Chen 1,2 · Jie Shen 3,4 Received: 4 February 2018 / Revised: 17 September 2018 / Accepted: 11 October 2018 / Published online: 30 October 2018 © Springer Science+Business Media, LLC, part of Springer Nature 2018 Abstract Usual spectral methods are very effective for problems with smooth solutions, but their accuracy will be severely limited if solution of the underlying problems exhibits singular behavior. We develop in this paper enriched spectral-Galerkin methods (ESG) to deal with a class of problems for which the form of leading singular solutions can be determined. Several strategies are developed to overcome the ill conditioning due to the addition of singular functions as basis functions, and to efficiently solve the approximate solution in the enriched space. We validate ESG by solving a variety of elliptic problems with weakly singular solutions. Keywords Weakly singular solution · Spectral-Galerkin method · Enriched space · Jacobi polynomials · Error estimate Mathematics Subject Classification 65N35 · 41A10 · 41A30 · 41A99 Dedicated to Bernardo Cockburn on the occasion of his 60th birthday. Sheng Chen is partially supported by the Foundation of Jiangsu Normal University (Grant No. 17XLR013), the Natural Science Foundation of the Jiangsu Higher Education Institutions of China (Grant No. BK20181002), the National Natural Science Foundation for the Y outh of China (Grant No. 11801235) and the Postdoctoral Science Foundation of China (Grant No. BX20180032). Jie Shen is partially supported by NSF Grants DMS-1620262, DMS-1720442 and AFOSR Grant FA9550-16-1-0102. B Jie Shen shen7@purdue.edu 1 School of Mathematics and Statistics, Jiangsu Normal University, Xuzhou 221116, People’s Republic of China 2 Beijing Computational Science Research Center, Beijing 100193, People’s Republic of China 3 Department of Mathematics, Purdue University, West Lafayette, IN 47907-1957, USA 4 School of Mathematical Sciences and Fujian Provincial Key Laboratory on Mathematical Modeling and High Performance Scientific Computing, Xiamen University, Xiamen 361005, Fujian, People’s Republic of China 123 Journal of Scientific Computing (2018) 77:1468–1489 1469 1 Introduction Spectral methods are capable of providing highly accurate solutions to smooth problems with significantly less unknowns than using a finite-element or finite difference methods [7,9,16,34]. However, solutions to many problems of interest exhibit singular behaviors, such as those caused by domain corners or points where boundary condition changes type or fractional derivatives. For these problems, usual spectral methods based on orthogonal polynomials/functions does not yield satisfactory convergence rate. Within the finite element framework, many different methods are developed to deal with problems with singular solutions. They can be roughly classified into two categories: (i) one is based on local adaptivity [26]; and (ii) the other is the so called singular functions method [37] and its generalized version extended or generalized finite element method (GFEM/XFEM) (cf. [3,14] and the references therein) in which one adds, to the usual local polynomial basis, special shape functions or local singular functions that capture local singular properties of the underlying problem. However, there appears to be no systematical framework in the context of spectral methods available to deal with problems with singular solutions. In [ 31], a spectral-tau method was used to deal with the singularity of the 2-D Stokes equations in a rectangular domain. In [ 2,6,30], the authors subtracted the strongest singular function from the solution to improve the accuracy of spectral methods for Stokes and Navier–Stokes equations. Recently in [ 35], a Müntz spectral method is introduced to deal with a class of problems which admit a singular expansion of the Müntz type. In [11,23,24,39], different kind of generalized Jacobi polynomials/functions are used to deal with singularities in fractional differential equations. In this paper, we shall develop enriched spectral Galerkin methods (ESG) which is in the same spirit of extended or generalized finite element method by adding singular functions to the usual bases. But unlike in GFEM/XFEM, we shall add global singular functions to the existing basis functions. However, there are some essential difficulties that we need to overcome for ESG to work efficiently and accurately. First, the singular functions usually do not satisfy the underlying boundary conditions so a Galerkin approach can not be directly applied. Second, the singular functions are not orthogonal functions, and adding them to the bases leads to very ill conditioned linear system that is (i) difficult to solve, and (ii) its accuracy can be severely affected by the ill conditioning. We shall develop several effective strategies in the next section to deal with these issues. In particular, based on the particular fact that a spectral approximation for the smooth part of the solution will converge very fast, an innovative approach (referred as ESG-II) is proposed to approximately solve the linear system in ESG. The remainder of the paper is organized as follows. In the next section, we develop a general framework for the enriched spectral-Galerkin methods. Two different solvers are proposed: one solves the ESG system using the Schur-complement approach, the other is an approximate solver which is more efficient and less prone to the ill conditioning. Two 1-D applications are considered to validate ESG-I and ESG-II. In Sect. 3, we consider Poisson equations in various contexts. We first identify leading singular solutions, and then apply ESG to obtain accurate solutions. A nonlinear problem is considered as well. In Sect. 4, we study an 1-D fractional differential equation, deriving the form of its singular solutions and then apply ESG to obtain accurate solutions. Some concluding remarks are given in Sect. 5. 123 1470 Journal of Scientific Computing (2018) 77:1468–1489 2 EnrichedSpectral-GalerkinMethods( ESG) To fix the idea, we consider the following weak formulation of an elliptic problem: Given f ∈ X′,fi n du ∈ X such that a(u,v) =< f ,v> , ∀v ∈ X, (2.1) where X is a Hilbert space with norm ∥·∥ X and X′ is its dual space, a(u,v) is a coercive and continuous bilinear form in X × X , i.e., there exist α, β >0 such that α∥u∥2 X ≤ a(u, u), a(u,v) ≤ β∥u∥X ∥v∥X , ∀ u,v ∈ X. (2.2) Let X N := span{φn}N n=1 with φn ∈ X being certain global polynomials/functions such that X N → X . Then, the classical spectral-Galerkin method is to find u N ∈ X N such that a(u N ,v N ) =< f ,v N >, ∀vN ∈ X N . (2.3) If the solution u of the problem ( 2.1) is smooth, then ∥u N − u∥X will rapidly converge to zero. However, in many situations, the solution will not be smooth due to various facts such as corner singularities, non-matching boundary conditions, non-smooth coefficients, so the classical spectral-Galerkin method with usual basis functions will not lead to accurate approximate solution. For many problems with non-smooth solutions due to corner singularities, non-matching boundary conditions or fractional derivatives, it is possible to determine the forms of a few leading singular terms. Assuming that the k first leading singular terms are ψ i , i = 1, 2,..., k, it is then natural to add those singular terms to the approximation space X N , leading to the so called enriched spectral method. While similar ideas have been frequently used in the context of finite elements (cf. [3,14] and the references therein), very few attempts have been made in the context of spectral methods. One difficulty in the practical implemen- tation of enriched spectral method is that the singular functions usually do not satisfy the underlying boundary condition, i.e., they do not belong to the solution space X . To overcome this difficulty the authors of [ 31] used a spectral-tau method where the test functions are simply polynomials while singular functions are included in the trial space. Although this leads to a square linear system, it is not clear whether it is well posed and it leads to a very ill conditioned system that is difficult and expensive to solve. To construct a more efficient and accurate enriched spectral method, we shall pre-process the singular functions {ψ i } as follows: • First, in order to use a spectral-Galerkin approach instead of the spectral-tau method, we modify the singular functions so that they satisfy the underlying homogeneous boundary conditions. We shall explain this process with the following example: b(x)u −∇· (a(x)∇ u) = fx ∈ /Omega1:= (− 1, 1) d; u|∂/Omega1= 0. (2.4) Given a (weakly) singular function ψ ∈ C( ¯/Omega1). – d = 1: we set φ = 1+x 2 ψ( 1) + 1− x 2 ψ(− 1). Setting ˆψ( x) = ψ( x) − φ(x), then the modified singular function satisfies ˆψ(±1) = 0. – d > 1: Let /Sigma1N be the set of spectral collocation points on ∂/Omega1.F o r d = 2, a detailed procedure is given in [ 32] for constructing a simple polynomial φ such that φ|/Sigma1N = ψ|/Sigma1N . Setting ˆψ( x) = ψ( x) − φ(x), then the modified singular function satisfies ˆψ ⏐⏐ /Sigma1N = 0. This procedure can be extended to d ≥ 3. 123 Journal of Scientific Computing (2018) 77:1468–1489 1471 • Second, in order to alleviate the ill conditioning, we use the modified Gram–Schimdt process [ 5] to determine a set of orthogonal functions { ˜ψ j }k j=1 which span the same space as { ˆψ j }k j=1. Therefore, given a set of singular functions, ψi , i = 1, 2,..., k, for the problem ( 2.1), let ˜ψi (i = 1, 2,..., k) be the modified singular functions as described above and denote Sk := span{ ˜ψi }k i=1. We shall then look for approximation in the enriched space X k N := X N ⊕ Sk. (2.5) 2.1 ESG-I. Standard Galerkin Approach The standard Galerkin method applied to the enriched space is: Find uk N ∈ X k N s.t. a(uk N ,v k N ) =< f ,v k N >, ∀vk N ∈ X k N . (2.6) Thanks to (2.2), we have immediately the following error estimate for ( 2.6): ∥u − uk N ∥X ≲ inf v∈X k N ∥u − v∥X . (2.7) Thus, the theoretical convergence rate of u − uk N will improve significantly, as k increases, over that of u − u N , with u N being the solution of ( 2.3). We recall that, in many cases, the linear system associated to ( 2.3) can be efficiently solved by choosing suitable orthogonal basis functions [ 32,34]. However, since Sk and X N are two sets consisting of very different functions and that {ψi } are not orthogonal and often behave similarly away from singularity, the linear system associated with ( 2.6) are very ill conditioned and can not be efficiently solved by direct inversion. Since the linear system for ( 2.3)i n X N can be efficiently solved, and k is usually a very small number, we can solve the linear system for ( 2.6)i n X k N using the Schur-complement approach as follows. Let X N = span{φn : n = 1, 2,..., N}.W ew r i t euk N = ∑N j=1 ˜u j φj + ∑k j=1 ˜s j ˜ψ j . Splitting the unknown into two parts ⃗u = (˜u1 ˜u2 ... ˜u N )T and ⃗s = (˜s1 ˜s2 ... ˜sk)T ,a n d taking vk N = φn, n = 1, 2,..., N and ˜ψi , i = 1, 2,..., k in (2.6), we obtain the following linear system: M⃗U := [ AB CD ][ ⃗u ⃗s ] = [ ⃗f ⃗fs ] , (2.8) where A = (anm )N×N , D = (dij )k×k, anm = a(φm,φn), dij = a( ˜ψ j , ˜ψi ), B = (bni )N×k, C = (cin )k×N , bni = a( ˜ψi ,φn), cin = a(φn, ˜ψi ), ⃗f = ( fn)N×1, ⃗fs = ( f s i )k×1, fn = ( f ,φn), f s i = ( f , ˜ψi ). (2.9) Remark 2.1 The computation of the entries involving singular terms ˜/Psi1i needs special care. Fortunately, many singular terms behave like Jacobi weight(1− x)a(1+x)b, so these integrals can be computed accurately using the corresponding Jacobi–Gauss quadrature formula. For other type of singular functions, e.g. log functions, we can still compute them to required accuracy using a Gauss quadrature with suitably more points than the number of unknowns. ⊓⊔ 123 1472 Journal of Scientific Computing (2018) 77:1468–1489 The above system can be efficiently solved by forming the Schur-complement matrix CA− 1B − D, and then we can obtain ⃗s and ⃗u successively from (CA− 1B − D) ⃗s = CA− 1⃗f − ⃗fs, A⃗u = ⃗f − B⃗s. (2.10) Note that A is the matrix for the classical spectral-Galerkin method in X N , so the system A⃗x = ⃗g (2.11) can usually be solved very efficiently. The formation of the Schur-complement requires solving (2.11) k times. Then we can obtain ⃗s and ⃗u from (2.10) by solving one k × k linear system and one more ( 2.11). Hence, the total cost of this algorithm is essentially (k + 1) solvers of ( 2.11), which is very efficient assuming ( 2.11) can be solved fast. While the above approach is very efficient, and alleviates, to some extent, the ill con- ditioning problem caused by singular functions, the numerical results can still be plagued by ill conditioning as k increases, see the left of Fig. 1, where we observe that the error do not decay monotonically and can deteriorate significantly. This motivates us to propose an alternative approach below. 2.2 ESG-II. A modified Galerkin Approach The standard Galerkin approach above is not restricted to spectral methods, and can be in principle used with other type of approximations. A special feature of the spectral methods is that, for smooth functions, their spectral expansion coefficients will decay exponentially fast. We shall construct a very good approximation of u k N , the solution of ( 2.6), based on this feature. We define a projection operator /Pi1N : X → X N by a(/Pi1N v,w N ) = a(v, wN ), ∀wN ∈ X N . (2.12) Assuming the solution u of ( 2.1) can be written as u = u∗ + ∑k i=1 si ˜ψi ,w h e r eu∗ is the smooth part (compare with the singular terms ˜ψi ), which implies that /Pi1N u∗ = /Pi1N u − k∑ i=1 si /Pi1N ˜ψi . (2.13) Note that one can determine /Pi1N u from a(/Pi1N u,v N ) = a(u,v N ) = ( f ,v N ), ∀vN ∈ X N , (2.14) and /Pi1N ˜ψi from a(/Pi1N ˜ψi ,v N ) = a( ˜ψi ,v N ), ∀vN ∈ X N , i = 1, 2,..., k. (2.15) Now expanding the above in {φj }, the basis functions of X N , i.e., /Pi1N u∗ = N∑ j=1 u∗ j φj; /Pi1N u = N∑ j=1 u jφj ; /Pi1N ˜ψi = N∑ j=1 ψij φj , i = 1, 2,..., k, we find u∗ j = u j − k∑ i=1 siψij , j = 1, 2,..., N. (2.16) 123 Journal of Scientific Computing (2018) 77:1468–1489 1473 Since u∗ is smooth, we know that u∗ j will be very close to zero for j sufficiently large. Hence, we can approximate its last k coefficients by zero, leading to k∑ i=1 ˜siψij = u j , j = N − k + 1, N − k + 2,..., N, (2.17) where ˜si is an approximation of si (i = 1, 2 ..., k). We can obtain {˜si } by solving the above k × k linear system. With {˜si} in hand, we look for a new approximation to uk N , the solution of ( 2.3), in the form of ˜uk N =˜u N + k∑ i=1 ˜si ˜ψi with ˜u N ∈ X N , (2.18) such that a(˜uk N ,v N ) =< f ,v N >, ∀vN ∈ X N , (2.19) which leads to a(˜u N ,v N ) =< f ,v N > − k∑ i=1 ˜si a( ˜ψi ,v N ) = a(/Pi1N u,v N ) − k∑ i=1 ˜si a(/Pi1N ˜ψi ,v N ). Thanks to (2.2), we derive from the above that ˜u N = /Pi1N u − k∑ i=1 ˜si/Pi1N ˜ψi . Finally, we obtain from the above and ( 2.18)t h a t ˜uk N = /Pi1N u + k∑ i=1 ˜si( ˜ψi − /Pi1N ˜ψi). (2.20) To summarize, the following steps are needed for the modified Galerkin approach: • Step 1: Determine /Pi1N u and /Pi1N ˜ψi from (2.14)a n d( 2.15), respectively. • Step 2: Determine {˜si } by solving the k × k linear system in ( 2.17). • Step 3: Obtain the final approximation ˜uk N using (2.20). Hence, the numerical implementation of the modified Galerkin approach is simpler and with less computational efforts than the standard Galerkin approach. Indeed, we do not need to compute ⃗f s , C and D in (2.9). In general the linear system in ( 2.17) is still very ill-conditioned. However, we can now apply an oversampling procedure (see [1, Sec. 6] and references therein) to (2.17) to reduce the effect of ill-conditioning. More precisely, we compute m by k matrix Gmk = (ψij ) with m > k, and determine the coefficients vector Sk =[ ˜s1 ˜s2 ... ˜sk]T by multiplying the generalized inverse matrix (Gϵ mk )† to truncated coefficients vector Um =[ u N− m+1 u N− m+2 ... u N ]T , namely, Sk = (Gϵ mk )†Um where Gϵ mk is obtained by discarding all its singular values of Gmk below a given tolerance ϵ. We report in the right of Fig. 1 the results obtained using this procedure , and observe that the effect of ill-conditioning is significantly reduced to ESG-I. 123 1474 Journal of Scientific Computing (2018) 77:1468–1489 1 1.2 1.4 1.6 1.8 2 log10(N) -10 -9 -8 -7 -6 -5 -4 -3 -2 log10(Error) ESG-I, L2 Error uN-u u1 N-u u2 N-u u3 N -u u4 N -u 1 1.2 1.4 1.6 1.8 2 log10(N) -12 -10 -8 -6 -4 -2 0 log10(Error) ESG-II, L2-norm uN-u u1 N-u u2 N-u u3 N -u u4 N -u Fig. 1 Left: ESG-I, λ= 1, s = 0.78. Right: ESG-II, λ= 1, s = 0.78. In order to demonstrate the difference between the ESG-I and ESG-II, we took (2.30) with λ = 1a n d s = 0.78 as an example and plot in Fig. 1 the convergence rates by ESG-I and ESG-II (with m − k = 10 and ϵ = 10− 10). We observe that both ESG-I and ESG-II lead to improved accuracy over the usual spectral-Galerkin method ( k = 0), but as soon as k > 2, the results by ESG-I exhibit erratic behaviors due to the ill conditioning, but ESG-II still leads to improved results as N increases. As expected, ESG-II leads to algebraic convergence rate which increases as k increases. 2.3 Error Analysis for the Modified Galerkin Approach Theorem 1 Assuming that u = u∗+ k∑ i=1 si ˜ψi is the solution of (2.1), and ˜uk N be the numerical solution of ESG-II in (2.20).T h e n ∥˜uk N − u∥X ≤∥ /Pi1N u∗ − u∗∥X + k∑ i=1 |si −˜si |∥ ˜ψi − /Pi1N ˜ψi ∥X . (2.21) Proof We derive from (2.20)a n du = u∗ + k∑ i=1 si ˜ψi that ˜uk N − /Pi1N u∗ − k∑ i=1 si ˜ψi = /Pi1N u + k∑ i=1 ˜si ( ˜ψi − /Pi1N ˜ψi ) − /Pi1N u∗ − k∑ i=1 si ˜ψi = /Pi1N (u − u∗ − k∑ i=1 si ˜ψi ) + k∑ i=1 (˜si − si )( ˜ψi − /Pi1N ˜ψi ) = k∑ i=1 (˜si − si )( ˜ψi − /Pi1N ˜ψi ). (2.22) On the other hand, ˜uk N − u =˜uk N − u∗ − k∑ i=1 si ˜ψi =˜uk N − /Pi1N u∗ − k∑ i=1 si ˜ψi + /Pi1N u∗ − u∗. (2.23) 123 Journal of Scientific Computing (2018) 77:1468–1489 1475 We then derive from the above two relations that ∥˜uk N − u∥X ≤∥˜uk N − /Pi1N u∗ − k∑ i=1 si ˜ψi ∥X +∥ /Pi1N u∗ − u∗∥X ≤ k∑ i=1 |˜si − si|∥ ˜ψi − /Pi1N ˜ψi∥X +∥ /Pi1N u∗ − u∗∥X . ⊓⊔ Remark 2.2 In the error estimate ( 2.21), the first term is small since u∗ i sa s s u m e dt ob e smooth, while in the second term, ∥ ˜ψi − /Pi1N ˜ψi ∥X (i = 1, 2,..., k) are usually not small since { ˜ψi } are not smooth. However, |˜si − si | (i = 1, 2,..., k) will be small since we can derive from (2.16)a n d( 2.17)t h a t k∑ i=1 (˜si − si )ψij = u∗ j, j = N − k + 1, N − k + 2,..., N, (2.24) and the fact that {u∗ j}N j=N− k+1 converge to zero fast as N increases since u∗ i sa s s u m e dt ob e smooth. ⊓⊔ Below and in subsequently sections, we shall demonstrate the effectiveness of ESG, partic- ularly ESG-II, through several typical examples. In all examples, we shall follow the general procedure below: • Formulate a weak formulation ( 2.1); • Construct an usual spectral-Galerkin method in X N (2.1); • Determine the leading singular functions {ψ j : j = 1, 2,..., k}, apply the modified Gram-Schimdt process, and adjust them to { ˜ψ j : j = 1, 2,..., k} such that relevant homogeneous boundary conditions are satisfied; • Setting Sk = span{ ˜ψ j : j = 1, 2,..., k}, and determine uk N ∈ X N ⊕ Sk from (2.6)u s i n g ESG-I or ESG-II. If not specified otherwise, ESG with the modified Galerkin approach, i.e. ESG-II, is used. 2.4 A 1-D Model Problem We consider { − u′′ + u = f , x ∈ (− 1, 1), u(− 1) = u(1) = 0, (2.25) with a prescribed exact solution u = (1 + x)3/2(1 − x) + (1 + x)2 log ( (1 + x)/2 ) + sin(πx). The related weak formulation is to find u ∈ H 1 0 (I) := {v ∈ H 1(I) : v(±1) = 0} such that a(u,v) := (u′,v ′) + (u,v) = ( f ,v) , ∀v ∈ H 1 0 (I). (2.26) Let PN be the space of polynomials of degree less than or equal to N and X N ={ u ∈ PN : u(±1) = 0}. We shall use Jacobi polynomials to construct basis functions in many of the applications, we provide below some essential formulas (cf. [ 38]). Let α, β > − 1, 123 1476 Journal of Scientific Computing (2018) 77:1468–1489 10 20 30 40 50 60 70 80 N -14 -12 -10 -8 -6 -4 -2 log10(Error) L2-norm uN-u uN 1 -u uN 2 -u 10 20 30 40 50 60 70 80 N -14 -12 -10 -8 -6 -4 -2 log10(Error) H1-norm uN-u uN 1 -u uN 2 -u Fig. 2 Problem (2.25) with u = (1 + x)3/2(1 − x) + (1 + x)2 log ( (1 + x)/2 ) + sin(πx) the classical Jacobi polynomials Jα,β n (x) are orthogonal with respect to the weight function wα,β(x) = (1 − x)α(1 + x)β over I := (− 1, 1), i.e. ∫ I Jα,β n (x)Jα,β m (x)wα,β(x)dx = γα,β n δmn , (2.27) where γα,β n = 2α+β+1/Gamma1(n + α + 1)/Gamma1(n + β + 1) (2n + α + β + 1)(n)!/Gamma1(n + α + β + 1). (2.28) In particular, Ln(x) = J 0,0 n (x) is the Legendre polynomial. It satisfies the following three- term recurrence relation: { Jα,β 0 (x) = 1, Jα,β 1 (x) = 1 2 (α + β + 2)x + 1 2 (α − β), Jα,β n+1(x) = (Aα,β n x − Bα,β n )Jα,β n (x) − Cα,β n Jα,β n− 1(x), n ≥ 1, (2.29) where Aα,β n = (2n + α + β + 1)(2n + α + β + 2) 2(n + 1)(n + α + β + 1) , Bα,β n = (α2 − β2)(2n + α + β + 1) 2(n + 1)(n + α + β + 1)(2n + α + β), Cα,β n = (n + α)(n + β)(2n + α + β + 2) (n + 1)(n + α + β + 1)(2n + α + β). We can then construct a set of suitable basis function forX N using the Jacobi polynomials: φn(x) = (1 − x2)J 1,1 n− 1(x), n = 1,..., N − 1. Obviously, the two singular functions in the exact solution are ψ1(x) = (1 + x)3/2(1 − x), ψ 2(x) = (1 + x)2 log ( (1 + x)/2 ) . We can then apply the ESG to this problem. We plot in Fig. 2 the errors of uk N ,w h e r eu0 N = u N denotes the solution by the classical spectral-Galerkin method in X N . The left figure shows the errors versus N in L2 space, while the right figure shows the errors versus N in H 1 space. Due to the particular form of the exact solution, we achieve exponential convergence with k = 2. 123 Journal of Scientific Computing (2018) 77:1468–1489 1477 2.5 A Singular Sturm–Liouville Problem Consider the following second order Sturm–Liouville problem ⎧ ⎨ ⎩ − u′′ − α y u′ + λ u = 0, y ∈ R+ := (0,∞ ), u(0) = 1, limy→∞ u(y) = 0. (2.30) where λ> 0a n dα = 1 − 2s, s ∈ (0, 1). We note that the related eigenvalue problem plays an important role in the numerical solution of fractional Laplacian equations by using the Caffarelli–Silvestre extension [8,27]. Setting v = u − e − y/2, we can rewrite ( 2.30)a s ⎧ ⎨ ⎩ −(yαv′)′ + yα λv = f , y ∈ R+ := (0,∞ ), v(0) = 0, limy→∞ v( y) = 0, (2.31) where f (y) = yαe− y/2( 1 4 − λ− α 2y ).L e t X ={ v : ∫ ∞ 0 yα[(v′)2 + v2]dy < ∞} . Thus, a weak formulation for the above is: Find v ∈ X such that a(v, w) := ∫ ∞ 0 yα(v′ w′ + vw )dy = ∫ ∞ 0 f w dy, ∀w ∈ X. (2.32) Let L(α) n (y) be the generalized Laguerre polynomials (cf. [ 34, Chapter 7]), a proper choice for X N is X N := span{L(α) n (y)e− y/2 : n = 0, 1,..., N}. Then, the Laguerre spectral-Galerkin method for ( 2.32)i s :F i n dvN ∈ X N such that a(vN ,w N ) = ∫ ∞ 0 f wN dy, ∀wN ∈ X N . (2.33) Singular Functions Due to the singular coefficient 1 /y in the above solution, its solution is weak singular near y = 0. So we need to first derive its singular expansion. It can be shown [10, Proposition 2.1] that the exact solution is u(y) = ⎧ ⎨ ⎩ e− √ λy, s = 1 2; cs( √ λy)s Ks( √ λy), s ∈ (0, 1)/{ 1 2 }, (2.34) where Ks is the modified Bessel function Ks(z) := s 2 I− s(z) − Is(z) sin(sπ) with Is(z) := ∞∑ j=0 1 j!/Gamma1(j + 1 + α) ( z 2 )2 j+s. More precisely, for s ∈ (0, 1)/{ 1 2 }, we have u(y) = 21− s /Gamma1(s)( √ λy)s Ks( √ λy) = s21− s 2/Gamma1(s)sin(sπ) ∞∑ j=0 ( √ λy)2 j − ( √ λy)2 j+2s 22 j+s j!/Gamma1(j + 2 − 2s) , which consists of a smooth part and a non-smooth part due to the factor y2s . It can be deduced from the above explicit expression that lim y→ 0 yαψ′(y) =− dsλs, ds := 21− 2s /Gamma1(1 − s) /Gamma1(s) . 123 1478 Journal of Scientific Computing (2018) 77:1468–1489 Then by the relation ∫ /Lambda1 yα[− u′′(y) − α y u′(y)]v( y)dy = ∫ /Lambda1 − ( yαu′(y) )′v( y)dy = ( yαu′,v ′) − dsλsv(0), A weak formulation for ( 2.31)i s :fi n du ∈ H 1 yα(R+) := {w ∈ L2 yα(R+) : w′ ∈ L2 yα(R+)} ( yαu′,v ′) + λ ( yαu,v ) = dsλsv(0), v ∈ H 1 yα(R+). However, we can not choose directlyψi(y) = y2(i− 1)+2s since it behaves badly asy →∞ . As in X N , it appears that we should choose ψi(y) = y2(i− 1)+2s e− y/2, but numerical results using these singular functions do not converge well as expected. The main reason is that, near y = 0, we have e − y/2 = 1 − y/2 + y2/8 +··· so near y = 0, ψ1(y) = y2s e− y/2 = y2s − 1/2y1+2s +··· includes the term y1+2s which is not in the singular part of the solution, nor in any other ψi (y) with i ≥ 2. Therefore, we should set ψi (y) = yi− 1+2s e− y/2 so that the unwanted terms like y1+2s can be eliminated with proper linear combination of {ψi (y)}. Denote X k N = X N ⊕{ ψi : i = 1, 2,..., k}. Then, we can apply the ESG to (2.5). The numerical results for this example are reported in Fig. 1. 3 PoissonEquationswithWeaklySingularSolutions We consider in this section several benchmark Poisson equations for which the solution includes weakly singular terms. We shall first determine forms of the first few singular terms and then apply the ESG to solve them. 3.1 Poisson Equation in a Rectangular Domain Consider { −/Delta1u = f ,( x, y) ∈ /Omega1:= (− 1, 1)2, u|∂/Omega1= 0. (3.1) Due to the corners in the domain, the solution will include weakly singular terms. The weak formulation for ( 3.1)i s :fi n du ∈ H 1 0 (/Omega1)such that (∇ u,∇v) = ( f ,v) , v ∈ H 1 0 (/Omega1). (3.2) Let X N ={ v ∈ PN × PN : v|∂/Omega1= 0}. Then the usual spectral-Galerkin method is: Find u N ∈ X N such that (∇ u N ,∇v) = ( f ,v) , v ∈ X N . (3.3) Let φk(z) = (1 − z2)J 1,1 k− 1(z),t h e nX N = span{φk(x)φj (y) : 1 ≤ k, j ≤ N − 1}.U s i n g this basis function, the linear system associated with ( 3.3) can be efficiently solved by using the matrix diagonalization method [ 32]. We plot in Fig. 3 the error u N − u with N = 12 and f = 1. Since no exact solution is available, we take u N with N = 100 as the reference 123 Journal of Scientific Computing (2018) 77:1468–1489 1479 Fig. 3 Error by taking N = 12 and f ≡ 1 solution. We observe large errors near the four corners due to the corner singularity of the solution. Singular Functions The nature of singularity for the Poisson equation is well known [ 17]. For the readers’ convenience, we provide a derivation here which is suitable for our purpose. We start with the special case f ≡ 1. In this case, the problem ( 3.1) is equivalent to { −/Delta1w= 0,( x, y) ∈ /Omega1, w| ∂/Omega1= 1 2 x2, (3.4) where w = u+ 1 2 x2. We now follow the procedure in [22]. Near the point(1, 1), the boundary condition can be rewritten by polar coordinate as w(1, y) = 1 2,w ( x, 1) = 1 2 x2 = 1 2 − r − 1 2 r 2 (3.5) where r(x, y) = √ (1 − x)2 + (1 − y)2,θ ( x, y) = arctan( 1 − x 1 − y ). We can then derive from [ 22, (2.36)] that the singular term takes the form s(x, y) = 1 2 − 1 π r 2( ln r sin(2θ)+ θcos(2θ) ) − r cos(θ)+ 1 2 r 2 cos(2θ). (3.6) Similarly, we can deduce that the singular term near the points (±1,±1) are s(±x,±y), respectively. 123 1480 Journal of Scientific Computing (2018) 77:1468–1489 10 20 30 40 50 60 70 80 90 N -10 -9 -8 -7 -6 -5 -4 log10(Error) L2 Error SG 4 6 8 10 12 14 16 N -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 log10(Error) L2 Error ESG-I ESG-II Fig. 4 Left: SG, right: ESG For a general function f (x, y) ∈ C( ¯/Omega1), one can show with a similar procedure that the singular term near (1, 1) is f (1, 1)s(x, y). Hence, summing up the four singular functions at the four corners, we obtain the singular function for the problem ( 3.1) S(x, y) = f (1, 1)s(x, y)+ f (− 1, 1)s(− x, y)+ f (1,− 1)s(x,− y)+ f (− 1,− 1)s(− x,− y). (3.7) One readily verified that /Delta1S = 0. Note that the singular term S(x, y) does not satisfy the homogeneous Dirichlet boundary condition, but we can follow the procedure in [32, subsection 4.2] to homogenize the boundary boundary condition, i.e., we can find φN ∈ PN × PN such that φN (x, y)|/Sigma1N = S(x, y)|/Sigma1N where /Sigma1N is the spectral-collocation points at ∂/Omega1.W es e t ψ( x, y) = S(x, y) − φN (x, y) and X 1 N = X N ⊕{ ψ}. With the above preparations, we can then apply the ESG to ( 3.2). As an example, we take f (x, y) = ex+y and compute approximate solutions by using the usual spectral-Galerkin (SG) method, ESG-I and ESG-II. Since no exact solution is available, we take the result of ESG-I with N = 100 as the reference solution. In Fig. 4,w ep l o tt h e convergence rates of SG on the left, and that of ESG-I and ESG-II on the right. We observe that the errors for the SG converges algebraically due to the corner singularity, but both ESG-I and ESG-II converge exponentially since the singular function is built in the approximation space. ESG-I leads to slightly better accuracy as ESG-II is in fact an approximation of ESG-I. 3.2 Poisson Equation on a Semicircle Domain We consider the Poisson equation with mixed Dirichlet–Neumann boundary condition ⎧ ⎨ ⎩ −/Delta1u = f ,( ζ , η )∈ /Omega1⊂ R2, u ⏐⏐ /Gamma1D = 0, ∂u ∂⃗n ⏐⏐ /Gamma1N = 0, (3.8) where /Gamma1D ∪ /Gamma1N = ∂/Omega1. This problem has been considered in many previous work, cf. [21,25,35]. we first derive a weak formulation which is suitable for spectral approximation. Let (r,θ) be the polar coordinates with(ζ, η)= (r cos θ,r sin θ). Then, the problem (3.8) is transformed to − 1 r ∂r (r∂r u) − 1 r 2 ∂2 θu = f ,( r,θ) ∈ (0, 1) × (0,π) , (3.9) 123 Journal of Scientific Computing (2018) 77:1468–1489 1481 ΓNΓD ΓD Cartesian coordinates (ζ,η) ΓD ΓN ΓD ΓD Mapped polar coordinates (x,y) Fig. 5 Original domain in Cartesian coordinates (ζ, η)and mapped domain in polar coordinates (x, y) with the boundary conditions u(0,θ) = u(1,θ) = 0,∂ θu(r, 0) = u(r,π) = 0. (3.10) For the sake of simplicity, we still use u, f and /Omega1to denote the transformed functions and domain. the original domain is transformed onto the mapped domain in polar coordinates, cf. Fig. 5. In order to use Jacobi polynomials which are defined on the interval [− 1, 1],w em a k e another affine mapping x = 2r − 1, y = 2θ/π− 1. (3.11) The original problem ( 3.8) is equivalent to ⎧ ⎨ ⎩ −∂ x((1 + x)∂x u) − 4 π2 1 1 + x ∂2 y u = 1 + x 4 f ,( x, y) ∈ /Omega1= (− 1, 1)2, u(±1, y) = 0,∂ y u(x,− 1) = 0, u(x, 1) = 0. (3.12) The weak formulation for ( 3.12)i s :fi n du ∈ H 1 b (/Omega1)such that a(u,v) = F(v), ∀v ∈ H 1 b (/Omega1). (3.13) where H 1 b (/Omega1):= {u ∈ H 1(/Omega1): u(±1, y) = 0, u(x, 1) = 0} and a(u,v) := ( (1 + x)∂x u,∂xv ) + 4 π2 ( 1 1 + x ∂y u,∂yv ) , F(v) := ( (1 + x) 4 f ,v ) . Next, we describe the spectral-Galerkin method. Let us denote φi(x) = (1 − x2)J 1,1 i (x), ψ j (y) = (1 − y)J 1,0 j (y). (3.14) Then φi(x)ψ j (y) satisfies the boundary conditions in ( 3.12). Let X N = span{φi(x) ψ j (y)}N− 2 i, j=0. The spectral Galerkin method for ( 3.13)i s :fi n du N ∈ X N s.t. a(u N ,v N ) = F(vN ), ∀vN ∈ X N . (3.15) A fast algorithm can be developed as in [ 32] for the above system. 123 1482 Journal of Scientific Computing (2018) 77:1468–1489 Singular functions at the origin. Since the singularity at the two corners of the semicircle is much weaker than that at the origin caused by the mismatch of boundary conditions, we shall concentrate on the latter. It is well known [ 21,25] that the general admissible solution of the Laplace equation i.e. f = 0i n( 3.9), in polar coordinates are u L(r,θ) = rα( a cos(αθ)+ b sin(αθ) ) , where α> 0, a, b are constants. The Neumann boundary condition at /Gamma1N implies that the general solutions of the Laplacian equation can be expanded as uL(r,θ) = ∞∑ n=0 cnrαn cos(αnθ), α n = n + 1 2 (3.16) which automatically satisfies uL(0,θ) = 0,∂ θuL(r, 0) = uL(r,π) = 0. Hence, the solution of Poisson equation ( 3.9) with mixed boundary condition ( 3.10) can be separated into u(r,θ) = uL(r,θ) + u R(r,θ) , where the regular part satisfies the Poisson equation ( 3.9) and with the boundary condition u R(0,θ) = 0, u R(1,θ) =− uL(1,θ) , ∂θu R(r, 0) = u R(r,π) = 0. Therefore, we can use as the singular functions ψn(x, y) := [(1 + x)αn − 2αn− 1(1 + x)] cos ( π 2 αn(1 + y) ) ,α n = n + 1 2, n = 0, 1,... (3.17) which also satisfy the required boundary conditions. Setting Sk := span{ψ0,ψ 1, ..., ψ k− 1}, we can then apply ESG to this problem. As examples, we solve the Poisson equation ( 3.8) with f = sin(πx) sin(πy) and f = 1. Since the exact solution is unknown, we used the result of ESG-II with a large N = 100, k = 2 as the reference solution. Figure 6 shows the convergence rate of SG and ESG-II. We observe that with each additional singular term, the convergence rate is increased by two. This is due to the clustering of the collocation points near boundaries for the spectral method, which can lead to twice the normal convergence rate for problems with corner singularities. This phenomenon is also observed for other numerical examples presented below. For the case of f = 1, adding more singular functions near origin will not improve further as the next leading singular function, after ψ 2(x, y), is the one at the corner (− 1, 0). 3.3 Poisson Equation on a Circular Domain with a Slit We consider ⎧ ⎨ ⎩ −/Delta1u = f , in /Omega1={ (ζ, η): ζ2 + η2 < 1}, u ⏐⏐ /Gamma1D = 0, ∂u ∂⃗n ⏐⏐ /Gamma1N = 0, (3.18) where /Gamma1D ∪ /Gamma1N = ∂/Omega1, cf. the left of Fig. 7. This is a benchmark problem considered in [ 4]. 123 Journal of Scientific Computing (2018) 77:1468–1489 1483 10 20 30 40 50 60 70 80 N -11 -10 -9 -8 -7 -6 -5 -4 -3 log10(Error) L2 Error uN-u Slope=-2 uN 1 -u Slope=-4 uN 2 -u Slope=-6 10 20 30 40 50 60 70 80 N -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 log10(Error) L2 Error uN-u Slope=-2 uN 1 -u Slope=-4 uN 2 -u Slope=-6 Fig. 6 ESG for ( 3.8), left: f = sin(πx) sin(πy). Right: f ≡ 1 Note that while /Omega1is a circle, the solution in polar coordinates is not periodic in the spanwise θ-direction so we can not use a Fourier spectral expansion in the θ-direction. Similarly as in the semi-circle case, with a polar transform (ζ, η)= (r cos θ,r sin θ) followed by an affine mapping x = 2r − 1, y = 1 − θ/π. (3.19) The equation ( 3.18) is trasformed to ⎧ ⎨ ⎩ −∂x((1 + x)∂x u) − 1 π2 1 1 + x ∂2 y u = 1 + x 4 f ,( x, y) ∈ (− 1, 1)2, u(±1, y) = 0,∂ y u(x,− 1) = 0, u(x, 1) = 0. (3.20) Then, the weak formulation and an efficient spectral-Galerkin method can be formulated as in the semi-circle case. Note that the spectral-Galerkin method in [ 33] based on the Fourier expansion in the θ-direction can not be used here due to the fact that the solution to ( 3.18)i s no longer periodic in the θ-direction. Thanks to [4, (4a)], the singular terms about the origin can be expressed as sn = rβn sin(βnθ), β n = 2n − 1 4 , n = 1, 2,.... (3.21) Now we have all the ingredients to apply ESG to ( 3.20). We plot the numerical result with f ≡ 1 by ESG-II in the right of the Fig. 7 where we take the result of ESG-II with N = 150 as the reference solution. 3.4 A Nonlinear Problem As the last example of this section, we consider a nonlinear problem { F(u) := −/Delta1u + u3 − u − f = 0i n /Omega1:= (− 1, 1)2; u|∂/Omega1= 0. (3.22) Using the Newton iterative method [ 36], we are led to solve, at each iteration { −/Delta1w+ (3u2 k − 1)w =− /Delta1uk + (u3 k − uk) − f ,w |∂/Omega1= 0; uk+1 = uk − w. (3.23) 123 1484 Journal of Scientific Computing (2018) 77:1468–1489 ΓD ΓN ΓD N−D boundary conditions 0010907050301 N -9 -8 -7 -6 -5 -4 -3 -2 -1 0 log10(Error) L2 Error uN-u Slope=-1 uN 1 -u Slope=-2 uN 2 -u Slope=-3 uN 3 -u Slope=-4 Fig. 7 Left: circle domain, right: f ≡ 1 10 15 20 25 30 35 40 N -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 log10(Error) L2 Error SG Slope=-6 ESG Slope=-8 10 15 20 25 30 35 40 N -12 -11 -10 -9 -8 -7 -6 -5 -4 log10(Error) L2 Error SG Slope=-6 ESG Slope=-8 Fig. 8 A nonlinear example: Left: f ≡ 1, right: f = ex+y Similar to the Poisson equation on the square domain considered at the beginning of this section, the spectral-Galerkin method for ( 3.23)i st ofi n d wN ∈ X N ={ v ∈ PN × PN : v|∂/Omega1= 0} such that { (∇wN ,∇vN ) + ((3(uk N )2 − 1)w N ,v N ) = (∇ uk N ,∇vN ) + ((uk N )3 − uk N ,v N ) − ( f ,v N ), ∀vN ∈ X N , uk+1 N = uk N − wN . (3.24) It is clear that the solution of the nonlinear problem still exhibits weak singularity at the corners. Due to the homogeneous boundary conditions, the influence of the nonlinear term u 3 to the leading singularity can be neglected so we can still take the singular term ( 3.7)o f the Poisson equation as the leading singular term for the nonlinear term. We plot in Fig. 8 convergence rates by SG and ESG with f = 1a n d f = ex+y , and taking the result of ESG with N = 100 as the reference solution. We observe that in both cases, ESG improves significantly over SG. 123 Journal of Scientific Computing (2018) 77:1468–1489 1485 4 FractionalDifferentialEquation We consider in this section the following fractional differential equation { −− 1Dμ x u + Cu = f ,μ = 2s ∈ (1, 2), u(− 1) = u(1) = 0. (4.1) where C > 0a n d− 1Dμ x is the left Riemann–Liouville fractional derivative of orderμ defined below. For a, b ∈ R and ρ ∈ R+, the left and right fractional integrals are respectively defined as (see e.g., [ 28,29]): a Iρ x v(x) = 1 /Gamma1(ρ) ∫ x a v( y) (x − y)1−ρ dy, x Iρ b v(x) = 1 /Gamma1(ρ) ∫ b x v( y) (y − x)1−ρ dy, x ∈ (a, b). (4.2) Then, the left and right Riemann-Liouville fractional derivatives are defined by a Ds xv(x) = dk dx k {a Ik− s x v(x)}, x Ds bv(x) = (− 1)k dk dx k {x Ik− s b v(x)}, (4.3) where the real number s ∈[ k − 1, k) with k ∈ N. As shown in [ 13,20], for any u,v ∈ X := H s 0 ,w eh a v e (− 1D2s x u,v) = (− 1Ds x u, x Ds 1v). Hence, a weak formulation for ( 4.3)i s :F i n du ∈ X such that a(u,v) := −(− 1Ds x u, x Ds 1v) + C (u,v) = ( f ,v) ∀v ∈ X. Then, the spectral-Galerkin approximation for the above is: Find u N ∈ X N := {u ∈ PN : u(±1) = 0} such that a(u N ,v N ) = ( f ,v N ), v N ∈ X N . (4.4) As before, we choose as basis functions of X N , φn(x) := (1 − x2)J 1,1 n (x), n = 0, 1,.... (4.5) Then, one can verify that (c.f. [ 11, eqs. (2.23)–(2.26) and Lemma 2.5]) − 1Dr x { φn(x) } =− 2(n + 1) /Gamma1(n + 2) /Gamma1(n + 3 − r)(1 + x)1−r J r− 1,1−r n+1 (x), x Dr 1 { φn(x) } = 2(n + 1) /Gamma1(n + 2) /Gamma1(n + 3 − r)(1 − x)1−r J 1−r,r− 1 n+1 (x). (4.6) Hence, one can easily compute the stiffness and mass matrices. 4.1 Singular functions It is well known that the solution of the problem ( 4.1) is usually weakly singular at the left endpoint x =− 1e v e nw h e nf is smooth. We first determine singular solutions associated to this problem. We recall the following formula (cf. [ 12,28,29]): − 1Dβ x (1 + x)α = { /Gamma1(α+1) /Gamma1(α−β+1)(1 + x)α−β,α − β> − 1, 0,β − α = 1, 2,.... (4.7) 123 1486 Journal of Scientific Computing (2018) 77:1468–1489 We shall assume that f (x) has a Taylor expansion near x =− 1, namely: f (x) = ∞∑ i=0 ˆfi(1 + x)i . For fixed i ≥ 0 ,l e tu sfi r s tc o n s i d e r(4.1) with f = (1 + x)i .D u et o( 4.7), it is natural to look for solution of ( 4.1) near x =− 1i nt h ef o r m u(x) = ∞∑ p=0 cp(1 + x)λp , 0 <λ p <λ p+1. (4.8) Plug the above in ( 4.1) with f = (1 + x)i ,w eo b t a i n − c0 /Gamma1(λ0 + 1) /Gamma1(λ0 − μ + 1)(1+ x)λ0−μ − ∞∑ p=0 { cp+1 /Gamma1(λp+1 + 1) /Gamma1(λp+1 − μ + 1)(1 + x)λp+1−μ − Cc p(1 + x)λp } = (1+ x)i . We derive from the above that we must have λ0 − μ = i,λ p+1 − μ = λp, p ≥ 0, which implies λp = i + ( p + 1)μ, p ≥ 0, for all i ≥ 0. Summing up for all i,w efi n dt h a t near x =− 1, u should take the form u(x) = ∞∑ i, j=0 ˆuij (1 + x)i+( j+1)μ. On the other hand, we also derive from ( 4.7)t h a t −− 1Dμ x (1 + x)μ− 1 = 0. Hence, we must add the term (1+ x)μ− 1 to the singular expansion above, leading to the final form u(x) = ∞∑ i, j=0 ˆuij (1 + x)i− 1+( j+1)μ. (4.9) Remark 4.1 Another way to derive the singular expansion for fractional PDEs is to use the so called Mittag-Leffler functions. For example, it can be shown that solution to the following Caputo fractional differential equation C 0 Dν t y(t) + Ky(t) = f (t), y(0) = y0, t > 0,ν ∈ (0, 1), K ∈ R. (4.10) can be expressed as [ 15]( s e ea l s o[12, (7.3)]) y(t) = y0 Eν,1(− Ktν) + ∫ t 0 (t − τ)ν− 1 Eν,ν[− K(t − τ)ν] f (τ)dτ, (4.11) where Eν,1 and Eν,ν are two kinds of specific Mittag-Leffler functions (See [ 18,19,28]). Remark 4.2 Note that, instead of using X N ={ v ∈ PN : v(±1) = 0}, one can also use, as in [ 11], ˜X N = span{−J(− 1,1−μ) k : k = 1,..., N},w h e r e−J(− 1,1−μ) k are the so called generalized Jacobi functions defined in [ 11]( c f .a l s o[39]). It leads exponential convergence if C = 0i n( 4.1) but will not perform well if C ̸= 0 since only the leading singular term (1 + x)μ− 1 is present in the basis functions {−J(− 1,1−μ) k }. 123 Journal of Scientific Computing (2018) 77:1468–1489 1487 10 20 30 40 50 60 70 100 N -14 -12 -10 -8 -6 -4 -2 log10(Error) L2 Error uN-u Slope=-1 uN 1 -u Slope=-3 uN 2 -u Slope=-5 uN 3 -u Slope=-7 10 20 30 40 50 60 70 100 N -14 -12 -10 -8 -6 -4 -2 0 log10(Error) L2 Error uN-u Slope=-1 uN 1 -u Slope=-3 uN 2 -u Slope=-5 uN 3 -u Slope=-7 Fig. 9 Left: C = 1, μ = 1.3, f = ex sin(x), right: C = 50, μ = 1.3, f = ex sin(x) 10 20 30 40 50 60 70 100 N -16 -14 -12 -10 -8 -6 -4 -2 log10(Error) L2 Error uN-u Slope=-1 uN 1 -u Slope=-3 uN 2 -u Slope=-5 uN 3 -u Slope=-7 10 20 30 40 50 60 70 100 N -14 -12 -10 -8 -6 -4 -2 log10(Error) L2 Error uN-u Slope=-1 uN 1 -u Slope=-3 uN 2 -u Slope=-5 uN 3 -u Slope=-7 Fig. 10 Left: C = 10, μ = 1.7, f = ex , right: C = 10, μ = 1.41, f = ex 4.2 Enriched Spectral-Galerkin Method and Numerical Results We denote the k leading singular terms in ( 4.9)b y {ψrm : m = 1,..., k} with rm = i − 1 + ( j + 1)μ increasing. Setting Sk = span {ψrm : m = 1,..., k}, (4.12) the enriched spectral-Galerkin method for problem ( 4.1)i s :fi n duk N ∈ X k N := X N ⊕ Sk such that a(uk N ,v) = ( f ,v) , ∀v ∈ X k N . (4.13) Since the singular terms are indeed Jacobi weight functions, additional entries in the mass and stiffness matrices related to Sk can be straightforwardly computed by a suitable Jacobi Gauss quadrature formula. We now present several numerical tests to show the efficiency and accuracy of ESG. In Fig. 9, we plot the convergence rate of f = ex sin(x) with C = 1,μ = 1.3a n d C = 50,μ = 1.3 to demonstrate that the method is robust with respect to constant C.W e take the result u3 N , N = 150 as the reference solution, and plot in Fig. 10 for the convergence rate of f = ex with C = 10,μ = 1.7a n dC = 10,μ = 1.41 to show its effectiveness with different μ. 123 1488 Journal of Scientific Computing (2018) 77:1468–1489 5 Conclusion We developed in this paper enriched spectral-Galerkin methods (ESG) for solving PDEs with weakly singular solutions. While the general idea of ESG is very simple—adding leading singular functions to the usual spectral approximation space, one has to overcome several obstacles to efficiently and accurately implement this in practical situations. Successful imple- mentations of ESG rely on three ingredients: (i) determine a few leading singular terms for the underlying problem; (ii) homogenize the boundary conditions for the singular functions and use the modified Gram–Schimdt process to orthogonalize them; and most importantly (iii) use ESG-II, which is based on a special property of the spectral methods, to approximate the solution in the enriched spectral space. The computational cost of ESG-II is essentially k + 1 solvers, with k being the number of used leading singular terms, of the usual spectral-Galerkin method for which fast solvers are in general available. Theoretical estimates indicate that the accuracy of ESG can be as high as needed by increasing k, however, ill conditioning of the enriched spaces often prevents the use of a large number of singular functions. It is found that if we only add one or two singular functions, ESG-I and ESG-II lead to similar results. But if more than two singular functions are used, ESG-I often exhibits erratic behavior while ESG-II is much more stable. We applied ESG to a variety of problems with weakly singular solutions, and showed that ESG is capable of producing significantly improved results over the usual spectral-Galerkin methods with adding only a few singular functions. Compared with other approaches often used in the context of spectral methods, such as singularity subtraction or Müntz method, ESG is easier to implement and more accurate than singularity subtraction, while it applies to a large class of problems than Müntz method. References 1. Adcock, B., Huybrechs, D.: Frames and numerical approximation (2016). arXiv:1612.04464 [math.NA] 2. Auteri, F., Parolini, N., Quartapelle, L.: Numerical investigation on the stability of singular driven cavity flow. J. Comput. Phys. 183(1), 1–25 (2002) 3. Babuška, I., Banerjee, U.: Stable generalized finite element method (SGFEM). Comput. Method Appl. M. 201, 91–111 (2012) 4. Babuška, I., Miller, A.: The post–processing approach in the finite element method–Part 2: The calculation of stress intensity factors. Int. J. Numer. Meth. Eng. 20(6), 1111–1129 (1984) 5. Björck, A., Paige, C.C.: Loss and recapture of orthogonality in the modified gram-schmidt algorithm. SIAM J. Matrix Anal. Appl. 13(1), 176–190 (1992) 6. Botella, O., Peyret, R.: Computing singular solutions of the naviercstokes equations with the chebyshev collocation method. Int. J. Numer. Methods Fluids 36, 125 (2001) 7. Boyd, J.P .: Chebyshev and Fourier Spectral Methods. Dover, New Y ork (2001) 8. Caffarelli, L., Silvestre, L.: An extension problem related to the fractional laplacian. Comm. Partial Differ. Eq. 32(8), 1245–1260 (2007) 9. Canuto, C., Hussaini, M.Y ., Quarteroni, A., Zang, T.A.: Spectral Methods: Fundamentals in Single Domains. Springer, Berlin (2006) 10. Capella, A., Dávila, J., Dupaigne, L., Sire, Y .: Regularity of radial extremal solutions for some non-local semilinear equations. Commun. Part. Differ. Eq. 36(8), 1353–1384 (2011) 11. Chen, S., Shen, J., Wang, L.L.: Generalized jacobi functions and their applications to fractional differential equations. Math. Comput. 85(300), 1603–1638 (2016) 12. Diethelm, K.: The Analysis of Fractional Differential Equations. Lecture Notes in Math, vol. 2004. Springer, Berlin (2010) 13. Ervin, V .J., Roop, J.P .: V ariational formulation for the stationary fractional advection dispersion equation. Numer. Methods Partial Differ. Equ. 22(3), 558–576 (2006) 123 Journal of Scientific Computing (2018) 77:1468–1489 1489 14. Fries, T.P ., Belytschko, T.: The extended/generalized finite element method: an overview of the method and its applications. Int. J. Numer. Methods Eng. 84(3), 253–304 (2010) 15. Gorenflo, R., Mainardi, F.: Fractional oscillations and Mittag-Leffler functions. Citeseer, Prineton (1996) 16. Gottlieb, D., Orszag, S.A.: Numerical Analysis of Spectral Methods: Theory and Applications. Number 26 in CBMS-NSF Regional Conference Series in Applied Mathematics. SIAM, Philadelphia (1977) 17. Grisvard, P .: Elliptic Problems in Nonsmooth Domains, vol. 69. SIAM, Philadelphia (2011) 18. Haubold, H.J., Mathai, A.M., Saxena, R.K.: Mittag-Leffler functions and their applications. J. Appl. Math. 2011, 298628 (2011). https://doi.org/10.1155/2011/298628 19. Kilbas, A.A., Srivastava, H.M., Trujillo, J.J.: Theory and Applications of Fractional Differential Equations. Elsevier, Amsterdam (2006) 20. Li, X., Xu, C.: A space-time spectral method for the time fractional diffusion equation. SIAM J. Numer. Anal. 47(3), 2108–2131 (2009) 21. Li, Z.C., Lu, T.T.: Singularities and treatments of elliptic boundary value problems. Math. Comput. Mod. 31(8), 97–145 (2000) 22. Li, Z.C., Lu, T.T., Hu, H.Y ., Cheng, A.H.: Particular solutions of laplace’s equations on polygons and new models involving mild singularities. Eng. Anal. Bound. Elem. 29(1), 59–75 (2005) 23. Mao, Z., Chen, S., Shen, J.: Efficient and accurate spectral method using generalized Jacobi functions for solving Riesz fractional differential equations. Appl. Numer. Math. 106, 165–181 (2016) 24. Mao, Z., Karniadakis, G.E.: A spectral method (of exponential convergence) for singular solutions of the diffusion equation with general two-sided fractional derivative. SIAM J. Numer. Anal. 56(1), 24–49 (2018) 25. Marin, L., Lesnic, D., Mantiˇc, V .: Treatment of singularities in helmholtz-type equations using the bound- ary element method. J. Sound Vib. 278(1), 39–62 (2004) 26. Morin, P ., Nochetto, R., Siebert, K.G.: Convergence of adaptive finite element methods. SIAM Rev.44(4), 631–658 (2002) 27. Nochetto, R.H., Otárola, E., Salgado, A.J.: A pde approach to fractional diffusion in general domains: a priori error analysis. Found. Comput. Math. 15(3), 733–791 (2014) 28. Podlubny, I.: Fractional Differential Equations, volume 198 of Mathematics in Science and Engineer- ing. Academic Press Inc., San Diego, CA, (1999). An introduction to fractional derivatives, fractional differential equations, to methods of their solution and some of their applications 29. Samko, S.G., Kilbas, A.A., Mariˇcev, O.I.: Fractional Integrals and Derivatives. Gordon and Breach Science Publ, Philadelphia (1993) 30. Schultz, W.W., Lee, N.Y ., Boyd, J.P .: Chebyshev pseudospeetral method of viscous flows with corner singularities. J. Sci. Comput. 4, 1–24 (1989) 31. Schumack, M.R., Schultz, W.W., Boyd, J.P .: Spectral method solution of the stokes equations on non- staggered grids. J. Comput. Phys. 94(1), 30–58 (1991) 32. Shen, J.: Efficient spectral-Galerkin method I. Direct solvers for second- and fourth-order equations by using Legendre polynomials. SIAM J. Sci. Comput. 15(6), 1489–1505 (1994) 33. Shen, J.: Efficient spectral-Galerkin methods III. Polar and cylindrical geometries. SIAM J. Sci. Comput. 18, 1583–1604 (1997) 34. Shen, J., Tang, T., Wang, L.L.: Spectral Methods: Algorithms, Analysis and Applications. Series in Computational Mathematics, vol. 41. Springer, Berlin (2011) 35. Shen, J., Wang, Y .: Müntz–Galerkin methods and applications to mixed Dirichlet–Neumann boundary value problems. SIAM J. Sci. Comput. 38(4), A2357–A2381 (2016) 36. Sherman, A.H.: On newton-iterative methods for the solution of systems of nonlinear equations. SIAM J. Numer. Anal. 15(4), 755–771 (1978) 37. Strang, G., Fix, G.J.: An Analysis of the Finite Element Method. Prentice-Hall Series in Automatic Computation. Prentice-Hall Inc, Englewood Cliffs (1973) 38. Szego, G.: Orthogonal Polynomials, vol. 23 of Amer. In: Math. Soc. Colloq. Publ., Amer. Math. Soc., Providence, RI (1975) 39. Zayernouri, M., Karniadakis, G.E.: Exponentially accurate spectral and spectral element methods for fractional ODEs. J. Comput. Phys. 257(Part A), 460–480 (2014) 123

采集于

查看校方原文 ↗