ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dftu_nao_fs_r.cpp File Reference

DFT+U force and stress unified entry in real space (r-space) - implementation. More...

Include dependency graph for dftu_nao_fs_r.cpp:

Namespaces

namespace  DFTU_LCAO

Functions

void DFTU_LCAO::cal_fs_nao_r_impl (const UnitCell *ucell, Plus_U_Base *dftu, const TwoCenterIntegrator *intor, int nspin, const std::vector< AdjacentAtomInfo > &adjs_all, const std::vector< const hamilt::HContainer< double > * > &dmR, bool cal_force, bool cal_stress, ModuleBase::matrix &force, ModuleBase::matrix &stress)
 Non-template core of DFT+U force/stress in real space.
void DFTU_LCAO::cal_fs_nao_r (const UnitCell *ucell, Plus_U_Base *dftu, const TwoCenterIntegrator *intor, int nspin, const std::vector< AdjacentAtomInfo > &adjs_all, const std::vector< const hamilt::HContainer< double > * > &dmR, bool cal_force, bool cal_stress, ModuleBase::matrix &force, ModuleBase::matrix &stress)
 Calculate DFT+U force and stress in real space from explicit environment arguments (non-template overload).

Detailed Description

DFT+U force and stress unified entry in real space (r-space) - implementation.

See dftu_nao_fs_r.h for the mathematical formula and detailed documentation.