|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Represents an atom with neighbor search related properties. More...
#include <neighbor_atom.h>
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. | |
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.
|
inline |
Construct a NeighborAtom.
| x | X coordinate. |
| y | Y coordinate. |
| z | Z coordinate. |
| type | Atom type index. |
| index | Index within the atom type. |
| id | Unique atom ID. |
|
inline |
| ModuleNeighList::LocalAtomIndex NeighborAtom::atom_id |
Rank-local atom ID used by the neighbor list.
| int NeighborAtom::atom_index |
Index of the atom within its type.
| int NeighborAtom::atom_type |
Atom type index.
| int NeighborAtom::owner_rank |
MPI rank that owns the primary atom.
| double NeighborAtom::position_x |
X coordinate of the atom in Cartesian coordinates.
| double NeighborAtom::position_y |
Y coordinate of the atom in Cartesian coordinates.
| double NeighborAtom::position_z |
Z coordinate of the atom in Cartesian coordinates.