5.3.3. band_minimizer.get_grad_occ

eminus.band_minimizer.get_grad_occ(scf, ik, spin, W, **kwargs)[source]

Calculate the occupied band energy gradient with respect to W.

Reference: Comput. Phys. Commun. 128, 1.

Parameters:
  • scf – SCF object.

  • ik – k-point index.

  • spin – Spin variable to track whether to do the calculation for spin up or down.

  • W – Expansion coefficients of unconstrained wave functions in reciprocal space.

Keyword Arguments:

**kwargs – See H().

Returns:

Gradient.