1#ifndef MODULE_PW_MOMENTUM_H
2#define MODULE_PW_MOMENTUM_H
15 return 2.0 * (p.
x * A_ha.
x + p.
y * A_ha.
y + p.
z * A_ha.
z) + A_ha.
norm2();
3 elements vector
Definition vector3.h:21
T norm2(void) const
Get the square of norm of a Vector3.
Definition vector3.h:203
T x
Definition vector3.h:23
T y
Definition vector3.h:24
T z
Definition vector3.h:25
Special pw_basis class. It includes different k-points.
Definition pw_basis_k.h:56
double & getgk2(const int ik, const int igl) const
Definition pw_basis_k.cpp:380
ModuleBase::Vector3< double > getgpluskcar(const int ik, const int igl) const
Definition pw_basis_k.cpp:399
double tpiba
2pi/lat0
Definition pw_basis.h:179
double tpiba2
4pi^2/lat0^2
Definition pw_basis.h:180
double shifted_kinetic(const PW_Basis_K &basis, const int ik, const int ig, const ModuleBase::Vector3< double > &A_ha)
Return the shifted kinetic energy in Ry, retaining the cached unshifted squared momentum.
Definition pw_momentum.h:19
double kinetic_shift(const PW_Basis_K &basis, const int ik, const int ig, const ModuleBase::Vector3< double > &A_ha)
Return the kinetic correction 2*p*A + A^2 in Ry for a Hartree vector potential.
Definition pw_momentum.h:11