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

Yukawa-screened DFT+U: self-consistent U/J from Slater integrals. More...

#include <yukawa_screening.h>

Collaboration diagram for YukawaScreening:

Public Member Functions

 YukawaScreening ()=default
 ~YukawaScreening ()=default
void init (const UnitCell &cell, const std::vector< int > &l_channel, double yukawa_lambda_cfg)
void cal_lambda (double **rho, int nrxx, int nspin)
void cal_slater_Fk (const UnitCell &ucell, int L, int T, const LCAO_Orbitals *orb)
 compute Slater integrals Fk for the correlated orbital of atom type T.
void cal_slater_UJ (const UnitCell &ucell, double **rho, int nrxx, int nspin, const LCAO_Orbitals *orb)
double get_lambda () const
double get_U (int it, int l) const
 U/J of the correlated orbital (first radial channel) of atom type it.
double get_J (int it, int l) const
double get_Ueff (int it) const
 effective U-J of the correlated orbital for atom type it

Static Private Member Functions

static double spherical_Bessel (int k, double r, double lambda)
 spherical modified Bessel function of the first kind, orders 0/2/4/6
static double spherical_Hankel (int k, double r, double lambda)
 spherical modified Hankel function of the second kind, orders 0/2/4/6

Private Attributes

double lambda_ = 0.0
double yukawa_lambda_cfg_ = 0.0
std::vector< int > l_channel_
std::vector< std::vector< std::vector< std::vector< double > > > > Fk_
std::vector< std::vector< double > > U_Yukawa_
std::vector< std::vector< double > > J_Yukawa_

Detailed Description

Yukawa-screened DFT+U: self-consistent U/J from Slater integrals.

Encapsulates the Yukawa screening length (lambda), the Slater integrals Fk, and the derived U_Yukawa / J_Yukawa values. All Yukawa-related state that used to live on Plus_U_Base / Plus_U is owned here, so the DFT+U classes only hold an instance of this class when Yukawa screening is enabled.

Currently only the LCAO path drives the calculation (it needs the radial orbitals from LCAO_Orbitals), but the class itself has no LCAO-only data.

Constructor & Destructor Documentation

◆ YukawaScreening()

YukawaScreening::YukawaScreening ( )
default

◆ ~YukawaScreening()

YukawaScreening::~YukawaScreening ( )
default

Member Function Documentation

◆ cal_lambda()

void YukawaScreening::cal_lambda ( double ** rho,
int nrxx,
int nspin )

determine lambda: use the fixed config value when positive, otherwise estimate from the charge density (Thomas-Fermi-like) and rescale by 1.6.

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

◆ cal_slater_Fk()

void YukawaScreening::cal_slater_Fk ( const UnitCell & ucell,
int L,
int T,
const LCAO_Orbitals * orb )

compute Slater integrals Fk for the correlated orbital of atom type T.

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

◆ cal_slater_UJ()

void YukawaScreening::cal_slater_UJ ( const UnitCell & ucell,
double ** rho,
int nrxx,
int nspin,
const LCAO_Orbitals * orb )

drive cal_lambda + cal_slater_Fk over all correlated orbitals and derive U_Yukawa / J_Yukawa. Returns via get_U/get_J; u_current of the owning DFT+U object is updated by the caller.

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

◆ get_J()

double YukawaScreening::get_J ( int it,
int l ) const
inline

◆ get_lambda()

double YukawaScreening::get_lambda ( ) const
inline

◆ get_U()

double YukawaScreening::get_U ( int it,
int l ) const
inline

U/J of the correlated orbital (first radial channel) of atom type it.

◆ get_Ueff()

double YukawaScreening::get_Ueff ( int it) const
inline

effective U-J of the correlated orbital for atom type it

Here is the caller graph for this function:

◆ init()

void YukawaScreening::init ( const UnitCell & cell,
const std::vector< int > & l_channel,
double yukawa_lambda_cfg )

allocate Fk / U_Yukawa / J_Yukawa according to the cell and record the user-provided screening length (yukawa_lambda_cfg > 0 means fixed).

◆ spherical_Bessel()

double YukawaScreening::spherical_Bessel ( int k,
double r,
double lambda )
staticprivate

spherical modified Bessel function of the first kind, orders 0/2/4/6

Here is the caller graph for this function:

◆ spherical_Hankel()

double YukawaScreening::spherical_Hankel ( int k,
double r,
double lambda )
staticprivate

spherical modified Hankel function of the second kind, orders 0/2/4/6

Here is the caller graph for this function:

Member Data Documentation

◆ Fk_

std::vector<std::vector<std::vector<std::vector<double> > > > YukawaScreening::Fk_
private

◆ J_Yukawa_

std::vector<std::vector<double> > YukawaScreening::J_Yukawa_
private

◆ l_channel_

std::vector<int> YukawaScreening::l_channel_
private

◆ lambda_

double YukawaScreening::lambda_ = 0.0
private

◆ U_Yukawa_

std::vector<std::vector<double> > YukawaScreening::U_Yukawa_
private

◆ yukawa_lambda_cfg_

double YukawaScreening::yukawa_lambda_cfg_ = 0.0
private

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