|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Class for magnetism calculations. More...
#include <magnetism.h>
Public Member Functions | |
| Magnetism () | |
| Constructor. | |
| ~Magnetism () | |
| Destructor. | |
| void | compute_mag (const double &omega, const int &nrxx, const int &nxyz, const double *const *rho, const int &nspin, const bool &two_fermi, const double &nelec, double *nelec_spin) |
| Compute the magnetic moment. | |
Public Attributes | |
| std::vector< double > | start_mag |
| notice : bcast (MPI operation) is done in unitcell | |
| double | tot_mag |
| tot_mag : majority spin - minority spin (nelup - neldw) | |
| double | tot_mag_nc [3] ={0.0} |
| non-collinear total magnetic moment | |
| double | abs_mag |
| absolute magnetic moment | |
| double | ux_ [3] ={0.0} |
| ux_ | |
| bool | lsign_ =false |
| lsign_ | |
Class for magnetism calculations.
|
inline |
Constructor.
|
inline |
Destructor.
| void Magnetism::compute_mag | ( | const double & | omega, |
| const int & | nrxx, | ||
| const int & | nxyz, | ||
| const double *const * | rho, | ||
| const int & | nspin, | ||
| const bool & | two_fermi, | ||
| const double & | nelec, | ||
| double * | nelec_spin ) |
Compute the magnetic moment.
| omega | unit cell volume |
| nrxx | number of grid points in real space |
| nxyz | total number of grid points |
| rho | charge density |
| nspin | number of spin states |
| two_fermi | whether to use two Fermi levels |
| nelec | total number of electrons |
| nelec_spin | number of electrons per spin channel |
| double Magnetism::abs_mag |
absolute magnetic moment
| bool Magnetism::lsign_ =false |
lsign_
| std::vector<double> Magnetism::start_mag |
notice : bcast (MPI operation) is done in unitcell
| double Magnetism::tot_mag |
tot_mag : majority spin - minority spin (nelup - neldw)
| double Magnetism::tot_mag_nc[3] ={0.0} |
non-collinear total magnetic moment
| double Magnetism::ux_[3] ={0.0} |
ux_