CellList is a helper class for NeighborList and QCPotential. More...
#include <CellList.h>
Public Member Functions | |
| CellList (Atoms *a, double rMax) | |
| void | MakeNeighborList (int neighborList[], int indices[], int &nMax, vector< Image > &images) |
| int | GetNeighbors (Vec point, int *neighbors, int size) const |
| bool | AnyNeighbors (Vec point) const |
Private Attributes | |
| int | nAtoms |
| int | nAllAtoms |
| double | rMax |
| double | rMax2 |
| Vec | minimum |
| Vec | size |
| int | nCells [3] |
| int | nTotalCells [4] |
| Vec * | positions |
| const SuperCell * | superCell |
| const double * | superCellHeights |
| const bool * | periodic |
| vector< vector< int > > | cells |
| vector< int > | cellIndices |
CellList is a helper class for NeighborList and QCPotential.
CellList(atoms, rMax) will put the atoms into cells of size minimum rMax (when used by the NeighborList class, rMax will be rCut + 2 * drift). MakeNeighborLists(...) will generate neighbor lists and periodic images. GetNeighbors(...) will return all neighbors of point within a distance of rMax (useful for decoration in QC).
Definition at line 19 of file CellList.h.
| CellList::CellList | ( | Atoms * | a, |
| double | rMax ) |
| bool CellList::AnyNeighbors | ( | Vec | point | ) | const |
| int CellList::GetNeighbors | ( | Vec | point, |
| int * | neighbors, | ||
| int | size ) const |
| void CellList::MakeNeighborList | ( | int | neighborList[], |
| int | indices[], | ||
| int & | nMax, | ||
| vector< Image > & | images ) |
|
private |
Definition at line 40 of file CellList.h.
Definition at line 39 of file CellList.h.
|
private |
Definition at line 32 of file CellList.h.
|
private |
Definition at line 29 of file CellList.h.
|
private |
Definition at line 28 of file CellList.h.
|
private |
Definition at line 33 of file CellList.h.
|
private |
Definition at line 34 of file CellList.h.
|
private |
Definition at line 38 of file CellList.h.
|
private |
Definition at line 35 of file CellList.h.
|
private |
Definition at line 30 of file CellList.h.
|
private |
Definition at line 31 of file CellList.h.
|
private |
Definition at line 32 of file CellList.h.
|
private |
Definition at line 36 of file CellList.h.
|
private |
Definition at line 37 of file CellList.h.