ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Algorithm Namespace Reference

Functions

template<typename CellIterator , typename PairKernel >
void link_cell (CellIterator first, CellIterator last, PairKernel &&pair_kernel)
 Iterates over all particles in the cell range, and over all pairs within the cells and with their neighbors.
 
template<typename T , typename I >
std::pair< T, I > periodic_fold (T x, I i, T const l)
 Fold value into primary interval.
 
template<typename T >
periodic_fold (T x, T const l)
 Fold value into primary interval.
 

Function Documentation

◆ link_cell()

template<typename CellIterator , typename PairKernel >
void Algorithm::link_cell ( CellIterator  first,
CellIterator  last,
PairKernel &&  pair_kernel 
)

Iterates over all particles in the cell range, and over all pairs within the cells and with their neighbors.

Definition at line 32 of file link_cell.hpp.

◆ periodic_fold() [1/2]

template<typename T , typename I >
std::pair< T, I > Algorithm::periodic_fold ( x,
i,
T const  l 
)

Fold value into primary interval.

Parameters
xValue to fold
iImage count before folding
lLength of primary interval
Returns
x folded into [0, l) and number of folds.

Definition at line 36 of file periodic_fold.hpp.

Referenced by BoxGeometry::fold_position(), BoxGeometry::folded_position(), and BoxGeometry::get_mi_vector().

◆ periodic_fold() [2/2]

template<typename T >
T Algorithm::periodic_fold ( x,
T const  l 
)

Fold value into primary interval.

Parameters
xValue to fold
lLength of primary interval
Returns
x folded into [0, l).

Definition at line 59 of file periodic_fold.hpp.