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

#include <kedf_manager.h>

Collaboration diagram for KEDF_Manager:

Public Member Functions

 KEDF_Manager ()
 ~KEDF_Manager ()
void init (const Input_para &inp, ModulePW::PW_Basis *pw_rho, const double dV, const double nelec)
 [Interface to KEDF] Initialize the KEDFs.
void get_potential (const double *const *prho, const double *const *pphi, ModulePW::PW_Basis *pw_rho, ModuleBase::matrix &rpot)
 [Interface to kedf] Calculated the kinetic potential and plus it to rpot,
double get_energy () const
 [Interface to kedf] Return the kinetic energy
void get_energy_density (const double *const *prho, const double *const *pphi, ModulePW::PW_Basis *pw_rho, double **rtau)
 [Interface to kedf] Calculated the kinetic energy density, ONLY SPIN=1 SUPPORTED
void get_stress (const double omega, const double *const *prho, const double *const *pphi, ModulePW::PW_Basis *pw_rho, ModuleBase::matrix &kinetic_stress_)
 [Interface to kedf] Calculate the stress of kedf
void record_energy (std::vector< std::string > &titles, std::vector< double > &energies_Ry)
void generate_ml_target (const double *const *prho, ModulePW::PW_Basis *pw_rho, const double *veff)

Private Member Functions

void init_tf (const Input_para &inp, ModulePW::PW_Basis *pw_rho, double dV)
void init_vw (const Input_para &inp, double dV)
void init_wt (const Input_para &inp, ModulePW::PW_Basis *pw_rho, double dV, double nelec)
void init_extwt (const Input_para &inp, ModulePW::PW_Basis *pw_rho, double dV, double nelec)
void init_xwm (const Input_para &inp, ModulePW::PW_Basis *pw_rho, double dV, double nelec)
void init_lkt (const Input_para &inp, double dV)
void init_ml (const Input_para &inp, ModulePW::PW_Basis *pw_rho, double dV, double nelec)

Private Attributes

KEDF_LKT * lkt_ = nullptr
KEDF_TF * tf_ = nullptr
KEDF_vW * vw_ = nullptr
KEDF_WT * wt_ = nullptr
KEDF_ExtWT * extwt_ = nullptr
KEDF_XWM * xwm_ = nullptr
KEDF_ML * ml_ = nullptr
std::string of_kinetic_ = "wt"

Constructor & Destructor Documentation

◆ KEDF_Manager()

KEDF_Manager::KEDF_Manager ( )
inline

◆ ~KEDF_Manager()

KEDF_Manager::~KEDF_Manager ( )
inline

Member Function Documentation

◆ generate_ml_target()

void KEDF_Manager::generate_ml_target ( const double *const * prho,
ModulePW::PW_Basis * pw_rho,
const double * veff )

◆ get_energy()

double KEDF_Manager::get_energy ( ) const

[Interface to kedf] Return the kinetic energy

Returns
kinetic energy
Here is the call graph for this function:

◆ get_energy_density()

void KEDF_Manager::get_energy_density ( const double *const * prho,
const double *const * pphi,
ModulePW::PW_Basis * pw_rho,
double ** rtau )

[Interface to kedf] Calculated the kinetic energy density, ONLY SPIN=1 SUPPORTED

Parameters
[in]prhocharge density
[in]pphiphi = sqrt(rho)
[in]pw_rhopw basis for charge density
[out]rtaukinetic energy density
Here is the call graph for this function:

◆ get_potential()

void KEDF_Manager::get_potential ( const double *const * prho,
const double *const * pphi,
ModulePW::PW_Basis * pw_rho,
ModuleBase::matrix & rpot )

[Interface to kedf] Calculated the kinetic potential and plus it to rpot,

Parameters
[in]prhocharge density
[in]pphiphi^2 = rho
[in]pw_rhopw basis for charge density
[out]rpotrpot => (rpot + kietic potential) * 2 * pphi
Here is the call graph for this function:

◆ get_stress()

void KEDF_Manager::get_stress ( const double omega,
const double *const * prho,
const double *const * pphi,
ModulePW::PW_Basis * pw_rho,
ModuleBase::matrix & kinetic_stress_ )

[Interface to kedf] Calculate the stress of kedf

Parameters
[in]omegaVolume of the unit cell
[in]prhocharge density
[in]pphiphi^2 = rho
[in]pw_rhopw basis for charge density
[out]kinetic_stress_
Here is the call graph for this function:

◆ init()

void KEDF_Manager::init ( const Input_para & inp,
ModulePW::PW_Basis * pw_rho,
const double dV,
const double nelec )

[Interface to KEDF] Initialize the KEDFs.

Parameters
inp
pw_rhopw basis for charge density
dVvolume of one grid point in real space
nelecnumber of electrons in the unit cell
Here is the call graph for this function:

◆ init_extwt()

void KEDF_Manager::init_extwt ( const Input_para & inp,
ModulePW::PW_Basis * pw_rho,
double dV,
double nelec )
private

Extended Wang-Teter KEDF

Here is the caller graph for this function:

◆ init_lkt()

void KEDF_Manager::init_lkt ( const Input_para & inp,
double dV )
private

LKT KEDF

Here is the caller graph for this function:

◆ init_ml()

void KEDF_Manager::init_ml ( const Input_para & inp,
ModulePW::PW_Basis * pw_rho,
double dV,
double nelec )
private
Here is the caller graph for this function:

◆ init_tf()

void KEDF_Manager::init_tf ( const Input_para & inp,
ModulePW::PW_Basis * pw_rho,
double dV )
private

Thomas-Fermi (TF) KEDF, TF+ KEDF, Wang-Teter (WT) KEDF, and XWM KEDF

Here is the caller graph for this function:

◆ init_vw()

void KEDF_Manager::init_vw ( const Input_para & inp,
double dV )
private

vW, TF+, WT, XWM, and LKT KEDFs

Here is the caller graph for this function:

◆ init_wt()

void KEDF_Manager::init_wt ( const Input_para & inp,
ModulePW::PW_Basis * pw_rho,
double dV,
double nelec )
private

Wang-Teter KEDF

Here is the caller graph for this function:

◆ init_xwm()

void KEDF_Manager::init_xwm ( const Input_para & inp,
ModulePW::PW_Basis * pw_rho,
double dV,
double nelec )
private

Xu-Wang-Ma KEDF

Here is the caller graph for this function:

◆ record_energy()

void KEDF_Manager::record_energy ( std::vector< std::string > & titles,
std::vector< double > & energies_Ry )
Here is the caller graph for this function:

Member Data Documentation

◆ extwt_

KEDF_ExtWT* KEDF_Manager::extwt_ = nullptr
private

◆ lkt_

KEDF_LKT* KEDF_Manager::lkt_ = nullptr
private

◆ ml_

KEDF_ML* KEDF_Manager::ml_ = nullptr
private

◆ of_kinetic_

std::string KEDF_Manager::of_kinetic_ = "wt"
private

◆ tf_

KEDF_TF* KEDF_Manager::tf_ = nullptr
private

◆ vw_

KEDF_vW* KEDF_Manager::vw_ = nullptr
private

◆ wt_

KEDF_WT* KEDF_Manager::wt_ = nullptr
private

◆ xwm_

KEDF_XWM* KEDF_Manager::xwm_ = nullptr
private

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