ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
magnetism.h
Go to the documentation of this file.
1#ifndef MAGNETISM_H
2#define MAGNETISM_H
3
6#include <vector>
7
12{
13public:
15 Magnetism();
17 ~Magnetism();
18
20 std::vector<double> start_mag;
21
23 double tot_mag;
24
26 double tot_mag_nc[3]={0.0};
27
29 double abs_mag;
30
43 void compute_mag(const double& omega,
44 const int& nrxx,
45 const int& nxyz,
46 const double* const * rho,
47 const int& nspin,
48 const bool& two_fermi,
49 const double& nelec,
50 double* nelec_spin);
51
53 double ux_[3]={0.0};
54
56 bool lsign_=false;
57
58};
59
70
71#endif
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.
Definition magnetism.cpp:20
double tot_mag
tot_mag : majority spin - minority spin (nelup - neldw)
Definition magnetism.h:23
bool lsign_
lsign_
Definition magnetism.h:56
std::vector< double > start_mag
notice : bcast (MPI operation) is done in unitcell
Definition magnetism.h:20
double ux_[3]
ux_
Definition magnetism.h:53
Magnetism()
Constructor.
Definition magnetism.cpp:8
double abs_mag
absolute magnetic moment
Definition magnetism.h:29
double tot_mag_nc[3]
non-collinear total magnetic moment
Definition magnetism.h:26
~Magnetism()
Destructor.
Definition magnetism.cpp:16