ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
cal_nelec_nband.h
Go to the documentation of this file.
1#ifndef CAL_NELEC_NBAND_H
2#define CAL_NELEC_NBAND_H
3
5
6namespace unitcell {
7
15 void cal_nelec(const Atom* atoms, const int& ntype, double& nelec, const double nelec_delta);
16
38 int cal_nlocal(const Atom* atoms, const int ntype, const int nspin);
39
62 void cal_nbands(const int& nelec, const int& nlocal, const std::vector<double>& nelec_spin, int& nbands,
63 const std::string& esolver_type, const bool lspinorb, const int nspin,
64 const std::string& basis_type, const std::string& smearing_method);
65
66}
67
68#endif
Atom class for storing atom information.
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
void cal_nelec(const Atom *atoms, const int &ntype, double &nelec, const double nelec_delta)
calculate the total number of electrons in system
Definition cal_nelec_nband.cpp:29
void cal_nbands(const int &nelec, const int &nlocal, const std::vector< double > &nelec_spin, int &nbands, const std::string &esolver_type, const bool lspinorb, const int nspin, const std::string &basis_type, const std::string &smearing_method)
Calculate the number of bands.
Definition cal_nelec_nband.cpp:61
int cal_nlocal(const Atom *atoms, const int ntype, const int nspin)
Calculate the total number of local numerical atomic orbitals.
Definition cal_nelec_nband.cpp:11