#include <occupy.h>
|
| static void | decision (const std::string &name, const std::string &smearing_method, const double &smearing_sigma) |
| static const bool & | gauss (void) |
| static const bool & | fix (void) |
| static void | iweights (const int nks, const std::vector< double > &wk, const int nband, const int band_offset, const double &nelec, const ModuleBase::matrix &ekb, double &ef, ModuleBase::matrix &wg, const int &is, const std::vector< int > &isk, const int nspin) |
| | calculates weights and fermi energy for semiconductors and insulators
|
| static void | gweights (const int nks, const std::vector< double > &wk, const int nband, const double &nelec, const double &smearing_sigma, const int ngauss, const ModuleBase::matrix &ekb, double &ef, double &demet, ModuleBase::matrix &wg, const int &is, const std::vector< int > &isk) |
| | calculates weights with the gaussian spreading technique
|
| static void | tweights (const int nks, const int nspin, const int nband, const double &nelec, const int ntetra, const ModuleBase::matrix &tetra, double **ekb, double &ef, ModuleBase::matrix &wg) |
| static double | wsweight (const ModuleBase::Vector3< double > &r, ModuleBase::Vector3< double > *rws, const int nrws) |
|
| static void | efermit (double **ekb, const int nband, const int nks, const double &nelec, const int nspin, const int ntetra, const ModuleBase::matrix &tetra, double &ef) |
| static double | sumkt (double **ekb, const int nband, const int nks, const int nspin, const int ntetra, const ModuleBase::matrix &tetra, const double &eup) |
| static void | piksort (const int n, double *a) |
◆ Occupy()
◆ ~Occupy()
◆ decision()
| void Occupy::decision |
( |
const std::string & | name, |
|
|
const std::string & | smearing_method, |
|
|
const double & | smearing_sigma ) |
|
static |
◆ efermit()
| void Occupy::efermit |
( |
double ** | ekb, |
|
|
const int | nband, |
|
|
const int | nks, |
|
|
const double & | nelec, |
|
|
const int | nspin, |
|
|
const int | ntetra, |
|
|
const ModuleBase::matrix & | tetra, |
|
|
double & | ef ) |
|
staticprivate |
◆ fix()
| const bool & Occupy::fix |
( |
void | | ) |
|
|
inlinestatic |
◆ gauss()
| const bool & Occupy::gauss |
( |
void | | ) |
|
|
inlinestatic |
◆ gweights()
| void Occupy::gweights |
( |
const int | nks, |
|
|
const std::vector< double > & | wk, |
|
|
const int | nband, |
|
|
const double & | nelec, |
|
|
const double & | smearing_sigma, |
|
|
const int | ngauss, |
|
|
const ModuleBase::matrix & | ekb, |
|
|
double & | ef, |
|
|
double & | demet, |
|
|
ModuleBase::matrix & | wg, |
|
|
const int & | is, |
|
|
const std::vector< int > & | isk ) |
|
static |
calculates weights with the gaussian spreading technique
- Parameters
-
| nks | number of k points. |
| wk | weight of each k point(symmetry considered). |
| nband | number of bands. |
| nelec | number of electrons. |
| smearing_sigma | parameter input by user. |
| ngauss | which type of smearing. |
| ekb | band energy. |
| ef | output: rounded absolute Fermi level |
| demet | output: energy correction for metal |
| wg | output: weight of each band at each k point |
| is | spin |
| isk | array to point out each k belong to which spin |
◆ iweights()
| void Occupy::iweights |
( |
const int | nks, |
|
|
const std::vector< double > & | wk, |
|
|
const int | nbands, |
|
|
const int | band_offset, |
|
|
const double & | nelec, |
|
|
const ModuleBase::matrix & | ekb, |
|
|
double & | ef, |
|
|
ModuleBase::matrix & | wg, |
|
|
const int & | is, |
|
|
const std::vector< int > & | isk, |
|
|
const int | nspin ) |
|
static |
calculates weights and fermi energy for semiconductors and insulators
- Parameters
-
| nspin | number of spin channels; 2 selects a single spin through isk when is != -1, and 4 halves the spin degeneracy |
- Note
- It is only applicable to semiconductors and insulators that have an energy gap. Here, bands are either empty or filled, and there is no electronic transfer among different k-points.
- Parameters
-
| nks | number of k points. |
| wk | weight of each k point (consider symmetry). |
| nbands | number of locally owned bands. |
| band_offset | global index of the first locally owned band. |
| nelec | number of electrons for this spin direction. |
| ekb | the array save the band energy. |
| ef | output: the highest occupied Kohn-Sham level. |
| wg | output: weight for each k, each band. |
| is | the spin index now. |
| isk | distinguish k point belong to which spin. |
| nspin | number of spin channels; 2 selects a single spin through isk when is != -1, and 4 halves the spin degeneracy. |
◆ piksort()
| void Occupy::piksort |
( |
const int | n, |
|
|
double * | a ) |
|
staticprivate |
◆ sumkt()
| double Occupy::sumkt |
( |
double ** | ekb, |
|
|
const int | nband, |
|
|
const int | nks, |
|
|
const int | nspin, |
|
|
const int | ntetra, |
|
|
const ModuleBase::matrix & | tetra, |
|
|
const double & | eup ) |
|
staticprivate |
◆ tweights()
| void Occupy::tweights |
( |
const int | nks, |
|
|
const int | nspin, |
|
|
const int | nband, |
|
|
const double & | nelec, |
|
|
const int | ntetra, |
|
|
const ModuleBase::matrix & | tetra, |
|
|
double ** | ekb, |
|
|
double & | ef, |
|
|
ModuleBase::matrix & | wg ) |
|
static |
◆ wsweight()
◆ fixed_occupations
| bool Occupy::fixed_occupations = false |
|
static |
◆ gaussian_parameter
| double Occupy::gaussian_parameter = 0.01 |
|
static |
◆ gaussian_type
| int Occupy::gaussian_type = 0 |
|
static |
◆ use_gaussian_broadening
| bool Occupy::use_gaussian_broadening = false |
|
static |
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/occupy.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/occupy.cpp
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_stodft/unittests/test_sto_func.cpp