# 格子玻尔兹曼模拟

格子玻尔兹曼模拟是一种计算流体力学方法，它在离散格子上追踪粒子分布函数，从而得到单相流和多相流的密度场、速度场和压力场。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev.fluid.30.1.329)</sup> 它被用于水动力、磁流体力学、多相、多组分、反应性以及多孔介质流动，<sup>[2](http://www.lions.odu.edu/~lluo/Reprints-luo/1997/He-Luo_PRE-1997.pdf)</sup> 并已发展为经典有限元、有限体积和有限差分方法的一种替代方案。<sup>[3](https://link.springer.com/article/10.1007/s11227-026-08292-0)</sup> 其局部、显式的更新方式适合并行硬件，且能很好地处理复杂边界条件和多相界面。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev.fluid.30.1.329)</sup>

| 关键事实 | 数值 |
|---|---|
| 输出 | 从格子上的分布函数恢复的密度场、速度场和压力场<sup>[4](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)</sup> |
| 空间精度 | 对不可压缩纳维–斯托克斯方程，在格子间距和时间步长上均为二阶<sup>[5](http://library.sciencemadness.org/lanl1_a/lib-www/pubs/00285550.pdf)</sup> |
| 黏度–弛豫关系 | \( \nu = c_s^2 (\tau - \Delta t/2) \)<sup>[4](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)</sup> |
| 常用速度集 | D2Q9、D3Q19、D3Q27（也有 D1Q3、D3Q15）<sup>[4](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)</sup> |
| 实用黏度下限（BGK） | 每维 100–1000 个网格点时，为 0.01–0.001 格子单位<sup>[6](http://www.scholarpedia.org/article/Lattice_Boltzmann_Methods)</sup> |
| 相对有限体积法的速度 | 在相同网格和 GPU 上，求解速度约为其 4–6 倍<sup>[7](https://doi.org/10.1016/j.compfluid.2026.107237)</sup> |
| GPU 吞吐量 | 单精度最高 650 MLUPS，双精度 290 MLUPS（D3Q19，Tesla C2070）<sup>[8](https://ar5iv.labs.arxiv.org/html/1112.0850)</sup> |

## 工作原理

LBM 求解的是玻尔兹曼方程的一个简化版本，即离散速度玻尔兹曼方程（DVBE）：由分布函数 \( f_i \) 描述的虚构粒子群，在笛卡尔网格上以介观速度 \( \boldsymbol{\xi}_i \) 传播。<sup>[9](https://arxiv.org/html/2504.04465v2)</sup> 分布函数 \( f_i \) 等于每个可用粒子态 \( i \) 中相同粒子的期望数目；格子气使用布尔占据数，而 LBM 使用实数，使其成为格子气自动机的浮点数对应物。<sup>[5](http://library.sciencemadness.org/lanl1_a/lib-www/pubs/00285550.pdf)</sup><sup> • </sup><sup>[2](http://www.lions.odu.edu/~lluo/Reprints-luo/1997/He-Luo_PRE-1997.pdf)</sup>

宏观联系来自查普曼–恩斯科格分析，它将格子玻尔兹曼方程与纳维–斯托克斯方程联系起来。<sup>[4](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)</sup> 在低马赫数和低克努森数的极限下，LBM 等价于求解纳维–斯托克斯方程。<sup>[10](https://ar5iv.labs.arxiv.org/html/1903.01168)</sup>

## 实施方法

实践者首先选择一个速度集，记作 DdQq，其中 \( d \) 为维度，\( q \) 为速度数目；常见选择是二维的 D2Q9 和三维的 D3Q19，D1Q3、D3Q15 和 D3Q27 也有使用。每个速度集由其速度矢量、权重 \( w_i \) 以及一个联系压力与密度的常数定义。<sup>[4](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)</sup>

每个时间步分为两部分。在碰撞中，每个节点上纯局部的操作使分布向平衡态弛豫；在迁移中，碰撞后的分布转移到相邻节点，这是并行运行时计算核心之间唯一需要通信的步骤。<sup>[4](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)</sup> 采用 BGK 碰撞时，更新式为 \( f_i(\mathbf{x}+\boldsymbol{\xi}_i \Delta t,\, t+\Delta t) = f_i^{\mathrm{eq}}(\mathbf{x},t) + (1 - \Delta t/\tau) f_i^{\mathrm{neq}}(\mathbf{x},t) \)，在格子单位下取 \( \Delta t = 1 \)，变为 \( f_i^{\mathrm{eq}}(\mathbf{x},t) + (1 - 1/\tau) f_i^{\mathrm{neq}}(\mathbf{x},t) \)，<sup>[9](https://arxiv.org/html/2504.04465v2)</sup> 等价于 \( f_i(\mathbf{x}+\mathbf{e}_i \Delta t, t+\Delta t) = f_i - (1/\tau)[f_i - f_i^{\mathrm{eq}}(\rho,\mathbf{u})] \)，其中 \( f_i^{\mathrm{eq}} \) 近似低马赫数下的麦克斯韦–玻尔兹曼平衡态。<sup>[8](https://ar5iv.labs.arxiv.org/html/1112.0850)</sup> 在格子单位下取 \( \Delta t = 1 \) 和 \( c_s^2 = 1/3 \)，弛豫率为 \( \omega = 1/\tau = 1/(3\nu + 0.5) \)，即所述黏度关系在 \( \tau = 3\nu + 1/2 \) 时的特例。<sup>[11](https://lwkobe.github.io/teachings/LBM_course.pdf)</sup> 状态方程为等温理想气体定律 \( p = \rho c_s^2 \)，体积黏度为剪切黏度的三分之二。<sup>[4](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)</sup>

边界条件施加在格子节点上。反弹规则处理非流体边界格，可与迁移步骤结合；双格子更新策略使内存消耗加倍，但消除了时间步之间的数据依赖。<sup>[8](https://ar5iv.labs.arxiv.org/html/1112.0850)</sup> Zou–He 条件在 D2Q9 代码中用作入口和出口边界。<sup>[12](https://github.com/maltsev-andrey/cuda_lbm_fluid)</sup>

## 起源

其直接前身是格子气自动机。弗里施（Frisch）、哈斯拉赫（Hasslacher）和波莫（Pomeau）于 1986 年在《物理评论快报》上证明，一类具有离散布尔元素的确定性格子气可以模拟纳维–斯托克斯方程，使用的是相空间和时间完全离散的六边形格子气。<sup>[13](https://doi.org/10.1103/physrevlett.56.1505)</sup> 1988 年，盖伊·R·麦克纳马拉（Guy R. McNamara）和詹路易吉·扎内蒂（Gianluigi Zanetti）在《物理评论快报》上提出用玻尔兹曼方程对格子气建模。<sup>[14](https://doi.org/10.1103/physrevlett.61.2332)</sup><sup> • </sup><sup>[15](https://bishtref.com/articles/10.1103/physrevlett.61.2332)</sup> 这一替换彻底消除了困扰格子气模拟的统计噪声，使模拟所需的计算机时间大大减少。<sup>[15](https://bishtref.com/articles/10.1103/physrevlett.61.2332)</sup> 理论支撑随后出现：何晓毅（Xiaoyi He）和罗礼诗（Li-Shi Luo）于 1997 年在《物理评论 E》上发表了《格子玻尔兹曼方法理论：从玻尔兹曼方程到格子玻尔兹曼方程》。<sup>[16](https://doi.org/10.1103/physreve.56.6811)</sup> 碰撞步骤借用了气体动理论的 BGK 弛豫模型，用单一弛豫时间替代完整碰撞矩阵，产生了广泛使用的格子 BGK（LBGK）模型。<sup>[6](http://www.scholarpedia.org/article/Lattice_Boltzmann_Methods)</sup><sup> • </sup><sup>[17](https://www.research-collection.ethz.ch/server/api/core/bitstreams/7f44b36a-1530-487c-98cf-70ecb80f1ede/content)</sup>

## 变体

不同碰撞算子的区别在于分布如何弛豫。在一项比较研究中，对于测试案例，稳定性按 SRT、MRT、CLBM、KBC 的顺序提高。<sup>[18](https://royalsocietypublishing.org/rsta/article-pdf/doi/10.1098/rsta.2020.0397/1321051/rsta.2020.0397.pdf)</sup>

**MRT。** 单弛豫时间 LBGK 算子在低黏度下变得不稳定；在多弛豫时间方案中，碰撞通过线性变换在矩空间而非速度空间中执行，因此每个流体力学模式以其自身的速率弛豫。<sup>[19](https://homepages.abdn.ac.uk/jderksen/pages/pbl/derksen_chapter_cism.pdf)</sup>

**TRT。** 双弛豫时间方法以两个速率使分布弛豫，被用来修正 LBM 中观察到的精度问题以及向稳态的缓慢收敛。<sup>[20](https://journals.sagepub.com/doi/10.1177/10943420211006169)</sup>

**级联、熵、累积量、正则化。** 级联（基于中心矩）方法 CLBM 在随动参考系中使用中心矩，而非 MRT 在静止参考系中的原点矩，进一步提高了稳定性；在 KBC 模型中，熵的考量通过将每个分布拆分为运动学部分、剪切部分和高阶部分，改变高阶中心矩的弛豫参数。<sup>[18](https://royalsocietypublishing.org/rsta/article-pdf/doi/10.1098/rsta.2020.0397/1321051/rsta.2020.0397.pdf)</sup> 熵 LBM 可将可达黏度降低到 BGK 极限以下几个数量级。<sup>[6](http://www.scholarpedia.org/article/Lattice_Boltzmann_Methods)</sup> 现代库还提供累积量和递归正则化碰撞算子。<sup>[21](https://arxiv.org/html/2311.16080)</sup>

**多相。** Shan–Chen 伪势模型通过带粒子间相互作用的分布函数描述多相流体，通常在 D2Q9 和 D3Q19 速度集上运行，并在 BGK 方程中加入力项。<sup>[22](http://nht.xjtu.edu.cn/paper/en/2014209.pdf)</sup>

## 应用

在地球科学中，格子玻尔兹曼方法在 2015 年之前的二十年里日益成为计算多孔介质等复杂几何中流动的流行工具：单相模拟可以精确量化多孔样品的渗透率，扩散界面扩展则能在孔隙尺度上实现多相和多组分流动。<sup>[23](https://link.springer.com/article/10.1007/s10596-015-9542-3)</sup> 该方法已证明能够模拟水动力和磁流体力学系统、包括悬浮液和乳液在内的多相和多组分流体、化学反应流动以及通过多孔介质的多组分流动。<sup>[2](http://www.lions.odu.edu/~lluo/Reprints-luo/1997/He-Luo_PRE-1997.pdf)</sup> 在空气动力学和气动声学中，基于 GPU 的可压缩 LBM 结合递归正则化碰撞和反弹，可处理局部马赫数高达 0.72（Re ≤ 500）的风成噪声，以及马赫数高达 0.55（Re > \( 10^{6} \)）的 30P30N 翼型绕流。<sup>[9](https://arxiv.org/html/2504.04465v2)</sup>

## 局限与替代方案

可压缩性效应是 \( O(v^2) \) 量级的误差；通过降低模拟流速，可在低马赫数下恢复不可压缩纳维–斯托克斯方程。<sup>[5](http://library.sciencemadness.org/lanl1_a/lib-www/pubs/00285550.pdf)</sup> 在每线性维度 100–1000 个网格点的常规分辨率下，黏度只能降到约 0.01–0.001 格子单位，再低就会出现非线性不稳定性，因为格子黏度变得太低，无法耗散最短波长。<sup>[6](http://www.scholarpedia.org/article/Lattice_Boltzmann_Methods)</sup> 稳定域受格子速度限制，并随黏度降低而缩小至零，<sup>[24](https://google.iopscience.iop.org/article/10.1088/1873-7005/adb49f)</sup> 且 SRT 算子随雷诺数增大而失稳，并在无滑移边界条件下不准确。<sup>[18](https://royalsocietypublishing.org/rsta/article-pdf/doi/10.1098/rsta.2020.0397/1321051/rsta.2020.0397.pdf)</sup> 对于低黏度下的完全可压缩流动，耦合 LB-LB 方法、混合 LB-FD 格式或 DVBE 的更稳健离散化是当前的标准做法。<sup>[9](https://arxiv.org/html/2504.04465v2)</sup>

在相同网格和 GPU 硬件上，与有限体积求解器相比，LBM 的耗散通常远小于二阶有限体积方法，求解时间加速约 4–6 倍。<sup>[7](https://doi.org/10.1016/j.compfluid.2026.107237)</sup> 与光滑粒子流体动力学（SPH）相比，LBM 具有更好的收敛阶和精度，但稳定范围更窄：在高马赫数或低黏度下 LBM 变得不稳定，而 SPH 仅受 CFL 条件控制，不过 SPH 产生的压力场噪声更大，且 LBM 在构造上计算效率更高。<sup>[10](https://ar5iv.labs.arxiv.org/html/1903.01168)</sup> 由于它在均匀格子上以简单算术运算的局部算法运行，LBM 非常适合并行执行。<sup>[10](https://ar5iv.labs.arxiv.org/html/1903.01168)</sup>

GPU 吞吐量受内存带宽限制：D3Q19 实现在 NVIDIA Tesla C2070 上单精度达到 650 MLUPS，双精度达到 290 MLUPS。<sup>[8](https://ar5iv.labs.arxiv.org/html/1112.0850)</sup> 近期的开源代码包括 XLB，这是一个可微分的 Python 库，支持 JAX、NVIDIA Warp 和 Neon 后端（Apache-2.0），可扩展到数十亿格子的模拟，每秒进行千兆级格子更新，并支持 BGK、MRT、累积量、递归正则化和 KBC 碰撞。<sup>[21](https://arxiv.org/html/2311.16080)</sup>

## References

1. [Lattice Boltzmann Method for Fluid Flows (Annual Review of Fluid Mechanics, 1998)](https://www.annualreviews.org/content/journals/10.1146/annurev.fluid.30.1.329)
2. [Theory of the lattice Boltzmann method: From the Boltzmann equation to the lattice Boltzmann equation (He & Luo, PRE 1997)](http://www.lions.odu.edu/~lluo/Reprints-luo/1997/He-Luo_PRE-1997.pdf)
3. [TNL-LBM: Scalable lattice Boltzmann method implementation based on Template Numerical Library](https://link.springer.com/article/10.1007/s11227-026-08292-0)
4. [Lattice-Boltzmann method (lecture notes, J. Derksen, University of Aberdeen)](https://homepages.abdn.ac.uk/jderksen/pages/lbm/ln02_lb.pdf)
5. [Lattice-Boltzmann Fluid Dynamics (Los Alamos Science review)](http://library.sciencemadness.org/lanl1_a/lib-www/pubs/00285550.pdf)
6. [Lattice Boltzmann Method - Scholarpedia (Succi)](http://www.scholarpedia.org/article/Lattice_Boltzmann_Methods)
7. [Comparison of GPU-accelerated Navier–Stokes and Lattice-Boltzmann Method approaches for mid-fidelity aerodynamics simulations](https://doi.org/10.1016/j.compfluid.2026.107237)
8. [Performance engineering for the Lattice Boltzmann method on GPGPUs: Architectural requirements and performance results](https://ar5iv.labs.arxiv.org/html/1112.0850)
9. [GPU-based compressible lattice Boltzmann simulations on non-uniform grids using standard C++ parallelism: From best practices to aerodynamics, aeroacoustics and supersonic flow simulations](https://arxiv.org/html/2504.04465v2)
10. [Comparison of multiphase SPH and LBM approaches for the simulation of intermittent flows](https://ar5iv.labs.arxiv.org/html/1903.01168)
11. [ACM SIGGRAPH 2026 Course Notes: Fluid Simulation with the Lattice Boltzmann Method](https://lwkobe.github.io/teachings/LBM_course.pdf)
12. [maltsev-andrey/cuda_lbm_fluid](https://github.com/maltsev-andrey/cuda_lbm_fluid)
13. [U. Frisch, B. Hasslacher, Y. Pomeau (1986). Lattice-Gas Automata for the Navier-Stokes Equation. Physical Review Letters.](https://doi.org/10.1103/physrevlett.56.1505)
14. [Guy R. McNamara, Gianluigi Zanetti (1988). Use of the Boltzmann Equation to Simulate Lattice-Gas Automata. Physical Review Letters.](https://doi.org/10.1103/physrevlett.61.2332)
15. [Use of the Boltzmann Equation to Simulate Lattice-Gas Automata (McNamara & Zanetti, PRL 61, 2332, 1988)](https://bishtref.com/articles/10.1103/physrevlett.61.2332)
16. [Xiaoyi He, Li-Shi Luo (1997). Theory of the lattice Boltzmann method: From the Boltzmann equation to the lattice Boltzmann equation. Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics.](https://doi.org/10.1103/physreve.56.6811)
17. [Entropic lattice Boltzmann methods: A review](https://www.research-collection.ethz.ch/server/api/core/bitstreams/7f44b36a-1530-487c-98cf-70ecb80f1ede/content)
18. [A unified lattice Boltzmann model and application to multiphase flows](https://royalsocietypublishing.org/rsta/article-pdf/doi/10.1098/rsta.2020.0397/1321051/rsta.2020.0397.pdf)
19. [The Lattice-Boltzmann Method for Multiphase Fluid Flow Simulations and Euler-Lagrange Large-Eddy Simulations (Derksen)](https://homepages.abdn.ac.uk/jderksen/pages/pbl/derksen_chapter_cism.pdf)
20. [A runtime based comparison of highly tuned lattice Boltzmann and finite difference solvers](https://journals.sagepub.com/doi/10.1177/10943420211006169)
21. [XLB: A differentiable massively parallel lattice Boltzmann library in Python](https://arxiv.org/html/2311.16080)
22. [A critical review of the pseudopotential multiphase lattice Boltzmann model: Methods and applications](http://nht.xjtu.edu.cn/paper/en/2014209.pdf)
23. [Multiphase lattice Boltzmann simulations for porous media applications](https://link.springer.com/article/10.1007/s10596-015-9542-3)
24. [Derivation of the incompressible Navier–Stokes equations from the lattice Boltzmann equation: difference between the Chapman–Enskog expansion and the Sone expansion (2025)](https://google.iopscience.iop.org/article/10.1088/1873-7005/adb49f)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/lattice-boltzmann-simulation

English original: https://www.edgepedia.org/lattice-boltzmann-simulation
