|
faunus
|
A cell grid core class assuming fixed boundary conditions. More...
#include <celllistimpl.h>


Public Types | |
| using | GridType = typename AbstractGrid< TGridType >::GridType |
Public Types inherited from Faunus::CellList::Grid::AbstractGrid< TGridType > | |
| using | GridType = TGridType |
Public Member Functions | |
| CellCoord | coordinates (const CellIndex index) const override |
| Compute the cell coordinates from the cell index. More... | |
| CellIndex | index (const CellCoord &coordinates) const override |
| Compute the cell index from the cell coordinates. More... | |
| CellCoord | coordinatesAt (const Point &position) const override |
| Compute cell coordinates from a spatial position. More... | |
| CellIndex | indexAt (const Point &position) const override |
| Compute the cell index from the spatial position. More... | |
| bool | isCell (const CellCoord &coordinates) const override |
| Verifies if coordinates are valid in the grid. More... | |
| bool | isCellAt (const Point &point) const override |
| Verifies if spatial coordinates are in the box. More... | |
| CellIndex | size () const override |
| GridBase (const Point &box, SpaceAxis minimal_cell_dimension) | |
Protected Member Functions | |
| const CellCoord & | getCellListEnd () const |
| const Point & | getBox () const |
| const Point & | getCell () const |
A cell grid core class assuming fixed boundary conditions.
The grid converts spatial coordinates to cell coordinates and cell coordinates to the scalar cell index. The grid is designed for arbitrary number of dimensions.
| TGridType | a cell grid type declaration |
|
inline |
| box | a box to be divided into cells, e.g., a simulation box |
| minimal_cell_dimension | minimal cell dimension, e.g., a cut off distance |
|
inlineoverridevirtual |
Compute the cell coordinates from the cell index.
⌊ (index mod cell_index_to_coordinates) / cell_coordinates_to_index ⌋
| index |
Implements Faunus::CellList::Grid::AbstractGrid< TGridType >.
Reimplemented in Faunus::CellList::Grid::PeriodicBoundaryGrid< TGridType >.
|
inlineoverridevirtual |
Compute cell coordinates from a spatial position.
⌊ position / cell_dimension ⌋
| position |
Implements Faunus::CellList::Grid::AbstractGrid< TGridType >.
Reimplemented in Faunus::CellList::Grid::PeriodicBoundaryGrid< TGridType >.
|
inlineoverridevirtual |
Compute the cell index from the cell coordinates.
| coordinates | cell coordinates |
Implements Faunus::CellList::Grid::AbstractGrid< TGridType >.
Reimplemented in Faunus::CellList::Grid::PeriodicBoundaryGrid< TGridType >.
|
inlineoverridevirtual |
Compute the cell index from the spatial position.
| position | spatial position |
Implements Faunus::CellList::Grid::AbstractGrid< TGridType >.
Reimplemented in Faunus::CellList::Grid::PeriodicBoundaryGrid< TGridType >.
|
inlineoverridevirtual |
Verifies if coordinates are valid in the grid.
Coordinates must be within [0, cell_list_end).
| coordinates |
Implements Faunus::CellList::Grid::AbstractGrid< TGridType >.
Reimplemented in Faunus::CellList::Grid::PeriodicBoundaryGrid< TGridType >.
|
inlineoverridevirtual |
Verifies if spatial coordinates are in the box.
Coordinates must be within [0, box).
| point |
Implements Faunus::CellList::Grid::AbstractGrid< TGridType >.
Reimplemented in Faunus::CellList::Grid::PeriodicBoundaryGrid< TGridType >.
|
inlineoverridevirtual |
Implements Faunus::CellList::Grid::AbstractGrid< TGridType >.
1.8.13