DFTK.jl icon indicating copy to clipboard operation
DFTK.jl copied to clipboard

Automatic guess of initial magnetic_moments

Open niklasschmitz opened this issue 7 months ago • 1 comments
trafficstars

Currently, to run calculations with collinear spin, the user has to manually provide initial guesses for magnetic_moments. This is used to 1) determine symmetries, 2) set model.spin_polarization to :collinear or :full, and 3) the guess_density for SCF initialization.

Example: https://docs.dftk.org/stable/examples/collinear_magnetism/

It would be nice, if we could instead directly specify a Model to be :collinear (or full?) and have

  • an automatic guess for magnetic_moments
  • an automatic guess for the initial density

@mfherbst mentioned there is some initial guess magnetic moments in ASE?

niklasschmitz avatar Apr 14 '25 16:04 niklasschmitz

See https://github.com/aiidateam/aiida-quantumespresso/blob/main/src/aiida_quantumespresso/workflows/protocols/magnetization.yaml and the discussion in https://github.com/aiidateam/aiida-quantumespresso/issues/1069.

mfherbst avatar May 23 '25 11:05 mfherbst