35 double of_extwt_kappa,
58 double extwt_kernel(
double eta,
double tf_weight,
double vw_weight);
70 = 3.0 / 10.0 * std::pow(3 * std::pow(M_PI, 2.0), 2.0 / 3.0)
77 double kappa_ = 1.0 / (2.0 * std::pow(4./3., 1./3.) - 1.0);
A class which calculates the kinetic energy, potential, and stress with extended Wang-Teter (ext-WT) ...
Definition kedf_extwt.h:17
double * kernel_
Definition kedf_extwt.h:73
void extwt_potential(const double *const *prho, ModulePW::PW_Basis *pw_rho, ModuleBase::matrix &rpotential)
Get the potential of ext-WT KEDF, and add it into rpotential, and the ext-WT energy will be calculate...
Definition kedf_extwt.cpp:266
KEDF_ExtWT()
Definition kedf_extwt.h:19
double sum_rho_kappa_
Definition kedf_extwt.h:75
double extwt_energy
Definition kedf_extwt.h:52
double kf_
Definition kedf_extwt.h:64
double alpha_
Definition kedf_extwt.h:66
double * dkernel_deta_
Definition kedf_extwt.h:74
double sum_rho_kappa_plus_one_
Definition kedf_extwt.h:76
double rho0_
Definition kedf_extwt.h:55
double diff_linhard(double eta, double vw_weight)
The derivative of the WT kernel.
Definition kedf_extwt.cpp:461
void get_stress(const double *const *prho, ModulePW::PW_Basis *pw_rho, double vw_weight)
Get the stress of ext-WT KEDF, and store it into this->stress.
Definition kedf_extwt.cpp:394
const double c_tf_
Definition kedf_extwt.h:70
~KEDF_ExtWT()
Definition kedf_extwt.h:23
void update_dkernel_deta(const double &vw_weight, ModulePW::PW_Basis *pw_rho)
Fill the dkernel_deta (this->dkernel_deta_)
Definition kedf_extwt.cpp:134
double kappa_
Definition kedf_extwt.h:77
double get_energy(const double *const *prho, ModulePW::PW_Basis *pw_rho)
Get the energy of ext-WT KEDF.
Definition kedf_extwt.cpp:156
double tkf_
Definition kedf_extwt.h:65
double beta_
Definition kedf_extwt.h:67
ModuleBase::matrix stress
Definition kedf_extwt.h:53
double wt_coef_
Definition kedf_extwt.h:72
double extwt_kernel(double eta, double tf_weight, double vw_weight)
Calculate the WT kernel according to Lindhard response function.
Definition kedf_extwt.cpp:407
void tau_extwt(const double *const *prho, ModulePW::PW_Basis *pw_rho, double *rtau_extwt)
Get the kinetic energy of ext-WT KEDF, and add it onto rtau_extwt.
Definition kedf_extwt.cpp:230
void fill_kernel(double tf_weight, double vw_weight, ModulePW::PW_Basis *pw_rho)
Fill the kernel (this->kernel_)
Definition kedf_extwt.cpp:525
void multi_kernel(const double *const *prho, const double *kernel, double **rkernel_rho, double exponent, ModulePW::PW_Basis *pw_rho)
Calculate \int{W(r-r')rho^{exponent}(r') dr'}.
Definition kedf_extwt.cpp:492
void cal_kernel(double tf_weight, double vw_weight, double rho0, ModulePW::PW_Basis *pw_rho)
Definition kedf_extwt.cpp:100
void update_rho0(const double *const *prho, ModulePW::PW_Basis *pw_rho)
Definition kedf_extwt.cpp:71
double get_energy_density(const double *const *prho, int is, int ir, ModulePW::PW_Basis *pw_rho)
Get the energy density of ext-WT KEDF.
Definition kedf_extwt.cpp:205
void set_para(double dV, double alpha, double beta, double nelec, double tf_weight, double vw_weight, double of_extwt_kappa, ModulePW::PW_Basis *pw_rho)
Set the parameters of ext-WT KEDF, and initialize kernel.
Definition kedf_extwt.cpp:27
double dV_
Definition kedf_extwt.h:63
void create(const int nrow, const int ncol, const bool flag_zero=true)
Definition matrix.cpp:125
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:56