# 时域有限差分法

时域有限差分法（finite-difference time-domain，FDTD）是一种数值技术，它用离散网格上求值的有限差分方程替代麦克斯韦方程，并随场在时间上逐步推进来求解。该方法由劳伦斯利弗莫尔国家实验室（Lawrence Livermore National Laboratory）的凯恩·S·尤（Kane S. Yee）在1966年发表于《IEEE天线与传播汇刊》（*IEEE Transactions on Antennas and Propagation*）的论文中提出，如今已成为计算电磁学中应用最广泛的方法之一，在Meep、gprMax等开源软件包以及商业求解器中均有实现。<sup>[1](https://doi.org/10.1109/TAP.1966.1138693)</sup><sup> • </sup><sup>[2](https://meep.readthedocs.io/en/latest/Introduction/)</sup><sup> • </sup><sup>[3](https://github.com/gprmax/gprMax)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 凯恩·S·尤，“各向同性介质中含麦克斯韦方程的初边值问题的数值解”，《IEEE天线与传播汇刊》 14(3)，第302–307页，1966年5月<sup>[1](https://doi.org/10.1109/TAP.1966.1138693)</sup> |
| 网格 | Yee网格：电场分量存储于网格单元棱边，磁场分量存储于单元面，在均匀区域具有二阶精度<sup>[4](https://meep.readthedocs.io/en/latest/Yee_Lattice/)</sup> |
| 时间推进 | 蛙跳格式：电场在整数时间步更新，磁场在半整数时间步更新；这种交错排布对数值稳定性至关重要<sup>[5](https://docs.gprmax.com/en/latest/gprmodelling.html)</sup> |
| 稳定性 | 库朗条件 \( S < n_{\min}/\sqrt{\text{dimensions}} \)；Meep默认库朗因子为0.5，足以满足1至3维情形<sup>[2](https://meep.readthedocs.io/en/latest/Introduction/)</sup> |
| 空间分辨率 | 经验法则：单元尺寸不超过所关注最小波长的约十分之一<sup>[6](https://www.cambridge.org/core/books/abs/computational-electromagnetics-for-rf-and-microwave-engineering/finite-difference-time-domain-method-in-two-and-three-dimensions/E56350275E36B1BABA584F8D26FEA053)</sup> |
| 开放边界 | 完美匹配层（PML），1994年发表于《计算物理杂志》（*J. Computational Physics*）114，第185–200页，理论上可在所有频率和角度上无反射地吸收波<sup>[7](https://meep.readthedocs.io/en/latest/Perfectly_Matched_Layer/)</sup> |
| 开销标度 | 三维情形下，网格分辨率加倍使内存增至8倍，计算时间至少增至2倍<sup>[2](https://meep.readthedocs.io/en/latest/Introduction/)</sup> |

## Yee算法

Yee在1966年的论文中用一组有限差分方程替代麦克斯韦方程，并证明：若场点选取得当，该格式满足理想导体表面的边界条件；论文以理想导体圆柱对电磁脉冲的散射为例演示了该方法。<sup>[1](https://doi.org/10.1109/TAP.1966.1138693)</sup>

场点的选取方式即Yee网格，是FDTD网格的基本单元。在三维情形下，电场 \(\mathbf{E}\) 的三个分量按相应方向存储于每个立方单元的棱边上，而磁场 \(\mathbf{H}\) 的各分量存储于单元面上。这种偏移布置使麦克斯韦方程中的旋度算子在均匀区域能够以二阶精度离散化。<sup>[4](https://meep.readthedocs.io/en/latest/Yee_Lattice/)</sup> 场在时间上同样交错：电场分量在整数时间步更新，磁场分量在半整数时间步更新，这种蛙跳排布被认为是该方法数值稳定性的关键。<sup>[5](https://docs.gprmax.com/en/latest/gprmodelling.html)</sup>

**材料表示。** 物体通过在场分量所在位置赋予本构参数（介电常数、磁导率、电导率）进入模型，因此可以方便地纳入形状复杂的目标。然而，与正交网格不贴合的曲面边界，只能以其物理表面的阶梯近似来施加。<sup>[5](https://docs.gprmax.com/en/latest/gprmodelling.html)</sup><sup> • </sup><sup>[8](https://www.gacbe.ac.in/images/E%20books/Electromagnetic%20Shielding%20-%20S.%20Celozzi%2C%20et%20al%20%28IEEE%20Wiley%2C%202008%29.pdf)</sup> Meep通过介电函数的亚像素平均来应对阶梯化问题，从而改善收敛性，但该方法未应用于色散材料或用户自定义的材料函数。<sup>[9](https://meep.readthedocs.io/en/latest/FAQ/)</sup>

## 离散化、稳定性与开销

FDTD对空间和时间同时离散，因此空间步长 \(\Delta x\)、\(\Delta y\)、\(\Delta z\) 与时间步长 \(\Delta t\) 决定了模型对真实问题的逼近程度；步长越小，逼近越精确，但计算规模更大、速度更慢。<sup>[5](https://docs.gprmax.com/en/latest/gprmodelling.html)</sup> 有两条规则支配这些选择。空间上，单元尺寸 \(\Delta s\) 应不超过所关注最小波长（最高频率）的约十分之一。时间上，\(\Delta t\) 必须满足库朗–弗里德里希斯–列维（Courant–Friedrichs–Lewy，CFL）极限，并应尽可能接近该极限以最小化色散。<sup>[6](https://www.cambridge.org/core/books/abs/computational-electromagnetics-for-rf-and-microwave-engineering/finite-difference-time-domain-method-in-two-and-three-dimensions/E56350275E36B1BABA584F8D26FEA053)</sup> 按Meep采用的记号，库朗因子将步长联系为 \( c\,\Delta t = S\,\Delta x \)，稳定性要求 \( S < n_{\min}/\sqrt{\text{dimensions}} \)，其中 \( n_{\min} \) 为网格中的最小折射率。<sup>[2](https://meep.readthedocs.io/en/latest/Introduction/)</sup> 由于该算法是显式的，必须始终满足这一条件，从而将最大时间步长与最小单元尺寸绑定在一起。<sup>[8](https://www.gacbe.ac.in/images/E%20books/Electromagnetic%20Shielding%20-%20S.%20Celozzi%2C%20et%20al%20%28IEEE%20Wiley%2C%202008%29.pdf)</sup>

**开销。** CFL约束意味着细化网格会在两个方面同时抬高开销。三维情形下，分辨率加倍使内存增至8倍（单元数），而在相同模拟时长下时间步数至少翻倍。<sup>[2](https://meep.readthedocs.io/en/latest/Introduction/)</sup> 子网格技术通过在粗网格内部设置细离散区域来缓解这一问题：粗区域维持粗时间步长，因而单元数与迭代次数均下降。早期gprMax的子网格研究采用交替方向隐式（ADI-FDTD）格式；当前代码使用带人工损耗机制的惠更斯子网格算法。<sup>[10](https://docs.gprmax.com/en/latest/features.html)</sup> ADI-FDTD本身由T. 并木（T. Namiki）提出，是一种消除CFL限制的相关FDTD算法。<sup>[11](https://www.cs.man.ac.uk/~fumie/tmp/garciafdtd.pdf)</sup>

## 数值色散

由于Yee格式用差分近似导数，网格上的波以随频率和方向变化的相速度传播，与物理相速度不同；这种数值色散是该方法的固有特性，取决于频率、波在Yee网格中的传播方向以及采样方式。<sup>[12](https://www.sciencedirect.com/science/article/pii/S0021999106002932)</sup><sup> • </sup><sup>[13](https://dalspaceb.library.dal.ca/server/api/core/bitstreams/8abcb5a5-8873-47c0-a30a-a1e788e6d5c8/content)</sup> 一个反直觉的推论与时间步长有关。对于标准二阶精度FDTD(2,2)格式，在CFL极限下减小时间步长反而会增大数值色散和仿真误差；而对于四阶FDTD(2,4)格式，随着时间步长增大，色散误差先减小后增大。<sup>[14](https://arxiv.org/abs/2001.10721)</sup> 为抑制这些误差，人们发展了多种色散减小格式，包括应用于Yee算法的通量修正输运，以及针对时谐问题的Yee模板渐近色散校正。<sup>[12](https://www.sciencedirect.com/science/article/pii/S0021999106002932)</sup><sup> • </sup><sup>[15](https://www.tandfonline.com/doi/abs/10.1163/156939394X01000)</sup><sup> • </sup><sup>[16](https://doi.org/10.1016/j.jcp.2025.114602)</sup> 替代离散化方案同样以减小色散为目标：在面心立方网格上用离散外微分演算离散麦克斯韦方程，相比标准Yee方法可改善数值色散与网格各向同性，代价是稳定性限制略为收紧。<sup>[17](https://www.sciencedirect.com/science/article/pii/S0021999118301773)</sup>

## 开放边界：吸收条件

大多数应用，如探地雷达、天线和散射问题，都是初值、开放边界问题：必须允许场传播至无穷远处归零，而有限网格无法直接表示这一点。因此，在距源和目标足够远处施加近似吸收边界条件（absorbing boundary condition，ABC），以截断计算空间并模拟无界空间。<sup>[5](https://docs.gprmax.com/en/latest/gprmodelling.html)</sup>

完美匹配层（perfectly matched layer，PML）于1994年提出，它用一种介质包围计算单元，理论上可在所有频率和入射角上无任何反射地吸收电磁波。最初的表述将麦克斯韦方程在吸收层中拆分为两组非物理方程；1995年的重新表述表明，同样的无反射吸收介质可以构建为电导率与磁电导率相匹配的有耗各向异性材料，称为单轴PML（uniaxial PML，UPML）。<sup>[7](https://meep.readthedocs.io/en/latest/Perfectly_Matched_Layer/)</sup> 实践中，层的电导率必须在几个网格点上逐渐开启，以避免不连续性引起的反射；PML厚度取与仿真中最大波长的一半相当是常见的经验法则，并应加倍直至结果收敛。<sup>[7](https://meep.readthedocs.io/en/latest/Perfectly_Matched_Layer/)</sup> gprMax使用拉伸坐标PML，并建议源和目标距边界至少15个单元；其默认设置是在计算域六个面上各设10个单元的一阶复频移（complex-frequency-shifted，CFS）PML。<sup>[5](https://docs.gprmax.com/en/latest/gprmodelling.html)</sup><sup> • </sup><sup>[18](https://docs.gprmax.com/en/latest/input_hash_cmds.html)</sup> PML在某些非均匀或返波情形下会失效，此时通常的变通办法是改用更厚的绝热吸收层。<sup>[7](https://meep.readthedocs.io/en/latest/Perfectly_Matched_Layer/)</sup>

## 实现与软件

由于更新是显式且局部的，FDTD具有良好的并行性。gprMax是用于探地雷达、天线、雷达和生物电磁学建模的开源软件，其FDTD求解器循环用OpenMP并行化，并支持CUDA网格。<sup>[3](https://github.com/gprmax/gprMax)</sup> Meep是一个免费开源软件包，涵盖广泛的电磁学应用，通过MPI在分布式内存系统上运行，并在时间推进之外提供频域分析，如坡印廷通量、用于求取S参数的模式分解、局域态密度以及近远场变换。<sup>[2](https://meep.readthedocs.io/en/latest/Introduction/)</sup><sup> • </sup><sup>[19](https://meep.readthedocs.io/en/latest/)</sup>

时域方法的一个实际优势是宽带响应：用短脉冲单次运行，并在时间推进过程中做傅里叶变换，即可一次性得到多个频率上的响应；而频域求解器一次只计算一个连续波响应。<sup>[2](https://meep.readthedocs.io/en/latest/Introduction/)</sup> 不过，收敛性必须通过经验检验：将分辨率、运行时间和PML厚度加倍，验证所关注的量不再变化。<sup>[9](https://meep.readthedocs.io/en/latest/FAQ/)</sup>

## References

1. [K.S. Yee (1966). Numerical solution of initial boundary value problems involving Maxwell's equations in isotropic media. IEEE Transactions on Antennas and Propagation 14(3), 302–307.](https://doi.org/10.1109/TAP.1966.1138693)
2. [Introduction, MEEP Documentation](https://meep.readthedocs.io/en/latest/Introduction/)
3. [gprMax GitHub repository](https://github.com/gprmax/gprMax)
4. [Yee Lattice, MEEP Documentation](https://meep.readthedocs.io/en/latest/Yee_Lattice/)
5. [Guidance on GPR and general electromagnetic modelling, gprMax documentation](https://docs.gprmax.com/en/latest/gprmodelling.html)
6. [D.B. Davidson, "The finite difference time domain method in two and three dimensions," in Computational Electromagnetics for RF and Microwave Engineering, Cambridge University Press, 2005, pp. 68–117.](https://www.cambridge.org/core/books/abs/computational-electromagnetics-for-rf-and-microwave-engineering/finite-difference-time-domain-method-in-two-and-three-dimensions/E56350275E36B1BABA584F8D26FEA053)
7. [Perfectly Matched Layers, MEEP Documentation](https://meep.readthedocs.io/en/latest/Perfectly_Matched_Layer/)
8. [Electromagnetic Shielding (S. Celozzi et al., IEEE Wiley, 2008), FDTD chapter](https://www.gacbe.ac.in/images/E%20books/Electromagnetic%20Shielding%20-%20S.%20Celozzi%2C%20et%20al%20%28IEEE%20Wiley%2C%202008%29.pdf)
9. [FAQ, MEEP Documentation](https://meep.readthedocs.io/en/latest/FAQ/)
10. [Software Features, gprMax documentation](https://docs.gprmax.com/en/latest/features.html)
11. [S.C. Hagness et al., FDTD reference list including T. Namiki, "A new FDTD algorithm based on alternating-direction implicit method"](https://www.cs.man.ac.uk/~fumie/tmp/garciafdtd.pdf)
12. [Finite difference time domain dispersion reduction schemes, Journal of Computational Physics](https://www.sciencedirect.com/science/article/pii/S0021999106002932)
13. [Developing an FDTD simulation tool (Dalhousie University thesis)](https://dalspaceb.library.dal.ca/server/api/core/bitstreams/8abcb5a5-8873-47c0-a30a-a1e788e6d5c8/content)
14. [Investigation of Numerical Dispersion with Time Step of the FDTD Methods, arXiv:2001.10721](https://arxiv.org/abs/2001.10721)
15. [Suppression of dispersion in FDTD solutions of Maxwell's equations, Journal of Electromagnetic Waves and Applications](https://www.tandfonline.com/doi/abs/10.1163/156939394X01000)
16. [P.-H. Cocquet and M.J. Gander, Improving Yee's scheme with asymptotic dispersion correction for time-harmonic Maxwell's equations, Journal of Computational Physics](https://doi.org/10.1016/j.jcp.2025.114602)
17. [M. Salmasi and M. Potter, Discrete exterior calculus approach for discretizing Maxwell's equations on face-centered cubic grids for FDTD, Journal of Computational Physics 364, 298–313 (2018)](https://www.sciencedirect.com/science/article/pii/S0021999118301773)
18. [Model Building, gprMax documentation](https://docs.gprmax.com/en/latest/input_hash_cmds.html)
19. [MEEP Documentation](https://meep.readthedocs.io/en/latest/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: 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 › Computational electromagnetics

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/finite-difference-time-domain-method

English original: https://www.edgepedia.org/finite-difference-time-domain-method
