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

#include <op_pw_ekin_td.h>

Inheritance diagram for hamilt::TDEkineticPW< T, Device >:
Collaboration diagram for hamilt::TDEkineticPW< T, Device >:

Public Member Functions

void set_A_ha (const ModuleBase::Vector3< double > &A)
 Bind the vector potential in Hartree atomic units before init().
 TDEkineticPW (const ModulePW::PW_Basis_K *wfc_basis_in)
virtual ~TDEkineticPW ()
void init (const int ik) override
virtual void act (const int nbands, const int nbasis, const int npol, const T *tmpsi_in, T *tmhpsi, const int ngk_ik=0, const bool is_first_node=false) const override
Public Member Functions inherited from hamilt::OperatorPW< T, base_device::DEVICE_CPU >
virtual ~OperatorPW ()
Public Member Functions inherited from hamilt::Operator< T, base_device::DEVICE_CPU >
 Operator ()
virtual ~Operator ()
virtual hpsi_info hPsi (hpsi_info &input) const
 Core hot-path: compute H|psi> by traversing the operator chain.
virtual void add (Operator *next)
virtual int get_ik () const
int get_act_type () const
calculation_type get_cal_type () const

Private Types

using Real = typename GetTypeReal<T>::type

Private Attributes

const ModulePW::PW_Basis_K * wfc_basis = nullptr
ModuleBase::Vector3< double > A_ha_
Device * ctx = {}
ct::Tensor factor_

Additional Inherited Members

Public Types inherited from hamilt::Operator< T, base_device::DEVICE_CPU >
typedef std::tuple< const psi::Psi< T, base_device::DEVICE_CPU > *, const psi::Range, T * > hpsi_info
 input type of hPsi: (psi_input, range, hpsi_pointer)
Public Attributes inherited from hamilt::OperatorPW< T, base_device::DEVICE_CPU >
std::string classname
Public Attributes inherited from hamilt::Operator< T, base_device::DEVICE_CPU >
Operator * next_op
 interface type 3: return a Psi-type HPsi
Protected Types inherited from hamilt::Operator< T, base_device::DEVICE_CPU >
using set_memory_op
Protected Member Functions inherited from hamilt::Operator< T, base_device::DEVICE_CPU >
T * get_hpsi (const hpsi_info &info) const
Protected Attributes inherited from hamilt::Operator< T, base_device::DEVICE_CPU >
int ik
int act_type
 determine which act() interface would be called in hPsi()
bool in_place
enum calculation_type cal_type
Operator * next_sub_op
bool is_first_node
psi::Psi< T, base_device::DEVICE_CPU > * hpsi
base_device::DEVICE_CPU * ctx

Member Typedef Documentation

◆ Real

template<typename T, typename Device = base_device::DEVICE_CPU>
using hamilt::TDEkineticPW< T, Device >::Real = typename GetTypeReal<T>::type
private

Constructor & Destructor Documentation

◆ TDEkineticPW()

template<typename T, typename Device>
hamilt::TDEkineticPW< T, Device >::TDEkineticPW ( const ModulePW::PW_Basis_K * wfc_basis_in)

◆ ~TDEkineticPW()

template<typename T, typename Device>
hamilt::TDEkineticPW< T, Device >::~TDEkineticPW ( )
virtualdefault

Member Function Documentation

◆ act()

template<typename T, typename Device>
void hamilt::TDEkineticPW< T, Device >::act ( const int nbands,
const int nbasis,
const int npol,
const T * tmpsi_in,
T * tmhpsi,
const int ngk_ik = 0,
const bool is_first_node = false ) const
overridevirtual

do operation : |hpsi_choosed> = V|psi_choosed> V is the target operator act on choosed psi, the consequence should be added to choosed hpsi interface type 1: pointer-only (default)

Note
PW: nbasis = max_npw * npol, nbands = nband * npol, npol = npol. Strange but PAY ATTENTION!!!

Reimplemented from hamilt::Operator< T, base_device::DEVICE_CPU >.

Here is the call graph for this function:

◆ init()

template<typename T, typename Device>
void hamilt::TDEkineticPW< T, Device >::init ( const int ik)
overridevirtual

Reimplemented from hamilt::Operator< T, base_device::DEVICE_CPU >.

Here is the call graph for this function:

◆ set_A_ha()

template<typename T, typename Device = base_device::DEVICE_CPU>
void hamilt::TDEkineticPW< T, Device >::set_A_ha ( const ModuleBase::Vector3< double > & A)
inline

Bind the vector potential in Hartree atomic units before init().

Member Data Documentation

◆ A_ha_

template<typename T, typename Device = base_device::DEVICE_CPU>
ModuleBase::Vector3<double> hamilt::TDEkineticPW< T, Device >::A_ha_
private

◆ ctx

template<typename T, typename Device = base_device::DEVICE_CPU>
Device* hamilt::TDEkineticPW< T, Device >::ctx = {}
private

◆ factor_

template<typename T, typename Device = base_device::DEVICE_CPU>
ct::Tensor hamilt::TDEkineticPW< T, Device >::factor_
private

◆ wfc_basis

template<typename T, typename Device = base_device::DEVICE_CPU>
const ModulePW::PW_Basis_K* hamilt::TDEkineticPW< T, Device >::wfc_basis = nullptr
private

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