|
faunus
|
Periodic boundary conditions. More...
#include <celllistimpl.h>


Public Types | |
| using | GridType = typename AbstractNeighborGrid< TGridType >::GridType |
Public Types inherited from Faunus::CellList::Grid::GridBase< TGridType > | |
| using | GridType = typename AbstractGrid< TGridType >::GridType |
Public Types inherited from Faunus::CellList::Grid::AbstractGrid< TGridType > | |
| using | GridType = TGridType |
Public Types inherited from Faunus::CellList::Grid::AbstractNeighborGrid< 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 &) const override |
| Verifies if coordinates are valid in the grid. More... | |
| bool | isCellAt (const Point &) const override |
| Verifies if spatial coordinates are in the box. More... | |
| bool | isNeighborCell ([[maybe_unused]] const CellCoord &coordinates, const CellCoord &offset) const override |
| Verifies if offseted coordinates are valid taking into account periodic boundary conditions. More... | |
| PeriodicBoundaryGrid (const Point &box, SpaceAxis cell_dimension) | |
Public Member Functions inherited from Faunus::CellList::Grid::GridBase< TGridType > | |
| CellIndex | size () const override |
| GridBase (const Point &box, SpaceAxis minimal_cell_dimension) | |
Public Member Functions inherited from Faunus::CellList::Grid::AbstractNeighborGrid< TGridType > | |
| virtual bool | isNeighborCell (const CellCoord &coordinates, const CellCoord &offset) const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from Faunus::CellList::Grid::GridBase< TGridType > | |
| const CellCoord & | getCellListEnd () const |
| const Point & | getBox () const |
| const Point & | getCell () const |
Periodic boundary conditions.
Both spatial coordinates and cell coordinates are first converted to the original image and then evaluated. To avoid repeated cell inclusion by completing a full circle in periodic boundary conditions, offsets are limited in both directions assuming symetry.
| TGridType | a cell grid type declaration |
|
inlineoverridevirtual |
Compute the cell coordinates from the cell index.
⌊ (index mod cell_index_to_coordinates) / cell_coordinates_to_index ⌋
| index |
Reimplemented from Faunus::CellList::Grid::GridBase< TGridType >.
|
inlineoverridevirtual |
Compute cell coordinates from a spatial position.
⌊ position / cell_dimension ⌋
| position |
Reimplemented from Faunus::CellList::Grid::GridBase< TGridType >.
|
inlineoverridevirtual |
Compute the cell index from the cell coordinates.
coordinates mod cell_list_end
| coordinates | cell coordinates |
Reimplemented from Faunus::CellList::Grid::GridBase< TGridType >.
|
inlineoverridevirtual |
Compute the cell index from the spatial position.
| position | spatial position |
Reimplemented from Faunus::CellList::Grid::GridBase< TGridType >.
|
inlineoverridevirtual |
Verifies if coordinates are valid in the grid.
Any coordinates are valid under full PBC.
| coordinates |
Reimplemented from Faunus::CellList::Grid::GridBase< TGridType >.
|
inlineoverridevirtual |
Verifies if spatial coordinates are in the box.
Any coordinates are valid under full PBC.
| point |
Reimplemented from Faunus::CellList::Grid::GridBase< TGridType >.
|
inlineoverride |
Verifies if offseted coordinates are valid taking into account periodic boundary conditions.
Symmetric offsets around the reference cell are assumed. To avoid repeated inclusion of a cell, the offset is limited to be at most the half of the cell grid, with an attention paid to the odd and even number of cells.
| coordinates | |
| offset |
1.8.13