fbpx
维基百科

擬譜法

擬譜法(Pseudo-spectral methods)[1]也稱為離散變數表示(discrete variable representation、DVR)法,是在应用数学计算科学中求解偏微分方程用的数值分析方法。擬譜法和谱方法英语spectral method有密切關係,但在谱方法中基底函數中使用了擬譜的基底函數,也就是可以在分割網格上表示的函數。此作法簡化一些運算子的計算,在使用快速演算法(例如快速傅里叶变换)時可以加速計算速度。

說明

考慮以下的初值問題

 

有週期性條件 。這個例子是勢能為 之粒子的薛定谔方程,不過其結構可適用到其他應用。在許多實務上的偏微分方程中,其中有一項是和導數(例如是動能相關的量)有關,另一項則是和另一個函數(此處為勢能)的乘積。

在譜方法中,其解 會展開為一組適合基底函數的組合,例如平面波。

 

將解代入,並且計算係數的方程,可以得到係數的常微分方程

 

而其元素 可以透過顯式的傅立葉轉換求得

 

若將 基底函數的展開到一定項次後截斷,並且找 的解,就可以得到偏微分方程的解。一般而言會用數值方法英语Numerical methods for ordinary differential equations進行,例如龙格-库塔法。為了數值解,常微分方程的右側需重覆計算在許多不同時間間隔下的值。此時,譜方法有個和勢能項 有關的主要問題。

在譜方法下,和勢能函數 的相乘會轉換為向量和矩陣的乘法,其複雜度是 ,而且在求解係數的微分方程時,需要另外去計算矩陣元素 ,這也需要時間。

在擬譜法中,會用不同的方式來計算。給定係數 ,會用反離散傅立葉轉換來計算函數 在離散格點 下的值。在格點上,計算函數的乘積  ,再用傅立葉轉換轉換回來,可以得到一組新的係數 ,來代替矩陣乘積運算 

可以證明二個方法有類似的精準度,而且擬譜法可以使用快速傅立葉轉換,其時間複雜度為 ,理論上比矩陣乘法要快很多。而且,可以直接計算函數 ,不用再經過額外的積分運算。

技術討論

若用比較抽象的方式來描述,擬譜法是處理在偏微分方程中二個函數  的乘積。為了簡化表示式,省略掉函數中時間的自變數。在概念上,擬譜法包括三個步驟:

  1.  以及 擴展為由有限多個基底函數形成的組合(此為譜方法英语spectral method)。
  2. 針對一組給定的基底函數,找到一組分割方式可以將基底函數的純量積轉換為在格點上的加權和。
  3. 在每一個格點將  相乘,來計算函數的乘積。

基底的展開

函數  可以用一組有限基底的函數來擴展 

 
 

為了簡化起見,令基底是正交且正規化的, ,利用內積 配合適當的邊界 ,其係數為

 
 

配合一些計算可得

 

 。這是譜方法的基礎。為了區分 的基底以及正交的基底,有時會將上述擴展稱為有限基底表示(Finite Basis Representation、FBR)。

分割

針對給定基底 以及 個基底函數,可以設法找到分割方式,也就是 個點以及加權,使得

 

特別的例子包括多項式的高斯求积以及平面波的离散傅里叶变换,特別需注意的是格點及加權 都是基底及數量 的函數。

利用分割方式,可以透過格點上的值,以另一種方式來表示函數 的數值。此表示法有時稱為離散變數表示法(Discrete Variable Representation、DVR),完全等效於基底的展開。

 
 

相乘

和函數 的相乘會在格點上進行

 

一般來說這裡會有一些近似,可以計算其中一個係數 :

 

利用譜方法,對應的係數會是 。擬譜法則會用以下皂的近似來處理

 

若乘積可以用 給定的有限基底函數組合來表現,則上式在給定分割方式上會完全正確。

特殊的擬譜架構

傅立葉法

若問題中有週期性的邊界條件,其週期為 ,基底函數可以用平面波來產生,

 

其中 ,而 取整函数

 處截斷的分割為離散傅立葉轉換,格點會平均分佈 ,間隔為 ,各點的加權會是相同旳定值 

在討論誤差時,需注意到平面波的乘積也是平面波,  。因此,定量來說,若函數 可以用 基底函數足夠準確的呈現,只要用 個基底函數,即可用擬譜法得到足夠準確的結果。

平面波的擴展一般效果較差,需要許多的基底函數才能收斂。不過。基底展開和格點表示的轉換可以用快速傅立葉轉換進行,其時間複雜度較低,為 。因此,平面波是擬譜法中常用的一種基底函數。

多項式

另一種常見的展開方式是多項式,此處會使用高斯求积(Gaussian quadrature),其中提到可以找到加權係數 及格點 使得

 

對任意的 次或是更低次的多項式 都成立。一般而言,加權函數 及範圍 都是根據特定問題所選定的,因此會選擇幾種分割方式中的一種。若要用在擬譜法,需選擇基底函數為 ,其中  階多項式,有以下特性

 

在上述條件下,the  會是正交基底,其內積為 。此基底以及分割點可以用在擬譜法中。

有關其誤差,若 可以用 個基底函數很好的呈現,而 可以用 階多項式很好的呈現,則其積可以用前 個基底函數很好的呈現。且擬譜法用該數量的基底函數,會有足夠準確的結果。

在一些標準問題中,會出現這些多項式。例如量子簡諧振動子可以擴展為埃爾米特多項式,而在轉動問題中,會用雅可比多項式來定義相關的勒壤得多項式

參考資料

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


擬譜法, 此條目需要补充更多来源, 2019年7月17日, 请协助補充多方面可靠来源以改善这篇条目, 无法查证的内容可能會因為异议提出而移除, 致使用者, 请搜索一下条目的标题, 来源搜索, 网页, 新闻, 书籍, 学术, 图像, 以检查网络上是否存在该主题的更多可靠来源, 判定指引, pseudo, spectral, methods, 也稱為離散變數表示, discrete, variable, representation, 是在应用数学及计算科学中求解偏微分方程用的数值分析方法, 和谱方法, 英语, spe. 此條目需要补充更多来源 2019年7月17日 请协助補充多方面可靠来源以改善这篇条目 无法查证的内容可能會因為异议提出而移除 致使用者 请搜索一下条目的标题 来源搜索 擬譜法 网页 新闻 书籍 学术 图像 以检查网络上是否存在该主题的更多可靠来源 判定指引 擬譜法 Pseudo spectral methods 1 也稱為離散變數表示 discrete variable representation DVR 法 是在应用数学及计算科学中求解偏微分方程用的数值分析方法 擬譜法和谱方法 英语 spectral method 有密切關係 但在谱方法中基底函數中使用了擬譜的基底函數 也就是可以在分割網格上表示的函數 此作法簡化一些運算子的計算 在使用快速演算法 例如快速傅里叶变换 時可以加速計算速度 目录 1 說明 2 技術討論 2 1 基底的展開 2 2 分割 2 3 相乘 3 特殊的擬譜架構 3 1 傅立葉法 3 2 多項式 4 參考資料說明 编辑考慮以下的初值問題 i t ps x t 2 x 2 V x ps x t ps t 0 ps 0 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 有週期性條件ps x 1 t ps x t displaystyle psi x 1 t psi x t 這個例子是勢能為V x displaystyle V x 之粒子的薛定谔方程 不過其結構可適用到其他應用 在許多實務上的偏微分方程中 其中有一項是和導數 例如是動能相關的量 有關 另一項則是和另一個函數 此處為勢能 的乘積 在譜方法中 其解ps displaystyle psi 會展開為一組適合基底函數的組合 例如平面波 ps x t 1 2 p n c n t e 2 p i n x displaystyle psi x t frac 1 sqrt 2 pi sum n c n t e 2 pi inx 將解代入 並且計算係數的方程 可以得到係數的常微分方程 i d d t c n t 2 p n 2 c n k V n k c k displaystyle i frac d dt c n t 2 pi n 2 c n sum k V n k c k 而其元素V n k displaystyle V nk 可以透過顯式的傅立葉轉換求得 V n k 0 1 V x e 2 p i k n x d x displaystyle V n k int 0 1 V x e 2 pi i k n x dx 若將N displaystyle N 基底函數的展開到一定項次後截斷 並且找c n t displaystyle c n t 的解 就可以得到偏微分方程的解 一般而言會用數值方法 英语 Numerical methods for ordinary differential equations 進行 例如龙格 库塔法 為了數值解 常微分方程的右側需重覆計算在許多不同時間間隔下的值 此時 譜方法有個和勢能項V x displaystyle V x 有關的主要問題 在譜方法下 和勢能函數V x displaystyle V x 的相乘會轉換為向量和矩陣的乘法 其複雜度是N 2 displaystyle N 2 而且在求解係數的微分方程時 需要另外去計算矩陣元素V n k displaystyle V nk 這也需要時間 在擬譜法中 會用不同的方式來計算 給定係數c n t displaystyle c n t 會用反離散傅立葉轉換來計算函數ps displaystyle psi 在離散格點x j 2 p j N displaystyle x j 2 pi j N 下的值 在格點上 計算函數的乘積 ps x i t V x i ps x i t displaystyle psi x i t V x i psi x i t 再用傅立葉轉換轉換回來 可以得到一組新的係數c n t displaystyle c n t 來代替矩陣乘積運算 k V n k c k t displaystyle sum k V n k c k t 可以證明二個方法有類似的精準度 而且擬譜法可以使用快速傅立葉轉換 其時間複雜度為O N ln N displaystyle O N ln N 理論上比矩陣乘法要快很多 而且 可以直接計算函數V x displaystyle V x 不用再經過額外的積分運算 技術討論 编辑若用比較抽象的方式來描述 擬譜法是處理在偏微分方程中二個函數V x displaystyle V x 和f x displaystyle f x 的乘積 為了簡化表示式 省略掉函數中時間的自變數 在概念上 擬譜法包括三個步驟 將f x displaystyle f x 以及f x V x f x displaystyle tilde f x V x f x 擴展為由有限多個基底函數形成的組合 此為譜方法 英语 spectral method 針對一組給定的基底函數 找到一組分割方式可以將基底函數的純量積轉換為在格點上的加權和 在每一個格點將V displaystyle V 和f displaystyle f 相乘 來計算函數的乘積 基底的展開 编辑 函數f displaystyle f 和f displaystyle tilde f 可以用一組有限基底的函數來擴展 ϕ n n 0 N displaystyle phi n n 0 ldots N f x n 0 N c n ϕ n x displaystyle f x sum n 0 N c n phi n x f x n 0 N c n ϕ n x displaystyle tilde f x sum n 0 N tilde c n phi n x 為了簡化起見 令基底是正交且正規化的 ϕ n ϕ m d n m displaystyle langle phi n phi m rangle delta nm 利用內積 f g a b f x g x d x displaystyle langle f g rangle int a b f x overline g x dx 配合適當的邊界a b displaystyle a b 其係數為 c n f ϕ n displaystyle c n langle f phi n rangle c n f ϕ n displaystyle tilde c n langle tilde f phi n rangle 配合一些計算可得 c n m 0 N V n m c m displaystyle tilde c n sum m 0 N V n m c m 而V n m V ϕ m ϕ n displaystyle V n m langle V phi m phi n rangle 這是譜方法的基礎 為了區分ϕ n displaystyle phi n 的基底以及正交的基底 有時會將上述擴展稱為有限基底表示 Finite Basis Representation FBR 分割 编辑 針對給定基底 ϕ n displaystyle phi n 以及N 1 displaystyle N 1 個基底函數 可以設法找到分割方式 也就是N 1 displaystyle N 1 個點以及加權 使得 ϕ n ϕ m i 0 N w i ϕ n x i ϕ m x i 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 特別的例子包括多項式的高斯求积以及平面波的离散傅里叶变换 特別需注意的是格點及加權x i w i displaystyle x i w i 都是基底及數量N displaystyle N 的函數 利用分割方式 可以透過格點上的值 以另一種方式來表示函數f x f x displaystyle f x tilde f x 的數值 此表示法有時稱為離散變數表示法 Discrete Variable Representation DVR 完全等效於基底的展開 f x i n 0 N c n ϕ n x i displaystyle f x i sum n 0 N c n phi n x i c n f ϕ n n 0 N w i f x i ϕ n x i displaystyle c n langle f phi n rangle sum n 0 N w i f x i overline phi n x i 相乘 编辑 和函數V x displaystyle V x 的相乘會在格點上進行 f x i V x i f x i displaystyle tilde f x i V x i f x i 一般來說這裡會有一些近似 可以計算其中一個係數c n displaystyle tilde c n c n f ϕ n i w i f x i ϕ n x i i w i V x i f x i ϕ n x i 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 利用譜方法 對應的係數會是c n V f ϕ n displaystyle tilde c n langle Vf phi n rangle 擬譜法則會用以下皂的近似來處理 V f ϕ n i w i V x i f x i ϕ n x i displaystyle langle Vf phi n rangle approx sum i w i V x i f x i overline phi n x i 若乘積可以用V f displaystyle Vf 給定的有限基底函數組合來表現 則上式在給定分割方式上會完全正確 特殊的擬譜架構 编辑傅立葉法 编辑 若問題中有週期性的邊界條件 其週期為 0 L displaystyle 0 L 基底函數可以用平面波來產生 ϕ n x 1 L e i k n x displaystyle phi n x frac 1 sqrt L e imath k n x 其中k n 1 n n 2 2 p L displaystyle k n 1 n lceil n 2 rceil 2 pi L 而 displaystyle lceil cdot rceil 是取整函数 在n max N displaystyle n text max N 處截斷的分割為離散傅立葉轉換 格點會平均分佈x i i D x displaystyle x i i Delta x 間隔為D x L N 1 displaystyle Delta x L N 1 各點的加權會是相同旳定值w i D x displaystyle w i Delta x 在討論誤差時 需注意到平面波的乘積也是平面波 ϕ a ϕ b ϕ c displaystyle phi a phi b phi c c a b displaystyle c leq a b 因此 定量來說 若函數f x V x displaystyle f x V x 可以用N f N V displaystyle N f N V 基底函數足夠準確的呈現 只要用N f N V displaystyle N f N V 個基底函數 即可用擬譜法得到足夠準確的結果 平面波的擴展一般效果較差 需要許多的基底函數才能收斂 不過 基底展開和格點表示的轉換可以用快速傅立葉轉換進行 其時間複雜度較低 為N ln N displaystyle N ln N 因此 平面波是擬譜法中常用的一種基底函數 多項式 编辑 另一種常見的展開方式是多項式 此處會使用高斯求积 Gaussian quadrature 其中提到可以找到加權係數w i displaystyle w i 及格點x i displaystyle x i 使得 a b w x p x d x i 0 N w i p x i displaystyle int a b w x p x dx sum i 0 N w i p x i 對任意的2 N 1 displaystyle 2N 1 次或是更低次的多項式p x displaystyle p x 都成立 一般而言 加權函數w x displaystyle w x 及範圍a b displaystyle a b 都是根據特定問題所選定的 因此會選擇幾種分割方式中的一種 若要用在擬譜法 需選擇基底函數為ϕ n x w x P n x displaystyle phi n x sqrt w x P n x 其中P n displaystyle P n 為n displaystyle n 階多項式 有以下特性 a b w x P n x P m x d x d m n displaystyle int a b w x P n x P m x dx delta mn 在上述條件下 the ϕ n displaystyle phi n 會是正交基底 其內積為 f g a b f x g x d x displaystyle langle f g rangle int a b f x overline g x dx 此基底以及分割點可以用在擬譜法中 有關其誤差 若f displaystyle f 可以用N f displaystyle N f 個基底函數很好的呈現 而V displaystyle V 可以用N V displaystyle N V 階多項式很好的呈現 則其積可以用前N f N V displaystyle N f N V 個基底函數很好的呈現 且擬譜法用該數量的基底函數 會有足夠準確的結果 在一些標準問題中 會出現這些多項式 例如量子簡諧振動子可以擴展為埃爾米特多項式 而在轉動問題中 會用雅可比多項式來定義相關的勒壤得多項式 參考資料 编辑 Orszag Steven A Comparison of Pseudospectral and Spectral Approximation Studies in Applied Mathematics September 1972 51 3 253 259 doi 10 1002 sapm1972513253 Orszag Steven A Numerical Methods for the Simulation of Turbulence Physics of Fluids 1969 12 12 II 250 doi 10 1063 1 1692445 Gottlieb David Orszag Steven A Numerical analysis of spectral methods theory and applications 5 print Philadelphia Pa Society for Industrial and Applied Mathematics 1989 ISBN 978 0898710236 Hesthaven Jan S Gottlieb Sigal Gottlieb David Spectral methods for time dependent problems 1 publ Cambridge u a Cambridge Univ Press 2007 ISBN 9780521792110 Trefethen Lloyd N Spectral methods in MATLAB 3rd repr Philadelphia Pa SIAM 2000 ISBN 978 0 89871 465 4 Fornberg Bengt A Practical Guide to Pseudospectral Methods Cambridge Cambridge University Press 1996 ISBN 9780511626357 Boyd John P Chebyshev and Fourier spectral methods 2nd ed rev Mineola N Y Dover Publications 2001 2019 07 17 ISBN 978 0486411835 原始内容存档于2019 06 24 Funaro Daniele Polynomial approximation of differential equations Berlin Springer Verlag 1992 2019 07 17 ISBN 978 3 540 46783 0 原始内容存档于2011 07 22 de Frutos Javier Novo Julia A Spectral Element Method for the Navier Stokes Equations with Improved Accuracy SIAM Journal on Numerical Analysis January 2000 38 3 799 819 doi 10 1137 S0036142999351984 Claudio Canuto M Yousuff Hussaini Alfio Quarteroni Thomas A Zang Spectral methods fundamentals in single domains Berlin Springer Verlag 2006 ISBN 978 3 540 30726 6 Press WH Teukolsky SA Vetterling WT Flannery BP Section 20 7 Spectral Methods Numerical Recipes The Art of Scientific Computing 3rd New York Cambridge University Press 2007 2019 07 17 ISBN 978 0 521 88068 8 原始内容存档于2011 08 11 取自 https zh wikipedia org w index php title 擬譜法 amp oldid 68706249, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。