#include <cell_list_3d.hpp>
|
| | CellList3D (Scalar cell_size, Scalar xmin, Scalar xmax, Scalar ymin, Scalar ymax, Scalar zmin, Scalar zmax) |
| |
| template<typename PosAccessor > |
| void | build (PosAccessor &&get_pos, int n) |
| |
| template<typename F > |
| void | query (Scalar px, Scalar py, Scalar pz, F &&f) const |
| | 3x3x3 neighbourhood query around (px, py, pz).
|
| |
| template<typename F > |
| void | iterate_pairs (F &&f) const |
| |
| int | nx () const noexcept |
| |
| int | ny () const noexcept |
| |
| int | nz () const noexcept |
| |
| int | n_particles () const noexcept |
| |
template<typename Scalar>
class num::CellList3D< Scalar >
Definition at line 39 of file cell_list_3d.hpp.
◆ CellList3D()
template<typename Scalar >
| num::CellList3D< Scalar >::CellList3D |
( |
Scalar |
cell_size, |
|
|
Scalar |
xmin, |
|
|
Scalar |
xmax, |
|
|
Scalar |
ymin, |
|
|
Scalar |
ymax, |
|
|
Scalar |
zmin, |
|
|
Scalar |
zmax |
|
) |
| |
|
inline |
- Parameters
-
| cell_size | Width of one cell (use 2h – kernel support radius). |
Definition at line 42 of file cell_list_3d.hpp.
◆ build()
template<typename Scalar >
template<typename PosAccessor >
Build in O(n + C). PosAccessor: callable int -> std::tuple<Scalar,Scalar,Scalar> (x,y,z)
Definition at line 64 of file cell_list_3d.hpp.
◆ iterate_pairs()
template<typename Scalar >
template<typename F >
Newton's 3rd law pair traversal – 13 forward offsets. Calls f(int i, int j) for each unique unordered pair exactly once.
Definition at line 113 of file cell_list_3d.hpp.
◆ n_particles()
template<typename Scalar >
◆ nx()
template<typename Scalar >
◆ ny()
template<typename Scalar >
◆ nz()
template<typename Scalar >
◆ query()
template<typename Scalar >
template<typename F >
| void num::CellList3D< Scalar >::query |
( |
Scalar |
px, |
|
|
Scalar |
py, |
|
|
Scalar |
pz, |
|
|
F && |
f |
|
) |
| const |
|
inline |
3x3x3 neighbourhood query around (px, py, pz).
Definition at line 86 of file cell_list_3d.hpp.
The documentation for this class was generated from the following file: