|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
CalAtomsInfo class for calculating atom information. More...
#include <cal_atoms_info.h>
Public Member Functions | |
| CalAtomsInfo () | |
| Default constructor. | |
| ~CalAtomsInfo () | |
| Destructor. | |
| AtomsInfoResult | cal_atoms_info (Atom *atoms, const int &ntype, const int nspin, const bool two_fermi, const double nelec_delta, const std::string &esolver_type, const bool lspinorb, const std::string &basis_type, const std::string &smearing_method, const std::string &ks_solver, const int bndpar, const int nbands, const double nelec, const double nupdown) |
| Calculate the atom information from pseudopotential. | |
CalAtomsInfo class for calculating atom information.
|
inline |
Default constructor.
|
inline |
Destructor.
|
inline |
Calculate the atom information from pseudopotential.
IMPORTANT: The nbands and nelec parameters must be the user-specified values from INPUT file. This function passes nbands to cal_nbands() and nelec to cal_nelec(). If nbands is 0, cal_nbands() will auto-calculate a default. If nelec is 0, cal_nelec() will auto-calculate based on atomic valence.
| atoms | [in] Atom pointer |
| ntype | [in] number of atom types |
| nspin | [in] number of spin components |
| two_fermi | [in] two fermi level flag |
| nelec_delta | [in] electron number delta |
| esolver_type | [in] solver type |
| lspinorb | [in] spin-orbit coupling flag |
| basis_type | [in] basis type |
| smearing_method | [in] smearing method |
| ks_solver | [in] KS solver type |
| bndpar | [in] band parallel parameter |
| nbands | [in] user-specified number of bands from INPUT file |
| nelec | [in] user-specified number of electrons from INPUT file |
| nupdown | [in] user-specified spin polarization from INPUT file |