ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
uspp_density.h File Reference
#include "source_base/module_device/device.h"
#include "source_basis/module_pw/pw_basis.h"
#include "source_cell/unitcell.h"
#include "source_pw/module_pwdft/vnl_pw.h"
#include <complex>
#include <memory>
#include <vector>
Include dependency graph for uspp_density.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  elecstate::UsppProjector< T, Device >
 Accumulate explicitly weighted collinear USPP states with reusable device buffers. More...

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.