num::verlet_list_2d¶
Defined in header <spatial/verlet_list.hpp>
template <field scalar>
class verlet_list_2d;
Cached 2D neighbor lists valid until motion consumes half the skin distance.
Members¶
| member | description |
|---|---|
verlet_list_2d(scalar cutoff, scalar skin) |
Configure the physical cutoff and rebuild skin. |
template <position_accessor_2d<scalar> PosAccessor> void build(PosAccessor &&get_pos, int n, const cell_list_2d<scalar> &cl) |
Build the neighbour list using a pre-built cell_list_2d. |
template <position_accessor_2d<scalar> PosAccessor> bool needs_rebuild(PosAccessor &&get_pos, int n) const |
Return true if a particle moved more than half the skin. |
integer_range neighbors(int i) const noexcept |
Cached neighbors of particle i. |
scalar cutoff() const noexcept |
Return the physical interaction cutoff. |
scalar skin() const noexcept |
Return the displacement buffer used between rebuilds. |
scalar ext_cutoff() const noexcept |
Return cutoff plus skin, used when constructing the cached list. |
int n_particles() const noexcept |