用户工具

站点工具


atk:dft-1:2和dft-pps密度泛函方法计算电子态

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
atk:dft-1:2和dft-pps密度泛函方法计算电子态 [2020/06/01 20:37] – 创建 xie.congweiatk:dft-1:2和dft-pps密度泛函方法计算电子态 [2021/12/06 15:57] (当前版本) – [DFT-12 和 DFT-PPS 密度泛函方法计算电子态] fermi
行 1: 行 1:
-====== DFT-12 和 DFT-PPS 密度泛函方法计算电子态 ======+====== DFT-1/2 和 DFT-PPS 密度泛函方法计算电子态 ======
  
 +**版本:**2017.0
 +
 +QuantumATK 的2017年版本为计算半导体和绝缘体的电子结构引入了两个新颖的密度泛函修正方法:DFT-1/2 和赝势投影偏移(DFT-PPS)法。本教程将介绍如何使用这些方法。
 +
 +**DFT-1/2** 通常也被称为 LDA-1/2 或 GGA-1/2,它是一种半经验方法,用于校正扩展系统的局部和半局部交换关联密度函数中自相互作用误差,在精神上类似于 [[https://docs.quantumatk.com/manual/DFTLCAO.html#sect2-atkdft-hubbardu|DFT + U]] 法。因此,可以将其视为具有大致相同目标的 TB09-[[https://docs.quantumatk.com/manual/DFTLCAO.html#sect3-atkdft-mgga|Meta-GGA]] 法的替代方法,改进了导带能级和带隙的描述。与 TB09-MGGA 一样,DFT + 1/2 方法**不**适用于依赖总能量和力的计算,例如几何优化。
 +
 +**PPS** 是赝势投影偏移的缩写。本着 Zunger 和他的同事在 <color #00a2e8>[WZ95]</color> 中提出经验赝势的精神,这种方法在 SG15 赝势中引入了非局部投影的经验偏移。调整投影的偏移是为了重现半导体技术上的重要属性,例如带隙和晶格常数。PPS 法目前可直接用于元素硅和锗,但也可通过手动设置适当的投影偏移(必须首先确定这些)用于其他元素。重要的是,PPS 法**确实适用**于半导体材料结构的几何优化。
 +
 +{{ :atk:introbar-20191126.png |}}
  
 ===== DFT-1/2 法 ===== ===== DFT-1/2 法 =====
    
 +DFT-1/2法试图通过定义一个原子自能势抵消电子-空穴自相互能以修正 DFT 的自相互作用误差。为系统中的原子位点计算该电势,并将其定义为中性原子电势与移除它一部分电荷(介于0和1个电子之间)之后产生离子的电势之差。总的自能势是这些原子势的总和。文献 <color #00a2e8>[FMT11]</color> 中的研究已经发现在 DFT 哈密顿量基础上增加 DFT-1/2 自能势可以大幅度地增加多种半导体和绝缘系统的带隙。更多相关信息,请参阅 QuantumATK 手册条目 [[https://docs.quantumatk.com/manual/DFTLCAO.html#sect2-atkdft-dfthalf|DFT-1/2]] 法。
 +
 +
 +
 +<WRAP center info 100%>
 +=== 重要 ===
 +该方法并非完全没有经验参数,例如使用的截断半径。依据参考文献 <color #00a2e8>[FMT08]</color> 和 <color #00a2e8>[FMT11]</color>,选择截断半径以使带隙最大化。
 +
 +还要注意的是,并非系统中的所有元素都必须进行 DFT-1/2 校正。通常建议仅将其添加到阴离子物质中,而使阳离子物质保持正常。
 +</WRAP>
 +
 +QuantumATK 中提供了默认的 DFT-1/2 参数;并已针对各种材料进行了优化,且在大多数情况下,相对于标准的 LDA 或 GGA 改进了带隙。
 +
 +
 +
 +
 +
 +
 +
  
 ==== 采用 PBE-1/2 的 InP 能带结构 ==== ==== 采用 PBE-1/2 的 InP 能带结构 ====
 +
 +
 +创建一个新的 QuantumATK 项目(最好放在一个新文件夹中),打开 {{:atk:builder.png?direct&25|}} **Builder**,然后点击 Add {{:atk:arrow.png?direct&5|}} From Database,选择**数据库**中的 InP 晶体。
 +
 +
 +{{ :atk:dft-1:inp-20200601.png?700 |}}
 +
 +将 InP 晶体添加到 Builder 的 **Stash**,然后把构型发送到 {{:atk:script_generator.png?direct&25|}} **Script Generator**。之后添加以下脚本模块:
 +
 +  * {{:atk:calculator.png?direct&25|}} New Calculator
 +  * {{:atk:analysis.png?direct&25|}} Bandstructure
 +
 +打开计算器界面调整计算器参数。
 +
 +k 点网格选择 9x9x9,点击 //Basis set/exchange correlation//,注意默认的交换关联方法是 “GGA”(PBE)。如下图勾选 DFT-1/2 处 Enable 前的选项框。
 +
 +
 +{{ :atk:dft-1:scripter-20200601.png?750 |}}
 +
 +关闭计算器的界面,保存脚本为 InP.py。如果您利用 {{:atk:editor.png?direct&25|}} **Editor** 打开脚本,将会看到交换关联方法是 ''GAHalf.PBE''
 +
 +<code python>  
 +#----------------------------------------
 +# Exchange-Correlation
 +#----------------------------------------
 +exchange_correlation = GGAHalf.PBE
 +</code>
 +
 +即采用 PBE 函数的 GGA-1/2,也可称为 PBE-1/2。如有需要,你可在此处下载脚本:[[https://docs.quantumatk.com/_downloads/InP.py|↓ InP.py]]。
 +
 +使用 {{:atk:job_manager.png?direct&25|}} **Job Manager** 运行脚本:
 +
 +
 +{{ :atk:dft-1:job_manager2-20200601.png?700 |}}
 +
 +或从终端运行:
 +
 +<code python>  
 +$ atkpython InP.py > InP.log
 +</code>
 +
 +本次计算将会非常快。结束后利用 **Bandstructure Analyze** 绘制出产生的能带结构。您将发现 InP 是一个直接带隙半导体,带隙值为 1.46 eV,与文献 <color #00a2e8>[LRS96]</color> 中的实验带隙 1.34 eV 很接近。
 +
 +
 +{{ :atk:dft-1:inp_bs1-20200601.png?800 |}}
 +
 +
 +<WRAP center tip 100%>
 +=== 提示 ===
 +为看得更清楚,您也许想要放大费米能级周围的能带。这里有两种方法实现:
 +
 +  - 利用 Zoom 工具(从左数的第三个图标)
 +  - 或点击 y 轴的标记并选中,然后右击并选择 //Edit item// 打开 //Axis Properties// 界面,您可以在这里调整 y 轴的范围。
 +</WRAP>
 +
 +
 +{{ :atk:dft-1:inp_bs2-20200601.png?800 |}}
 +
 +
 +
  
  
行 11: 行 99:
 ==== III-V 型半导体的带隙 ==== ==== III-V 型半导体的带隙 ====
  
 +下图显示了 DFT-1/2 法(LDA-1/2 和 GGA-1/2)与采用默认赝势和基组的 LDA、GGA、TB09-MGGA 标准带隙计算的比较。所有计算中采用的 k 点网格均为 9x9x9,实验带隙数据来自文献 <color #00a2e8>[LRS96]</color>
  
 +很明显,DFT-1/2 的校正可以改进标准的 LDA 和 GGA 带隙,这些间隙通常很小或不存在(没有呈柱状显示)。自洽的 TB09-MGGA 计算确定的 c 参数通常也可以提高带隙。
 +
 +采用 LDA-1/2 和 GGA-1/2 计算 Ge 的红条表示错误地预测了//直接//带隙(如在实验中用 $\Gamma$-$\Gamma$ 代替 $\Gamma$-L)。使用 GGA-1/2 计算 GaP 的橙色条表示正确地预测了该带隙是//间接//的,但是错误地预测了 L 处凹谷的能带比 X 处凹谷的能带低。
 +
 +
 +{{ :atk:dft-1:calculations-20200601.png?650 |}}
 ==== 手动设置 DFT-1/2 参数 ==== ==== 手动设置 DFT-1/2 参数 ====
 +
 +当然,我们可以不使用默认参数,而是手动地设置 DFT-1/2 的参数。这可以通过创建 ''DFTHalfParameters'' 类的实例来实现,然后将其作为基组的参数。
 +
 +让我们以 GaAs 为例。以下脚本手动地将 As 的 DFT-1/2参数设置为与默认参数相同,并使 Ga 的 DFT-1/2 校正禁用,这也是默认行为。请注意基组的 ''dft_half_parameters'' 参数:
 +
 +<code python>  
 +#----------------------------------------
 +# Basis Set
 +#----------------------------------------
 +# LDA-1/2 parameters for As
 +dft_half_parameters = DFTHalfParameters(
 +    element=Arsenic,
 +    fractional_charge=[0.3, 0.0],
 +    cutoff_radius=4.0*Bohr,
 +    )
 +# No LDA-1/2 parameters are needed for Ga (Disabled)
 +basis_set = [
 +    LDABasis.Arsenic_DoubleZetaPolarized(
 +        dft_half_parameters=dft_half_parameters),
 +    LDABasis.Gallium_DoubleZetaPolarized(
 +        dft_half_parameters=Disabled),
 +    ]
 +</code>
 +
 +更多信息,请参见 QuantumATK 手册的 [[https://docs.quantumatk.com/manual/DFTLCAO.html#sect2-atkdft-dfthalf-atk-input|Input format for DFT-1/2]] 和 [[https://docs.quantumatk.com/manual/DFTLCAO.html#sect2-atkdft-dfthalf-defaults|DFT-1/2 default parameters]] 部分。
 +
 +<WRAP center alert 100%>
 +=== 警告 ===
 +在确定默认参数已格外注意的情况下,选择适当的 DFT-1/2 参数仍可能是一件非常棘手的事情。如果您选择使用非默认的 DFT-1/2 参数,则这些参数的质量将完全由用户自己承担!
 +
 +QuantumWise 不支持确定自定义 DFT-1/2 参数。我们一般建议用户坚持使用默认值。
 +</WRAP>
 +
 +
  
  
 ===== DFT-PPS 法 ===== ===== DFT-PPS 法 =====
  
 +
 +如上文所述,DFT-PPS 法是将偏移应用于 SG15 赝势的非局域投影。赝势的非局域部分 $\hat{V}_\text{nl}$ 根据以下修改:
 +
 +$$\hat{V}_\text{nl} \rightarrow \hat{V}_\text{nl} \mathrel{+}
 +\sum_l |p_{l} \rangle  \alpha_{l} \langle p_{l} | ,$$
 +
 +求和覆盖了所有的投影 $p_{l}$,$\alpha_{l}$ 是一个取决于轨道角动量量子数 $l$ 的经验参数。注意,这种方法不会增加 DFT 计算的计算成本!
 +
 +所需的投影偏移参数已针对硅和锗进行了优化,仅可与 PBE 密度函数和 SG15 赝势一起使用。这些作为单独的基组实现:
 +
 +<code python>  
 +BasisGGASG15.Silicon_LowProjectorShift
 +BasisGGASG15.Silicon_MediumProjectorShift
 +BasisGGASG15.Silicon_HighProjectorShift
 +BasisGGASG15.Silicon_UltraProjectorShift
 +
 +BasisGGASG15.Germanium_MediumProjectorShift
 +BasisGGASG15.Germanium_HighProjectorShift
 +BasisGGASG15.Germanium_UltraProjectorShift
 +</code>
 +
 +对于每一种元素,同样的优化投影偏移设置都应用在所有的 SG15 基组。脚本 [[https://docs.quantumatk.com/_downloads/projector_shifts.py|↓ projector_shifts.py]] 展示了 Si 和 Ge 的固有 DFT-PPS 参数。
 +
 +<code python>  
 +basis_sets = [
 +    BasisGGASG15.Silicon_MediumProjectorShift,  # Si PPS-PBE SG15-Medium
 +    BasisGGASG15.Germanium_HighProjectorShift , # Ge PPS-PBE SG15-High
 +    ]
 +for basis_set,element in zip(basis_sets,['Si','Ge']):
 +    print(element)
 +    projector_shift = basis_set.projectorShift()
 +    print("s-shift: %+.3f eV" % projector_shift.sOrbitalShift().inUnitsOf(eV))
 +    print("p-shift: %+.3f eV" % projector_shift.pOrbitalShift().inUnitsOf(eV))
 +    print("d-shift: %+.3f eV" % projector_shift.dOrbitalShift().inUnitsOf(eV))
 +</code>
 +
 +运行后会产生如下所示的输出。Si 的 ''d-shift'' 是 0.0 eV,因为硅没有 d 电子:
 +
 +<code python>  
 +Si
 +s-shift: +21.330 eV
 +p-shift: -1.430 eV
 +d-shift: +0.000 eV
 +Ge
 +s-shift: +13.790 eV
 +p-shift: +0.220 eV
 +d-shift: -2.030 eV
 +</code>
 ==== Si、SiGe、Ge 的带隙和晶格常数 ==== ==== Si、SiGe、Ge 的带隙和晶格常数 ====
 +
 +
 +
 +如下所示,在 {{:atk:script_generator.png?direct&25|}} **Script Generator** 中,通过为 Si 或 Ge 选择其中一个 ''ProjectorShift'' 基组就可以启动 DFT-PPS 法。从普通 PBE 切换到 DFT-PPS 无需更改其他计算器设置。
 +
 +
 +{{ :atk:dft-1:pps_scripter-20200601.png?700 |}}
 +
 +DFT-PPS 法非常方便的一点是,它可以像普通 GGA 计算一样进行几何优化(力和应力最小化)–实际上,通常选择 DFT-PPS 参数提供高度精确半导体晶格常数的同时还能得到准确的带隙。
 +
 +接下来,您将研究块体 Si 和 Ge 和一个简单的 50/50 SiGe 合金。这三个块体构型在脚本 [[https://docs.quantumatk.com/_downloads/bulks.py|↓ bulks.py]] 中定义。脚本 [[https://docs.quantumatk.com/_downloads/pbe.py|↓ pbe.py]] 运行对 3 个构型进行结构优化和能带结构分析,而 [[https://docs.quantumatk.com/_downloads/pps.py|↓ pps.py]] 采用 DFT-PPS 法进行同样的操作。
 +
 +最后一个脚本如下所示。请注意该特定脚本中从第 2 到 12 行,从外部脚本导入了块体构型,并在这些构型和基组上建立了 Python 循环:
 +
 +{{ :atk:dft-1:截图-20200601.png?600 |}}
 +
 +
 +<code python>  
 +1   # -*- coding: utf-8 -*-
 +2   from bulks import si, ge, sige
 +3   setVerbosity(MinimalLog)
 +4   
 +5   configurations = [si,ge,sige]
 +6   labels         = ['Si','Ge','SiGe']
 +7   si_basis = BasisGGASG15.Silicon_MediumProjectorShift
 +8   ge_basis = BasisGGASG15.Germanium_HighProjectorShift
 +9   basis_sets     = [[si_basis], [ge_basis], [si_basis,ge_basis]]
 +10   
 +11   for bulk_configuration,label,basis_set in zip(configurations,labels,basis_sets):
 +12       outfile = "%s_PPS.hdf5" % label
 +13   
 +14       # -------------------------------------------------------------
 +15       # Calculator
 +16       # -------------------------------------------------------------
 +17       k_point_sampling = MonkhorstPackGrid(
 +18           na=9,
 +19           nb=9,
 +20           nc=9,
 +21           )
 +22       numerical_accuracy_parameters = NumericalAccuracyParameters(
 +23           k_point_sampling=k_point_sampling,
 +24           density_mesh_cutoff=90.0*Hartree,
 +25           )
 +26   
 +27       calculator = LCAOCalculator(
 +28           basis_set=basis_set,
 +29           numerical_accuracy_parameters=numerical_accuracy_parameters,
 +30           )
 +31   
 +32       bulk_configuration.setCalculator(calculator)
 +33       nlprint(bulk_configuration)
 +34       bulk_configuration.update()
 +35       nlsave(outfile, bulk_configuration)
 +36   
 +37       # -------------------------------------------------------------
 +38       # Optimize Geometry
 +39       # -------------------------------------------------------------
 +40       fix_atom_indices_0 = [0, 1]
 +41       constraints = [FixAtomConstraints(fix_atom_indices_0)]
 +42   
 +43       bulk_configuration = OptimizeGeometry(
 +44           bulk_configuration,
 +45           max_forces=0.05*eV/Ang,
 +46           max_stress=0.1*GPa,
 +47           max_steps=200,
 +48           max_step_length=0.2*Ang,
 +49           constraints=constraints,
 +50           trajectory_filename=None,
 +51           optimizer_method=LBFGS(),
 +52           constrain_bravais_lattice=True,
 +53       )
 +54       nlsave(outfile, bulk_configuration)
 +55       nlprint(bulk_configuration)
 +56   
 +57       # -------------------------------------------------------------
 +58       # Bandstructure
 +59       # -------------------------------------------------------------
 +60       bandstructure = Bandstructure(
 +61           configuration=bulk_configuration,
 +62           route=['L', 'G', 'X'],
 +63           points_per_segment=50
 +64           )
 +65       nlsave(outfile, bandstructure)
 +</code>
 +
 +
 +下载这 3 个脚本([[https://docs.quantumatk.com/_downloads/bulks.py|↓ bulks.py]], [[https://docs.quantumatk.com/_downloads/pbe.py|↓ pbe.py]], [[https://docs.quantumatk.com/_downloads/pps.py|↓ pps.py]]),用 {{:atk:job_manager.png?direct&25|}} **Job Manager** 或从终端运行后两个脚本:
 +
 +<code python>  
 +$ atkpython pps.py > pps.log
 +$ atkpython pbe.py > pbe.log
 +</code>
 +
 +每个作业执行大概需要 5 分钟。
 +
 +然后使用脚本 [[https://docs.quantumatk.com/_downloads/plot_pps.py|↓ plot_pps.py]] 绘制结果。运行该脚本应产生下图,其中对于 PBE (虚线)和 DFT-PPS (实线),计算出的间接带隙显示为红色圆圈,计算出的晶格常数显示为蓝色正方形。
 +
 +Si 和 Ge 的 DFT-PPS 带隙与实验比较一致(黑色圆点;来自参考文献 <color #00a2e8>[LRS96]</color> ),并且随锗含量递增大致呈线性变化。相反地,普通的 PBE 法预测 Ge 带隙为零。
 +
 +与未经校正的 PBE 相比,纯 Si 和 Ge 的 DFT-PPS 晶格常数也更接近实验(灰色方块)。
 +
 +{{ :atk:dft-1:sige-20200601.png?600 |}}
 +
  
  
  
 ==== 手动设置 DFT-PPS 参数 ==== ==== 手动设置 DFT-PPS 参数 ====
 +
 +当然,也可以手动设置 DFT-PPS 投影偏移参数,而不使用默认值。对于没有默认 DFT-PPS 参数(仅 Si 和 Ge 当前具有默认值)的元素,这将在 DFT-PPS 计算中特别有用。
 +
 +''PseudoPotentialProjectorShift'' 类的一个实例提供投影偏移,然后将其作为 SG15 基组的参数。例如,以下脚本手动地将 Si 和 Ge 的 DFT-PPS 参数设置为默认:
 +
 +<code python>  
 +#----------------------------------------
 +# Basis Set
 +#----------------------------------------
 +# Basis set for Silicon
 +SiliconBasis_projector_shift = PseudoPotentialProjectorShift(
 +    s_orbital_shift=21.33*eV,
 +    p_orbital_shift=-1.43*eV,
 +    d_orbital_shift=0.0*eV,
 +    f_orbital_shift=0.0*eV,
 +    g_orbital_shift=0.0*eV
 +    )
 +SiliconBasis = BasisGGASG15.Silicon_Medium(projector_shift=SiliconBasis_projector_shift)
 +
 +# Basis set for Germanium
 +GermaniumBasis_projector_shift = PseudoPotentialProjectorShift(
 +    s_orbital_shift=13.79*eV,
 +    p_orbital_shift=0.22*eV,
 +    d_orbital_shift=-2.03*eV,
 +    f_orbital_shift=0.0*eV,
 +    g_orbital_shift=0.0*eV
 +    )
 +GermaniumBasis = BasisGGASG15.Germanium_High(projector_shift=GermaniumBasis_projector_shift)
 +
 +# Total basis set
 +basis_set = [
 +    SiliconBasis,
 +    GermaniumBasis,
 +    ]
 +</code>
 +
 +
 +<WRAP center alert 100%>
 +=== 警告 ===
 +选择适当的 DFT-PPS 参数可能是一件非常微妙的事情,并且通常需要数值优化程序。[[https://docs.scipy.org/doc/scipy/reference/optimize.html|SciPy]] 软件可以提供许多此类例程,但是,如果您选择使用非默认 DFT-PPS 参数,则这些参数的质量完全由用户自己承担!
 +
 +QuantumWise 不支持优化 DFT-PPS 参数。如果有默认参数的,我们通常建议用户使用默认值。
 +</WRAP>
 +
 +
 +
 +
 +
 +
 +
  
  
  
-===== 参数 ===== 
  
  
  
 +===== 参考 =====
  
 +  * 英文原文:https://docs.quantumatk.com/tutorials/dft_half_pps/dft_half_pps.html
 +  * [FMT08] Luiz G. Ferreira, Marcelo Marques, and Lara K. Teles. Approximation to density functional theory for the calculation of band gaps of semiconductors. //Phys. Rev. B//, 78:125116, Sep 2008. [[http://dx.doi.org/10.1103/PhysRevB.78.125116|doi:10.1103/PhysRevB.78.125116]].
 +  * [FMT11] (1, 2) Luiz G. Ferreira, Marcelo Marques, and Lara K. Teles. Slater half-occupation technique revisited: the LDA-1/2 and GGA-1/2 approaches for atomic ionization energies and band gaps in semiconductors. //AIP Adv//., 1(3):032119, 2011. [[https://aip.scitation.org/doi/10.1063/1.3624562|doi:10.1063/1.3624562]].
 +  * [LRS96] (1, 2, 3) M. Levinshtein, S. Rumyantsev, and M. Shur, editors. //Handbook Series on Semiconductor Parameters//. volume 1. World Scientific Publishing Cp. Pte. Ltd., Singapore, 1996.
 +  * [WZ95] L.-W. Wang and A. Zunger. Local-density-derived semiempirical pseudopotentials. //Phys. Rev. B//, 51:17398–17416, 1995. [[http://dx.doi.org/10.1103/PhysRevB.51.17398|doi:10.1103/PhysRevB.51.17398]].
atk/dft-1/2和dft-pps密度泛函方法计算电子态.1591015030.txt.gz · 最后更改: 2020/06/01 20:37 由 xie.congwei

© 2014-2022 费米科技(京ICP备14023855号