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

Atom class for storing atom information. More...

#include <atom_spec.h>

Collaboration diagram for Atom:

Public Member Functions

 Atom ()
 Constructor.
 ~Atom ()
 Destructor.
void set_index ()
 Set index arrays.
void print_Atom (std::ofstream &ofs)
 Print atom information.
void update_force (ModuleBase::matrix &fcs)
 Update force.
void bcast_atom ()
 Broadcast atom data.
void bcast_atom2 ()
 Broadcast atom data (second version).

Public Attributes

Atom_pseudo ncpp
 pseudopotential for this atom type
double mass = 0.0
 the mass of atom
std::vector< ModuleBase::Vector3< int > > mbl
 whether the atoms can move or not
bool flag_empty_element = false
 whether is the empty element for bsse (Peize Lin add 2021.04.07)
std::vector< int > iw2m
 use iw to find m
std::vector< int > iw2n
 use iw to find n
std::vector< int > iw2l
 use iw to find L
std::vector< int > iw2_ylm
 use iw to find ylm index
std::vector< bool > iw2_new
 use iw to find new flag
int nw = 0
 number of local orbitals (l,n,m) of this type
int type = 0
 Index of atom type.
int na = 0
 Number of atoms in this type.
int nwl = 0
 max L(Angular momentum) (for local basis)
double Rcut = 0.0
 cut-off radius (pengfei Li 16-2-29)
std::vector< int > l_nchi
 number of chi for each L
int stapos_wf = 0
 start position of wave functions
std::string label
 atomic symbol
std::vector< ModuleBase::Vector3< double > > tau
 Cartesian coordinates of each atom in this type, in unit of lat0.
std::vector< ModuleBase::Vector3< double > > dis
 direct displacements of each atom in this type in current step (liuyu modify 2023-03-22)
std::vector< ModuleBase::Vector3< double > > taud
 Direct coordinates of each atom in this type.
std::vector< ModuleBase::Vector3< int > > boundary_shift
 record for periodic boundary adjustment
std::vector< ModuleBase::Vector3< double > > vel
 velocities of each atom in this type
std::vector< ModuleBase::Vector3< double > > force
 force acting on each atom in this type
std::vector< ModuleBase::Vector3< double > > lambda
 Lagrange multiplier for each atom in this type, used in deltaspin.
std::vector< ModuleBase::Vector3< int > > constrain
 constrain for each atom in this type, used in deltaspin
std::string label_orb
 atomic element symbol in the orbital file of lcao
std::vector< double > mag
 magnetic moment
std::vector< double > angle1
 spin angle, added by zhengdy-soc
std::vector< double > angle2
 spin angle, added by zhengdy-soc
std::vector< ModuleBase::Vector3< double > > m_loc_
 local magnetic moment
bool coulomb_potential = false
 Coulomb potential v(r) = z/r It is a local potential, and has no non-local potential parts.

Detailed Description

Atom class for storing atom information.

Constructor & Destructor Documentation

◆ Atom()

Atom::Atom ( )
inline

Constructor.

◆ ~Atom()

Atom::~Atom ( )
inline

Destructor.

Member Function Documentation

◆ bcast_atom()

void Atom::bcast_atom ( )

Broadcast atom data.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bcast_atom2()

void Atom::bcast_atom2 ( )

Broadcast atom data (second version).

Here is the caller graph for this function:

◆ print_Atom()

void Atom::print_Atom ( std::ofstream & ofs)

Print atom information.

Parameters
ofsoutput file stream
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_index()

void Atom::set_index ( )
inline

Set index arrays.

Here is the caller graph for this function:

◆ update_force()

void Atom::update_force ( ModuleBase::matrix & fcs)

Update force.

Parameters
fcsforce constant matrix

Member Data Documentation

◆ angle1

std::vector<double> Atom::angle1

spin angle, added by zhengdy-soc

◆ angle2

std::vector<double> Atom::angle2

spin angle, added by zhengdy-soc

◆ boundary_shift

std::vector<ModuleBase::Vector3<int> > Atom::boundary_shift

record for periodic boundary adjustment

◆ constrain

std::vector<ModuleBase::Vector3<int> > Atom::constrain

constrain for each atom in this type, used in deltaspin

◆ coulomb_potential

bool Atom::coulomb_potential = false

Coulomb potential v(r) = z/r It is a local potential, and has no non-local potential parts.

◆ dis

std::vector<ModuleBase::Vector3<double> > Atom::dis

direct displacements of each atom in this type in current step (liuyu modify 2023-03-22)

◆ flag_empty_element

bool Atom::flag_empty_element = false

whether is the empty element for bsse (Peize Lin add 2021.04.07)

◆ force

std::vector<ModuleBase::Vector3<double> > Atom::force

force acting on each atom in this type

◆ iw2_new

std::vector<bool> Atom::iw2_new

use iw to find new flag

◆ iw2_ylm

std::vector<int> Atom::iw2_ylm

use iw to find ylm index

◆ iw2l

std::vector<int> Atom::iw2l

use iw to find L

◆ iw2m

std::vector<int> Atom::iw2m

use iw to find m

◆ iw2n

std::vector<int> Atom::iw2n

use iw to find n

◆ l_nchi

std::vector<int> Atom::l_nchi

number of chi for each L

◆ label

std::string Atom::label

atomic symbol

◆ label_orb

std::string Atom::label_orb

atomic element symbol in the orbital file of lcao

◆ lambda

std::vector<ModuleBase::Vector3<double> > Atom::lambda

Lagrange multiplier for each atom in this type, used in deltaspin.

◆ m_loc_

std::vector<ModuleBase::Vector3<double> > Atom::m_loc_

local magnetic moment

◆ mag

std::vector<double> Atom::mag

magnetic moment

◆ mass

double Atom::mass = 0.0

the mass of atom

◆ mbl

std::vector<ModuleBase::Vector3<int> > Atom::mbl

whether the atoms can move or not

◆ na

int Atom::na = 0

Number of atoms in this type.

◆ ncpp

Atom_pseudo Atom::ncpp

pseudopotential for this atom type

◆ nw

int Atom::nw = 0

number of local orbitals (l,n,m) of this type

◆ nwl

int Atom::nwl = 0

max L(Angular momentum) (for local basis)

◆ Rcut

double Atom::Rcut = 0.0

cut-off radius (pengfei Li 16-2-29)

◆ stapos_wf

int Atom::stapos_wf = 0

start position of wave functions

◆ tau

std::vector<ModuleBase::Vector3<double> > Atom::tau

Cartesian coordinates of each atom in this type, in unit of lat0.

◆ taud

std::vector<ModuleBase::Vector3<double> > Atom::taud

Direct coordinates of each atom in this type.

◆ type

int Atom::type = 0

Index of atom type.

◆ vel

std::vector<ModuleBase::Vector3<double> > Atom::vel

velocities of each atom in this type


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