ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Magnetism Class Reference

Class for magnetism calculations. More...

#include <magnetism.h>

Collaboration diagram for Magnetism:

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_

Detailed Description

Class for magnetism calculations.

Constructor & Destructor Documentation

◆ Magnetism()

Magnetism::Magnetism ( )
inline

Constructor.

◆ ~Magnetism()

Magnetism::~Magnetism ( )
inline

Destructor.

Member Function Documentation

◆ compute_mag()

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.

Parameters
omegaunit cell volume
nrxxnumber of grid points in real space
nxyztotal number of grid points
rhocharge density
nspinnumber of spin states
two_fermiwhether to use two Fermi levels
nelectotal number of electrons
nelec_spinnumber of electrons per spin channel
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ abs_mag

double Magnetism::abs_mag

absolute magnetic moment

◆ lsign_

bool Magnetism::lsign_ =false

lsign_

◆ start_mag

std::vector<double> Magnetism::start_mag

notice : bcast (MPI operation) is done in unitcell

◆ tot_mag

double Magnetism::tot_mag

tot_mag : majority spin - minority spin (nelup - neldw)

◆ tot_mag_nc

double Magnetism::tot_mag_nc[3] ={0.0}

non-collinear total magnetic moment

◆ ux_

double Magnetism::ux_[3] ={0.0}

ux_


The documentation for this class was generated from the following files: