Skip to content

feat(lcao): add Tran–Blaha mBJ (TB09) for fixed-geometry calculations - #8528

Open
smz-hubsun wants to merge 2 commits into
deepmodeling:developfrom
smz-hubsun:codex/lcao-tb-mbj
Open

smz-hubsun wants to merge 2 commits into
deepmodeling:developfrom
smz-hubsun:codex/lcao-tb-mbj

Conversation

@smz-hubsun

Copy link
Copy Markdown

Linked Issue

Closes #8527.

What’s changed?

Add the Tran–Blaha modified Becke–Johnson potential with PW92 LDA correlation to CPU LCAO calculations. Support self-consistent band calculations and one-shot calculations from a saved PBE density matrix, including unpolarized, collinear and spinor calculations. dft_functional mBJ selects TB09. out_hsr exports the real-space Hamiltonian and overlap matrices.

tb09_augmentation selects the default grid potential (off), a smooth frozen-core correction (core), or a one-center correction (atom, fit, full). Augmented calculations use a matched PBE norm-conserving UPF and .upf.tb09 companion for each species. The guide covers the PBE restart, automatic or fixed c, data preparation, and SOC requirements.

Unit Tests and/or Case Tests

Local verification used GNU, MPI and OpenMP with Libxc 5.2.3, matching the upstream CI version. Libxc was built with DISABLE_KXC=OFF and DISABLE_LXC=ON.

Check Result
MODULE_HAMILT_XCTest_VXC 18/18 passed, including LibxcSanitizer.GgaSigmaReverseMatchesTheWeightedEnergy.
MODULE_HAMILT_XCTest_TB09 10/10 passed.
03_NAO_multik_tb09 Passed. The grid-only Si SCF met the reference tolerances for automatic c and band energies.
Si fit with Si.upf.tb09 Converged in 19 iterations with DRHO, DKIN and DPROJ below 1e-7. Automatic c was 1.13837758215.
GaAs SOC fit with matched Ga and As companions Both PBE and mBJ SCF converged. PBE took 13 iterations. mBJ took 18 iterations at scf_thr 1e-7, and automatic c was 1.23119591665.

The Si fit run exported hrs1_nao.csr and sr_nao.csr. Both parsed as 44 × 44 real-space CSR blocks and satisfied the R/−R transpose relation within 1.1e-15. Its 512 k points and 14 bands reproduced the V4_pro reference within 4.17e-10 eV. A PBE control removing the auxiliary zero-strength ionic projectors reproduced all 512 k-point eigenvalue lists to the printed precision.

GaAs SOC valence splitting at Γ

The run used the original fixed zinc-blende structure, 8 × 8 × 8 Γ-centered mesh, 100 Ry cutoff, and nspin 4 with lspinorb 1. It used the fit projection and automatic c. The splitting is the mean energy of the occupied Γ₈ quartet (bands 15–18) minus the mean of the Γ₇ doublet (bands 13–14), taken from the SCF Γ-point eigenvalues.

Calculation Γ₈ − Γ₇ (meV)
Migrated branch, Libxc 5.2.3 306.149063
V4_pro reference, fit 306.149063
VASP PAW mBJ reference 310.459000

The migrated result differs from V4_pro by less than 1e-8 meV and from VASP by -4.310 meV (migrated minus reference). The final residuals were DRHO 2.87124e-09, DKIN 5.20944e-09 and DPROJ 6.24201e-08. The run exported hrs1_nao.csr and sr_nao.csr with 290 basis functions.

The existing GGA boundary test passed under Libxc 5.2.3. Under Libxc 7.1.2 the same test returned NaN on both the unmodified upstream baseline and the feature branch. Full upstream CI is pending.

Verification commands

cmake --build "$root/build" --parallel 12 \
  --target abacus_basic_para MODULE_HAMILT_XCTest_VXC MODULE_HAMILT_XCTest_TB09
export OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=1
ctest --test-dir "$root/build" -V \
  -R '^(MODULE_HAMILT_XCTest_VXC|MODULE_HAMILT_XCTest_TB09|03_NAO_multik_tb09)$'
# Run from the reference case's pbe/ directory and then from mbj_fit/.
mpirun --bind-to none -np 8 "$root/build/abacus_basic_para" </dev/null

Pseudopotential provenance

The Si validation uses scalar-relativistic PBE norm-conserving data from ONCVPSP 4.0.1. The GaAs SOC validation pairs scalar ONCV data with a traceless ionic SOC term from matched fully relativistic ONCV data. The earlier V4_pro Ag₉GaSe₆ benchmark uses scalar-relativistic CASTEP OTFG norm-conserving data for Ag, Ga and Se, converted to matched UPF and TB09 companions. In the packaged data the auxiliary fit projectors have zero ionic D-matrix coupling.

Governance Notes

  • The LCAO solver updates the charge and kinetic-energy densities in TB09 SCF. The XC module evaluates the model potential and the LCAO nonlocal operator applies the optional one-center correction to H(R).
  • The remaining header dependency warnings correspond to types used directly by the public headers. The global-reference warnings reflect reuse of the existing run and warning streams, with a net reduction of two global references in the PR diff.
  • Exceptions requested — none.

@mohanchen mohanchen added the Feature Discussed The features will be discussed first but will not be implemented soon label Dec 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Discussed The features will be discussed first but will not be implemented soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add self-consistent TB-mBJ to the LCAO solver with norm-conserving pseudopotentials

2 participants