ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
cal_nelec_nband.cpp File Reference

Implementation of electron and band calculation functions. More...

Include dependency graph for cal_nelec_nband.cpp:

Namespaces

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

Functions

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_nelec (const Atom *atoms, const int &ntype, double &nelec, const double nelec_delta)
 calculate the total number of electrons in system
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.

Detailed Description

Implementation of electron and band calculation functions.