ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dftu_nao_energy.cpp File Reference
Include dependency graph for dftu_nao_energy.cpp:

Namespaces

namespace  DFTU_LCAO

Functions

double DFTU_LCAO::calc_energy_u_collinear (const Plus_U_Base &dftu, int T, int iat, int l)
 Accumulate the DFT+U energy term (0.5 * U * (n - n^2)) for one (T, iat, l) channel in the collinear case (nspin=1 or 2). Returns the per-atom contribution to energy_u.
double DFTU_LCAO::calc_energy_u_noncollinear (const Plus_U_Base &dftu, int T, int iat, int l)
 Accumulate the DFT+U energy term for one (T, iat, l) channel in the noncollinear case (nspin=4). Returns the per-atom contribution to energy_u.
double DFTU_LCAO::calc_energy_dc_block (const Plus_U_Base &dftu, int T, int iat, int l, int nspin)
 Accumulate the double-counting correction energy_dc for one (T, iat, l) channel by summing onsite_pot * occ over the (m1, ipol1, m2, ipol2) grid. Dispatches on nspin to choose the spin loop count. Returns the per-atom contribution to energy_dc.
void DFTU_LCAO::cal_energy_correction (Plus_U_Base &dftu, const UnitCell &ucell, int nspin)
 DFT+U energy correction with the double-counting term subtracted.