RadialProjector holds the interpolation table of the Spherical Bessel Transform of a set of radial functions and evaluates the analytical Fourier transform on arbitrary q vectors.
More...
#include <radial_proj.h>
|
| | RadialProjector ()=default |
| | ~RadialProjector ()=default |
| void | build_sbt_tab (const int nr, const double *r, const std::vector< double * > &radials, const std::vector< int > &l, const int nq, const double dq) |
| | make a interpolation table for the Spherical Bessel Transform of f(r)
|
| void | build_sbt_tab (const std::vector< double > &r, const std::vector< std::vector< double > > &radials, const std::vector< int > &l, const int nq, const double dq) |
| void | sbtft (const std::vector< ModuleBase::Vector3< double > > &qs, std::vector< std::complex< double > > &out, const char type='r', const double omega=1.0, const double tpiba=1.0) |
| | perform analytical version of the Fourier transform: F(q) = int(f(r)*exp(-iq.r) d^3r) = 4*pi/sqrt(omega) * (-i)^l * Jl[f](q) * Ylm(q) , where Ylm(q) is real spherical harmonic function, and Jl[f](q) is the Spherial Bessel Transform of f(r): Jl[f](q) = int(f(r)*j_l(q*r)*r^2 dr) , where j_l(q*r) is the spherical Bessel function of the first kind. . If use another notation, F(q) = <q|f>, this is denoted as type "r" for ket |>, and "l" for bra <|.
|
RadialProjector holds the interpolation table of the Spherical Bessel Transform of a set of radial functions and evaluates the analytical Fourier transform on arbitrary q vectors.
Usage:
reciprocal space integration
const int nq = 1000;
const double dq = 0.01;
rp.
sbtft(qs, out,
'r', omega, tpiba);
void build_sbt_tab(const int nr, const double *r, const std::vector< double * > &radials, const std::vector< int > &l, const int nq, const double dq)
make a interpolation table for the Spherical Bessel Transform of f(r)
Definition radial_proj.cpp:145
void sbtft(const std::vector< ModuleBase::Vector3< double > > &qs, std::vector< std::complex< double > > &out, const char type='r', const double omega=1.0, const double tpiba=1.0)
perform analytical version of the Fourier transform: F(q) = int(f(r)*exp(-iq.r) d^3r) = 4*pi/sqrt(ome...
Definition radial_proj.cpp:207
RadialProjector()=default
◆ RadialProjector()
| RadialProjection::RadialProjector::RadialProjector |
( |
| ) |
|
|
default |
◆ ~RadialProjector()
| RadialProjection::RadialProjector::~RadialProjector |
( |
| ) |
|
|
default |
◆ build_sbt_tab() [1/2]
| void RadialProjection::RadialProjector::build_sbt_tab |
( |
const int | nr, |
|
|
const double * | r, |
|
|
const std::vector< double * > & | radials, |
|
|
const std::vector< int > & | l, |
|
|
const int | nq, |
|
|
const double | dq ) |
make a interpolation table for the Spherical Bessel Transform of f(r)
- Parameters
-
| nr | number of grid points, shared by all radial functions |
| r | radial grids, shared by all radial functions |
| radials | radial functions, each element is a radial function |
| l | angular momentum quantum number for each radial function |
| nq | number of q-points |
| dq | space between q-points |
◆ build_sbt_tab() [2/2]
| void RadialProjection::RadialProjector::build_sbt_tab |
( |
const std::vector< double > & | r, |
|
|
const std::vector< std::vector< double > > & | radials, |
|
|
const std::vector< int > & | l, |
|
|
const int | nq, |
|
|
const double | dq ) |
◆ sbtft()
| void RadialProjection::RadialProjector::sbtft |
( |
const std::vector< ModuleBase::Vector3< double > > & | qs, |
|
|
std::vector< std::complex< double > > & | out, |
|
|
const char | type = 'r', |
|
|
const double | omega = 1.0, |
|
|
const double | tpiba = 1.0 ) |
perform analytical version of the Fourier transform: F(q) = int(f(r)*exp(-iq.r) d^3r) = 4*pi/sqrt(omega) * (-i)^l * Jl[f](q) * Ylm(q) , where Ylm(q) is real spherical harmonic function, and Jl[f](q) is the Spherial Bessel Transform of f(r): Jl[f](q) = int(f(r)*j_l(q*r)*r^2 dr) , where j_l(q*r) is the spherical Bessel function of the first kind. . If use another notation, F(q) = <q|f>, this is denoted as type "r" for ket |>, and "l" for bra <|.
◆ cubspl_
◆ l_
| std::vector<int> RadialProjection::RadialProjector::l_ |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_proj/radial_proj.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_proj/radial_proj.cpp