|
SimpleFastOpenAtomicVisualiser
|
Calculate neighbour lists. More...
#include <neighbours.h>
Public Member Functions | |
| Neighbours (const std::vector< Atom > &atoms, float domainSideLength=-1.0) | |
| Construct a Neighbour list from some Atoms. | |
| void | build (const std::vector< Atom > &atoms) |
| Build the neighbour list from some Atoms. | |
| void | clear () |
| Reset the spatial domains. | |
| std::vector< std::pair< uint64_t, float > > | neighbours (const std::vector< Atom > &atoms, glm::vec3 position, float cutoff, bool noDirect=false, bool nearestImage=true) const |
| Get the neighbours to a position within a cutoff using the spatial domains. | |
| std::vector< std::pair< uint64_t, float > > | neighboursDirect (const std::vector< Atom > &atoms, glm::vec3 position, float cutoff, bool nearestImage=true) const |
| Get the neighbours to a position within a cutoff by a direct evaluation. | |
Calculate neighbour lists.
Construct a Neighbour list from some Atoms.
| atoms | the Atoms to hash into spatial domains. |
Build the neighbour list from some Atoms.
| atoms | the Atoms to hash into spatial domains. |
|
inline |
Reset the spatial domains.
|
inline |
Get the neighbours to a position within a cutoff using the spatial domains.
| atoms | the Atoms passed to Neighbours::build. |
| position | the position to find neighbours to. |
| cutoff | the spatial cutoff. |
| noDirect | force use of the spatial partitioning. |
| nearestImage | whether to use the nearest image convention. |
|
inline |
Get the neighbours to a position within a cutoff by a direct evaluation.
| atoms | the Atoms passed to Neighbours::build. |
| position | the position to find neighbours to. |
| cutoff | the spatial cutoff. |
| nearestImage | whether to use the nearest image convention. |