deepmodeling / abacus-develop

An electronic structure package based on either plane wave basis or numerical atomic orbitals.
http://abacus.ustc.edu.cn
GNU Lesser General Public License v3.0
171 stars 129 forks source link

Feature: require initial density matrix for further density matrix mixing #3536

Closed WHUweiqingzhou closed 7 months ago

WHUweiqingzhou commented 9 months ago

Background

Before SCF, ABACUS will construct an initial charge density. As is purposed in #3535, if we want to mix density matrix as same as charge density at the very beginning. ABACUS should construct an initial density matrix as well.

Describe the solution you'd like

ABACUS should construct an initial density matrix as well.

Task list only for developers

Notice Possible Changes of Behavior (Reminder only for developers)

No response

Notice any changes of core modules (Reminder only for developers)

No response

Notice Possible Changes of Core Modules (Reminder only for developers)

No response

Additional Context

No response

Task list for Issue attackers (only for developers)

kirk0830 commented 9 months ago

I also wander if the initial superposition of atomic charges corresponds to the normalized atomic pseudowavefunction in some way, will try to derive it.

WHUweiqingzhou commented 9 months ago

@kirk0830, Besides the idea just mentioned above, another solution is to fix initial charge density unchanged at first several iterations, while update density matrix to find the density matrix corresponding to the initial charge density. Compared with the first idea, this second idea can be implemented without uncertainty.

b.t.w, this discussion is to concern the restart calculation of those which need density matrix, just like DFTU/DeePKS/EXX #3413

kirk0830 commented 7 months ago

I don't think it is a trivial task to get a (might be with high quality) wavefunction corresponds to a fixed rho. It can be obtained by one-single rho-fixed diagonalization (means optimal wavefunction, according to concepts of Levy constrainted search) but there are surely other ways but, might be not easy cuz states are needed to be orhogonal... Seems need some time-consuming implementation on numerical algorithm, if really not interested in diagonalization with a fixed-rho

WHUweiqingzhou commented 7 months ago

I think this issue can be closed now, which has been solved in some extend by PR #3542 mixing_restart.