|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Charge and spin currents sharing one velocity action per k point. More...
#include <td_vel_pw.h>
Public Member Functions | |
| 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 after the caller updates the structure factors. | |
| 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 npol=2; requests must agree across ranks. | |
Private Types | |
| using | Complex = std::complex<Real> |
Private Attributes | |
| const UnitCell * | cell_ = nullptr |
| const ModulePW::PW_Basis_K * | basis_ = nullptr |
| const K_Vectors * | kv_ = nullptr |
| pseudopot_cell_vnl * | pp_ = nullptr |
| std::unique_ptr< hamilt::Velocity< Real, Device > > | vel_ |
| ct::Tensor | vpsi_ |
| ct::Tensor | dots_ |
| std::vector< Complex > | diag_ |
| std::vector< Complex > | cross_ |
Charge and spin currents sharing one velocity action per k point.
|
private |
| TDVelResultPW pw::TDVelPW< Real, Device >::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 npol=2; requests must agree across ranks.
| void pw::TDVelPW< Real, Device >::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 after the caller updates the structure factors.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |