7. Noncollinear magnetism¶
With scf: mode: noncollinear the SCF works with the full \(2\times2\) spin density matrix, so every
atom’s moment can point along its own spin_axis: canted, Néel or spiral spin textures, frustrated
magnets, and spin–orbit coupling.
# Tutorial 15: H3 equilateral triangle, side 2.5 A, PBE/def2-TZVP: noncollinear 120-degree state (moments pointing outward)
system:
charge: 0
unpaired_electrons: 1
units: angstrom
functional:
backend: libxc
exchange: GGA_X_PBE
correlation: GGA_C_PBE
basis:
name: def2-TZVP
file: basis/def2-TZVP.nw
scf:
mode: noncollinear # 2x2 spin density: each moment along its own axis
max_iter: 300
level_shift: 0.2 # Ha; steadies the SCF when the coupling is weak (3.5 A)
conv_tol: 1.0e-10
mesh:
prune: none # stretched H: the pruned H mesh misses the neighbours' density
coulomb:
method: eri # the same J as the noncollinear runs
atoms:
- element: H
position: [0.000000, 1.443376, 0.000000]
moment: 1.0
spin_axis: [0.0000000000, 1.0000000000, 0.0]
- element: H
position: [-1.250000, -0.721688, 0.000000]
moment: 1.0
spin_axis: [-0.8660254038, -0.5000000000, 0.0]
- element: H
position: [1.250000, -0.721688, 0.000000]
moment: 1.0
spin_axis: [0.8660254038, -0.5000000000, 0.0]
Scope¶
Functionals: Hartree–Fock (gives GHF), LDA, GGA and global-hybrid GGA. GGAs use the rotation-invariant construction of Scalmani and Frisch. Meta-GGAs, range-separated and local hybrids are refused. The theory of noncollinear spin DFT goes back to Kübler et al. (1988).
Coulomb:
eri(default) ordensity_fitting, which fits the spinor exchange too (ri_exchange); use a JK-fitting set.moment_mode: fixed; no analysis or cube output, no gradients.The output lists every atom’s local moment (\(M_x, M_y, M_z, |M|\)) and the spinor orbital energies around the gap.
Spin–orbit coupling¶
scf: spin_orbit: true adds a spin–orbit operator to the Fock matrix; soc_scale scales it.
constrain_axis: [x,y,z] holds the total moment along a direction, which is how magnetic anisotropy
energies are obtained. Two-component X2C with spin–orbit uses the same mode
(Tutorial 14; Liu and Peng).
Tips¶
Set each atom’s
momentandspin_axis; the starting directions select the solution.A
level_shiftswitches itself off once the DIIS error is below 10⁻³. DIIS converges much faster than damping.Compare the energies of several starting textures: frustrated systems have several local solutions.
Related tutorial: Noncollinear magnetism: a frustrated triangle (a frustrated H₃ triangle: ferromagnetic, up-up-down and 120° solutions).