ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
RadialProjection::RadialProjector Class Reference

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>

Collaboration diagram for RadialProjection::RadialProjector:

Public Member Functions

 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 <|.

Private Attributes

std::unique_ptr< ModuleBase::CubicSpline > cubspl_
std::vector< int > l_

Detailed Description

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;
// given `r` is the real space grid and `radials` is the collection of radial
// functions, `l` is the angular momentum quantum number for each radial function
// then the interpolation table can be rapidly built by calling SphericalBesselTransformer
// and CubicSpline modules.
rp.build_sbt_tab(r, radials, l, nq, dq);
// then the set of q will used to calculate the Fourier transform
rp.sbtft(qs, out, 'r', omega, tpiba);
// in `out`, there will be the Fourier transform of the radial functions organized
// in the same way as the input `radials` and `qs`, as row and column respectively.
// but one should note for each radials, there are 2*l+1 components now instead of
// just one.
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

Constructor & Destructor Documentation

◆ RadialProjector()

RadialProjection::RadialProjector::RadialProjector ( )
default

◆ ~RadialProjector()

RadialProjection::RadialProjector::~RadialProjector ( )
default

Member Function Documentation

◆ 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
nrnumber of grid points, shared by all radial functions
rradial grids, shared by all radial functions
radialsradial functions, each element is a radial function
langular momentum quantum number for each radial function
nqnumber of q-points
dqspace between q-points
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 )
Here is the call graph for this function:

◆ 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 <|.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cubspl_

std::unique_ptr<ModuleBase::CubicSpline> RadialProjection::RadialProjector::cubspl_
private

◆ l_

std::vector<int> RadialProjection::RadialProjector::l_
private

The documentation for this class was generated from the following files: