|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "projgen.h"#include <algorithm>#include <cassert>#include <cmath>#include <cstdio>#include <numeric>#include "source_base/math_integral.h"#include "source_base/math_sphbes.h"Functions | |
| void | projgen (const int l, const int nr, const double *r, const double *chi, const double rcut, const int nbes, std::vector< double > &alpha) |
| Generates a projector's radial function for DFT+U. | |
| void projgen | ( | const int | l, |
| const int | nr, | ||
| const double * | r, | ||
| const double * | chi, | ||
| const double | rcut, | ||
| const int | nbes, | ||
| std::vector< double > & | alpha ) |
Generates a projector's radial function for DFT+U.
Starting with a numerical radial function chi on grid r with angular momentum l, given a smaller cutoff radius rcut and the number of spherical Bessel components (j_l), this function generates a new radial function alpha of the same l on the truncated grid which satisfies the following conditions:
| [in] | l | angular momentum |
| [in] | nr | number of grid points |
| [in] | r | radial grid |
| [in] | chi | radial function |
| [in] | rcut | cutoff radius of the projector |
| [in] | nbes | number of spherical Bessel components |
| [out] | alpha | new radial function of the projector |