|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Smearing weight functions and the Fermi-level bisection built on them. More...
Functions | |
| double | wgauss (const double &x, const int n) |
| smeared occupation of a state, as a function of (ef - e) / sigma | |
| double | w1gauss (const double &x, const int n) |
| first moment of the smearing function, used for the -TS term | |
| double | sumkg (const ModuleBase::matrix &ekb, const int nband, const int nks, const std::vector< double > &wk, const double &smearing_sigma, const int ngauss, const double &e, const int &is, const std::vector< int > &isk) |
| number of electrons below a trial Fermi level e | |
| void | efermig (const ModuleBase::matrix &ekb, const int nbnd, const int nks, const double &nelec, const std::vector< double > &wk, const double &smearing_sigma, const int ngauss, double &ef, const int &is, const std::vector< int > &isk) |
| Find the Fermi level using a compensated, energy-centered electron count. | |
Smearing weight functions and the Fermi-level bisection built on them.
Each of these depends only on its arguments – none of them reads any of Occupy's state – so they are free functions rather than private static members of that class.
| void occupy_smearing::efermig | ( | const ModuleBase::matrix & | ekb, |
| const int | nbnd, | ||
| const int | nks, | ||
| const double & | nelec, | ||
| const std::vector< double > & | wk, | ||
| const double & | smearing_sigma, | ||
| const int | ngauss, | ||
| double & | ef, | ||
| const int & | is, | ||
| const std::vector< int > & | isk ) |
Find the Fermi level using a compensated, energy-centered electron count.
| double occupy_smearing::sumkg | ( | const ModuleBase::matrix & | ekb, |
| const int | nband, | ||
| const int | nks, | ||
| const std::vector< double > & | wk, | ||
| const double & | smearing_sigma, | ||
| const int | ngauss, | ||
| const double & | e, | ||
| const int & | is, | ||
| const std::vector< int > & | isk ) |
number of electrons below a trial Fermi level e
| double occupy_smearing::w1gauss | ( | const double & | x, |
| const int | n ) |
first moment of the smearing function, used for the -TS term
| n | smearing type, as in wgauss() |
| double occupy_smearing::wgauss | ( | const double & | x, |
| const int | n ) |
smeared occupation of a state, as a function of (ef - e) / sigma
| n | smearing type: -99 Fermi-Dirac, -1 cold, 0 Gaussian, n > 0 n-th order Methfessel-Paxton |