Repository navigation
feat(lcao): add Tran–Blaha mBJ (TB09) for fixed-geometry calculations - #8528
Open
smz-hubsun wants to merge 2 commits into
Open
smz-hubsun wants to merge 2 commits into
smz-hubsun wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 mBJselects TB09.out_hsrexports the real-space Hamiltonian and overlap matrices.tb09_augmentationselects 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.tb09companion for each species. The guide covers the PBE restart, automatic or fixedc, 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=OFFandDISABLE_LXC=ON.MODULE_HAMILT_XCTest_VXCLibxcSanitizer.GgaSigmaReverseMatchesTheWeightedEnergy.MODULE_HAMILT_XCTest_TB0903_NAO_multik_tb09cand band energies.fitwithSi.upf.tb09DRHO,DKINandDPROJbelow1e-7. Automaticcwas1.13837758215.fitwith matched Ga and As companionsscf_thr 1e-7, and automaticcwas1.23119591665.The Si
fitrun exportedhrs1_nao.csrandsr_nao.csr. Both parsed as 44 × 44 real-space CSR blocks and satisfied the R/−R transpose relation within1.1e-15. Its 512 k points and 14 bands reproduced the V4_pro reference within4.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 4withlspinorb 1. It used thefitprojection and automaticc. 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.fitThe migrated result differs from V4_pro by less than
1e-8meV and from VASP by -4.310 meV (migrated minus reference). The final residuals wereDRHO 2.87124e-09,DKIN 5.20944e-09andDPROJ 6.24201e-08. The run exportedhrs1_nao.csrandsr_nao.csrwith 290 basis functions.The existing GGA boundary test passed under Libxc 5.2.3. Under Libxc 7.1.2 the same test returned
NaNon both the unmodified upstream baseline and the feature branch. Full upstream CI is pending.Verification commands
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
fitprojectors have zero ionic D-matrix coupling.Governance Notes