ESyS-Particle
4.0.1
|
Abstract base class providing the interface for a simple, serial neighbor table. Used in random initialization. More...
#include <SimpleNTable.h>
Public Member Functions | |
int | getNumInsertedParticles () const |
const vector< SimpleParticle > * | getNeighbors (const Vec3 &) const |
int | getClosestParticleID (const Vec3 &) const |
virtual void | getInteractions (set< BasicInteraction, BILess > &, double)=0 |
void | insertParticle (SimpleParticle) |
Protected Member Functions | |
virtual int | index (const Vec3 &) const =0 |
virtual vector< int > | allidx (const Vec3 &) const =0 |
virtual void | insertParticleCircular (SimpleParticle)=0 |
Protected Attributes | |
vector< SimpleParticle > * | m_data |
Vec3 | m_p0 |
double | m_dim |
int | m_numInsertedParticles |
Abstract base class providing the interface for a simple, serial neighbor table. Used in random initialization.
int ASimpleNTable::getClosestParticleID | ( | const Vec3 & | pos | ) | const |
get particle closest to given position
pos | the position |
Referenced by CRandomBlock2D::tagParticleClosestTo().
const vector< SimpleParticle > * ASimpleNTable::getNeighbors | ( | const Vec3 & | pos | ) | const |
get all particles near a given position
pos | the position |
Referenced by ARandomAssembly::getClosestNeighbors(), and ARandomAssembly::getNeighborList().
void ASimpleNTable::insertParticle | ( | SimpleParticle | cbp | ) |
Add particle to all neighorlists it belongs to
cbp | the particle |
Referenced by CRandomBlock2D::insertParticle(), and CRandomBlock3D::insertParticle().