ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
setup_nonlocal.h
Go to the documentation of this file.
1#ifndef INFONONLOCAL_H
2#define INFONONLOCAL_H
3
4#include <fstream>
5#include <string>
6#include <vector>
7
11
13{
14public:
17
19private:
20 std::vector<Numerical_Nonlocal> Beta;
21 std::vector<int> nproj;
23 double rcutmax_Beta;
24
25public:
26
27 const std::vector<Numerical_Nonlocal>& get_Beta() const { return Beta; }
28 std::vector<Numerical_Nonlocal>& get_Beta() { return Beta; }
29 const Numerical_Nonlocal& get_Beta(const int& it) const { return Beta[it]; }
30 const Numerical_Nonlocal* get_Beta_data() const { return Beta.data(); }
32 // Replaces the whole vector without copying or moving any element,
33 // since Numerical_Nonlocal is non-copyable (see orb_nonlocal.h).
34 void resize_Beta(const int& ntype) { Beta = std::vector<Numerical_Nonlocal>(ntype); }
35
36 const std::vector<int>& get_nproj() const { return nproj; }
37 std::vector<int>& get_nproj() { return nproj; }
38 int get_nproj(const int& it) const { return nproj[it]; }
39 int& get_nproj_ref(const int& it) { return nproj[it]; }
40 void assign_nproj(const int& ntype, const int& value) { nproj.assign(ntype, value); }
41
42 const int& get_nprojmax() const { return nprojmax; }
43 void set_nprojmax(const int& value) { nprojmax = value; }
44
45 const double& get_rcutmax_Beta(void) const { return rcutmax_Beta; }
46 void set_rcutmax_Beta(const double& value) { rcutmax_Beta = value; }
47
50 const int& it,
51 Atom* atom,
52 int& n_projectors,
53 const int& kmesh,
54 const double& dk,
55 const double& dr_uniform,
56 std::ofstream& log,
57 const bool& out_element_info,
58 const bool& lspinorb,
59 const int& nspin,
60 const int& my_rank);
61
64 const int& ntype,
65 Atom* atoms,
66 std::ofstream& log,
67 LCAO_Orbitals& orb,
68 const std::string& basis_type,
69 const bool& out_element_info,
70 const bool& lspinorb,
71 const int& nspin,
72 const int& my_rank);
73
74private:
77 const Atom* atom,
78 const int& n_projectors,
79 ModuleBase::ComplexMatrix& coefficient_D_nc_in);
80
83 const Atom* atom,
84 const int& p1,
85 std::vector<double>& beta_r,
86 int& cut_mesh);
87};
88
89#endif
Atom class for storing atom information.
Atom class for storing atom information.
Definition atom_spec.h:14
std::vector< Numerical_Nonlocal > & get_Beta()
Definition setup_nonlocal.h:28
const double & get_rcutmax_Beta(void) const
Definition setup_nonlocal.h:45
void setupNonlocal(const int &ntype, Atom *atoms, std::ofstream &log, LCAO_Orbitals &orb, const std::string &basis_type, const bool &out_element_info, const bool &lspinorb, const int &nspin, const int &my_rank)
workflow to setup nonlocal part for LCAO
void set_rcutmax_Beta(const double &value)
Definition setup_nonlocal.h:46
Numerical_Nonlocal * get_Beta_data()
Definition setup_nonlocal.h:31
void assign_nproj(const int &ntype, const int &value)
Definition setup_nonlocal.h:40
InfoNonlocal()
Definition tmp_mocks.cpp:267
int nprojmax
max number of projectors among all types, mohan add 2010-03-07
Definition setup_nonlocal.h:22
const std::vector< int > & get_nproj() const
Definition setup_nonlocal.h:36
const std::vector< Numerical_Nonlocal > & get_Beta() const
Definition setup_nonlocal.h:27
const Numerical_Nonlocal & get_Beta(const int &it) const
Definition setup_nonlocal.h:29
void resize_Beta(const int &ntype)
Definition setup_nonlocal.h:34
std::vector< int > nproj
number of projectors per atom type, mohan add 2010-12-19
Definition setup_nonlocal.h:21
void Set_NonLocal(const int &it, Atom *atom, int &n_projectors, const int &kmesh, const double &dk, const double &dr_uniform, std::ofstream &log, const bool &out_element_info, const bool &lspinorb, const int &nspin, const int &my_rank)
in order to get rid of the .NONLOCAL file.
const int & get_nprojmax() const
Definition setup_nonlocal.h:42
double rcutmax_Beta
max cutoff radius among all projectors, caoyu add 2021-05-24
Definition setup_nonlocal.h:23
std::vector< Numerical_Nonlocal > Beta
NON-LOCAL part for LCAO.
Definition setup_nonlocal.h:20
const Numerical_Nonlocal * get_Beta_data() const
Definition setup_nonlocal.h:30
int & get_nproj_ref(const int &it)
Definition setup_nonlocal.h:39
int get_nproj(const int &it) const
Definition setup_nonlocal.h:38
std::vector< int > & get_nproj()
Definition setup_nonlocal.h:37
void build_soc_coefficients(const Atom *atom, const int &n_projectors, ModuleBase::ComplexMatrix &coefficient_D_nc_in)
build SOC coefficient matrix for nonlocal projectors
void build_beta_r(const Atom *atom, const int &p1, std::vector< double > &beta_r, int &cut_mesh)
build radial projector beta_r on truncated mesh
void set_nprojmax(const int &value)
Definition setup_nonlocal.h:43
Definition orb_read.h:18
Definition complexmatrix.h:11
Definition orb_nonlocal.h:21