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

#include <to_w90_pw.h>

Inheritance diagram for toW90_PW:
Collaboration diagram for toW90_PW:

Public Member Functions

 toW90_PW (const bool &out_wannier_mmn, const bool &out_wannier_amn, const bool &out_wannier_unk, const bool &out_wannier_eig, const bool &out_wannier_wvfn_formatted, const std::string &nnkpfile, const std::string &wannier_spin, const int &nspin, const int &nbands, const int &nqx, const double &dq, const int &npol)
 ~toW90_PW ()
void calculate (const UnitCell &ucell, const ModuleBase::matrix &ekb, const ModulePW::PW_Basis_K *wfcpw, const ModulePW::PW_Basis_Big *bigpw, const K_Vectors &kv, const psi::Psi< std::complex< double > > *psi)
void calculate (const UnitCell &ucell, const ModuleBase::matrix &ekb, const ModulePW::PW_Basis_K *wfcpw, const ModulePW::PW_Basis_Big *bigpw, const K_Vectors &kv, const psi::Psi< double > *psi)
void cal_Amn (const psi::Psi< std::complex< double > > &psi_pw, const ModulePW::PW_Basis_K *wfcpw)
void cal_Mmn (const psi::Psi< std::complex< double > > &psi_pw, const ModulePW::PW_Basis_K *wfcpw)
void out_unk (const psi::Psi< std::complex< double > > &psi_pw, const ModulePW::PW_Basis_K *wfcpw, const ModulePW::PW_Basis_Big *bigpw)
void set_tpiba_omega (const double &tpiba, const double &omega)
Public Member Functions inherited from toW90
 toW90 ()
 toW90 (const bool &out_wannier_mmn, const bool &out_wannier_amn, const bool &out_wannier_unk, const bool &out_wannier_eig, const bool &out_wannier_wvfn_formatted, const std::string &nnkpfile, const std::string &wannier_spin, const int &nspin, const int &nbands, const int &nqx, const double &dq, const int &npol)
 ~toW90 ()
void calculate ()
void read_nnkp (const UnitCell &ucell, const K_Vectors &kv)
void out_eig (const ModuleBase::matrix &ekb)
void cal_Amn ()
void cal_Mmn ()
void out_unk ()

Protected Member Functions

void unkdotkb (const psi::Psi< std::complex< double > > &psi_pw, const ModulePW::PW_Basis_K *wfcpw, const int &ik, const int &ikb, const ModuleBase::Vector3< double > G, ModuleBase::ComplexMatrix &Mmn)
void gen_radial_function_in_q (std::vector< ModuleBase::matrix > &radial_in_q)
void integral (const int meshr, const double *psir, const double *r, const double *rab, const int &l, double *table)
void produce_trial_in_pw (const psi::Psi< std::complex< double > > &psi_pw, const int &ik, const ModulePW::PW_Basis_K *wfcpw, const std::vector< ModuleBase::matrix > &radial_in_q, ModuleBase::ComplexMatrix &trial_orbitals_k)
void get_trial_orbitals_lm_k (const int &orbital_L, const int &orbital_m, const ModuleBase::matrix &ylm, const ModuleBase::Vector3< double > *gk, const int &npw, double *radial_in_q_single, std::complex< double > *orbital_in_G_single)
void unkdotW_A (const psi::Psi< std::complex< double > > &psi_pw, const ModulePW::PW_Basis_K *wfcpw, const int &ik, const std::vector< ModuleBase::matrix > &radial_in_q, ModuleBase::ComplexMatrix &Amn)
Protected Member Functions inherited from toW90
bool try_read_nnkp (const UnitCell &ucell, const K_Vectors &kv)

Protected Attributes

const int mesh_r = 333
const double dx = 0.025
const double x_min = -6.0
double const * tpiba
double const * omega
Protected Attributes inherited from toW90
int num_kpts =0
int cal_num_kpts =0
std::vector< std::vector< int > > nnlist
std::vector< std::vector< ModuleBase::Vector3< double > > > nncell
int nntot = 0
int start_k_index = 0
int num_wannier =0
std::vector< ModuleBase::Vector3< double > > R_centre
std::vector< int > L
std::vector< int > m
std::vector< int > rvalue
std::vector< ModuleBase::Vector3< double > > z_axis
std::vector< ModuleBase::Vector3< double > > x_axis
std::vector< double > alfa
std::vector< int > spin_eig
std::vector< ModuleBase::Vector3< double > > spin_qaxis
std::vector< std::complex< double > > up_con
std::vector< std::complex< double > > dn_con
bool out_wannier_mmn = true
bool out_wannier_amn = true
bool out_wannier_unk = true
bool out_wannier_eig = true
bool out_wannier_wvfn_formatted = true
std::string nnkpfile = ""
std::string wannier_file_name = "seedname"
std::string wannier_spin = "up"
int nspin_ = 1
int nbands_ = 0
int nqx_ = 0
double dq_ = 0.0
int npol_ = 1
int num_exclude_bands = 0
std::unordered_set< int > exclude_bands
int num_bands = 0
std::vector< int > cal_band_index
bool gamma_only_wannier = false

Constructor & Destructor Documentation

◆ toW90_PW()

toW90_PW::toW90_PW ( const bool & out_wannier_mmn,
const bool & out_wannier_amn,
const bool & out_wannier_unk,
const bool & out_wannier_eig,
const bool & out_wannier_wvfn_formatted,
const std::string & nnkpfile,
const std::string & wannier_spin,
const int & nspin,
const int & nbands,
const int & nqx,
const double & dq,
const int & npol )
Here is the call graph for this function:

◆ ~toW90_PW()

toW90_PW::~toW90_PW ( )

Member Function Documentation

◆ cal_Amn()

void toW90_PW::cal_Amn ( const psi::Psi< std::complex< double > > & psi_pw,
const ModulePW::PW_Basis_K * wfcpw )
Here is the call graph for this function:

◆ cal_Mmn()

void toW90_PW::cal_Mmn ( const psi::Psi< std::complex< double > > & psi_pw,
const ModulePW::PW_Basis_K * wfcpw )
Here is the call graph for this function:

◆ calculate() [1/2]

void toW90_PW::calculate ( const UnitCell & ucell,
const ModuleBase::matrix & ekb,
const ModulePW::PW_Basis_K * wfcpw,
const ModulePW::PW_Basis_Big * bigpw,
const K_Vectors & kv,
const psi::Psi< double > * psi )
inline

◆ calculate() [2/2]

void toW90_PW::calculate ( const UnitCell & ucell,
const ModuleBase::matrix & ekb,
const ModulePW::PW_Basis_K * wfcpw,
const ModulePW::PW_Basis_Big * bigpw,
const K_Vectors & kv,
const psi::Psi< std::complex< double > > * psi )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gen_radial_function_in_q()

void toW90_PW::gen_radial_function_in_q ( std::vector< ModuleBase::matrix > & radial_in_q)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_trial_orbitals_lm_k()

void toW90_PW::get_trial_orbitals_lm_k ( const int & orbital_L,
const int & orbital_m,
const ModuleBase::matrix & ylm,
const ModuleBase::Vector3< double > * gk,
const int & npw,
double * radial_in_q_single,
std::complex< double > * orbital_in_G_single )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ integral()

void toW90_PW::integral ( const int meshr,
const double * psir,
const double * r,
const double * rab,
const int & l,
double * table )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ out_unk()

void toW90_PW::out_unk ( const psi::Psi< std::complex< double > > & psi_pw,
const ModulePW::PW_Basis_K * wfcpw,
const ModulePW::PW_Basis_Big * bigpw )
Here is the call graph for this function:

◆ produce_trial_in_pw()

void toW90_PW::produce_trial_in_pw ( const psi::Psi< std::complex< double > > & psi_pw,
const int & ik,
const ModulePW::PW_Basis_K * wfcpw,
const std::vector< ModuleBase::matrix > & radial_in_q,
ModuleBase::ComplexMatrix & trial_orbitals_k )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_tpiba_omega()

void toW90_PW::set_tpiba_omega ( const double & tpiba,
const double & omega )
Here is the caller graph for this function:

◆ unkdotkb()

void toW90_PW::unkdotkb ( const psi::Psi< std::complex< double > > & psi_pw,
const ModulePW::PW_Basis_K * wfcpw,
const int & ik,
const int & ikb,
const ModuleBase::Vector3< double > G,
ModuleBase::ComplexMatrix & Mmn )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unkdotW_A()

void toW90_PW::unkdotW_A ( const psi::Psi< std::complex< double > > & psi_pw,
const ModulePW::PW_Basis_K * wfcpw,
const int & ik,
const std::vector< ModuleBase::matrix > & radial_in_q,
ModuleBase::ComplexMatrix & Amn )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dx

const double toW90_PW::dx = 0.025
protected

◆ mesh_r

const int toW90_PW::mesh_r = 333
protected

◆ omega

double const* toW90_PW::omega
protected

◆ tpiba

double const* toW90_PW::tpiba
protected

◆ x_min

const double toW90_PW::x_min = -6.0
protected

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