ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
TD_info Class Reference

#include <td_info.h>

Collaboration diagram for TD_info:

Public Member Functions

 TD_info (const UnitCell *ucell_in, const BasisFlattenedIndexing &basis, const Parallel_Blkcyclic &layout, const LCAO_Orbitals &orb, const elecstate::TDFieldManager &field_manager)
 ~TD_info ()
const elecstate::TDFieldManager & field () const
 Read the solver-owned field state without copying or publishing it.
const BasisFlattenedIndexing & basis () const
const Parallel_Blkcyclic & layout () const
AtomBasisView row_basis (const int iat) const
AtomBasisView col_basis (const int iat) const
const ModuleBase::Vector3< double > & endpoint_A () const
 Read the current endpoint directly from the shared field manager.
void update_field ()
 Refresh hybrid phases using the manager's current endpoint.
void initialize_current_term (const hamilt::HContainer< std::complex< double > > *HR)
hamilt::HContainer< std::complex< double > > * get_current_term_pointer (const int &i) const
template<typename TR>
void initialize_phase_hybrid (const UnitCell &ucell, const hamilt::HContainer< TR > *hR)
const std::map< ModuleBase::Vector3< int >, std::complex< double > > & get_phase_hybrid () const
void calculate_grad_overlap (const UnitCell &ucell, const Grid_Driver &GridD, const std::vector< double > &orb_cutoff, const TwoCenterIntegrator *intor)
std::vector< hamilt::HContainer< double > * > get_grad_overlap () const
void set_velocity_HR (hamilt::HContainer< std::complex< double > > *HR)
hamilt::HContainer< std::complex< double > > * get_velocity_HR_pointer () const

Public Attributes

std::map< Abfs::Vector3_Order< int >, std::map< size_t, std::map< size_t, std::complex< double > > > > HR_sparse_td_vel [2]
Position_op r_calculator

Static Public Attributes

static bool out_mat_R = false
 switch to control the output of HR
static int out_current = 0
 switch to control the output of current
static bool out_current_k = false
 switch to control the format of the output current, in total or in each k-point
static bool evolve_once = false
 if need to calculate more than once

Private Member Functions

void destroy_HS_R_td_sparse ()
 destory HSR data stored

Private Attributes

const BasisFlattenedIndexing & basis_
const Parallel_Blkcyclic & layout_
const elecstate::TDFieldManager & field_manager_
ModuleBase::Vector3< double > a1
 lattice vectors, used to calculate the extra phase for hybrid gauge
ModuleBase::Vector3< double > a2
ModuleBase::Vector3< double > a3
double lat0
std::map< ModuleBase::Vector3< int >, std::complex< double > > phase_hybrid
 store time-dependent phase for hybrid gauge
std::vector< hamilt::HContainer< double > * > grad_overlap = {nullptr, nullptr, nullptr}
 store the dS/dD matrix
std::vector< hamilt::HContainer< std::complex< double > > * > current_term = {nullptr, nullptr, nullptr}
 part of Momentum operator, -i∇ - i[r,Vnl]. Used to calculate current.
hamilt::HContainer< std::complex< double > > * velocity_HR = nullptr
 store kinetic hamilton

Constructor & Destructor Documentation

◆ TD_info()

TD_info::TD_info ( const UnitCell * ucell_in,
const BasisFlattenedIndexing & basis,
const Parallel_Blkcyclic & layout,
const LCAO_Orbitals & orb,
const elecstate::TDFieldManager & field_manager )
Here is the call graph for this function:

◆ ~TD_info()

TD_info::~TD_info ( )
Here is the call graph for this function:

Member Function Documentation

◆ basis()

const BasisFlattenedIndexing & TD_info::basis ( ) const
inline
Here is the caller graph for this function:

◆ calculate_grad_overlap()

void TD_info::calculate_grad_overlap ( const UnitCell & ucell,
const Grid_Driver & GridD,
const std::vector< double > & orb_cutoff,
const TwoCenterIntegrator * intor )
Here is the call graph for this function:

◆ col_basis()

AtomBasisView TD_info::col_basis ( const int iat) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroy_HS_R_td_sparse()

void TD_info::destroy_HS_R_td_sparse ( void )
private

destory HSR data stored

Here is the caller graph for this function:

◆ endpoint_A()

const ModuleBase::Vector3< double > & TD_info::endpoint_A ( ) const

Read the current endpoint directly from the shared field manager.

Here is the caller graph for this function:

◆ field()

const elecstate::TDFieldManager & TD_info::field ( ) const
inline

Read the solver-owned field state without copying or publishing it.

Here is the caller graph for this function:

◆ get_current_term_pointer()

hamilt::HContainer< std::complex< double > > * TD_info::get_current_term_pointer ( const int & i) const
inline

◆ get_grad_overlap()

std::vector< hamilt::HContainer< double > * > TD_info::get_grad_overlap ( ) const
inline
Here is the caller graph for this function:

◆ get_phase_hybrid()

const std::map< ModuleBase::Vector3< int >, std::complex< double > > & TD_info::get_phase_hybrid ( ) const
inline
Here is the caller graph for this function:

◆ get_velocity_HR_pointer()

hamilt::HContainer< std::complex< double > > * TD_info::get_velocity_HR_pointer ( ) const
inline

◆ initialize_current_term()

void TD_info::initialize_current_term ( const hamilt::HContainer< std::complex< double > > * HR)
Here is the call graph for this function:

◆ initialize_phase_hybrid()

template<typename TR>
template void TD_info::initialize_phase_hybrid< double > ( const UnitCell & ucell,
const hamilt::HContainer< TR > * hR )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ layout()

const Parallel_Blkcyclic & TD_info::layout ( ) const
inline
Here is the caller graph for this function:

◆ row_basis()

AtomBasisView TD_info::row_basis ( const int iat) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_velocity_HR()

void TD_info::set_velocity_HR ( hamilt::HContainer< std::complex< double > > * HR)
inline

◆ update_field()

void TD_info::update_field ( )

Refresh hybrid phases using the manager's current endpoint.

Here is the call graph for this function:

Member Data Documentation

◆ a1

ModuleBase::Vector3<double> TD_info::a1
private

lattice vectors, used to calculate the extra phase for hybrid gauge

◆ a2

ModuleBase::Vector3<double> TD_info::a2
private

◆ a3

ModuleBase::Vector3<double> TD_info::a3
private

◆ basis_

const BasisFlattenedIndexing& TD_info::basis_
private

◆ current_term

std::vector<hamilt::HContainer<std::complex<double> >*> TD_info::current_term = {nullptr, nullptr, nullptr}
private

part of Momentum operator, -i∇ - i[r,Vnl]. Used to calculate current.

◆ evolve_once

bool TD_info::evolve_once = false
static

if need to calculate more than once

◆ field_manager_

const elecstate::TDFieldManager& TD_info::field_manager_
private

◆ grad_overlap

std::vector<hamilt::HContainer<double>*> TD_info::grad_overlap = {nullptr, nullptr, nullptr}
private

store the dS/dD matrix

◆ HR_sparse_td_vel

std::map<Abfs::Vector3_Order<int>, std::map<size_t, std::map<size_t, std::complex<double> > > > TD_info::HR_sparse_td_vel[2]

◆ lat0

double TD_info::lat0
private

◆ layout_

const Parallel_Blkcyclic& TD_info::layout_
private

◆ out_current

int TD_info::out_current = 0
static

switch to control the output of current

◆ out_current_k

bool TD_info::out_current_k = false
static

switch to control the format of the output current, in total or in each k-point

◆ out_mat_R

bool TD_info::out_mat_R = false
static

switch to control the output of HR

◆ phase_hybrid

std::map<ModuleBase::Vector3<int>, std::complex<double> > TD_info::phase_hybrid
private

store time-dependent phase for hybrid gauge

◆ r_calculator

Position_op TD_info::r_calculator

◆ velocity_HR

hamilt::HContainer<std::complex<double> >* TD_info::velocity_HR = nullptr
private

store kinetic hamilton


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