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

DFT+U force calculation in real space (r-space) - implementation. More...

#include "dftu_nao_for_r.h"
#include "source_base/timer.h"
Include dependency graph for dftu_nao_for_r.cpp:

Namespaces

namespace  DFTU_LCAO

Functions

void DFTU_LCAO::cal_for_IJR_nao_r (const int &iat1, const int &iat2, const Parallel_Orbitals *pv, const std::unordered_map< int, std::vector< double > > &nlm1_all, const std::unordered_map< int, std::vector< double > > &nlm2_all, const std::vector< double > &pot_onsite_in, const hamilt::BaseMatrix< double > **dmR_pointer, const int nspin, double *force1, double *force2)
 Compute DFT+U force contribution from a single atom pair (I,J,R) in real space.

Detailed Description

DFT+U force calculation in real space (r-space) - implementation.

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