fbpx
Wikipedia

Pseudo-spectral method

Pseudo-spectral methods,[1] also known as discrete variable representation (DVR) methods, are a class of numerical methods used in applied mathematics and scientific computing for the solution of partial differential equations. They are closely related to spectral methods, but complement the basis by an additional pseudo-spectral basis, which allows representation of functions on a quadrature grid[definition needed]. This simplifies the evaluation of certain operators, and can considerably speed up the calculation when using fast algorithms such as the fast Fourier transform.

Motivation with a concrete example edit

Take the initial-value problem

 

with periodic conditions  . This specific example is the Schrödinger equation for a particle in a potential  , but the structure is more general. In many practical partial differential equations, one has a term that involves derivatives (such as a kinetic energy contribution), and a multiplication with a function (for example, a potential).

In the spectral method, the solution   is expanded in a suitable set of basis functions, for example plane waves,

 

Insertion and equating identical coefficients yields a set of ordinary differential equations for the coefficients,

 

where the elements   are calculated through the explicit Fourier-transform

 

The solution would then be obtained by truncating the expansion to   basis functions, and finding a solution for the  . In general, this is done by numerical methods, such as Runge–Kutta methods. For the numerical solutions, the right-hand side of the ordinary differential equation has to be evaluated repeatedly at different time steps. At this point, the spectral method has a major problem with the potential term  .

In the spectral representation, the multiplication with the function   transforms into a vector-matrix multiplication, which scales as  . Also, the matrix elements   need to be evaluated explicitly before the differential equation for the coefficients can be solved, which requires an additional step.

In the pseudo-spectral method, this term is evaluated differently. Given the coefficients  , an inverse discrete Fourier transform yields the value of the function   at discrete grid points  . At these grid points, the function is then multiplied,  , and the result Fourier-transformed back. This yields a new set of coefficients   that are used instead of the matrix product  .

It can be shown that both methods have similar accuracy. However, the pseudo-spectral method allows the use of a fast Fourier transform, which scales as  , and is therefore significantly more efficient than the matrix multiplication. Also, the function   can be used directly without evaluating any additional integrals.

Technical discussion edit

In a more abstract way, the pseudo-spectral method deals with the multiplication of two functions   and   as part of a partial differential equation. To simplify the notation, the time-dependence is dropped. Conceptually, it consists of three steps:

  1.   are expanded in a finite set of basis functions (this is the spectral method).
  2. For a given set of basis functions, a quadrature is sought that converts scalar products of these basis functions into a weighted sum over grid points.
  3. The product is calculated by multiplying   at each grid point.

Expansion in a basis edit

The functions   can be expanded in a finite basis   as

 
 

For simplicity, let the basis be orthogonal and normalized,   using the inner product   with appropriate boundaries  . The coefficients are then obtained by

 
 

A bit of calculus yields then

 

with  . This forms the basis of the spectral method. To distinguish the basis of the   from the quadrature basis, the expansion is sometimes called Finite Basis Representation (FBR).

Quadrature edit

For a given basis   and number of   basis functions, one can try to find a quadrature, i.e., a set of   points and weights such that

 

Special examples are the Gaussian quadrature for polynomials and the Discrete Fourier Transform for plane waves. It should be stressed that the grid points and weights,   are a function of the basis and the number  .

The quadrature allows an alternative numerical representation of the function   through their value at the grid points. This representation is sometimes denoted Discrete Variable Representation (DVR), and is completely equivalent to the expansion in the basis.

 
 

Multiplication edit

The multiplication with the function   is then done at each grid point,

 

This generally introduces an additional approximation. To see this, we can calculate one of the coefficients  :

 

However, using the spectral method, the same coefficient would be  . The pseudo-spectral method thus introduces the additional approximation

 

If the product   can be represented with the given finite set of basis functions, the above equation is exact due to the chosen quadrature.

Special pseudospectral schemes edit

The Fourier method edit

If periodic boundary conditions with period   are imposed on the system, the basis functions can be generated by plane waves,

 

with  , where   is the ceiling function.

The quadrature for a cut-off at   is given by the discrete Fourier transformation. The grid points are equally spaced,   with spacing  , and the constant weights are  .

For the discussion of the error, note that the product of two plane waves is again a plane wave,   with  . Thus, qualitatively, if the functions   can be represented sufficiently accurately with   basis functions, the pseudo-spectral method gives accurate results if   basis functions are used.

An expansion in plane waves often has a poor quality and needs many basis functions to converge. However, the transformation between the basis expansion and the grid representation can be done using a Fast Fourier transform, which scales favorably as  . As a consequence, plane waves are one of the most common expansion that is encountered with pseudo-spectral methods.

Polynomials edit

Another common expansion is into classical polynomials. Here, the Gaussian quadrature is used, which states that one can always find weights   and points   such that

 

holds for any polynomial   of degree   or less. Typically, the weight function   and ranges   are chosen for a specific problem, and leads to one of the different forms of the quadrature. To apply this to the pseudo-spectral method, we choose basis functions  , with   being a polynomial of degree   with the property

 

Under these conditions, the   form an orthonormal basis with respect to the scalar product  . This basis, together with the quadrature points can then be used for the pseudo-spectral method.

For the discussion of the error, note that if   is well represented by   basis functions and   is well represented by a polynomial of degree  , their product can be expanded in the first   basis functions, and the pseudo-spectral method will give accurate results for that many basis functions.

Such polynomials occur naturally in several standard problems. For example, the quantum harmonic oscillator is ideally expanded in Hermite polynomials, and Jacobi-polynomials can be used to define the associated Legendre functions typically appearing in rotational problems.

References edit

  1. ^ Orszag, Steven A. (September 1972). "Comparison of Pseudospectral and Spectral Approximation". Studies in Applied Mathematics. 51 (3): 253–259. doi:10.1002/sapm1972513253.
  • Orszag, Steven A. (1969). "Numerical Methods for the Simulation of Turbulence". Physics of Fluids. 12 (12): II-250. doi:10.1063/1.1692445.
  • Gottlieb, David; Orszag, Steven A. (1989). Numerical analysis of spectral methods : theory and applications (5. print. ed.). Philadelphia, Pa.: Society for Industrial and Applied Mathematics. ISBN 978-0898710236.
  • Hesthaven, Jan S.; Gottlieb, Sigal; Gottlieb, David (2007). Spectral methods for time-dependent problems (1. publ. ed.). Cambridge [u.a.]: Cambridge Univ. Press. ISBN 9780521792110.
  • Jie Shen, Tao Tang and Li-Lian Wang (2011) "Spectral Methods: Algorithms, Analysis and Applications" (Springer Series in Computational Mathematics, V. 41, Springer), ISBN 354071040X.
  • Trefethen, Lloyd N. (2000). Spectral methods in MATLAB (3rd. repr. ed.). Philadelphia, Pa: SIAM. ISBN 978-0-89871-465-4.
  • Fornberg, Bengt (1996). A Practical Guide to Pseudospectral Methods. Cambridge: Cambridge University Press. ISBN 9780511626357.
  • Boyd, John P. (2001). Chebyshev and Fourier spectral methods (2nd ed., rev. ed.). Mineola, N.Y.: Dover Publications. ISBN 978-0486411835.
  • Funaro, Daniele (1992). Polynomial approximation of differential equations. Berlin: Springer-Verlag. ISBN 978-3-540-46783-0.
  • de Frutos, Javier; Novo, Julia (January 2000). "A Spectral Element Method for the Navier--Stokes Equations with Improved Accuracy". SIAM Journal on Numerical Analysis. 38 (3): 799–819. doi:10.1137/S0036142999351984.
  • Claudio, Canuto; M. Yousuff, Hussaini; Alfio, Quarteroni; Thomas A., Zang (2006). Spectral methods fundamentals in single domains. Berlin: Springer-Verlag. ISBN 978-3-540-30726-6.
  • Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007). "Section 20.7. Spectral Methods". Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press. ISBN 978-0-521-88068-8.

pseudo, spectral, method, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, d. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Pseudo spectral method news newspapers books scholar JSTOR December 2009 Learn how and when to remove this template message Pseudo spectral methods 1 also known as discrete variable representation DVR methods are a class of numerical methods used in applied mathematics and scientific computing for the solution of partial differential equations They are closely related to spectral methods but complement the basis by an additional pseudo spectral basis which allows representation of functions on a quadrature grid definition needed This simplifies the evaluation of certain operators and can considerably speed up the calculation when using fast algorithms such as the fast Fourier transform Contents 1 Motivation with a concrete example 2 Technical discussion 2 1 Expansion in a basis 2 2 Quadrature 2 3 Multiplication 3 Special pseudospectral schemes 3 1 The Fourier method 3 2 Polynomials 4 ReferencesMotivation with a concrete example editTake the initial value problem i tps x t 2 x2 V x ps x t ps t0 ps0 displaystyle i frac partial partial t psi x t Bigl frac partial 2 partial x 2 V x Bigr psi x t qquad qquad psi t 0 psi 0 nbsp with periodic conditions ps x 1 t ps x t displaystyle psi x 1 t psi x t nbsp This specific example is the Schrodinger equation for a particle in a potential V x displaystyle V x nbsp but the structure is more general In many practical partial differential equations one has a term that involves derivatives such as a kinetic energy contribution and a multiplication with a function for example a potential In the spectral method the solution ps displaystyle psi nbsp is expanded in a suitable set of basis functions for example plane waves ps x t 12p ncn t e2pinx displaystyle psi x t frac 1 sqrt 2 pi sum n c n t e 2 pi inx nbsp Insertion and equating identical coefficients yields a set of ordinary differential equations for the coefficients iddtcn t 2pn 2cn kVn kck displaystyle i frac d dt c n t 2 pi n 2 c n sum k V n k c k nbsp where the elements Vn k displaystyle V n k nbsp are calculated through the explicit Fourier transform Vn k 01V x e2pi k n xdx displaystyle V n k int 0 1 V x e 2 pi i k n x dx nbsp The solution would then be obtained by truncating the expansion to N displaystyle N nbsp basis functions and finding a solution for the cn t displaystyle c n t nbsp In general this is done by numerical methods such as Runge Kutta methods For the numerical solutions the right hand side of the ordinary differential equation has to be evaluated repeatedly at different time steps At this point the spectral method has a major problem with the potential term V x displaystyle V x nbsp In the spectral representation the multiplication with the function V x displaystyle V x nbsp transforms into a vector matrix multiplication which scales as N2 displaystyle N 2 nbsp Also the matrix elements Vn k displaystyle V n k nbsp need to be evaluated explicitly before the differential equation for the coefficients can be solved which requires an additional step In the pseudo spectral method this term is evaluated differently Given the coefficients cn t displaystyle c n t nbsp an inverse discrete Fourier transform yields the value of the function ps displaystyle psi nbsp at discrete grid points xj 2pj N displaystyle x j 2 pi j N nbsp At these grid points the function is then multiplied ps xi t V xi ps xi t displaystyle psi x i t V x i psi x i t nbsp and the result Fourier transformed back This yields a new set of coefficients cn t displaystyle c n t nbsp that are used instead of the matrix product kVn kck t displaystyle sum k V n k c k t nbsp It can be shown that both methods have similar accuracy However the pseudo spectral method allows the use of a fast Fourier transform which scales as O Nln N displaystyle O N ln N nbsp and is therefore significantly more efficient than the matrix multiplication Also the function V x displaystyle V x nbsp can be used directly without evaluating any additional integrals Technical discussion editIn a more abstract way the pseudo spectral method deals with the multiplication of two functions V x displaystyle V x nbsp and f x displaystyle f x nbsp as part of a partial differential equation To simplify the notation the time dependence is dropped Conceptually it consists of three steps f x f x V x f x displaystyle f x tilde f x V x f x nbsp are expanded in a finite set of basis functions this is the spectral method For a given set of basis functions a quadrature is sought that converts scalar products of these basis functions into a weighted sum over grid points The product is calculated by multiplying V f displaystyle V f nbsp at each grid point Expansion in a basis edit The functions f f displaystyle f tilde f nbsp can be expanded in a finite basis ϕn n 0 N displaystyle phi n n 0 ldots N nbsp as f x n 0Ncnϕn x displaystyle f x sum n 0 N c n phi n x nbsp f x n 0Nc nϕn x displaystyle tilde f x sum n 0 N tilde c n phi n x nbsp For simplicity let the basis be orthogonal and normalized ϕn ϕm dnm displaystyle langle phi n phi m rangle delta nm nbsp using the inner product f g abf x g x dx displaystyle langle f g rangle int a b f x overline g x dx nbsp with appropriate boundaries a b displaystyle a b nbsp The coefficients are then obtained by cn f ϕn displaystyle c n langle f phi n rangle nbsp c n f ϕn displaystyle tilde c n langle tilde f phi n rangle nbsp A bit of calculus yields then c n m 0NVn mcm displaystyle tilde c n sum m 0 N V n m c m nbsp with Vn m Vϕm ϕn displaystyle V n m langle V phi m phi n rangle nbsp This forms the basis of the spectral method To distinguish the basis of the ϕn displaystyle phi n nbsp from the quadrature basis the expansion is sometimes called Finite Basis Representation FBR Quadrature edit For a given basis ϕn displaystyle phi n nbsp and number of N 1 displaystyle N 1 nbsp basis functions one can try to find a quadrature i e a set of N 1 displaystyle N 1 nbsp points and weights such that ϕn ϕm i 0Nwiϕn xi ϕm xi n m 0 N displaystyle langle phi n phi m rangle sum i 0 N w i phi n x i overline phi m x i qquad qquad n m 0 ldots N nbsp Special examples are the Gaussian quadrature for polynomials and the Discrete Fourier Transform for plane waves It should be stressed that the grid points and weights xi wi displaystyle x i w i nbsp are a function of the basis and the number N displaystyle N nbsp The quadrature allows an alternative numerical representation of the function f x f x displaystyle f x tilde f x nbsp through their value at the grid points This representation is sometimes denoted Discrete Variable Representation DVR and is completely equivalent to the expansion in the basis f xi n 0Ncnϕn xi displaystyle f x i sum n 0 N c n phi n x i nbsp cn f ϕn i 0Nwif xi ϕn xi displaystyle c n langle f phi n rangle sum i 0 N w i f x i overline phi n x i nbsp Multiplication edit The multiplication with the function V x displaystyle V x nbsp is then done at each grid point f xi V xi f xi displaystyle tilde f x i V x i f x i nbsp This generally introduces an additional approximation To see this we can calculate one of the coefficients c n displaystyle tilde c n nbsp c n f ϕn iwif xi ϕn xi iwiV xi f xi ϕn xi displaystyle tilde c n langle tilde f phi n rangle sum i w i tilde f x i overline phi n x i sum i w i V x i f x i overline phi n x i nbsp However using the spectral method the same coefficient would be c n Vf ϕn displaystyle tilde c n langle Vf phi n rangle nbsp The pseudo spectral method thus introduces the additional approximation Vf ϕn iwiV xi f xi ϕn xi displaystyle langle Vf phi n rangle approx sum i w i V x i f x i overline phi n x i nbsp If the product Vf displaystyle Vf nbsp can be represented with the given finite set of basis functions the above equation is exact due to the chosen quadrature Special pseudospectral schemes editThe Fourier method edit If periodic boundary conditions with period 0 L displaystyle 0 L nbsp are imposed on the system the basis functions can be generated by plane waves ϕn x 1Le iknx displaystyle phi n x frac 1 sqrt L e imath k n x nbsp with kn 1 n n 2 2p L displaystyle k n 1 n lceil n 2 rceil 2 pi L nbsp where displaystyle lceil cdot rceil nbsp is the ceiling function The quadrature for a cut off at nmax N displaystyle n text max N nbsp is given by the discrete Fourier transformation The grid points are equally spaced xi iDx displaystyle x i i Delta x nbsp with spacing Dx L N 1 displaystyle Delta x L N 1 nbsp and the constant weights are wi Dx displaystyle w i Delta x nbsp For the discussion of the error note that the product of two plane waves is again a plane wave ϕa ϕb ϕc displaystyle phi a phi b phi c nbsp with c a b displaystyle c leq a b nbsp Thus qualitatively if the functions f x V x displaystyle f x V x nbsp can be represented sufficiently accurately with Nf NV displaystyle N f N V nbsp basis functions the pseudo spectral method gives accurate results if Nf NV displaystyle N f N V nbsp basis functions are used An expansion in plane waves often has a poor quality and needs many basis functions to converge However the transformation between the basis expansion and the grid representation can be done using a Fast Fourier transform which scales favorably as Nln N displaystyle N ln N nbsp As a consequence plane waves are one of the most common expansion that is encountered with pseudo spectral methods Polynomials edit Another common expansion is into classical polynomials Here the Gaussian quadrature is used which states that one can always find weights wi displaystyle w i nbsp and points xi displaystyle x i nbsp such that abw x p x dx i 0Nwip xi displaystyle int a b w x p x dx sum i 0 N w i p x i nbsp holds for any polynomial p x displaystyle p x nbsp of degree 2N 1 displaystyle 2N 1 nbsp or less Typically the weight function w x displaystyle w x nbsp and ranges a b displaystyle a b nbsp are chosen for a specific problem and leads to one of the different forms of the quadrature To apply this to the pseudo spectral method we choose basis functions ϕn x w x Pn x displaystyle phi n x sqrt w x P n x nbsp with Pn displaystyle P n nbsp being a polynomial of degree n displaystyle n nbsp with the property abw x Pn x Pm x dx dmn displaystyle int a b w x P n x P m x dx delta mn nbsp Under these conditions the ϕn displaystyle phi n nbsp form an orthonormal basis with respect to the scalar product f g abf x g x dx displaystyle langle f g rangle int a b f x overline g x dx nbsp This basis together with the quadrature points can then be used for the pseudo spectral method For the discussion of the error note that if f displaystyle f nbsp is well represented by Nf displaystyle N f nbsp basis functions and V displaystyle V nbsp is well represented by a polynomial of degree NV displaystyle N V nbsp their product can be expanded in the first Nf NV displaystyle N f N V nbsp basis functions and the pseudo spectral method will give accurate results for that many basis functions Such polynomials occur naturally in several standard problems For example the quantum harmonic oscillator is ideally expanded in Hermite polynomials and Jacobi polynomials can be used to define the associated Legendre functions typically appearing in rotational problems References edit Orszag Steven A September 1972 Comparison of Pseudospectral and Spectral Approximation Studies in Applied Mathematics 51 3 253 259 doi 10 1002 sapm1972513253 Orszag Steven A 1969 Numerical Methods for the Simulation of Turbulence Physics of Fluids 12 12 II 250 doi 10 1063 1 1692445 Gottlieb David Orszag Steven A 1989 Numerical analysis of spectral methods theory and applications 5 print ed Philadelphia Pa Society for Industrial and Applied Mathematics ISBN 978 0898710236 Hesthaven Jan S Gottlieb Sigal Gottlieb David 2007 Spectral methods for time dependent problems 1 publ ed Cambridge u a Cambridge Univ Press ISBN 9780521792110 Jie Shen Tao Tang and Li Lian Wang 2011 Spectral Methods Algorithms Analysis and Applications Springer Series in Computational Mathematics V 41 Springer ISBN 354071040X Trefethen Lloyd N 2000 Spectral methods in MATLAB 3rd repr ed Philadelphia Pa SIAM ISBN 978 0 89871 465 4 Fornberg Bengt 1996 A Practical Guide to Pseudospectral Methods Cambridge Cambridge University Press ISBN 9780511626357 Boyd John P 2001 Chebyshev and Fourier spectral methods 2nd ed rev ed Mineola N Y Dover Publications ISBN 978 0486411835 Funaro Daniele 1992 Polynomial approximation of differential equations Berlin Springer Verlag ISBN 978 3 540 46783 0 de Frutos Javier Novo Julia January 2000 A Spectral Element Method for the Navier Stokes Equations with Improved Accuracy SIAM Journal on Numerical Analysis 38 3 799 819 doi 10 1137 S0036142999351984 Claudio Canuto M Yousuff Hussaini Alfio Quarteroni Thomas A Zang 2006 Spectral methods fundamentals in single domains Berlin Springer Verlag ISBN 978 3 540 30726 6 Press WH Teukolsky SA Vetterling WT Flannery BP 2007 Section 20 7 Spectral Methods Numerical Recipes The Art of Scientific Computing 3rd ed New York Cambridge University Press ISBN 978 0 521 88068 8 Retrieved from https en wikipedia org w index php title Pseudo spectral method amp oldid 1182899164, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.