28 void set_para(
double dV,
double lkt_a);
42 void get_as(
const double* prho,
const double*
const* pnabla_rho,
const int nrxx,
double* as);
46 = 3.0 / 10.0 * std::pow(3 * std::pow(M_PI, 2.0), 2.0 / 3.0)
49 = 1.0 / (2. * std::pow(3 * std::pow(M_PI, 2.0), 1.0 / 3.0));
A class which calculates the kinetic energy, potential, and stress with Luo-Karasiev-Trickey (LKT) KE...
Definition kedf_lkt.h:18
ModuleBase::matrix stress
Definition kedf_lkt.h:37
~KEDF_LKT()
Definition kedf_lkt.h:24
double get_energy(const double *const *prho, ModulePW::PW_Basis *pw_rho)
Get the energy of LKT KEDF.
Definition kedf_lkt.cpp:22
double lkt_energy
Definition kedf_lkt.h:36
void lkt_potential(const double *const *prho, ModulePW::PW_Basis *pw_rho, ModuleBase::matrix &rpotential)
Get the potential of LKT KEDF, and add it into rpotential, and the LKT energy will be calculated and ...
Definition kedf_lkt.cpp:133
void tau_lkt(const double *const *prho, ModulePW::PW_Basis *pw_rho, double *rtau_lkt)
Definition kedf_lkt.cpp:91
void get_stress(const double *const *prho, ModulePW::PW_Basis *pw_rho)
Get the stress of LKT KEDF, and store it into this->stress.
Definition kedf_lkt.cpp:205
void nabla(const double *pinput, ModulePW::PW_Basis *pw_rho, double **routput)
Caculate routput = nabla(pinput)
Definition kedf_lkt.cpp:279
void divergence(const double *const *pinput, ModulePW::PW_Basis *pw_rho, double *routput)
Caculate routput = nabla dot pinput.
Definition kedf_lkt.cpp:306
const double c_tf_
Definition kedf_lkt.h:46
void set_para(double dV, double lkt_a)
Definition kedf_lkt.cpp:8
double dV_
Definition kedf_lkt.h:44
double lkt_a_
Definition kedf_lkt.h:50
KEDF_LKT()
Definition kedf_lkt.h:20
const double s_coef_
Definition kedf_lkt.h:49
void get_as(const double *prho, const double *const *pnabla_rho, const int nrxx, double *as)
Caculate as = lkt_a * s, s = c_s * |\nabla \rho|/\rho^{4/3}.
Definition kedf_lkt.cpp:332
double get_energy_density(const double *const *prho, int is, int ir, ModulePW::PW_Basis *pw_rho)
Get the energy density of LKT KEDF.
Definition kedf_lkt.cpp:68
void create(const int nrow, const int ncol, const bool flag_zero=true)
Definition matrix.cpp:122
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:56