# 自适应网格细化

自适应网格细化（Adaptive mesh refinement，AMR）是一种用于求解偏微分方程的数值技术，其中计算网格会动态改变分辨率，只在解需要的地方放置细网格单元，而在其他地方放置粗网格单元。它是为双曲型问题设计的，这类问题的解会产生激波、边界层以及其他随时间移动的陡峭梯度，因此计算中代价高昂的区域会逐步变化。<sup>[1](https://doi.org/10.1016/0021-9991%2884%2990073-1)</sup><sup> • </sup><sup>[2](https://doi.org/10.1016/0021-9991%2889%2990035-1)</sup> 以所需最细分辨率使用均匀网格，会在其他所有地方浪费内存和计算量；AMR 通过把计算集中到估计误差较大的地方来同时减少这两者，代价是网格管理机制要复杂得多。<sup>[3](https://www.osti.gov/pages/servlets/purl/1864154)</sup>

| 关键事实 | 细节 |
|---|---|
| 原始表述 | 伯杰（Berger）与奥利格（Oliger），1984 年，在时间和空间上细化的多重分量网格，由理查森型截断误差估计驱动<sup>[1](https://doi.org/10.1016/0021-9991%2884%2990073-1)</sup> |
| 守恒形式 | 伯杰与科莱拉（Colella），1989 年，针对二维双曲型守恒律的自动 AMR，尽量减少内存和 CPU 开销<sup>[2](https://doi.org/10.1016/0021-9991%2889%2990035-1)</sup> |
| 细化比 | 通常为 2 的倍数；细一级的子网格间距为 \( h_{l+1} = h_l / r \)，时间步也按相同因子细化<sup>[4](https://www.cs.utexas.edu/~dagh/ch3.html)</sup> |
| 守恒性 | 除非用通量修正以累积的细网格通量替换粗网格通量，否则会在粗–细界面处丢失<sup>[5](https://www.esaim-proc.org/articles/proc/pdf/2011/03/proc113402.pdf)</sup> |
| 实测效率 | 在伯杰的一维模型问题中，达到同等精度时计算时间仅为均匀粗网格的 1/3 到 1/5<sup>[6](https://escholarship.org/content/qt5g0619q1/qt5g0619q1.pdf)</sup>；在实际应用中，相比均匀细网格可节省数个数量级的计算量<sup>[7](https://cs.nyu.edu/~berger/dynMotion.pdf)</sup> |
| 误差估计器开销 | 在二维、细化比为 4、每个粗时间步都估计误差时，约占 CPU 时间的 1.8%<sup>[7](https://cs.nyu.edu/~berger/dynMotion.pdf)</sup> |
| 并行规模 | p4est 在 220,320 个 CPU 核上可自适应处理多达 \( 5.13 \times 10^{11} \) 个八叉树单元<sup>[8](https://doi.org/10.1137/100791634)</sup>；Parthenon 在 Frontier 的 9,216 个节点（73,728 个逻辑 GPU）上达到 92% 的弱扩展并行效率<sup>[29](https://www.compphys.de/publications/2022b.pdf)</sup><sup> • </sup><sup>[9](https://doi.org/10.1177/10943420221143775)</sup> |

## 工作原理

块结构 AMR 在分量网格层级上表示解：一个粗基础网格覆盖矩形区域，而在局部截断误差估计超过阈值的地方，叠加矩形细网格片；网格片本身还可以包含更细的网格片，因此这种结构是递归的。<sup>[1](https://doi.org/10.1016/0021-9991%2884%2990073-1)</sup> 一些 AMR 方法使用树或森林数据结构，而其他实现按细化层级组织网格片，不使用显式的树或有向无环图。<sup>[4](https://www.cs.utexas.edu/~dagh/ch3.html)</sup>

时间上的细化与空间上的细化相伴。由于显式格式的时间步受柯朗数限制（该比值用单元尺寸和速度限制时间步），把空间分辨率细化 \( r \) 倍，就要求时间步也缩小 \( r \) 倍；因此更细的层级在每个粗时间步中要走更多、更小的步，这种做法称为子循环。<sup>[10](http://www.clawpack.org/amr_algorithm.html)</sup> 这使各层级的时间步与空间步之比（网格比）保持恒定。<sup>[4](https://www.cs.utexas.edu/~dagh/ch3.html)</sup>

守恒性需要显式修复。当被细网格片覆盖的粗网格单元被细网格值的平均所覆盖时，网格片边界处的粗网格通量不再与细网格通量匹配，守恒量就会泄漏。补救办法是把每个受影响面上的粗网格数值通量替换为穿过该面的细网格通量之和，这种修正分别被称为通量修正或回流修正；它保证单层通量形式算法所守恒的量在层级结构中仍然守恒。<sup>[5](https://www.esaim-proc.org/articles/proc/pdf/2011/03/proc113402.pdf)</sup><sup> • </sup><sup>[11](https://arxiv.org/html/2404.16648)</sup>

## 实现方式

一个完整的块结构 AMR 算法有四个组成部分：时间步控制器、网格间通信、带单元标记策略的误差估计器，以及网格生成或网格片生成算法。<sup>[7](https://cs.nyu.edu/~berger/dynMotion.pdf)</sup>

1. **误差估计与标记。** 经典估计器是[理查森外推](https://www.edgepedia.org/zh/richardson-extrapolation)：将网格片上的数据粗化，推进 \( 2\Delta t \)，再与经过两个 \( \Delta t \) 步后的细网格解比较，使两个解到达同一时刻，然后取差值，该差值与误差成正比。<sup>[12](https://hipacc.ucsc.edu/Lecture%20Slides/2011ISSAC/AlmgrenHIPACC_July2011.pdf)</sup> 更便宜的替代方案是缩放梯度，或洛纳（Löhner）的无量纲修正二阶导数估计器，后者用于 PARAMESH 和 MPI-AMRVAC。<sup>[13](https://flash.rochester.edu/site/flashcode/user_support/flash4_ug_4p7/node59.html)</sup><sup> • </sup><sup>[14](https://amrvac.org/md_doc_2amrstructure.html)</sup>
2. **聚类与网格重建。** 被标记单元（加上缓冲单元）用伯杰–里古措斯（Rigoutsos）聚类算法分组成矩形，在网格效率与网格数量之间取得平衡；典型截断值 0.7 要求新网格单元中至少 70% 位于被标记区域，而补集操作会强制正确嵌套。<sup>[10](http://www.clawpack.org/amr_algorithm.html)</sup><sup> • </sup><sup>[15](https://rdeiterding.website/pub/AMROC/lecture1.pdf)</sup> AMReX 还对网格片尺寸额外强制 `blocking_factor` 和 `max_grid_size` 约束。<sup>[16](https://journals.sagepub.com/doi/10.1177/10943420211022811)</sup>
3. **层间转移。** 限制是将细网格单元守恒平均到被覆盖的粗网格单元上；延拓是双线性插值，用于初始化新网格点并填充幽灵单元。<sup>[15](https://rdeiterding.website/pub/AMROC/lecture1.pdf)</sup><sup> • </sup><sup>[10](http://www.clawpack.org/amr_algorithm.html)</sup>
4. **时间推进。** 在伯杰–科莱拉（Berger–Colella）两层格式中，粗网格推进一步，细网格推进 \( n_{\mathrm{refine}} \) 个子步，然后通过将细网格数据平均下传并在界面施加回流修正来同步各层级。<sup>[17](http://helper.ipam.ucla.edu/publications/pcatut/pcatut_5471.pdf)</sup>

## 起源

玛莎·J·伯杰（Marsha J. Berger）与约瑟夫·奥利格（Joseph Oliger）的期刊论文《双曲型偏微分方程的自适应网格细化》（《计算物理学杂志》53(3)，1984 年，第 484–512 页）提出了基于多重分量网格、理查森型截断误差估计以及在时间和空间上同时细化的方法；作者表示，他们相信这些是首批使用这种时空网格结构的自适应方法。<sup>[1](https://doi.org/10.1016/0021-9991%2884%2990073-1)</sup><sup> • </sup><sup>[18](https://apps.dtic.mil/sti/pdfs/ADA130162.pdf)</sup>

M.J. 伯杰与 P. 科莱拉（P. Colella）1989 年的论文《激波流体力学的局部自适应网格细化》（《计算物理学杂志》82(1)，第 64–84 页）为二维双曲型守恒律发展了一种自动策略，处理了解中的间断如何与网格中的间断相互作用，以及如何组织算法以尽量减少内存和 CPU 开销。<sup>[2](https://doi.org/10.1016/0021-9991%2889%2990035-1)</sup> 约翰·贝尔（John Bell）及其同事在《双曲型守恒律的三维自适应网格细化》（《SIAM 科学计算杂志》，1994 年）中把方法推广到三维。<sup>[19](https://doi.org/10.1137/0915008)</sup> 一个相邻分支是自适应有限元：雷纳德·洛纳（Rainald Löhner）1987 年发表在《应用力学与工程中的计算机方法》上的论文，为瞬态 CFD 问题引入了修正二阶导数估计器<sup>[20](https://doi.org/10.1016/0045-7825%2887%2990098-3)</sup>；1995 年《纯粹与应用数学通讯》的一篇文章证明了双曲型守恒律有限元方法的后验误差估计，并给出了相应的自适应方法。<sup>[21](https://onlinelibrary.wiley.com/doi/10.1002/cpa.3160480302)</sup>

## 变体

2024 年的一种分类法区分出三种结构化类型：在四叉树或八叉树网格上基于单元的细化（例如 p4est、libMesh）；使用等大小块的四叉树/八叉树基于网格片的细化（FLASH）；以及不带树结构的基于层级的网格片细化（AMReX、AMRClaw、Chombo、Uintah）；后两类都称为块结构。<sup>[11](https://arxiv.org/html/2404.16648)</sup> 最初的伯杰–奥利格方法使用任意取向的旋转细化矩形，并与激波等奇异面对齐；简化的伯杰–科莱拉变体则与粗网格对齐，这就是今天“结构化自适应网格细化”通常所指的内容。<sup>[5](https://www.esaim-proc.org/articles/proc/pdf/2011/03/proc113402.pdf)</sup><sup> • </sup><sup>[18](https://apps.dtic.mil/sti/pdfs/ADA130162.pdf)</sup>

p4est 管理一个八叉树森林，其中细化和粗化操作的运行时间为 \( O(N \cdot p) \)。<sup>[8](https://doi.org/10.1137/100791634)</sup> 非结构化三角剖分提供了更好的几何灵活性，但要求全局时间步满足最小单元上的 CFL 条件，这使显式有限体积格式效率低下。<sup>[5](https://www.esaim-proc.org/articles/proc/pdf/2011/03/proc113402.pdf)</sup> R-自适应（移动网格）方法则保持点数和拓扑固定，重新定位这些点，从而消除悬挂节点，但需要辅助的、往往刚性的网格偏微分方程。<sup>[22](https://people.bath.ac.uk/mascjb/Papers09/budd090403.pdf)</sup>

## 应用

AMR 最初是为无粘可压缩流开发的，后来被推广到纳维–斯托克斯方程、反应流、不可压缩方程与低[马赫数](https://www.edgepedia.org/zh/mach-number)方程，以及相场模型。<sup>[7](https://cs.nyu.edu/~berger/dynMotion.pdf)</sup> 2014 年对 BoxLib、Cactus、Chombo、Enzo、FLASH 和 Uintah 等框架的综述发现，其应用领域涵盖天体物理、宇宙学、广义相对论、燃烧、气候科学、地下流动、湍流、流固耦合、等离子体物理和[粒子加速器](https://www.edgepedia.org/zh/particle-accelerator)。<sup>[23](https://publications.sci.utah.edu/publications/Dub2014a/Dubey_JPDC2014.pdf)</sup> GeoClaw 是建立在勒维克（LeVeque）波传播算法之上的 AMRClaw 扩展，是一种广泛使用的海啸模拟工具。<sup>[23](https://publications.sci.utah.edu/publications/Dub2014a/Dubey_JPDC2014.pdf)</sup>

## 局限与替代方案

结构化细化有结构性缺陷。粗–细界面处的悬挂节点不可避免，而把并行化与动态网格修改结合起来，会显著增加算法与软件复杂性。<sup>[5](https://www.esaim-proc.org/articles/proc/pdf/2011/03/proc113402.pdf)</sup> 动态网格通过负载均衡、数据重分布以及无法摊销的通信模式，使并行计算复杂化。<sup>[24](https://www.osti.gov/servlets/purl/952096)</sup> 对湍流而言，非均匀分辨率本身就是一个问题：每个层级边界都会成为流动的障碍，并成为纯伪涡量的来源。<sup>[25](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/05F2FED8314FDFBE177A0F0565EF5978/S0074180900225692a.pdf/numerical_hydrodynamics_sph_versus_amr.pdf)</sup> AMR 并不总是更便宜的选项：在计算湍流或非湍流混合时，传统二阶 AMR 格式的代价高于高阶非自适应方法，而已发表工作得出结论：AMR 优于高阶格式的条件对大多数计算场景并不现实。<sup>[26](https://link.springer.com/article/10.1023/A:1020378726919)</sup> 与自适应多分辨率（小波）方法相比，针对欧拉方程的直接基准测试发现网格压缩率相当，相差约 4%，但多分辨率代码在有限体积模式下约慢 9.5 倍。<sup>[27](https://ar5iv.labs.arxiv.org/html/1603.05211)</sup> 由二阶导数构造的基于特征的传感器会导致过度细化，并且通常不如针对目标量的基于伴随的目标导向技术。<sup>[28](https://www.mdpi.com/2311-5521/10/5/129)</sup>

## References

1. [Adaptive mesh refinement for hyperbolic partial differential equations (Journal of Computational Physics, 1984)](https://doi.org/10.1016/0021-9991%2884%2990073-1)
2. [Local adaptive mesh refinement for shock hydrodynamics (Journal of Computational Physics, 1989)](https://doi.org/10.1016/0021-9991%2889%2990035-1)
3. [Structured Adaptive Mesh Refinement on heterogeneous platforms (OSTI)](https://www.osti.gov/pages/servlets/purl/1864154)
4. [Chapter 3: Berger-Oliger Method (DAGH tutorial, UT Austin)](https://www.cs.utexas.edu/~dagh/ch3.html)
5. [Block-structured Adaptive Mesh Refinement - Theory, Implementation and Application (R. Deiterding, ESAIM Proceedings)](https://www.esaim-proc.org/articles/proc/pdf/2011/03/proc113402.pdf)
6. [An Adaptive Finite Difference Method for Hyperbolic Systems in One Space Dimension (Berger's thesis)](https://escholarship.org/content/qt5g0619q1/qt5g0619q1.pdf)
7. [Accuracy, Adaptive Methods and Complex Geometry (Berger et al., review of AMR)](https://cs.nyu.edu/~berger/dynMotion.pdf)
8. [Carsten Burstedde, Lucas C. Wilcox, Omar Ghattas (2011). p4est : Scalable Algorithms for Parallel Adaptive Mesh Refinement on Forests of Octrees. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/100791634)
9. [Philipp Grete and colleagues (2022). Parthenon, a performance portable block-structured adaptive mesh refinement framework. The International Journal of High Performance Computing Applications.](https://doi.org/10.1177/10943420221143775)
10. [Adaptive mesh refinement (AMR) algorithms, Clawpack 5.14.x documentation](http://www.clawpack.org/amr_algorithm.html)
11. [Comparison of adaptive mesh refinement techniques for numerical weather prediction (arXiv, 2024)](https://arxiv.org/html/2404.16648)
12. [Introduction to Block-Structured Adaptive Mesh Refinement (Ann Almgren, HIPACC/ISSAC 2011)](https://hipacc.ucsc.edu/Lecture%20Slides/2011ISSAC/AlmgrenHIPACC_July2011.pdf)
13. [FLASH 4.7 User Guide §8.6: Adaptive Mesh Refinement (AMR) Grid with Paramesh](https://flash.rochester.edu/site/flashcode/user_support/flash4_ug_4p7/node59.html)
14. [MPI-AMRVAC 3.2 documentation: Adaptive Mesh Refinement](https://amrvac.org/md_doc_2amrstructure.html)
15. [Structured adaptive mesh refinement, course notes (R. Deiterding)](https://rdeiterding.website/pub/AMROC/lecture1.pdf)
16. [AMReX: Block-structured adaptive mesh refinement for multiphysics applications (IJHPCA)](https://journals.sagepub.com/doi/10.1177/10943420211022811)
17. [Block-Structured Adaptive Mesh Refinement Algorithms and Software (Phillip Colella, IPAM lecture)](http://helper.ipam.ucla.edu/publications/pcatut/pcatut_5471.pdf)
18. [Adaptive Mesh Refinement for Hyperbolic Partial Differential Equations (DTIC full-text copy of Berger–Oliger report)](https://apps.dtic.mil/sti/pdfs/ADA130162.pdf)
19. [John Bell and colleagues (1994). Three-Dimensional Adaptive Mesh Refinement for Hyperbolic Conservation Laws. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/0915008)
20. [An adaptive finite element scheme for transient problems in CFD (Computer Methods in Applied Mechanics and Engineering, 1987)](https://doi.org/10.1016/0045-7825%2887%2990098-3)
21. [Adaptive finite element methods for conservation laws based on a posteriori error estimates (CPAM 48, 1995)](https://onlinelibrary.wiley.com/doi/10.1002/cpa.3160480302)
22. [Adaptivity with moving grids (Budd, Huang, Russell)](https://people.bath.ac.uk/mascjb/Papers09/budd090403.pdf)
23. [A survey of high level frameworks in block-structured adaptive mesh refinement packages (J. Parallel Distrib. Comput., 2014)](https://publications.sci.utah.edu/publications/Dub2014a/Dubey_JPDC2014.pdf)
24. [Parallel Adaptive Mesh Refinement (OSTI book chapter/technical report)](https://www.osti.gov/servlets/purl/952096)
25. [Numerical Hydrodynamics: SPH versus AMR (Cambridge University Press)](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/05F2FED8314FDFBE177A0F0565EF5978/S0074180900225692a.pdf/numerical_hydrodynamics_sph_versus_amr.pdf)
26. [AMR vs High Order Schemes (Journal of Scientific Computing, 2003)](https://link.springer.com/article/10.1023/A:1020378726919)
27. [Comparison of adaptive multiresolution and adaptive mesh refinement applied to simulations of the compressible Euler equations](https://ar5iv.labs.arxiv.org/html/1603.05211)
28. [A Review of Mesh Adaptation Technology Applied to Computational Fluid Dynamics (Fluids, 2025)](https://www.mdpi.com/2311-5521/10/5/129)
29. [2022b (compphys.de)](https://www.compphys.de/publications/2022b.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Numerical methods and approximation

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/adaptive-mesh-refinement

English original: https://www.edgepedia.org/adaptive-mesh-refinement
