Silicon bands and phonons in PBE
The valence-band maximum of silicon sits at Γ and the conduction-band minimum lies on the Γ–X line, 0.875 of the way to X, so the gap is indirect. Semi-local functionals underestimate gaps, and PBE with the GTH-DZVP-MOLOPT-SR basis gives 0.67 eV against 1.12 eV measured at 300 K (1.17 eV at low temperature). The direct gap at Γ is 2.61 eV. The lattice constant is not the cause: at the measured 5.431 Å the same mesh gives 0.64 eV.
Silicon band structure and density of states with the indirect gap shaded
Each dot is an eigenvalue of the converged density at a point of the 16×16×16 Γ-centred mesh that lies on the Γ–X–W–K–Γ–L path. Lines join neighbouring dots and nothing is interpolated, so the band edges are the best sampled values, not exact extrema. The shaded interval is the gap between the sampled valence-band maximum (square) and conduction-band minimum (diamond). The density of states on the right uses all 4096 mesh points with Gaussian width 0.15 eV and counts both spins.
Phonons
Section titled “Phonons”The DFT response gives frequencies only at Γ, X and L: a 2×2×2 q mesh was the largest the periodic Hessian allowed, and it took 44 minutes. The dispersion and density of states come from a cheaper model, the nequix-oam-1-pft potential, and are checked against those 18 DFT frequencies.
Silicon phonon dispersion along Γ–X–W–K–Γ–L with the density of states and PBE frequencies at Γ, X and L
The lines are Fourier interpolations of force constants from 6×6×6 cells, 60 q points per segment. The right panel is the density of states on a 32×32×32 q mesh with Gaussian width 0.12 THz, normalized to six states per cell. Red diamonds are the PBE frequencies at Γ, X and L, read from the DFT results.
The potential relaxes to 5.487 Å, against 5.463 Å for PBE and 5.431 Å measured. Its Γ optical frequency is 14.79 THz (493 cm⁻¹), 0.67 THz below the PBE value. Over the 18 frequencies the mean absolute difference is 0.33 THz and the largest is 0.67 THz (Γ optical). At the PBE lattice constant they are 0.26 and 0.57 THz. The PBE acoustic branches sit at 0.14 THz at Γ because that calculation applies no acoustic sum rule; they are counted in the 18. Four nequix models were tried, and this one agrees best, so the agreement does not test the model independently:
| Model | Lattice constant (Å) | Γ optical (THz) | Mean |difference| (THz) | Largest |difference| (THz) |
|---|---|---|---|---|
| nequix-mp-1 | 5.5037 | 13.97 | 1.34 | 2.77 |
| nequix-mp-1-pft | 5.5067 | 14.71 | 0.47 | 0.75 |
| nequix-oam-1 | 5.4895 | 12.38 | 1.54 | 3.08 |
| nequix-oam-1-pft | 5.4868 | 14.79 | 0.33 | 0.67 |
| q | Branch | PBE response (THz) | nequix-oam-1-pft (THz) | nequix-oam-1-pft at the PBE lattice (THz) | Potential − PBE (THz) |
|---|---|---|---|---|---|
| Γ | acoustic (x3) | 0.14 | -0.00 | -0.00 | -0.14 |
| Γ | optical (x3) | 15.46 | 14.79 | 14.89 | -0.67 |
| X | TA (x2) | 4.49 | 4.89 | 4.84 | 0.39 |
| X | LA, LO | 12.07 | 11.91 | 11.98 | -0.16 |
| X | TO (x2) | 13.32 | 13.04 | 13.18 | -0.28 |
| L | TA (x2) | 3.32 | 3.69 | 3.65 | 0.37 |
| L | LA | 11.53 | 11.15 | 11.16 | -0.37 |
| L | LO | 11.82 | 11.70 | 11.83 | -0.11 |
| L | TO (x2) | 14.41 | 14.13 | 14.25 | -0.29 |
The Γ, X and L frequencies change by at most 0.000 THz between 4×4×4, 6×6×6 and 8×8×8 cells. A 2×2×2 cell already reproduces them because the potential has a finite range. A 3×3×3 cell does not contain X and L, and the transverse acoustic frequency at X shifts by 0.47 THz there. Doubling the displacement to 0.02 Å changes frequencies by at most 0.003 THz. The acoustic sum rule is applied; the raw constants already satisfy it to 2e-4 THz at Γ.
Build the phonon model
Section titled “Build the phonon model”The build stage writes the primitive cell, the 6×6×6 repeat and the q points. It attaches no calculator.
Silicon supercell of 6×6×6 primitive cells, 432 atoms
from atomli.build import bulkfrom atomli.io import write
primitive = bulk("Si", "diamond", a=5.5) # starting lattice constant; relaxed by the model belowwrite("input/si-primitive.extxyz", primitive)write("input/si-supercell.extxyz", primitive.repeat((6, 6, 6)))# q path Γ-X-W-K-Γ-L, 60 points per segment, in reciprocal-lattice coordinates, goes to input/qpath.jsonCalculate the phonons
Section titled “Calculate the phonons”from atomli.calculators.mlip import MLIPfrom atomli.filters import UnitCellFilterfrom atomli.io import readfrom atomli.optimize import BFGSfrom atomli.phonons import Phonons
atoms = read("input/si-primitive.extxyz")atoms.calc = MLIP("nequix-oam-1-pft") # weights are fetched on first useBFGS(UnitCellFilter(atoms, mask=[True] * 3 + [False] * 3)).run(fmax=0.0005)
phonons = Phonons(atoms, supercell=(6, 6, 6), delta=0.01).run_resident_finite_difference()frequencies = phonons.get_energies(q_path) # eV at any q, here the 301 points of the pathCalculation script reads the inputs and writes study.json and results.json, which hold every number in this section. The script runs in 3 seconds, including the convergence checks and the model survey. Click a row to animate that mode on 2×2×2 cells of the relaxed model.
- Γ optical phonon
- 14.79THz
- Γ optical phonon
- 493cm⁻¹
- Mean |PBE response − potential|
- 0.33THz
- Largest difference
- 0.67THz
- Potential lattice constant
- 5.487Å
Mode shown, 2×2×2 cells, amplitude exaggerated:
Mode shown, 2×2×2 cells, amplitude exaggerated: Γ optical
| Mode | Frequency (THz) | Frequency (cm⁻¹) |
|---|---|---|
| Γ optical | 14.79 | 493 |
| X transverse acoustic | 4.89 | 163 |
| X transverse optical | 13.04 | 435 |
Computed: atomli MLIP with the nequix-oam-1-pft potential (weights fetched at run time); the primitive cell was relaxed to fmax 0.0005 eV/Å (a = 5.4868 Å); no electronic k points are involved.Force constants: central finite displacements of ±0.01 Å on 6x6x6 repeats of the primitive cell, symmetrized, with the acoustic sum rule applied; frequencies at every other q are Fourier interpolation of these real-space constants.Density of states: 32x32x32 Gamma-centred q mesh, all points, Gaussian width 0.12 THz, normalized to 6 states per primitive cell.PBE response: frequencies at Γ, X and L from the analytical PBE/GTH-DZVP-MOLOPT-SR response of the silicon-bands example on a 2x2x2 q mesh at its relaxed a = 5.4746 Å; the acoustic frequencies at Γ (0.14 THz) are that calculation's raw sum-rule error.
Build the model
Section titled “Build the model”The build stage creates the two-atom primitive cell, lists the mesh points that lie on the path, and writes the phonon q points. It attaches no calculator.
Conventional cubic cell of diamond silicon, eight atoms
The viewer shows the conventional cubic cell (eight atoms); the calculation uses its two-atom primitive cell.
from atomli.build import bulkfrom atomli.io import write
primitive = bulk("Si", "diamond", a=5.5) # starting lattice constant; relaxed belowwrite("input/si-primitive.extxyz", primitive)
# k points of a 16x16x16 mesh that lie on the straight segments Γ-X-W-K-Γ-L, and the q points Γ, X, Lpositions, labels, label_positions, fractions = mesh_path(16, primitive.cell)Build script writes kpath.json, qpoints.json and the structure.
Calculate
Section titled “Calculate”from atomli.calculators import QCfrom atomli.io import readfrom atomli.filters import UnitCellFilterfrom atomli.optimize import BFGSfrom atomli.phonons import Phonons
settings = {"periodic": True, "basis": "gth-dzvp-molopt-sr", "pseudopotential": "gth-pbe", "mesh": [25, 25, 25], "precision": 1e-9}
atoms = read("input/si-primitive.extxyz")atoms.calc = QC(xc="PBE", device="cpu", kpts=(8, 8, 8), settings=settings)BFGS(UnitCellFilter(atoms, mask=[True] * 3 + [False] * 3), maxstep=0.04).run(fmax=0.001)
atoms.calc = QC(xc="PBE", device="cpu", kpts=(16, 16, 16), settings=settings)atoms.get_potential_energy()levels = atoms.calc.get_electronic_state()["eigenvalues"][0] # (k points, bands), eV
# relax again on the 4x4x4 mesh used for the response, then require that stationary cellatoms.calc = QC(xc="PBE", device="cpu", kpts=(4, 4, 4), settings=settings)BFGS(UnitCellFilter(atoms, mask=[True] * 3 + [False] * 3), maxstep=0.04).run(fmax=0.001)phonons = Phonons(atoms, supercell=(2, 2, 2), symmetrize=0, acoustic=False, # raw constants reference_fmax=0.001, reference_stress_tolerance=0.0005).run()frequencies = phonons.get_energies([[0, 0, 0], [0, 0.5, 0.5], [0.5, 0.5, 0.5]]) # Γ, X, L; eVCalculation script reads the inputs, runs these steps and writes study.json and results.json, which hold every number on this page.
Comparison and convergence
Section titled “Comparison and convergence”| Quantity | PBE | Experiment |
|---|---|---|
| Lattice constant (Å) | 5.463 | 5.431 |
| Indirect gap (eV) | 0.67 | 1.12 (300 K), 1.17 (low T) |
| Indirect gap at a = 5.431 Å (eV) | 0.64 | 1.12 (300 K) |
| Γ optical phonon (THz) | 15.46 | 15.53 |
The lattice constant converges with the electronic mesh used for the relaxation. The band calculation uses the 8×8×8 cell and the phonon calculation the 4×4×4 cell.
| Relaxation mesh | Lattice constant (Å) |
|---|---|
| 2×2×2 | 5.6064 |
| 3×3×3 | 5.5000 |
| 4×4×4 | 5.4746 |
| 6×6×6 | 5.4639 |
| 8×8×8 | 5.4627 |
The sampled gap depends on the band mesh because the conduction-band minimum lies between mesh points.
| Band mesh | Sampled gap (eV) | Conduction minimum at |
|---|---|---|
| 6×6×6 | 0.808 | (0.500, 0.500, 0.000) |
| 8×8×8 | 0.703 | (0.375, 0.375, 0.000) |
| 12×12×12 | 0.663 | (0.417, 0.417, 0.000) |
| 16×16×16 | 0.670 | (0.438, 0.438, 0.000) |
| 24×24×24 | 0.663 | (0.417, 0.417, 0.000) |
The periodic Hessian must fit a 256 MiB memory budget, which allows an electronic mesh of at most 4×4×4 for this cell, and the response cost grows steeply with the q mesh, so the 2×2×2 q mesh is the largest used here. The Γ optical frequency still moves with the electronic mesh:
| Electronic mesh of the response | Γ optical (THz) |
|---|---|
| 2×2×2 | 17.36 |
| 3×3×3 | 15.90 |
| 4×4×4 | 15.46 |