ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
uspp_density.cpp File Reference
Include dependency graph for uspp_density.cpp:

Classes

class  elecstate::UsppProjector< T, Device >::Workspace< T, Device >

Namespaces

namespace  elecstate

Functions

int elecstate::uspp_becsum_size (const UnitCell &ucell, const pseudopot_cell_vnl &ppcell, const int nspin)
 Size of the canonical [spin][atom][packed projector pair] storage.
void elecstate::add_uspp_density (const UnitCell &ucell, const pseudopot_cell_vnl &ppcell, const ModulePW::PW_Basis &basis, const int nspin, const std::vector< double > &becsum, std::complex< double > **rhog)
 Add USPP augmentation to caller-owned dense-grid reciprocal densities. becsum uses i <= j pairs, with the off-diagonal multiplicity already included. The Q(G) tables supply volume normalization; state weights are dimensionless. The current scalar/collinear contraction does not acquire spinor support by setting nspin=4. Spinor support requires charge/magnetization coefficients and a compatible Q/projector representation, including review of the packed-pair convention for SOC.