# 谱方法

谱方法是一种求解偏微分方程的数值技术，其解被近似为全局正交基函数之和，例如傅里叶模态或切比雪夫多项式，而非局部多项式模板。该方法属于加权残量法族，采用特定的正交展开函数选择，对于线性问题其三种主要变体为伽辽金法、τ法和配点法<sup>[1](https://pages.saclay.inria.fr/frederic.alauzet/download/Magoules_Computational%20fluid%20dynamics.pdf)</sup>。当解足够光滑时，误差的下降速度快于分辨率的任意幂次，这一性质称为谱收敛或指数收敛<sup>[2](https://faculty.eng.ufl.edu/donald-slinn/wp-content/uploads/sites/326/2020/11/CFD-lecture-9.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 使用全局正交基函数的加权残量法；主要变体为伽辽金法、τ法和配点法<sup>[1](https://pages.saclay.inria.fr/frederic.alauzet/download/Magoules_Computational%20fluid%20dynamics.pdf)</sup> |
| 收敛性 | 对于光滑解，误差下降快于n的任意代数阶；随网格间距减小呈指数下降<sup>[2](https://faculty.eng.ufl.edu/donald-slinn/wp-content/uploads/sites/326/2020/11/CFD-lecture-9.pdf)</sup> |
| 基函数选择 | 周期边界使用傅里叶模态；零值边界使用正弦或切比雪夫多项式基<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup> |
| 计算成本 | 基于快速傅里叶变换的变换复杂度为\( \mathcal{O}(n_x \log n_x) \)，关于网格点数近乎线性<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup> |
| 去混叠 | 2/3伪谱规则去除谱中最高1/3部分，以避免二次非线性引起的混叠误差<sup>[4](https://arxiv.org/abs/1308.5314)</sup> |
| 主要局限 | 间断引起吉布斯振荡；复杂几何和边界条件的处理不如有限差分或有限元方法便利<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0021999119302311)</sup><sup> • </sup><sup>[2](https://faculty.eng.ufl.edu/donald-slinn/wp-content/uploads/sites/326/2020/11/CFD-lecture-9.pdf)</sup> |
| 应用 | 湍流模拟、地球物理流体建模、数值相对论和天气预报<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup><sup> • </sup><sup>[6](https://www.cambridge.org/core/product/identifier/CBO9780511780820A046/type/BOOK_PART)</sup><sup> • </sup><sup>[7](https://link.springer.com/article/10.12942/lrr-2009-1)</sup> |

## 方法原理

出发点是将函数近似为跨越整个计算域的基函数的截断展开，这与有限差分法的局部模板形成对比<sup>[8](https://matforge.org/spectral-methods-for-pde-simulation-theory-implementation-and-when-to-use-them/)</sup>。基函数的选择与边界条件密切相关：对于周期性问题，傅里叶基被描述为完美适配的；而边界零值条件则需要由正弦或切比雪夫多项式构成的基<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup>。一个关键的结构性要求是几何形状能够按不同维度分别描述，如矩形或圆柱体<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup>。

**对角线性算子。** 在傅里叶基下，涉及空间算子的线性项变为对角形式，可以精确计算。对于一维伯格斯方程\( \partial_t v + v \partial_x v = \nu \partial_x^2 v \)，傅里叶变换给出\( \partial_t \hat v = -TF[v \partial_x v] - \nu k_x^2 \hat v \)，其中黏性项只需乘以\( -\nu k_x^2 \)<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup>。微分的这种精确性是核心优势：一旦场被展开为谐波，空间导数即由精确的解析表达式给出<sup>[6](https://www.cambridge.org/core/product/identifier/CBO9780511780820A046/type/BOOK_PART)</sup>。

**非线性项与伪谱方法。** 乘积的傅里叶变换是卷积，直接数值计算代价高昂。伪谱方法则先将场变换到物理空间，在物理空间做乘法，再变换回来；使用这种方法的程序大部分时间花在执行谱变换上<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup>。快速傅里叶变换使成本保持可控，其\( \mathcal{O}(n_x \log n_x) \)的复杂度和诸如FFTW等高效实现使伪谱方法具有竞争力，尤其在大分辨率下<sup>[3](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)</sup>。

## 收敛性与精度

对于足够光滑的周期函数，误差随项数N的增加而快速衰减，当函数无穷可微时，所有空间导数均恢复谱收敛<sup>[9](https://doi.org/10.1016/s0377-0427(00)00510-0)</sup>。在一项数值相对论应用中，基于球谐函数和切比雪夫多项式构建的泊松求解器显示误差以\( e^{-\ell_{\max}} \cdot e^{-N} \)衰减，在\( \ell_{\max} \sim N \sim 30 \)时达到机器舍入精度，使得矩阵求逆的CPU时间非常低廉<sup>[7](https://link.springer.com/article/10.12942/lrr-2009-1)</sup>。与同等精度的有限差分方法相比，谱方法需要更少的网格点，因而计算时间更短<sup>[10](https://pure.tue.nl/ws/portalfiles/portal/73328590/614804.pdf)</sup>。

这种精度以光滑性为前提。对于非光滑问题，收敛性急剧恶化：间断问题的误差\( L_2 \)范数以亚线性速率收敛，而无穷范数完全不收敛<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0021999119302311)</sup>。有限傅里叶和在间断附近的振荡行为由威尔布拉汉于1848年分析，后来被命名为吉布斯现象<sup>[11](https://epubs.siam.org/doi/10.1137/S0036144596301390)</sup>。最优收敛磨光器等后处理技术可以从非光滑数据的低收敛谱重构中恢复指数收敛<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0021999119302311)</sup>。

## 稳定性与去混叠

二次非线性引入混叠误差，即未分辨的高波数内容被误读为低波数内容。标准补救方法是2/3伪谱傅里叶方法，即去除谱中最高1/3部分；这通常是保持二次能量平衡和避免混叠误差的首选方法<sup>[4](https://arxiv.org/abs/1308.5314)</sup>。理论支持一个明确的分界：只要无黏伯格斯方程或不可压缩欧拉方程的精确解具有\( C^{1+\alpha} \)空间正则性，谱方法和2/3伪谱方法都是稳定的并谱收敛；在解失去足够光滑性的临界时间之后，两者都表现出通过虚假振荡实现的非线性不稳定性<sup>[4](https://arxiv.org/abs/1308.5314)</sup>。

**实际成本。** 谱方法为保持稳定性需要比有限差分格式更小的时间步长，且复杂几何或边界条件较难处理：最简单的方法要求周期性，自由滑移条件可用余弦变换实现，无滑移条件用正弦变换实现，而壁面处纳维-斯托克斯方程的一种流行方法是在加密网格上使用切比雪夫变换<sup>[2](https://faculty.eng.ufl.edu/donald-slinn/wp-content/uploads/sites/326/2020/11/CFD-lecture-9.pdf)</sup>。

## 扩展与应用

**谱元方法。** 谱元方法由安东尼·帕特拉及其合作者于20世纪80年代提出，它将全局谱方法的张量积效率与有限元的几何灵活性相结合，在非结构网格的变形单元内的求积点上使用高阶张量积拉格朗日多项式<sup>[12](https://www.sciencedirect.com/topics/mathematics/spectral-element-method)</sup>。相关的谱/hp元方法在粗有限元型网格上采用高次分片多项式基函数，在一定正则性假设下，随着多项式阶数p的增加实现近似误差的指数下降<sup>[13](https://doi.org/10.1007/s42241-018-0001-1)</sup>。

**地球物理流体动力学。** 谱方法已广泛用于大气、海洋、外核和地幔的地球物理建模。球谐函数作为球面上的基函数，给出近似均匀的分辨率；水平方向通常对周期侧边界使用三角展开，而垂直方向使用切比雪夫多项式或有限差分。该方法非常适合系数（如黏性或热扩散率）空间恒定的方程，因为不同谐波的方程在谱空间中解耦<sup>[6](https://www.cambridge.org/core/product/identifier/CBO9780511780820A046/type/BOOK_PART)</sup>。

**湍流与相对论。** 伪谱方法广泛用于湍流的直接数值模拟，其中2/3截断规则在三维中可占总成本的80%，这促使人们寻求更廉价的相移替代方案<sup>[14](https://arxiv.org/abs/2603.08892)</sup>。在数值相对论中，谱方法与球谐函数和切比雪夫展开、多域拼接以及将空间无穷远紧致化的映射一起用于椭圆问题，如初始数据方程<sup>[7](https://link.springer.com/article/10.12942/lrr-2009-1)</sup>。

## References

1. [Computational Fluid Dynamics, Chapter 3: Spectral methods (Magoulès, Godefird et al.), CRC Press](https://pages.saclay.inria.fr/frederic.alauzet/download/Magoules_Computational%20fluid%20dynamics.pdf)
2. [Computational Fluid Dynamics, Lecture 9: Spectral Methods, University of Florida](https://faculty.eng.ufl.edu/donald-slinn/wp-content/uploads/sites/326/2020/11/CFD-lecture-9.pdf)
3. [Spectral and pseudo-spectral methods, Numerical Methods for Turbulence course, Université Grenoble Alpes](https://master-tma.gricad-pages.univ-grenoble-alpes.fr/num-methods-turb/part2/chapter1_pseudospectral_methods.html)
4. [Bardos & Tadmor, Stability and spectral convergence of Fourier method for nonlinear problems: On the shortcomings of the 2/3 de-aliasing method, arXiv](https://arxiv.org/abs/1308.5314)
5. [Piotrowska, Miller & Schnetter, Spectral methods in the presence of discontinuities, Journal of Computational Physics 390 (2019)](https://www.sciencedirect.com/science/article/abs/pii/S0021999119302311)
6. [Ismail-Zadeh & Tackley, Spectral methods, Computational Methods for Geodynamics, Cambridge University Press (2010)](https://www.cambridge.org/core/product/identifier/CBO9780511780820A046/type/BOOK_PART)
7. [Grandclément & Novak, Spectral Methods for Numerical Relativity, Living Reviews in Relativity (2009)](https://link.springer.com/article/10.12942/lrr-2009-1)
8. [Spectral Methods for PDE Simulation: Theory, Implementation, and When to Use Them](https://matforge.org/spectral-methods-for-pde-simulation-theory-implementation-and-when-to-use-them/)
9. [Hesthaven, Spectral methods for hyperbolic problems, Journal of Computational and Applied Mathematics 128 (2001)](https://doi.org/10.1016/s0377-0427(00)00510-0)
10. [Pseudospectral DNS of turbulent flow, TU Eindhoven thesis chapter](https://pure.tue.nl/ws/portalfiles/portal/73328590/614804.pdf)
11. [Gottlieb & Shu, On the Gibbs Phenomenon and Its Resolution, SIAM Review 39 (1997)](https://epubs.siam.org/doi/10.1137/S0036144596301390)
12. [Spectral Element Method, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/mathematics/spectral-element-method)
13. [Xu et al., Spectral/hp element methods: Recent developments, applications, and perspectives, Journal of Hydrodynamics 30 (2018)](https://doi.org/10.1007/s42241-018-0001-1)
14. [Aliasing and phase shifting in pseudo-spectral simulations of the incompressible Navier-Stokes equations, arXiv](https://arxiv.org/abs/2603.08892)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 物理学方法、实践与学术共同体 › Applied and interdisciplinary physics › Computational and simulation physics › Numerical methods in physics › Field and continuum simulation methods › Spectral and pseudospectral methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/spectral-method

English original: https://www.edgepedia.org/spectral-method
