# deal.II

deal.II 是一个开源的 C++ 软件库，用于使用自适应有限元方法对偏微分方程进行数值求解。<sup>[1](https://github.com/dealii/dealii)</sup> 它提供了有限元程序的基本构件——网格、单元、求积、自由度、线性求解器和输出——同时将整体程序结构留给用户决定，由全球范围内的用户和开发者社区共同开发。<sup>[2](https://arxiv.org/abs/1910.13247)</sup> 该项目公开宣称的使命是为各种偏微分方程提供文档完备的有限元代码构建工具，从笔记本电脑到超级计算机均可使用。<sup>[3](https://dealii.org/)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 使用自适应有限元求解偏微分方程的 C++ 程序库<sup>[1](https://github.com/dealii/dealii)</sup> |
| 许可证 | 基于 GNU 宽通用公共许可证（LGPL）自由使用；项目正在以 Apache 许可证 2.0（含 LLVM 例外）重新授权<sup>[4](https://www.dealii.org/deal96-preprint.pdf)</sup> |
| 当前版本 | 9.8.0 版，发布于 2026 年 8 月 9 日<sup>[3](https://dealii.org/)</sup> |
| 并行规模 | 已演示在多达 304,128 个 MPI 进程和最多 \( 2 \times 10^{12} \) 个未知量上的计算<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup> |
| 单元几何 | 网格在一维由线段构成，在二维由四边形和三角形构成，在三维由六面体、四面体、棱锥和楔形构成<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup><sup> • </sup><sup>[11](https://dealii.org/9.8.0/doxygen/deal.II/step_1.html)</sup> |
| 学习材料 | 包含 60 多个有文档的程序教程和超过 40 小时的视频讲座<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup> |
| 开发 | GitHub 仓库有 1.7k 星标和 869 个复刻；使用 CMake 构建<sup>[1](https://github.com/dealii/dealii)</sup> |

## 设计

deal.II 是一个库而非框架：它提供有限元程序所需的工具，但不规定程序最外层的逻辑。因此，用户通过以新方式组合这些构件，解决了库作者最初未曾预料到的问题。<sup>[6](https://www.sciencedirect.com/science/article/pii/S0898122120300894)</sup> 其公开宣称的设计重点是通用性、维度无关编程、并行性和可扩展性。<sup>[2](https://arxiv.org/abs/1910.13247)</sup>

**维度无关编程。** 偏微分方程的弱形式通常不涉及空间维度，deal.II 在代码中也体现了这一点：一次编写的程序可以在低成本二维模拟中测试，然后直接用于三维生产运行，无需开发第二个版本。<sup>[6](https://www.sciencedirect.com/science/article/pii/S0898122120300894)</sup>

**构件。** 文档围绕任何有限元程序的组成部分来组织库：三角剖分，存储网格的几何和拓扑属性；流形描述，定义单元的形状和区域的几何形状；有限元类，定义形函数及其自由度；求积规则；DoFHandler，在网格上分配和编号自由度；映射类，将参考单元上的点映射到真实空间；FEValues 系列，在求积点上计算形函数和梯度；线性代数和求解器类；以及外部可视化工具可理解的图形输出格式。<sup>[7](https://dealii.org/current/doxygen/deal.II/)</sup>

## 网格与并行

由于历史原因，deal.II 将其网格称为“三角剖分”，尽管它们可能由线段、四边形或六面体而非三角形构成，不过该库也支持二维三角形和三维四面体、棱锥及楔形。<sup>[11](https://dealii.org/9.8.0/doxygen/deal.II/step_1.html)</sup> 这一选择限制了某些应用，尤其是复杂的三维几何，但通常可以生成粗网格，然后自动细化以拟合几何形状。<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup>

该库提供三种三角剖分类：串行、并行共享和并行分布式。共享变体在每个进程上存储整个网格，浪费内存且只能扩展到约 100 个进程，但适合需要在各处都拥有完整网格的问题，例如边界元方法。分布式变体在所有进程上存储粗网格，以层次方式细化，并在每个进程上只保留其本地拥有的单元及周围的幽灵单元；这种数据结构已扩展到非常大的机器规模。<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup>

对于所有三种类，网格的维度可以不同于其所在空间的维度，这允许在嵌入高维空间的曲面上求解方程，例如固体和流体上的表面过程，如表面张力、侵蚀或膜上的扩散。<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup>

## 特性

该库支持分布式网格、\( hp \) 自适应（在每个单元上独立选择网格尺寸和多项式阶数）、复杂几何支持以及无矩阵算法。<sup>[2](https://arxiv.org/abs/1910.13247)</sup> 2024 年 8 月 11 日发布的 9.6.0 版对无矩阵和多层网格基础设施带来了显著的性能改进，并扩充了非匹配基础设施，包括新增用于在远程网格上计算有限元形函数的 FERemoteEvaluation 类。<sup>[4](https://www.dealii.org/deal96-preprint.pdf)</sup> GitHub 仓库列出的主题包括 Kokkos 和并行计算，基于 Ubuntu 的 Docker 镜像可在 Docker Hub 上获取。<sup>[1](https://github.com/dealii/dealii)</sup>

## 文档与社区

由于志愿项目无法回答每一个单独的问题，deal.II 高度重视教会用户使用该工具的文档：doxygen 类和函数文档、讨论相关类组的 doxygen“模块”、包含 60 多个程序的教程（每个程序都将详尽的理论介绍与文档完备的实现配对）、超过 40 小时的视频讲座，以及一个社区贡献代码的“代码画廊”，可作为研究的起点。<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup> 帮助渠道包括讨论论坛、Matrix 聊天室 #dealii:matrix.org、常见问题解答和 wiki。<sup>[8](https://www.dealii.org/getting_help/)</sup>

该项目还每年评选“最佳 deal.II 论文”；2024 年的获奖者是 D. 阿邦丹扎（D. Abbondanza）、M. 加洛（M. Gallo）和 C. M. 卡肖拉（C. M. Casciola），获奖论文为《微气泡在弹塑性壁面上的溃灭》。<sup>[3](https://dealii.org/)</sup> 一份使用该库的精选出版物列表展示了其应用范围。<sup>[5](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)</sup>

## 历史与版本

deal.II 及其前身 DEAL 的开发始于 20 世纪 90 年代末。<sup>[9](https://citeseerx.ist.psu.edu/document?doi=4094fcb19d1c8a6c6a58fbe548494a8997f5b5f1&repid=rep1&type=pdf)</sup> 2019 年，丹尼尔·阿恩特（Daniel Arndt）、沃尔夫冈·班格特（Wolfgang Bangerth）及其同事的概述论文描述了该库的设计考量以及运营大型社区软件项目二十年的经验教训。<sup>[2](https://arxiv.org/abs/1910.13247)</sup> 近期版本包括 9.6.0（2024 年 8 月 11 日）、9.7.0（2025 年 7 月）、9.7.1（2025 年 9 月 14 日）和 9.8.0（2026 年 8 月 9 日），每个版本都附有可引用的概述文稿。<sup>[4](https://www.dealii.org/deal96-preprint.pdf)</sup><sup> • </sup><sup>[10](https://github.com/dealii/dealii/releases)</sup> 2026 年新增的教程程序包括关于二维静磁旋度-旋度问题的 step-98 和关于时间谐和亥姆霍兹方程的不连续 Petrov-Galerkin 方法的 step-100。<sup>[3](https://dealii.org/)</sup>

## References

1. [dealii/dealii: The development repository for the deal.II finite element library, GitHub](https://github.com/dealii/dealii)
2. [D. Arndt, W. Bangerth, D. Davydov, T. Heister, L. Heltai, M. Kronbichler, M. Maier, J.-P. Pelteret, B. Turcksin, D. Wells (2019). The deal.II finite element library: design, features, and insights. arXiv:1910.13247](https://arxiv.org/abs/1910.13247)
3. [The deal.II Finite Element Library, project home page](https://dealii.org/)
4. [The deal.II Library, Version 9.6 (preprint)](https://www.dealii.org/deal96-preprint.pdf)
5. [The deal.II finite element library: Design, features, and insights, ScienceDirect](https://www.sciencedirect.com/science/article/am/pii/S0898122120300894)
6. [The deal.II finite element library: Design, features, and insights, ScienceDirect (full text)](https://www.sciencedirect.com/science/article/pii/S0898122120300894)
7. [The deal.II Library, class and function documentation](https://dealii.org/current/doxygen/deal.II/)
8. [Help, The deal.II Finite Element Library](https://www.dealii.org/getting_help/)
9. [Bangerth, Hartmann, Kanschat: deal.II, A General-Purpose Object-Oriented Finite Element Library, CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=4094fcb19d1c8a6c6a58fbe548494a8997f5b5f1&repid=rep1&type=pdf)
10. [Releases, dealii/dealii, GitHub](https://github.com/dealii/dealii/releases)
11. [The deal.II Library: The step-1 tutorial program](https://dealii.org/9.8.0/doxygen/deal.II/step_1.html)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 物理学方法、实践与学术共同体 › Applied and interdisciplinary physics › Computational and simulation physics › Physics simulation software and engines › Scientific simulation packages › Finite-element analysis suites

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/deal-ii

English original: https://www.edgepedia.org/deal-ii
