ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleDFPT::DFPT_NSCF Class Reference

Block-Davidson eigensolver for the full k+q Hamiltonian. More...

#include <dfpt_nscf.h>

Collaboration diagram for ModuleDFPT::DFPT_NSCF:

Static Public Member Functions

static int lowest_eigpairs (const DFPT_Stern::LinearOperator &hop, const std::vector< double > &precond, int nwant, int max_iter, double eig_tol, std::vector< std::vector< std::complex< double > > > &psi, std::vector< double > &eig)
 Solve the lowest nwant eigenpairs of the operator.

Detailed Description

Block-Davidson eigensolver for the full k+q Hamiltonian.

QE aligns the k+q occupied states with an nscf diagonalization (run_nscf -> non_scf_ph) rather than any copy from the ground-state list; this class provides the ABACUS counterpart on top of the DFPT_Stern::LinearOperator interface (DFPT_HamiltShift with shift 0 applies the full H(k+q)).

The iteration keeps a subspace V (n x m), Rayleigh-Ritz projects with zheev, and expands with the diagonal-preconditioned residuals; the subspace is compressed back to the current Ritz vectors when it grows past a multiple of nwant. The preconditioner is the kinetic diagonal tpiba^2 |G+k+q|^2 (+ a small floor), the standard highest-kinetic filter for plane-wave Davidson.

Member Function Documentation

◆ lowest_eigpairs()

int ModuleDFPT::DFPT_NSCF::lowest_eigpairs ( const DFPT_Stern::LinearOperator & hop,
const std::vector< double > & precond,
int nwant,
int max_iter,
double eig_tol,
std::vector< std::vector< std::complex< double > > > & psi,
std::vector< double > & eig )
static

Solve the lowest nwant eigenpairs of the operator.

Parameters
hopfull-Hamiltonian operator (apply must be H, no shift)
preconddiagonal preconditioner, size = hop.dimension()
nwantnumber of lowest eigenpairs requested (<= dimension)
max_iterouter Davidson iterations
eig_tolconvergence threshold on the residual norm (Ry)
psioutput eigenvectors [nwant][n]
eigoutput eigenvalues ascending [nwant]
Returns
0 converged, >0 iterations used without full convergence

< empirical parameter: initial residual target

< empirical parameter: denominator clamp

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: