Author Topic: HartreeDifferencePotential - spin projection  (Read 3820 times)

0 Members and 1 Guest are viewing this topic.

Offline hagelberg

  • Regular QuantumATK user
  • **
  • Posts: 15
  • Country: us
  • Reputation: 0
    • View Profile
HartreeDifferencePotential - spin projection
« on: December 22, 2021, 18:06 »
I'd like to compute spin projections of the Hartree Difference Potential, specifically projections on spin-up/spin-down populations, and the difference between both. Could you suggest a script that would achieve this? I have access to QuantumATK S-2021.06. Thanks!

Offline filipr

  • QuantumATK Staff
  • Heavy QuantumATK user
  • *****
  • Posts: 81
  • Country: dk
  • Reputation: 6
  • QuantumATK developer
    • View Profile
Re: HartreeDifferencePotential - spin projection
« Reply #1 on: January 14, 2022, 14:50 »
I don't think this is currently possible for a user to do.

The reason is that both during the SCF loop and when using HartreePotential to calculate the Hartree potential only the full electron density is used. This is both to ensure that no unnecessary computations are done (solving the Poisson equation is not always a cheap operation) and ensure that the correct boundary conditions are satisfied. In fact the Hartree potential is by definition a scalar quantity - it is an electrostatic potential.

You could in principle calculate the electrostatic potential from the spin-up and spin-down part of the electron density, but that would require you to extract those two densities and solve the Poisson equation separately for each one. I don't think this is possible for a user to do.