校园网页 · 学校官网
PII: S0168-9274(99)00082-3
Applied Numerical Mathematics 33 (2000) 183–190 A new fast Chebyshev–Fourier algorithm for Poisson-type equations in polar geometriesI Jie Shen 1 Department of Mathematics, Penn State University, University Park, PA 16802, USA Abstract A fast Chebyshev–Fourier algorithm for Poisson-type equations in polar geometries is presented in this paper. The new algorithm improves upon the algorithm of Jie Shen (1997), by taking advantage of the odd–even parity of the Fourier expansion in the azimuthal direction, and it is shown to be more efficient in terms of CPU and memory. Ó 2000 IMACS. Published by Elsevier Science B.V . All rights reserved. Keywords: Chebyshev–Fourier expansion; Polar coordinates; Spectral–Galerkin 1. Introduction In a recent paper [5], the author introduced an efficient spectral–Galerkin algorithm, for solving elliptic equations in polar geometries, which has quasi-optimal computational complexity while being spectrally accurate. However, it does not take into account the odd–even parity of the Fourier expansion in the azimuthal direction, and consequently, it uses collocation points which are unnecessarily clustered near the origin. The aim of this paper is to develop a more efficient Chebyshev–Fourier algorithm for the Poisson-type equations in polar geometries by taking advantage of the odd–even parity in the Fourier expansion. Note that there are several very good algorithms (cf. [2–4]) which preserve the odd–even parity, but the new algorithm in this paper appears to be more efficient. 2. A Chebyshev–Fourier interpolation operator on a disk A key aspect of spectral methods is to find an appropriate transform between the values of a function at a set of collocation points to the spectral representation of its interpolating function. Thus, we describe I This work was supported in part by NSF grants DMS-9623020, DMS-9706951 and by a research fellowship at the Texas Institute of Computational and Applied Mathematics. 1 E-mail: shen@math.psu.edu 0168-9274/00/$20.00 Ó 2000 IMACS. Published by Elsevier Science B.V . All rights reserved. PII: S0168-9274(99)00082-3 184 J. Shen / Applied Numerical Mathematics 33 (2000) 183–190 first a Chebyshev–Fourier interpolation operator on the disk to be used in our Chebyshev–Fourier algorithm. LetV.x;y/ be a continuous function on the unit disk Df.x;y/ : x2Cy2 < 1g. We denotev.r;/VD V.r cos;r sin/ to be the function in DD.0; 1/.0; 2/ after the polar transform xDr cos, yDr sin.S i n c ev is periodic in, we may write v.r;/D 1X jmjD0 vm.r/ eim with v m.r/DNvm.r/ for allm; (2.1) whereNvm is the complex conjugate of vm. We emphasize that the expansion coefficients in (2.1) cannot be arbitrary. In fact, it is well known (see, for instance, [1,3,4]) that vm.r/ has the same parity as m and can be expanded smoothly to the interval. 1; 0/, i.e., ifvm is inHk.0; 1/ then the expanded function is inHk. 1; 1/. In particular, forv2C. / we have vm2Y.m/VD v2C. 1; 1/: v. r/D. 1/mv.r/; r2.0; 1/ ; and consequently, v2YVD ( v2 1X jmjD0 vm.r/ eim : v m.r/DNvm.r/; vm2Y.m/ ) : Note thatY.m/ (andX.m/ defined later) are complex spaces whileY (andX defined below) are real spaces. We define below approximations ofY.m/ andY which preserve the odd–even parity. Given a pair of even integers.N;M/ , we denotePN to be the space of polynomials of degree less than or equal toN,a n dl e t .m/ j .r/D T2j.r/; ifm is even, T2jC1.r/; ifm is odd, (2.2) whereTk.r/ is thekth-degree Chebyshev polynomial. We define respectively approximation ofY.m/ and Y by Y.m/ N VD ( vD N=2 mod.m;2/X jD0 vj .m/ j .r/: vj are complex numbers ) ; (2.3) and YNMVD ( vD MX jmjD0 vm.r/ eim : vm2Y.m/ N ;v is real ) : (2.4) We define a set of collocation points inD associated toYNM by NMVD ( .rk;j/: kD 0; 1;:::;N= 2 1;j D 0; 1;:::; 2M 1 kDN=2;j D 0; 1;:::;M 1 ) ; (2.5) whererkD cos.k=N/ andjDj=M . Note that for v2Y orYNM ,v.0;/Dv.0;C/ for all . Hence, the points.rk;j/ withkDN=2a n djDM;MC 1;:::; 2M 1 are excluded fromNM . J. Shen / Applied Numerical Mathematics 33 (2000) 183–190 185 Fig. 1. Distribution of collocation points: first row—NM ; second row—eNM . One can now readily check that a unique interpolation operatorINM fromY\C.D/ toYNM is defined by INMg.r;/D MX jmjD0 N=2 mod.m;2/X nD0 gnm .m/ n .r/ eim2YNM; INMg.rk;j/Dg.rk;j/; .r k;j/2NM: (2.6) Remark 1. A different interpolation operator was used in [5]. More precisely, the change of variable rD.tC 1/=2 is applied so that the functions in the transformed spaces no longer satisfy the odd–even parity condition and that the corresponding set of collocation points inD is eNMVD .tkC 1/=2;j : kD 0; 1;:::;N;j D 0; 1;:::; 2M 1 withtkD cos.k=N/ andjDj=M . Not only eNM has twice as many points as NM , but also its points are unnecessarily clustered in the radial direction near the pole .rD 0/, see Fig. 1. Indeed, the smallest distance in the Cartesian coordinates between two adjacent points ineNM .respectively inNM/ n e a rt h ep o l ei so fo r d e rO.N 2M 1/. respectively O.N 1M 1//. 3. Description of the algorithm Consider the Poisson type equation on the unit disk 1UC UDF in D .x;y/ : x2Cy2 < 1 ; UD 0o n @ : (3.1) 186 J. Shen / Applied Numerical Mathematics 33 (2000) 183–190 Applying the polar transformation xDr cos, yDr sin to (3.1), and setting u.r;/DU.r cos; r sin/,f.r;/ DF.r cos;r sin/, we obtain 1 r d dr r d dru 1 r2 d2 d2uC uDf; .r;/ 2D; u.1;/D 0; 2T 0; 2/; u periodic in: (3.2) Writing u.r;/D 1X jmjD0 um.r/ eim with u m.r/DNum.r/ for allm; (3.3) (likewise forf ), and substituting the expansions in (3.2), we find 1 r d dr r d drum C m2 r2 C umDfm;r 2.0; 1/; u m.1/D 0: (3.4) Below we develop an algorithm which takes advantage of the odd–even parity by seeking approximation ofum in the space X.m/ N VD v2Y.m/ N : v.1/D 0 : (3.5) Given a pair of even integers.N;M/ , we consider the following weighted (the weight function isr2!.r/ ) spectral–Galerkin approximation to (3.4) formD 0; 1;:::;M :fi n du.m/ N 2X.m/ N such that 1Z 0 d dr r d dru.m/ N rv! drCm2 1Z 0 u.m/ N v! drC 1Z 0 r2u.m/ N v! drD 1Z 0 r2f.m/ N v! dr 8v2X.m/ N ; (3.6) where!.r/D.1 r2/ 1=2 is the Chebyshev weight, andf.m/ N is themth component of INMfD MX jmjD0 N=2 mod.m;2/X nD0 fnm .m/ n .r/ eim; namely, f.m/ N D N=2 mod.m;2/X nD0 fnm .m/ n .r/: Then, the approximation tou is given by uNM.r;/D MX jmjD0 u.m/ N .r/ eim;u . m/ N DNu.m/ N : Note that the approximate solutionuNM does not satisfy the pole conditions “u.m/ N .0/D 0f o rm6D 0”, hence,uNM is neither necessarily single valued nor differentiable at the pole in the Cartesian coordinates. However,uNM still converges tou exponentially provided thatf is smooth in the Cartesian coordinates (see [6] for a related discussion and on how to extract fromuNM an approximate function which is single valued and differentiable at the pole). J. Shen / Applied Numerical Mathematics 33 (2000) 183–190 187 It is clear thatX.m/ N is aN=2 (respectivelyN=2 1) dimensional space ifm is even (respectively odd) and that .m/ j .r/VD 1 r2 .m/ j .r/2X.m/ N : (3.7) Therefore, X.m/ N D span .m/ j : jD 0; 1;:::;N= 2 1 mod.m; 2/ : (3.8) Thus, letting u.m/ N D N=2 1 mod.m;2/X kD0 x.m/ k .m/ k ; x.m/D x.m/ k ; a.m/ kj VD 1Z 0 d dr r d dr .m/ j r .m/ k ! dr; A.m/D a.m/ kj ; b.m/ kj VD 1Z 0 .m/ j .m/ k ! dr; B .m/D b.m/ kj ; c.m/ kj VD 1Z 0 r2 .m/ j .m/ k ! dr; C .m/D c.m/ kj ; f.m/ k VD 1Z 0 r2f.m/ N .m/ k ! dr; f.m/D f.m/ k ; (3.9) the formulation (3.6) is reduced to the linear system A.m/Cm2B.m/C C.m/ x.m/D f.m/: (3.10) Note that although an index m is used in A.m/,B.m/,C.m/ andX.m/ N , these matrices only depend on the parity ofm, rather than the actual value ofm. Proposition 2. Form even or odd,A.m/,B.m/ are penta-diagonal matrices, andC.m/ are seven-diagonal matrices. Proof. Notice that all the integrands ina.m/ kj ,b.m/ kj andc.m/ kj are even functions. Therefore, we can replaceR 1 0 by 1 2 R 1 1. Then, thanks to the orthogonality relation of the Chebyshev polynomials and the special form of the basis functions (3.7), one derives immediately thatB.m/ andC.m/ are respectively penta- and seven-diagonal symmetric matrix. By the same argument, we have a.m/ kj D 1Z 0 d dr r d dr .m/ j r .m/ k ! dr D 1 2 1Z 1 d dr r d dr .m/ j r .m/ k ! drD 0f o r j<k 2: 188 J. Shen / Applied Numerical Mathematics 33 (2000) 183–190 On the other hand, integrating by parts twice, using (3.7) and the identity !0.r/D.r=.1 r2//!.r/ ,w e have a.m/ kj D 1 2 1Z 1 r d dr .m/ j d dr r .m/ k ! dr D 1 2 1Z 1 d dr .m/ j r2 d dr .m/ k C r 1 r2 .m/ k ! dr D 1 2 1Z 1 .m/ j d dr r2 d dr .m/ k C r 1 r2 .m/ k C r2 d dr .m/ k C r 1 r2 .m/ k r 1 r2 ! dr D 1 2 1Z 1 .m/ j 1 r2 d dr r2 d dr .m/ k Cr .m/ k C r2 d dr .m/ k Cr .m/ k r ! dr: Then, thanks to the special form of the basis function (3.7), we find that the function between the pair of brackets is a polynomial of degree 2kC 4 (respectively 2kC 5) form even (respectively odd). Therefore, we havea.m/ kj D 0i fk<j 2. 2 The entries ofA.m/,B.m/ andC.m/ can be evaluated analytically, but this process can be quite tedious. Alternatively, one can compute these entries automatically by using the Chebyshev–Gauss–Lobatto quadrature of degreeNC 2. In summary, the new Chebyshev–Fourier algorithm for solving (3.2) consists of three steps: (1) Compute I NMf from the values off onNM —O.NM log.NM// operations; (2) Solve u.m/ N from (3.10) formD 0; 1;:::;M —O.NM/ operations; (3) Compute uNM.r;/DPM jmjD0u.m/ N .r/ eim onNM —O.NM log.NM// operations. Hence, the overall computational complexity is O.NM log.NM// which is quasi-optimal. Remark 3. Although we have only described the algorithm for Poisson-like equations with homoge- neous Dirichlet boundary conditions on a disk, it can be readily extended, as in [5], to problems with more general boundary conditions, to three-dimensional cylindrical domains, to problems with variable coefficients and to higher-order elliptic equations, we refer to [5] for more details. 4. Numerical results We now present some numerical results using the new algorithm. Since the Chebyshev–Fourier– Galerkin (CFG) algorithm in [5] is already shown to be more efficient and more accurate than those in [2,7] (see [5]), we shall only compare the new CFG algorithm with that in [5]. We consider the Poisson equation on a unit disk with the exact solution U.x;y/ D x2Cy2 1 cos .xCy C sin .xCy/ : (4.1) The maximum errors of the two algorithms for the exact solution (4.1) with D 16 are listed in Table 1, where new CFG stands for the new Chebyshev–Fourier–Galerkin algorithm described above. This exact J. Shen / Applied Numerical Mathematics 33 (2000) 183–190 189 Table 1 Maximum errors: exact solution being (4.1) with D 16 NDM 32 36 40 44 48 52 New CFG 1.98E 2 3.98E 4 4.63E 6 3.34E 8 1.59E 10 4.58E 13 NDM 22 26 30 34 38 42 CFG in [5] 8.68E 3 3.55E 4 8.52E 6 1.17E 7 9.99E 10 5.52E 12 Table 2 Resolution needed for six-digit accuracy: exact solution being (4.1) with different 20 30 40 50 60 New CFG,NDM 48 64 80 96 112 CFG in [5],NDM 38 52 66 82 98 solution is smooth in both the Cartesian and polar coordinates, so both algorithms converge exponentially fast. Note that to achieve the same accuracy as the CFG in [5] with the pair.N;N/ , the new CFG should be used, roughly speaking, with the pair.NC 10;NC 10/. We recall that for a fixed pair of.N;M/ ,t h e number of unknowns and the CPU time of the new algorithm is about half of the algorithm in [5]. Thus, the new algorithm is still significantly more efficient, in terms of CPU and memory, than the algorithm in [5]. In Table 2, we list the resolution, in terms of.N;M/ , required to have six-digit accuracy for different values of in the exact solution (4.1). The results in Table 2 indicates again that to achieve the same accuracy as the CFG in [5] with the pair .N;N/ , we need to use about .NC 14;NC 14/ in the new CFG. Therefore, asymptotically speaking, for a fixed pair of .N;M/ , the new CFG provides about the same accuracy as the CFG in [5] while costing half of the CPU and memory. 5. Concluding remarks We have presented a new fast Chebyshev–Fourier–Galerkin method for Poisson-type equations in polar geometries. The new algorithm improves upon the algorithm in [5] by taking advantage of the odd–even parity of the Fourier expansion in the zimuthal direction. It is shown that the new algorithm is significantly more efficient in terms of CPU and memory than the algorithm in [5]. Another advantage of the new algorithm is that the collocation points are not unnecessarily clustered in the radial direction near the pole so that a semi-implicit or explicit time marching scheme based on this set of collocation points would not be affected by a unreasonably restrictive CFL stability condition. References [1] C. Canuto, M.Y . Hussaini, A. Quarteroni, T.A. Zang, Spectral Methods in Fluid Dynamics, Springer-Verlag, 1987. [2] H. Eisen, W. Heinrichs, K. Witsch, Spectral collocation methods and polar coordinate singularities, J. Comput. Phys. 96 (1991) 241–257. 190 J. Shen / Applied Numerical Mathematics 33 (2000) 183–190 [3] B. Fornberg, A pseudospectral approach for polar and spherical geometries, SIAM J. Sci. Comput. 16 (1995) 1071–1081. [4] S.A. Orszag, A.T. Patera, Secondary instability of wall-bounded shear flows, J. Fluid Mech. 128 (1983) 347– 385. [5] Jie Shen, Efficient spectral–Galerkin methods III. Polar and cylindrical geometries, SIAM J. Sci. Comput. 18 (1997) 1583–1604. [6] Jie Shen, Efficient spectral–Galerkin methods IV. Spherical geometries, SIAM J. Sci. Comput. 20 (1999) 1438–1455. [7] P.N. Swarztrauber, R.A. Sweet, Efficient FORTRAN subprograms for the solution of elliptic partial differential equations, ACM Trans. Math. Software 5 (1979) 352–364.
采集于
查看校方原文 ↗