The link cells built by LinkCells, as a plain struct that can be copied to a GPU: the geometry of the cells and pointers to the arrays of one LinkCells::CellCollection (which must have been built with its positions).
More...
#include <LinkCellsView.h>
|
| static constexpr int | endCell (int celn, const int ncells, const bool usePBC, const int nsub=1) |
| | One past the last of the cells to be searched along one direction, around the cell celn.
|
| |
| static constexpr int | firstCell (int celn, const int ncells, const bool usePBC, const int nsub=1) |
| | The first of the cells to be searched along one direction, around the cell celn.
|
| |
|
| Tensor | boxT |
| | The transposed box and its inverse: the scaled coordinates of x are matmul(invBoxT,x), as in Pbc::realToScaled.
|
| |
| double | cellWidth [3] = {0.0,0.0,0.0} |
| | The width of the cells: the distance between their opposite faces.
|
| |
| double | cutoff2 =0.0 |
| | The square of the cutoff.
|
| |
| Tensor | invBoxT |
| |
| Vector | lattice [3] |
| | The lattice vectors (rows of the box), zero without periodic boundary conditions.
|
| |
| const unsigned * | lists =nullptr |
| | The indices of the atoms, in the order of the cells.
|
| |
| std::size_t | natoms =0 |
| | The number of atoms in the cells.
|
| |
| int | ncells [3] = {0,0,0} |
| | The number of cells in each direction.
|
| |
| unsigned | ncellstot =0 |
| | The number of cells.
|
| |
| bool | nopbc =false |
| | True without periodic boundary conditions.
|
| |
| unsigned | nstride [3] = {1,0,0} |
| | The strides of the cells in each direction (nstride[0] is 1)
|
| |
| int | nsub =1 |
| | The number of cells per cutoff in use (1 or 2)
|
| |
| Vector | origin |
| | The center of the box without periodic boundary conditions (zero with them)
|
| |
| const Vector * | positions =nullptr |
| | The positions of the atoms wrapped in the box, in the same order as lists.
|
| |
| double | reach2 =0.0 |
| | The cells farther than sqrt(reach2) are not searched (cutoff^2 times skewFactor, see LinkCells)
|
| |
| const unsigned * | starts =nullptr |
| | The first element of lists of each cell.
|
| |
| const unsigned * | tots =nullptr |
| | The number of atoms in each cell.
|
| |
| bool | wrapCells =true |
| | If true the cells on the other side of the box are searched (the usePbc argument of LinkCells::addRequiredCells)
|
| |
The link cells built by LinkCells, as a plain struct that can be copied to a GPU: the geometry of the cells and pointers to the arrays of one LinkCells::CellCollection (which must have been built with its positions).
It does not own the arrays: it is valid until that collection is rebuilt. Get it with LinkCells::getView, and search it with forEachCandidate or forEachNeighbor
◆ endCell()
| static constexpr int PLMD::LinkCellsView::endCell |
( |
int | celn, |
|
|
const int | ncells, |
|
|
const bool | usePBC, |
|
|
const int | nsub = 1 ) |
|
inlinestaticconstexpr |
One past the last of the cells to be searched along one direction, around the cell celn.
◆ firstCell()
| static constexpr int PLMD::LinkCellsView::firstCell |
( |
int | celn, |
|
|
const int | ncells, |
|
|
const bool | usePBC, |
|
|
const int | nsub = 1 ) |
|
inlinestaticconstexpr |
The first of the cells to be searched along one direction, around the cell celn.
◆ boxT
| Tensor PLMD::LinkCellsView::boxT |
The transposed box and its inverse: the scaled coordinates of x are matmul(invBoxT,x), as in Pbc::realToScaled.
Without periodic boundary conditions, the box around the atoms
◆ cellWidth
| double PLMD::LinkCellsView::cellWidth[3] = {0.0,0.0,0.0} |
The width of the cells: the distance between their opposite faces.
◆ cutoff2
| double PLMD::LinkCellsView::cutoff2 =0.0 |
The square of the cutoff.
◆ invBoxT
| Tensor PLMD::LinkCellsView::invBoxT |
◆ lattice
| Vector PLMD::LinkCellsView::lattice[3] |
The lattice vectors (rows of the box), zero without periodic boundary conditions.
◆ lists
| const unsigned* PLMD::LinkCellsView::lists =nullptr |
The indices of the atoms, in the order of the cells.
◆ maxSubdivision
| unsigned PLMD::LinkCellsView::maxSubdivision =2 |
|
staticconstexpr |
◆ natoms
| std::size_t PLMD::LinkCellsView::natoms =0 |
The number of atoms in the cells.
◆ ncells
| int PLMD::LinkCellsView::ncells[3] = {0,0,0} |
The number of cells in each direction.
◆ ncellstot
| unsigned PLMD::LinkCellsView::ncellstot =0 |
◆ nopbc
| bool PLMD::LinkCellsView::nopbc =false |
True without periodic boundary conditions.
◆ nstride
| unsigned PLMD::LinkCellsView::nstride[3] = {1,0,0} |
The strides of the cells in each direction (nstride[0] is 1)
◆ nsub
| int PLMD::LinkCellsView::nsub =1 |
The number of cells per cutoff in use (1 or 2)
◆ origin
| Vector PLMD::LinkCellsView::origin |
The center of the box without periodic boundary conditions (zero with them)
◆ positions
| const Vector* PLMD::LinkCellsView::positions =nullptr |
The positions of the atoms wrapped in the box, in the same order as lists.
◆ reach2
| double PLMD::LinkCellsView::reach2 =0.0 |
The cells farther than sqrt(reach2) are not searched (cutoff^2 times skewFactor, see LinkCells)
◆ starts
| const unsigned* PLMD::LinkCellsView::starts =nullptr |
The first element of lists of each cell.
◆ tots
| const unsigned* PLMD::LinkCellsView::tots =nullptr |
The number of atoms in each cell.
◆ wrapCells
| bool PLMD::LinkCellsView::wrapCells =true |
The documentation for this struct was generated from the following file: