ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
pw::TDVelPW< Real, Device > Class Template Reference

Charge and spin currents sharing one velocity action per k point. More...

#include <td_vel_pw.h>

Collaboration diagram for pw::TDVelPW< Real, Device >:

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_

Detailed Description

template<typename Real, typename Device>
class pw::TDVelPW< Real, Device >

Charge and spin currents sharing one velocity action per k point.

Member Typedef Documentation

◆ Complex

template<typename Real, typename Device>
using pw::TDVelPW< Real, Device >::Complex = std::complex<Real>
private

Member Function Documentation

◆ calculate()

template<typename Real, typename Device>
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.

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

◆ initialize()

template<typename Real, typename Device>
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.

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

Member Data Documentation

◆ basis_

template<typename Real, typename Device>
const ModulePW::PW_Basis_K* pw::TDVelPW< Real, Device >::basis_ = nullptr
private

◆ cell_

template<typename Real, typename Device>
const UnitCell* pw::TDVelPW< Real, Device >::cell_ = nullptr
private

◆ cross_

template<typename Real, typename Device>
std::vector<Complex> pw::TDVelPW< Real, Device >::cross_
private

◆ diag_

template<typename Real, typename Device>
std::vector<Complex> pw::TDVelPW< Real, Device >::diag_
private

◆ dots_

template<typename Real, typename Device>
ct::Tensor pw::TDVelPW< Real, Device >::dots_
private

◆ kv_

template<typename Real, typename Device>
const K_Vectors* pw::TDVelPW< Real, Device >::kv_ = nullptr
private

◆ pp_

template<typename Real, typename Device>
pseudopot_cell_vnl* pw::TDVelPW< Real, Device >::pp_ = nullptr
private

◆ vel_

template<typename Real, typename Device>
std::unique_ptr<hamilt::Velocity<Real, Device> > pw::TDVelPW< Real, Device >::vel_
private

◆ vpsi_

template<typename Real, typename Device>
ct::Tensor pw::TDVelPW< Real, Device >::vpsi_
private

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