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

#include <op_pw_nl_td.h>

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

Public Member Functions

void set_A_ha (const ModuleBase::Vector3< double > &A)
 Bind the vector potential in Hartree atomic units before init().
 TDNonlocalPW (const int *isk_in, const pseudopot_cell_vnl *ppcell_in, const UnitCell *ucell_in, const ModulePW::PW_Basis_K *wfc_basis)
virtual ~TDNonlocalPW ()
virtual void init (const int ik_in) 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 resmem_complex_op = base_device::memory::resize_memory_op<T, Device>
using delmem_complex_op = base_device::memory::delete_memory_op<T, Device>

Private Attributes

NonlocalWorkspace< T, Device > workspace_
const int * isk = nullptr
const pseudopot_cell_vnl * ppcell = nullptr
const UnitCell * ucell = nullptr
const ModulePW::PW_Basis_K * wfcpw = nullptr
T * vkb_td = nullptr
ModuleBase::Vector3< double > A_ha_
Device * ctx = {}

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

◆ delmem_complex_op

template<typename T, typename Device = base_device::DEVICE_CPU>
using hamilt::TDNonlocalPW< T, Device >::delmem_complex_op = base_device::memory::delete_memory_op<T, Device>
private

◆ resmem_complex_op

template<typename T, typename Device = base_device::DEVICE_CPU>
using hamilt::TDNonlocalPW< T, Device >::resmem_complex_op = base_device::memory::resize_memory_op<T, Device>
private

Constructor & Destructor Documentation

◆ TDNonlocalPW()

template<typename T, typename Device>
hamilt::TDNonlocalPW< T, Device >::TDNonlocalPW ( const int * isk_in,
const pseudopot_cell_vnl * ppcell_in,
const UnitCell * ucell_in,
const ModulePW::PW_Basis_K * wfc_basis )
Here is the call graph for this function:

◆ ~TDNonlocalPW()

template<typename T, typename Device>
hamilt::TDNonlocalPW< T, Device >::~TDNonlocalPW ( )
virtual

Member Function Documentation

◆ act()

template<typename T, typename Device>
void hamilt::TDNonlocalPW< 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 >.

◆ init()

template<typename T, typename Device>
void hamilt::TDNonlocalPW< T, Device >::init ( const int ik_in)
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::TDNonlocalPW< T, Device >::set_A_ha ( const ModuleBase::Vector3< double > & A)
inline

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

Here is the caller graph for this function:

Member Data Documentation

◆ A_ha_

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

◆ ctx

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

◆ isk

template<typename T, typename Device = base_device::DEVICE_CPU>
const int* hamilt::TDNonlocalPW< T, Device >::isk = nullptr
private

◆ ppcell

template<typename T, typename Device = base_device::DEVICE_CPU>
const pseudopot_cell_vnl* hamilt::TDNonlocalPW< T, Device >::ppcell = nullptr
private

◆ ucell

template<typename T, typename Device = base_device::DEVICE_CPU>
const UnitCell* hamilt::TDNonlocalPW< T, Device >::ucell = nullptr
private

◆ vkb_td

template<typename T, typename Device = base_device::DEVICE_CPU>
T* hamilt::TDNonlocalPW< T, Device >::vkb_td = nullptr
mutableprivate

◆ wfcpw

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

◆ workspace_

template<typename T, typename Device = base_device::DEVICE_CPU>
NonlocalWorkspace<T, Device> hamilt::TDNonlocalPW< T, Device >::workspace_
mutableprivate

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