24 CellIndex(
const std::vector<std::string>& atomLabels_in,
25 const std::vector<int>& atomCounts_in,
26 const std::vector<std::vector<int>>& lnchiCounts_in,
41 int get_iwt(
int iat,
int orbital_index)
const;
73 int iw2l(
int iat,
int iw)
const;
75 int iw2z(
int iat,
int iw)
const;
77 int iw2m(
int iat,
int iw)
const;
This class is used to get the information of the atoms and orbitals indices in the unit cell.
Definition cell_index.h:21
int iw2m(int iat, int iw) const
get m from iw
Definition cell_index.cpp:215
int iw2l(int iat, int iw) const
get L from iw
Definition cell_index.cpp:165
void write_orb_info(const std::string &out_dir) const
write orbital info into file
Definition cell_index.cpp:264
int get_maxL(int iat) const
get maximum L of a given atom
Definition cell_index.cpp:85
std::vector< std::string > atomLabels
atomLabels is a vector used to store the atom labels
Definition cell_index.h:59
std::vector< int > orbitalCounts
orbitalCounts is a vector used to store the number of orbitals for each type
Definition cell_index.h:55
std::vector< std::vector< int > > lnchiCounts
lnchiCounts is a vector used to store the number of chi for each L
Definition cell_index.h:57
int get_nchi(int iat, int L) const
get nchi of a given atom and a give L
Definition cell_index.cpp:92
int get_nw() const
get nw
Definition cell_index.cpp:40
bool check_nspin(int nspin)
check nspin
Definition cell_index.cpp:240
void cal_orbitalCounts()
calculate orbitalCounts from lnchiCounts
Definition cell_index.cpp:249
int get_iwt(int iat, int orbital_index) const
get iwt
Definition cell_index.cpp:56
int npol_
npol is determined by nspin and used in get_iwt and get_nw
Definition cell_index.h:61
std::string get_atom_label(int iat, bool order=false) const
get atom label of a given atom
Definition cell_index.cpp:121
void check_atomCounts()
check if atomCounts is set ok
Definition cell_index.cpp:102
int get_nat() const
the total number of atoms
Definition cell_index.cpp:25
std::vector< int > atomCounts
atomCounts is a vector used to store the number of atoms for each type
Definition cell_index.h:53
int get_ntype() const
get ntype
Definition cell_index.cpp:20
int iat2ia(int iat) const
get index of atom in the same type
Definition cell_index.cpp:153
int iw2z(int iat, int iw) const
get Z from iw
Definition cell_index.cpp:190
int iat2it(int iat) const
get type of atom from total order
Definition cell_index.cpp:131