ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
cal_nelec_nband.h File Reference
Include dependency graph for cal_nelec_nband.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  unitcell
 Free functions for extracting atom/orbital info from Atom array.

Functions

void unitcell::cal_nelec (const Atom *atoms, const int &ntype, double &nelec, const double nelec_delta)
 calculate the total number of electrons in system
int unitcell::cal_nlocal (const Atom *atoms, const int ntype, const int nspin)
 Calculate the total number of local numerical atomic orbitals.
void unitcell::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.