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

Represents an atom with neighbor search related properties. More...

#include <neighbor_atom.h>

Collaboration diagram for NeighborAtom:

Public Member Functions

 NeighborAtom (double x, double y, double z, int type, int index, ModuleNeighList::LocalAtomIndex id)
 Construct a NeighborAtom.
 NeighborAtom (double x, double y, double z, int type, int index, ModuleNeighList::LocalAtomIndex id, int owner_rank_in)

Public Attributes

double position_x
 X coordinate of the atom in Cartesian coordinates.
double position_y
 Y coordinate of the atom in Cartesian coordinates.
double position_z
 Z coordinate of the atom in Cartesian coordinates.
int atom_type
 Atom type index.
int atom_index
 Index of the atom within its type.
ModuleNeighList::LocalAtomIndex atom_id
 Rank-local atom ID used by the neighbor list.
int owner_rank
 MPI rank that owns the primary atom.

Detailed Description

Represents an atom with neighbor search related properties.

This class stores atom position, type, and index information used during neighbor search operations. It distinguishes between atoms inside the local MPI domain and ghost atoms from neighboring domains.

Constructor & Destructor Documentation

◆ NeighborAtom() [1/2]

NeighborAtom::NeighborAtom ( double x,
double y,
double z,
int type,
int index,
ModuleNeighList::LocalAtomIndex id )
inline

Construct a NeighborAtom.

Parameters
xX coordinate.
yY coordinate.
zZ coordinate.
typeAtom type index.
indexIndex within the atom type.
idUnique atom ID.

◆ NeighborAtom() [2/2]

NeighborAtom::NeighborAtom ( double x,
double y,
double z,
int type,
int index,
ModuleNeighList::LocalAtomIndex id,
int owner_rank_in )
inline

Member Data Documentation

◆ atom_id

ModuleNeighList::LocalAtomIndex NeighborAtom::atom_id

Rank-local atom ID used by the neighbor list.

◆ atom_index

int NeighborAtom::atom_index

Index of the atom within its type.

◆ atom_type

int NeighborAtom::atom_type

Atom type index.

◆ owner_rank

int NeighborAtom::owner_rank

MPI rank that owns the primary atom.

◆ position_x

double NeighborAtom::position_x

X coordinate of the atom in Cartesian coordinates.

◆ position_y

double NeighborAtom::position_y

Y coordinate of the atom in Cartesian coordinates.

◆ position_z

double NeighborAtom::position_z

Z coordinate of the atom in Cartesian coordinates.


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