ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dftu_nao_fs_r.h
Go to the documentation of this file.
1#ifndef DFTU_NAO_FS_R_H
2#define DFTU_NAO_FS_R_H
3
37
38#include "source_base/matrix.h"
39
40#include <vector>
41
42class UnitCell;
43class Plus_U_Base;
46
47namespace hamilt
48{
49// Forward declarations to avoid circular dependency with dftu_lcao_op.h
50template <typename TK, typename TR>
51class OperatorLCAO;
52
53template <typename T>
54class DFTU_onsite;
55
56template <typename T>
57class HContainer;
58} // namespace hamilt
59
60namespace DFTU_LCAO
61{
62
69void reduce_force_impl(ModuleBase::matrix& force, int nspin);
70
79void reduce_stress_impl(const UnitCell* ucell,
80 const std::vector<double>& stress_tmp,
81 ModuleBase::matrix& stress);
82
105void cal_fs_nao_r_impl(const UnitCell* ucell,
106 Plus_U_Base* dftu,
107 const TwoCenterIntegrator* intor,
108 int nspin,
109 const std::vector<AdjacentAtomInfo>& adjs_all,
110 const std::vector<const hamilt::HContainer<double>*>& dmR,
111 bool cal_force,
112 bool cal_stress,
113 ModuleBase::matrix& force,
114 ModuleBase::matrix& stress);
115
134void cal_fs_nao_r(const UnitCell* ucell,
135 Plus_U_Base* dftu,
136 const TwoCenterIntegrator* intor,
137 int nspin,
138 const std::vector<AdjacentAtomInfo>& adjs_all,
139 const std::vector<const hamilt::HContainer<double>*>& dmR,
140 bool cal_force,
141 bool cal_stress,
142 ModuleBase::matrix& force,
143 ModuleBase::matrix& stress);
144
145} // namespace DFTU_LCAO
146
147#endif // DFTU_NAO_FS_R_H
Struct of array for packing the Adjacent atom information.
Definition sltk_grid_driver.h:21
Definition dftu_base.h:21
A class to compute two-center integrals.
Definition two_center_integrator.h:35
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition dftu_nao_op.h:32
Definition hcontainer.h:147
Definition operator_lcao.h:13
Definition dftu_nao_adj.cpp:14
void reduce_force_impl(ModuleBase::matrix &force, int nspin)
Post-process force: MPI Allreduce and spin-degeneracy scaling.
Definition dftu_nao_fs_reduce.cpp:15
void 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 over...
Definition dftu_nao_fs_r.cpp:289
void reduce_stress_impl(const UnitCell *ucell, const std::vector< double > &stress_tmp, ModuleBase::matrix &stress)
Post-process stress: MPI Allreduce and renormalization to full 3x3 tensor from Voigt-like 6-component...
Definition dftu_nao_fs_reduce.cpp:27
void 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.
Definition dftu_nao_fs_r.cpp:166
Definition wf_op.cpp:6
Plus_U_Base dftu
Definition test_dftu_nao_op.cpp:11