This class provides the base for traversals using the c08 base step.
More...
#include <LCC08CellHandler.h>
|
| LCC08CellHandler (PairwiseFunctor *pairwiseFunctor, const std::array< unsigned long, 3 > &cellsPerDimension, double interactionLength, const std::array< double, 3 > &cellLength, const std::array< unsigned long, 3 > &overlap, DataLayoutOption dataLayout, bool useNewton3) |
| Constructor of the LCC08CellHandler.
|
|
void | processBaseCell (std::vector< ParticleCell > &cells, unsigned long baseIndex) |
| Computes one interaction for each spacial direction based on the lower left frontal corner (=base index) of a 2x2x2 block of cells.
|
|
void | setSortingThreshold (size_t sortingThreshold) |
| Set the sorting-threshold for traversals that use the CellFunctor If the sum of the number of particles in two cells is greater or equal to that value, the CellFunctor creates a sorted view of the particles to avoid unnecessary distance checks.
|
|
This class provides the base for traversals using the c08 base step.
The base step processBaseCell() computes one set of pairwise interactions between two cells for each spatial direction based on the baseIndex. After executing the base step on all cells all pairwise interactions for all cells are done.
- Template Parameters
-
◆ LCC08CellHandler()
autopas::LCC08CellHandler< ParticleCell, PairwiseFunctor >::LCC08CellHandler |
( |
PairwiseFunctor * |
pairwiseFunctor, |
|
|
const std::array< unsigned long, 3 > & |
cellsPerDimension, |
|
|
double |
interactionLength, |
|
|
const std::array< double, 3 > & |
cellLength, |
|
|
const std::array< unsigned long, 3 > & |
overlap, |
|
|
DataLayoutOption |
dataLayout, |
|
|
bool |
useNewton3 |
|
) |
| |
|
inlineexplicit |
Constructor of the LCC08CellHandler.
- Parameters
-
pairwiseFunctor | The functor that defines the interaction of two particles. |
cellsPerDimension | The number of cells per dimension. |
interactionLength | Interaction length (cutoff + skin). |
cellLength | cell length. |
overlap | number of overlapping cells in each direction as result from cutoff and cellLength. |
dataLayout | The data layout with which this traversal should be initialized. |
useNewton3 | Parameter to specify whether the traversal makes use of newton3 or not. |
- Todo:
- Pass cutoff to _cellFunctor instead of interactionLength, unless this functor is used to build verlet-lists, in that case the interactionLength is needed!
◆ processBaseCell()
Computes one interaction for each spacial direction based on the lower left frontal corner (=base index) of a 2x2x2 block of cells.
- Parameters
-
cells | vector of all cells. |
baseIndex | Index respective to which box is constructed. |
◆ setSortingThreshold()
Set the sorting-threshold for traversals that use the CellFunctor If the sum of the number of particles in two cells is greater or equal to that value, the CellFunctor creates a sorted view of the particles to avoid unnecessary distance checks.
- Parameters
-
sortingThreshold | Sum of the number of particles in two cells from which sorting should be enabled |
◆ _cellPairOffsets
Pair sets for processBaseCell().
Values are: offset of first cell, offset of second cell, sorting direction.
◆ _overlap
Overlap of interacting cells.
Array allows asymmetric cell sizes.
The documentation for this class was generated from the following file: