電子密度の解析

電荷ドープと差電子密度

As 欠陥をもつ GaAs に電子を 1 個ドープし、Mulliken 電荷の変化と差電子密度から、ドープされた電子の行き先を調べます。

カテゴリ
電子密度の解析
使用する機能
total_chargeatoms.arrays["charge"]calc.rhowrite_cube
スクリプト
charge_doping.py

total_charge に系の正味の電荷を指定すると、電子やホールをドープした状態を計算できます。電子を 1 個ドープするには total_charge=-1.0、ホールを 1 個ドープするには +1.0 を指定します。電子密度を陽に扱う Advance/OF-DFT ならではの解析で、機械学習力場では扱えません。

ここでは As 空孔を導入した GaAs に電子をドープし、中性の状態との違いを 2 つの方法で調べます。

charge_doping.pyダウンロード
"""
Advance/OF-DFT example: electron doping of GaAs with an As vacancy.

Compares the neutral and the electron-doped states: Mulliken charges of each atom
and the difference of the electron densities (saved as a CUBE file).

Copyright (C) 2026 AdvanceSoft Corporation, All rights reserved.
"""

from ase.build import bulk
from ase.io.cube import write_cube

from aofdft.calculator import AOFDFTCalculator

VPS_DIR = "path/to/DFT_DATA19_AS/VPS"  # edit these two paths for your environment
PAO_DIR = "path/to/DFT_DATA19_AS/PAO"

# zincblende GaAs (8 atoms) with one As atom removed
atoms   = bulk("GaAs", crystalstructure="zincblende", a=5.65, cubic=True)
vacancy = [atom.index for atom in atoms if atom.symbol == "As"][0]
del atoms[vacancy]

states   = {"neutral": 0.0, "doped": -1.0}  # total charge of the cell; -1.0 = one extra electron
charges  = {}
density  = {}

for label, total_charge in states.items():
    system = atoms.copy()
    system.calc = AOFDFTCalculator(
        console      = False,
        logging_file = f"gaas_{label}.log",
        kin_type     = "AS26",
        kin_model    = "Crystal26",
        vps_dir      = VPS_DIR,
        pao_dir      = PAO_DIR,
        total_charge = total_charge,
    )
    system.get_potential_energy()

    charges[label] = system.arrays["charge"].copy()                    # Mulliken charges
    density[label] = system.calc.rho[0].detach().cpu().numpy().copy()  # electron density (e/Bohr^3)
    print(f"{label:8s}: E_Fermi = {system.calc.e_fermi:8.4f} eV")

# where did the doped electron go?  (negative = gained electrons)
print("\nChange of Mulliken charge by doping (q_doped - q_neutral)")
print(f"{'index':>5s} {'symbol':>6s} {'dq':>10s}")
for i, atom in enumerate(atoms):
    print(f"{i:5d} {atom.symbol:>6s} {charges['doped'][i] - charges['neutral'][i]:+10.4f}")

# density difference on the common grid
delta = density["doped"] - density["neutral"]
with open("gaas_doping_difference.cube", "w") as f:
    write_cube(f, atoms, data=delta, comment="rho(doped) - rho(neutral) (e/Bohr^3)")
print("\nSaved gaas_doping_difference.cube")

実行結果の例

text
neutral : E_Fermi =  -5.6586 eV
doped   : E_Fermi =  -5.3572 eV

Change of Mulliken charge by doping (q_doped - q_neutral)
index symbol         dq
    0     Ga    -0.1720
    1     Ga    -0.1720
    2     As    -0.1040
    3     Ga    -0.1720
    4     As    -0.1040
    5     Ga    -0.1720
    6     As    -0.1040

見るべきポイント

  • Mulliken 電荷の変化量:ドープによる電荷の変化 Δq を原子ごとに比べると、As 原子 (−0.104) より Ga 原子 (−0.172) で変化が大きくなります。このセルでは、4 個の Ga 原子がすべて空孔に隣接しており、3 個の As 原子は互いに等価です。空孔からの距離による違いを調べるには、より大きいセルが必要です。解析事例 GaAs の解析 では、Δq は Ga で −0.172、As で −0.104 (Kohn-Sham DFT ではそれぞれ −0.182、−0.091) と報告されています。
  • 差電子密度:2 つの計算は同じセル・同じカットオフエネルギーなので FFT グリッドが一致し、電子密度の配列をそのまま引き算できます。出力した CUBE ファイルを可視化すると、ドープされた電子が空孔のまわりに局在する様子を確認できます。

ポイント

  • 周期系で total_charge を指定した場合、セル全体の電気的中性は一様な背景電荷によって保たれます。
  • 差電子密度をセル全体で積分すると、ドープした電子数 (この例では 1) になります。
  • total_charge を連続的に変えたときのエネルギー変化からバンドギャップを見積もる方法は、バンドギャップの評価 をご覧ください。