ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
spar_dh.h
Go to the documentation of this file.
1#ifndef SPAR_DH_H
2#define SPAR_DH_H
3
11#include <vector>
12
14{
15void cal_dH(const UnitCell& ucell,
16 const Parallel_Orbitals& pv,
17 LCAO_HS_Arrays& HS_Arrays,
18 const Grid_Driver& grid,
19 const TwoCenterBundle& two_center_bundle,
20 const LCAO_Orbitals& orb,
21 const int& current_spin,
22 const double& sparse_thr,
23 const ModuleBase::matrix& v_eff,
24 const bool gamma_only_local,
25 const int nspin,
26 const int npol);
27
28// calculated the derivative of the overlap matrix: <phi|dphi>
29void cal_dS(const UnitCell& ucell,
30 const Parallel_Orbitals& pv,
31 LCAO_HS_Arrays& HS_Arrays,
32 const Grid_Driver& grid,
33 const TwoCenterBundle& two_center_bundle,
34 const LCAO_Orbitals& orb,
35 const double& sparse_thr,
36 const bool gamma_only_local,
37 const int nspin,
38 const int npol);
39
40// be called by 'cal_dH_sparse'
41void set_R_range(std::set<Abfs::Vector3_Order<int>>& all_R_coor, const Grid_Driver& grid);
42
43// be called by 'cal_dH_sparse'
44void cal_dSTN_R(const UnitCell& ucell,
45 const Parallel_Orbitals& pv,
46 LCAO_HS_Arrays& HS_Arrays,
47 ForceStressArrays& fsr, // mohan add 2024-06-16
48 const Grid_Driver& grid,
49 const std::vector<double>& orb_cutoff,
50 const int& current_spin,
51 const double& sparse_thr,
52 const int nspin,
53 const int npol);
54
55void destroy_dH_R_sparse(LCAO_HS_Arrays& HS_Arrays, const int nspin);
56
57} // namespace sparse_format
58
59#endif
Definition abfs_vector3_order.h:16
Definition force_stress_arrays.h:7
Grid_Driver class for neighbor search interface.
Definition sltk_grid_driver.h:63
Definition lcao_hs_arrays.h:9
Definition orb_read.h:18
Definition matrix.h:15
Definition parallel_orbitals.h:16
Definition two_center_bundle.h:11
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition spar_dh.h:14
void cal_dSTN_R(const UnitCell &ucell, const Parallel_Orbitals &pv, LCAO_HS_Arrays &HS_Arrays, ForceStressArrays &fsr, const Grid_Driver &grid, const std::vector< double > &orb_cutoff, const int &current_spin, const double &sparse_thr, const int nspin, const int npol)
Definition spar_dh.cpp:369
void set_R_range(std::set< Abfs::Vector3_Order< int > > &all_R_coor, const Grid_Driver &grid)
Definition spar_dh.cpp:344
void destroy_dH_R_sparse(LCAO_HS_Arrays &HS_Arrays, const int nspin)
Definition spar_dh.cpp:499
void cal_dH(const UnitCell &ucell, const Parallel_Orbitals &pv, LCAO_HS_Arrays &HS_Arrays, const Grid_Driver &grid, const TwoCenterBundle &two_center_bundle, const LCAO_Orbitals &orb, const int &current_spin, const double &sparse_thr, const ModuleBase::matrix &v_eff, const bool gamma_only_local, const int nspin, const int npol)
Definition spar_dh.cpp:270
void cal_dS(const UnitCell &ucell, const Parallel_Orbitals &pv, LCAO_HS_Arrays &HS_Arrays, const Grid_Driver &grid, const TwoCenterBundle &two_center_bundle, const LCAO_Orbitals &orb, const double &sparse_thr, const bool gamma_only_local, const int nspin, const int npol)
Definition spar_dh.cpp:232
Grid_Driver class for neighbor search interface.