密度泛函理论中的带电体系(Charged systems with density functional theory)
在本页中,我们描述了在使用周期性密度泛函理论(DFT)计算带电体系能量时遇到的技术问题。 我们首先介绍了 DFT 计算中静电能量发散的问题,并说明了如何消除电荷中性计算中的这种发散。 接着,我们探讨了为什么这种发散会出现在带电体系中。 最后,我们介绍了 VASP 中实现的方法,这些方法允许对带电的体相、表面以及分子体系进行计算。
处理电荷中性计算中的发散#
VASP 利用高效的快速傅里叶变换(FFT),通过泊松方程从电荷密度计算静电势,
$\displaystyle{ V(\mathbf{r}) = 4\pi \int \frac{\rho(\mathbf{r}^\prime)}{\left | \mathbf{r} - \mathbf{r}^\prime \right|} d\mathbf{r}^\prime, }$
其中 $\displaystyle{ \mathbf{r} }$ 和 $\displaystyle{ \mathbf{r}^\prime }$ 是实空间中的所有点。 将泊松方程进行傅里叶变换至倒易空间,
$\displaystyle{ V(\mathbf{G}) = \frac{4\pi}{\mathrm{G}^2} \rho(\mathbf{G}), }$
其中 $\displaystyle{ \mathbf{G} }$ 是倒格矢,$\displaystyle{ \mathrm{G} }$ 是其模长。
计算 $\displaystyle{ V(\mathbf{G}) }$ 的一个明显问题是,当 $\displaystyle{ \mathrm{G}\to 0 }$ 时它会发散。 在电荷中性 DFT 计算中,这种发散通过抵消总静电能量中各自的发散项来处理[1],总静电能量是电子-电子、离子-电子和离子-离子能量之和
$\displaystyle{ E_{\mathrm{electrostatic}} = E_{\mathrm{electron-electron}} + E_{\mathrm{ion-electron}} + E_{\mathrm{ion-ion}}. }$
单独来看,这些项具有以下函数形式,
$\displaystyle{ E_{\mathrm{electron-electron}} = \frac{1}{2} \sum_{\mathrm{G}} \rho_{\mathrm{electron}}(\mathbf{G}) V_{\mathrm{electron}}(\mathbf{G}), }$
其中 $\displaystyle{ \rho_{\mathrm{electron}} }$ 和 $\displaystyle{ V_{\mathrm{electron}} }$ 分别是电子电荷密度和电势。
$\displaystyle{ E_{\mathrm{ion-electron}} = -\sum_{\mathrm{G}} \rho_{\mathrm{ion}}(\mathbf{G}) V_{\mathrm{electron}}(\mathbf{G}), }$
其中 $\displaystyle{ \rho_{\mathrm{ion}} }$ 是离子电荷密度。 VASP 不会显式计算 $\displaystyle{ E_{\mathrm{ion-electron}} }$,但离子的势能通过本征值反映出来。 离子-离子相互作用通过埃瓦尔德求和(Ewald summation)处理 $\displaystyle{ E_{\mathrm{ion-ion}} = E_{\mathrm{long-range}} + E_{\mathrm{short-range}} + E_{\mathrm{self}} + E_{\mathrm{homogeneous}}, }$
其中 $\displaystyle{ E_{\mathrm{long-range}} }$ 是唯一对 $\displaystyle{ \mathrm{G} }$ 矢量求和的分量,其形式为:
$\displaystyle{ E_{\mathrm{ion-ion}} = \frac{1}{2} \sum_{\mathrm{G}} \rho_{\mathrm{ion}}(\mathbf{G}) V_{\mathrm{ion}}(\mathbf{G}). }$
$\displaystyle{ E_{\mathrm{electron-electron}} }$、$\displaystyle{ E_{\mathrm{ion-electron}} }$ 和 $\displaystyle{ E_{\mathrm{ion-ion}} }$ 的求和 $\displaystyle{ \mathrm{G}=0 }$ 项由下式给出:
$\displaystyle{ E_{\mathrm{electrostatic}}(\mathbf{G}=0) = \frac{1}{2}\rho_{\mathrm{electron}}(\mathbf{G}=0) V_{\mathrm{electron}}(\mathbf{G}=0) - \rho_{\mathrm{ion}}(\mathbf{G}=0) V_{\mathrm{electron}}(\mathbf{G}=0) + \frac{1}{2}\rho_{\mathrm{ion}}(\mathbf{G}=0) V_{\mathrm{ion}}(\mathbf{G}=0), }$
通过倒易空间泊松方程,它可以表示为: $\displaystyle{ E_{\mathrm{electrostatic}}(\mathbf{G}=0) = \frac{4\pi}{\mathrm{G}^2} \left [\frac{1}{2}\rho_{\mathrm{electron}}(\mathbf{G}=0)^2 - \rho_{\mathrm{ion}}(\mathbf{G}=0)^2 + \frac{1}{2}\rho_{\mathrm{ion}}(\mathbf{G}=0)^2 \right]. }$
在 $\displaystyle{ \rho_{\mathrm{electron}}(\mathbf{G}=0)=\rho_{\mathrm{ion}}(\mathbf{G}=0) }$ 的条件下,各个发散项将互相抵消,从而使总能量收敛。 由于傅里叶变换量的 $\displaystyle{ \mathrm{G}=0 }$ 项即为其平均值,因此当平均电子电荷密度和离子电荷密度相同时(即体系呈电荷中性),上述条件得到满足。
带电计算中的发散#
当 $\displaystyle{ \rho_{\mathrm{electron}}(\mathbf{G}=0) \neq \rho_{\mathrm{ion}}(\mathbf{G}=0) }$(即体系不呈电荷中性)时,总能量不会收敛。 或者,我们可以认为这种发散来自于一个具有能量 $\displaystyle{ E_{\mathrm{compensating}} }$ 的补偿性均匀涂抹电荷密度 $\displaystyle{ \delta \rho }$
$\displaystyle{ E_{\mathrm{compensating}} = \frac{4\pi}{\mathrm{G}^2} \left [ \delta \rho^2 \right] }$
它抵消了 $\displaystyle{ E_{\mathrm{electrostatic}}(\mathbf{G}=0) }$ 中的发散项。
添加均匀补偿电荷的后果因体系而异。 对于高度屏蔽的体系,适度补偿电荷带来的电势会引入可接受的误差量。 相反,包含真空的体系(例如二维材料、表面和分子)屏蔽效应很小,因此更容易受到这种补偿电荷所引起的人为误差的影响。
实际中带电体系的处理#
我们实现了[2]两种独立的方法来处理带电体系。 这些方法特定于所计算体系的维度。
正交晶胞中的体相带电体系可以通过应用解析单极-单极校正来处理(更多实际细节请参见 LMONO)。
表面和其他二维材料使用库仑核截断方法进行处理。 这些方法将库仑核 $\displaystyle{ v(\mathbf{G}) }$(即 $\displaystyle{ V(\mathbf{G}) }$ 中的 $\displaystyle{ \frac{4\pi}{\mathrm{G}^2} }$)替换为一个 2D 核[3]($\displaystyle{ v_{\text{2D}}(\mathbf{G}) }$),该核去除了沿表面法线方向的非周期性复制品之间的静电相互作用[4],
$\displaystyle{ v_{\text{2D}}(\mathbf{G}) = \begin{cases} 4\pi / \mathrm{G}^2 \left[ 1 - e^{-\mathrm{G}_{\parallel}R} \left ( \cos(\mathrm{G}_\perp R_\mathrm{c}) - \mathrm{G}_\perp / \mathrm{G}_{\parallel} \sin(\mathrm{G}_{\perp}R_\mathrm{c}) \right ) \right] \quad & \mathrm{G} \neq 0 \\ 4\pi / \mathrm{G}_\perp^2\left[ 1 - \cos(\mathrm{G}_\perp R_\mathrm{c}) - \mathrm{G}_{\perp}R_\mathrm{c} \sin(\mathrm{G}_\perp R_\mathrm{c}) \right] \quad & \mathrm{G}_{\parallel} = 0 \\ -2\pi R_\mathrm{c}^2 \quad & \mathrm{G}=0 \end{cases} }$
其中 $\displaystyle{ \mathrm{G}_{\parallel} }$ 是平行于表面的 $\displaystyle{ \mathbf{G} }$ 矢量的模长,$\displaystyle{ \mathrm{G}_{\perp} }$ 是沿表面法线的 $\displaystyle{ \mathbf{G} }$ 矢量。 可以对库仑核进行类似的修改以处理带电分子(即所谓的具有 $\displaystyle{ v_{\text{0D}}(\mathbf{G} }$)的 0D 体系),从而去除各个方向上与周期性复制品的相互作用,
$\displaystyle{ v_{\text{0D}}(\mathbf{G}) = \begin{cases} 4\pi/\mathrm{G}^2 \left( 1 - \cos\left(\mathrm{G}R_\mathrm{c}\right) \right) & \quad \mathrm{G}\neq 0 \\ 2\pi R_\mathrm{c}^2 & \quad \mathrm{G} = 0 \end{cases} }$
有关在实践中应用这些库仑截断方法的更多细节,请参见 KERNEL_TRUNCATION/LTRUNCATE(自 VASP.6.5.0 起可用)。
相关标签和文章#
NELECT, KERNEL_TRUNCATION/LTRUNCATE, KERNEL_TRUNCATION/LCOARSEN, KERNEL_TRUNCATION/IDIMENSIONALITY, KERNEL_TRUNCATION/ISURFACE, LMONO