# 径向分布函数

径向分布函数（RDF），记作 g(r)，是统计力学中的一个量，描述均匀、各向同性系统中粒子密度如何随距参考粒子的距离 r 变化，并以平均密度归一化。它也称为对分布函数，与之相关的函数 h(r) = g(r) − 1 称为对相关函数，它是液体理论中的核心结构量，因为热力学性质可以表示为其积分，并且它可直接通过散射实验测量。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对于各向同性系统，g(r) 是将双粒子分布函数 g₂ 表示为标量间距 \|r₁ − r₂\| 的函数所得的形式；其归一化使得 g(r) 在大 r 处趋近于 1。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7941302/)</sup> |
| 物理意义 | 4πr²n g(r) dr 是距给定参考粒子 r 到 r + dr 之间的平均粒子数，其中 n 是数密度。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup> |
| 热力学 | 在三维中，对于对势 u(r)，每个粒子的平均势能为 2πn ∫₀^∞ r² g(r) u(r) dr；压力由维里方程给出。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup> |
| 散射联系 | g(r) 通过正弦变换反演从结构因子 S(Q) 获得，因此 X 射线或中子衍射可通过结构因子获得它。<sup>[3](https://phys.iit.edu/~segre/phys570/21F/lecture_11.pdf)</sup> |
| 对相关函数 | 函数 h(r) = g(r) − 1 称为对相关函数；在正则系综中 n ∫ d^d r [g(r) − 1] = −1。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup> |
| 模拟用途 | 分子动力学代码如 LAMMPS 和 GROMACS 通过对成对距离做直方图计算 g(r)，通常计算到周期性盒子长度的一半。<sup>[4](https://docs.lammps.org/compute_rdf.html)</sup><sup> • </sup><sup>[5](https://manual.gromacs.org/documentation/2026.4/reference-manual/analysis/radial-distribution-function.html)</sup> |
| 配位数 | 将 g(r) 从零积分到第一个极小值给出第一壳层的平均邻居数，例如溶剂化壳层中的溶剂分子数。<sup>[6](https://docs.mdanalysis.org/2.7.0/documentation_pages/analysis/rdf.html)</sup> |

## 定义与解释

在具有数密度 n 的 N 粒子系统中，k 粒子分布函数 g_k 是 k 粒子密度与单粒子密度乘积之比。对于各向同性系统，双粒子函数仅依赖于间距大小，作为该标量的函数即为径向分布函数，<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup>

\[ g(r) \equiv g_2(r) = \frac{1}{n^2}\left\langle \sum_{i \ne j} \delta(r - x_i)\,\delta(x_j) \right\rangle. \]

归一化的选择使得 g(r) 在大间距处趋近于 1，此时关联消失，而在第一个可能的粒子对接触之前为零。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7941302/)</sup> 量 4πr² n g(r) dr 因而表示参考粒子周围薄球壳中的平均粒子数；对所有 r 积分壳层计数，可得到系统中其余粒子的总数。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup> 在液体或气体中，g(r) 仅依赖于距离而非角度，尽管周期性模拟边界在技术上破坏了这种各向同性，球对称形式通常仅用于 r 小于盒子边长一半的情况。<sup>[7](https://courses.physics.illinois.edu/phys466/sp2010/lnotes/correlations.html)</sup>

相关函数 h(r) = g(r) − 1 在某些文献中称为对相关函数；它衡量相对于相同密度的均匀理想气体的密度过剩或亏损。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup>

## 在液体态理论中的作用

**由 g(r) 得到热力学量。** 作为当代液体态理论的基础，RDF 允许任何成对加和量——包括势能和压力——表示为涉及 g(r) 的积分。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup><sup> • </sup><sup>[8](https://research.coe.drexel.edu/cbe/abramsgroup/msim/node28.html)</sup> 对于具有对势 u(r) 的三维系统，每个粒子的平均内能为<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup>

\[ \frac{\langle W \rangle}{N} = 2\pi n \int_0^{\infty} dr\, r^2\, g(r)\, u(r). \]

压力由维里状态方程给出，其积分中涉及 r³ g(r) u′(r)。<sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup> 因此，液体态理论的一个核心目标是从分子间势预测 g(r)，使用近似积分方程如 Percus-Yevick 和超网链闭包。<sup>[8](https://research.coe.drexel.edu/cbe/abramsgroup/msim/node28.html)</sup><sup> • </sup><sup>[1](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)</sup>

**与结构因子的关系。** g(r) 的傅里叶变换是静态结构因子 S(Q)，即在 X 射线和中子散射中测量的量。<sup>[7](https://courses.physics.illinois.edu/phys466/sp2010/lnotes/correlations.html)</sup> 该关系是双向的：对于单原子系统，<sup>[3](https://phys.iit.edu/~segre/phys570/21F/lecture_11.pdf)</sup>

\[ g(r) = 1 + \frac{1}{2\pi^2 r \rho_{at}} \int_0^{\infty} Q\,[S(Q) - 1]\sin(Qr)\,dQ, \]

因此实验可测的结构因子可以反演得到实空间分布函数。这一形式适用于非晶固体以及液体，并可推广到多组分系统，其中 g(r) 成为一组偏函数 g_ij(r)，与偏结构因子 S_ij(Q) 配对。<sup>[3](https://phys.iit.edu/~segre/phys570/21F/lecture_11.pdf)</sup> 积分的 Q 上限对 g(r) 的实空间分辨率至关重要，这就是总散射仪器设计为测量大 Q 值的原因。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC11639646/)</sup>

## 曲线所示内容

g(r) 的图编码了相的结构。在理想气体中，g(r) 平坦为 1。在稠密液体中，它在最近邻距离处显示明显的第一峰，随后在相继的配位壳层处出现阻尼振荡；g(r) 的第一峰出现在密度^(−1/3) 附近。<sup>[7](https://courses.physics.illinois.edu/phys466/sp2010/lnotes/correlations.html)</sup> 在晶体中，振荡持续为最近邻、次近邻及由晶格确定的更远间距处的明显隆起。<sup>[7](https://courses.physics.illinois.edu/phys466/sp2010/lnotes/correlations.html)</sup> 对于分子系统，对每种原子类型对分别计算 RDF；20 世纪 30 年代卡佐夫（Katzoff）以及摩根（Morgan）和沃伦（Warren）对液态水的测量已显示类四面体有序，主要 O–O 距离接近 2.8 和 4.5 埃（Å）。<sup>[10](https://doi.org/10.1021/acs.chemrev.1c00237)</sup>

**配位数与溶剂化壳层。** g(r) 的累积积分，

\[ N(r) = 4\pi n \int_0^r r'^2\, g(r')\, dr', \]

给出半径 r 内的平均邻居数。取 r 在 g(r) 的第一个极小值处得到第一壳层的配位数，这是模拟研究中计数离子或配体周围溶剂分子的标准方法。<sup>[6](https://docs.mdanalysis.org/2.7.0/documentation_pages/analysis/rdf.html)</sup><sup> • </sup><sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC10510376/)</sup>

## 测量与计算 g(r)

实验上，g(r) 来自总散射：测量的衍射图样归一化为结构函数 S(Q)，正弦傅里叶变换产生实空间分布函数。<sup>[3](https://phys.iit.edu/~segre/phys570/21F/lecture_11.pdf)</sup><sup> • </sup><sup>[10](https://doi.org/10.1021/acs.chemrev.1c00237)</sup> 在模拟中，RDF 通过将所有成对距离分箱到均匀径向宽度的箱中，并将每个箱按相同密度的均匀（理想气体）分布预期的计数归一化来计算。<sup>[4](https://docs.lammps.org/compute_rdf.html)</sup> 各代码细节不同：LAMMPS 的 `compute rdf` 将距离分箱到力截断或指定的 Rcut，并输出 g(r) 及累积配位数；<sup>[4](https://docs.lammps.org/compute_rdf.html)</sup> GROMACS 的 `gmx rdf` 将粒子类型 A 和 B 之间的 g_AB(r) 定义为 A 周围距离 r 处 B 的局部密度除以平均局部密度，归一化半径 r_max 通常设为盒子长度的一半，也可为各向异性系统计算角度相关的 g_AB(r, θ)。<sup>[5](https://manual.gromacs.org/documentation/2026.4/reference-manual/analysis/radial-distribution-function.html)</sup>

**实际精度。** 箱宽 dr 在分辨率与噪声之间权衡：窄壳层分辨靠近的峰但包含较少粒子对，因此每个箱噪声更大。对于 8,000 个粒子的均匀随机系统，g(r) 围绕其真值 1 的标准偏差从 dr = 1.0 时的约 0.007 增长到 dr = 0.05 时的约 0.054，每个箱的噪声大致按 1/√N_pairs 下降。常见做法是选择远小于待分辨最短特征的 dr，例如晶体中最近邻距离的十分之一，并检查大 r 处的平坦区域接近 1。<sup>[12](https://github.com/by256/rdfpy/blob/master/docs/source/introduction_and_examples.rst)</sup>

## 归一化与相关函数

“径向分布函数”这一名称附属于几个相关但不同的实空间函数，不同科学界偏好不同形式。原始 RDF，R(r) = 4πr²ρ₀g(r)，随 r 增大而无界增长，这使得中长程特征难以检查。无量纲 g(r) 在大 r 处趋近于 1，且一般不以 1 为上界，因为它可能在 1 上下振荡，它在液体、非晶和玻璃界被广泛采用，而约化对分布函数 G(r) = 4πrρ₀[g(r) − 1] 具有与 r 无关的振荡幅度，是无序晶体和纳米晶工作中的标准。<sup>[13](https://chem.libretexts.org/Bookshelves/Biological_Chemistry/Concepts_in_Biophysical_Chemistry_%28Tokmakoff%29/01%3A_Water_and_Aqueous_Solutions/01%3A_Fluids/1.02%3A_Radial_Distribution_Function)</sup> 对这些约定的综述识别出八种已发表的实空间分布函数形式，并认可 G(r) 和 g(r) 为两种主要形式。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7941302/)</sup> 所有形式携带相同的结构信息：峰以平均成对距离为中心，高度反映这些距离的频率，宽度反映其分布范围。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC7941302/)</sup>

## References

1. [Liquid State Physics, in Thermodynamics and Statistical Mechanics (Daniel Arovas), Physics LibreTexts](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book:_Thermodynamics_and_Statistical_Mechanics_(Arovas)/06:_Classical_Interacting_Systems/6.04:_Liquid_State_Physics)
2. [Peterson, P. F., Olds, D., McDonnell, M. T., Page, K. (2021). Illustrated formalisms for total scattering data: a guide for new practitioners. Journal of Applied Crystallography](https://pmc.ncbi.nlm.nih.gov/articles/PMC7941302/)
3. [Carlo Segre, PHYS 570 Lecture 11: Radial distribution function, Illinois Institute of Technology](https://phys.iit.edu/~segre/phys570/21F/lecture_11.pdf)
4. [compute rdf command, LAMMPS documentation](https://docs.lammps.org/compute_rdf.html)
5. [Radial distribution functions, GROMACS 2026.4 reference manual](https://manual.gromacs.org/documentation/2026.4/reference-manual/analysis/radial-distribution-function.html)
6. [MDAnalysis.analysis.rdf, MDAnalysis 2.7.0 documentation](https://docs.mdanalysis.org/2.7.0/documentation_pages/analysis/rdf.html)
7. [Lecture on Correlations, Physics 466, University of Illinois (D. M. Ceperley)](https://courses.physics.illinois.edu/phys466/sp2010/lnotes/correlations.html)
8. [Case Study 2: Static Properties of the Lennard-Jones Fluid, Materials Simulation, Drexel University](https://research.coe.drexel.edu/cbe/abramsgroup/msim/node28.html)
9. [Stefanopoulos, K. L. et al. (2024). Probing the Behaviour of Fluids Confined in Porous Materials by Neutron Scattering. ChemPlusChem](https://pmc.ncbi.nlm.nih.gov/articles/PMC11639646/)
10. [Terban, M. W., Billinge, S. J. L. (2022). Structural Analysis of Molecular Materials Using the Pair Distribution Function. Chemical Reviews 122, 1208–1272](https://doi.org/10.1021/acs.chemrev.1c00237)
11. [The Role of Chloride Ion in the Silicate Condensation Reaction from ab Initio Molecular Dynamics Simulations, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10510376/)
12. [rdfpy: introduction and examples, GitHub](https://github.com/by256/rdfpy/blob/master/docs/source/introduction_and_examples.rst)
13. [1.2: Radial Distribution Function](https://chem.libretexts.org/Bookshelves/Biological_Chemistry/Concepts_in_Biophysical_Chemistry_%28Tokmakoff%29/01%3A_Water_and_Aqueous_Solutions/01%3A_Fluids/1.02%3A_Radial_Distribution_Function)

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

Topic: 物质世界与数学 › 物理学 › 经典物理学 › Thermodynamics › Statistical mechanics and kinetic theory › Distribution functions and probability in stat mech

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/radial-distribution-function

English original: https://www.edgepedia.org/radial-distribution-function
