ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
elecond.h
Go to the documentation of this file.
1#ifndef ELECOND_H
2#define ELECOND_H
3
6#include "source_cell/klist.h"
11
12template <typename FPTYPE, typename Device>
14{
15 public:
20
21 public:
22 EleCond(
23 UnitCell *p_ucell_in,
24 K_Vectors *p_kv_in,
25 elecstate::ElecState *p_elec_in,
26 ModulePW::PW_Basis_K *p_wfcpw_in,
27 psi::Psi<std::complex<FPTYPE>, Device> *p_psi_in,
28 pseudopot_cell_vnl *p_ppcell_in);
30
43 void KG(
44 const int &smear_type,
45 const double &fwhmin,
46 const double &wcut,
47 const double &dw_in,
48 const double &dt_in,
49 const bool &nonlocal,
50 const bool &mgga_vel,
52
53 protected:
55 UnitCell *p_ucell = nullptr;
57 K_Vectors *p_kv = nullptr;
60
61 protected:
75 void jjresponse_ks(
76 const int ik,
77 const int nt,
78 const double dt,
79 const double decut,
82 double *ct11,
83 double *ct12,
84 double *ct22);
98 void calcondw(
99 const int nt,
100 const double dt,
101 const int &smear_type,
102 const double fwhmin,
103 const double wcut,
104 const double dw_in,
105 double *ct11,
106 double *ct12,
107 double *ct22);
108};
109
110#endif // ELECOND_H
void calcondw(const int nt, const double dt, const int &smear_type, const double fwhmin, const double wcut, const double dw_in, double *ct11, double *ct12, double *ct22)
Calculate the conductivity using the response function.
Definition elecond.cpp:257
base_device::memory::resize_memory_op< std::complex< FPTYPE >, Device > resmem_complex_op
Definition elecond.h:16
void KG(const int &smear_type, const double &fwhmin, const double &wcut, const double &dw_in, const double &dt_in, const bool &nonlocal, const bool &mgga_vel, ModuleBase::matrix &wg)
calculate Onsager coefficients Lmn(\omega) and conductivities with Kubo-Greenwood formula
Definition elecond.cpp:52
elecstate::ElecState * p_elec
pointer to the electronic state
Definition elecond.h:58
ModulePW::PW_Basis_K * p_wfcpw
pointer to the plane wave basis
Definition elecond.h:56
psi::Psi< std::complex< FPTYPE >, Device > * p_psi
pointer to the wavefunction
Definition elecond.h:59
base_device::memory::synchronize_memory_op< std::complex< FPTYPE >, base_device::DEVICE_CPU, Device > syncmem_complex_d2h_op
Definition elecond.h:18
K_Vectors * p_kv
pointer to the k vectors
Definition elecond.h:57
base_device::memory::delete_memory_op< std::complex< FPTYPE >, Device > delmem_complex_op
Definition elecond.h:17
EleCond(UnitCell *p_ucell_in, K_Vectors *p_kv_in, elecstate::ElecState *p_elec_in, ModulePW::PW_Basis_K *p_wfcpw_in, psi::Psi< std::complex< FPTYPE >, Device > *p_psi_in, pseudopot_cell_vnl *p_ppcell_in)
Definition elecond.cpp:35
UnitCell * p_ucell
pointer to the unit cell
Definition elecond.h:55
pseudopot_cell_vnl * p_ppcell
pointer to the pseudopotential
Definition elecond.h:54
~EleCond()
Definition elecond.h:29
void jjresponse_ks(const int ik, const int nt, const double dt, const double decut, ModuleBase::matrix &wg, hamilt::Velocity< FPTYPE, Device > &velop, double *ct11, double *ct12, double *ct22)
calculate the response function Cmn(t) for currents
Definition elecond.cpp:134
Class for k-points management.
Definition klist.h:20
Definition matrix.h:15
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:56
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition elecstate.h:20
Definition op_pw_vel.h:17
Definition vnl_pw.h:23
Definition psi.h:37
Definition memory_op.h:115
Definition memory_op.h:17