Guide for using TB2J command-line tools to calculate magnetic interaction parameters (J, DMI, etc.) from DFT outputs (Wannier90, Siesta, Abacus). Use this skill when the user asks about running TB2J commands, their parameters, inputs, or outputs.
This skill provides expert guidance on using the TB2J package to calculate magnetic interaction parameters (Heisenberg exchange $J$, DMI $D$, Anisotropy $J_{ani}$) from DFT inputs.
wann2J.py, siesta2J.py, etc.).exchange.outexchange.xmlwann2J.pyprojections in .win file cover magnetic orbitals.siesta2J.pySaveHS True in .fdf.abacus2J.pyout_mat_hs2 1 in INPUT.wann2J.py --spinor.TB2J_rotate.py (generate structures) -> DFT -> TB2J_merge.py (combine results).Results contradict experiment?
--efermi) matches the DFT calculation exactly.--nz.Wannier functions not localized?
wannier90.wout for spreads.dis_win (outer window) to include all relevant bands."Orbitals not found" error?
--elements matches the atoms in the structure file.exclude_orbs is needed for semi-core states.