28 void set_para(
int nx,
double dV,
double tf_weight);
32 void tau_tf(
const double*
const* prho,
double* rtau_tf);
44 = 3.0 / 10.0 * std::pow(3 * std::pow(M_PI, 2.0), 2.0 / 3.0)
A class which calculates the kinetic energy, potential, and stress with Thomas-Fermi (TF) KEDF....
Definition kedf_tf.h:18
void set_para(int nx, double dV, double tf_weight)
Definition kedf_tf.cpp:8
double get_energy(const double *const *prho)
Get the energy of TF KEDF,.
Definition kedf_tf.cpp:22
void tf_potential(const double *const *prho, ModuleBase::matrix &rpotential)
Get the potential of TF KEDF, and add it into rpotential, and the TF energy will be calculated and st...
Definition kedf_tf.cpp:101
~KEDF_TF()
Definition kedf_tf.h:24
double tf_weight_
Definition kedf_tf.h:42
double dV_
Definition kedf_tf.h:41
int nx_
Definition kedf_tf.h:40
KEDF_TF()
Definition kedf_tf.h:20
ModuleBase::matrix stress
Definition kedf_tf.h:37
double get_energy_density(const double *const *prho, int is, int ir)
Get the energy density of TF KEDF.
Definition kedf_tf.cpp:58
const double c_tf_
Definition kedf_tf.h:44
void tau_tf(const double *const *prho, double *rtau_tf)
Get the kinetic energy of TF KEDF, and add it onto rtau_tf.
Definition kedf_tf.cpp:72
void get_stress(double cell_vol)
Get the stress of TF KEDF, and store it into this->stress.
Definition kedf_tf.cpp:132
double tf_energy
Definition kedf_tf.h:36
void create(const int nrow, const int ncol, const bool flag_zero=true)
Definition matrix.cpp:122