15template <
typename Real,
typename Device>
24 std::unique_ptr<hamilt::Velocity<Real, Device>>
vel_;
Class for k-points management.
Definition klist.h:20
3 elements vector
Definition vector3.h:21
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:56
Provide the basic information about unitcell.
Definition unitcell.h:16
A multi-dimensional array of elements of a single data type.
Definition tensor.h:32
Definition elecstate.h:20
Charge and spin currents sharing one velocity action per k point.
Definition td_vel_pw.h:17
std::unique_ptr< hamilt::Velocity< Real, Device > > vel_
Definition td_vel_pw.h:24
std::complex< Real > Complex
Definition td_vel_pw.h:19
const ModulePW::PW_Basis_K * basis_
Definition td_vel_pw.h:21
pseudopot_cell_vnl * pp_
Definition td_vel_pw.h:23
TDVelResultPW calculate(const psi::Psi< Complex, Device > &psi, const elecstate::ElecState &state, const ModuleBase::Vector3< double > &a, const CurrentRequest &request)
Sample an endpoint on all ranks, restoring the wavefunction's k-point cursor. Spin current requires n...
Definition td_vel_pw.cpp:27
void initialize(const UnitCell &cell, const ModulePW::PW_Basis_K &basis, const K_Vectors &kv, pseudopot_cell_vnl &pp)
Bind once; dependencies must outlive this object and retain their layout. Ionic positions may change ...
Definition td_vel_pw.cpp:14
const K_Vectors * kv_
Definition td_vel_pw.h:22
std::vector< Complex > cross_
Definition td_vel_pw.h:28
const UnitCell * cell_
Definition td_vel_pw.h:20
ct::Tensor dots_
Definition td_vel_pw.h:26
ct::Tensor vpsi_
Definition td_vel_pw.h:25
std::vector< Complex > diag_
Definition td_vel_pw.h:27
Definition diag_lcao.h:14
Definition deltaspin_pw.cpp:7
Independent requests; all ranks must use the same choices.
Definition td_obs_pw.h:11
Globally reduced currents; unrequested arrays stay zero or empty.
Definition td_obs_pw.h:19