ESyS-Particle
4.0.1
|
Public Member Functions | |
CSimple3DNTable (const Vec3 &, const Vec3 &, double, bool xcirc=false, bool ycirc=false, bool zcirc=false) | |
virtual void | getInteractions (set< BasicInteraction, BILess > &, double) |
void | print () |
template<class TmplInteractionValidator > | |
InteractionSet | getInteractions (const TmplInteractionValidator &validator) const |
Protected Member Functions | |
virtual int | index (const Vec3 &) const |
virtual vector< int > | allidx (const Vec3 &) const |
virtual void | insertParticleCircular (SimpleParticle) |
CSimple3DNTable::CSimple3DNTable | ( | const Vec3 & | pos, |
const Vec3 & | dim, | ||
double | r, | ||
bool | xcirc = false , |
||
bool | ycirc = false , |
||
bool | zcirc = false |
||
) |
Constructor
pos | position of the (xmin,ymin,zmin) point |
dim | size of the space |
r | grid spacing |
vector< int > CSimple3DNTable::allidx | ( | const Vec3 & | pos | ) | const [protected, virtual] |
Get all indices to which a particle at a given position will be added.
pos | the position |
Implements ASimpleNTable.
Referenced by insertParticleCircular().
void CSimple3DNTable::getInteractions | ( | set< BasicInteraction, BILess > & | iset, |
double | dmax | ||
) | [virtual] |
Put all interactions into a set
iset | the set into which to put them |
dmax | max distance for the creation of an interaction |
Implements ASimpleNTable.
int CSimple3DNTable::index | ( | const Vec3 & | pos | ) | const [protected, virtual] |
Return the grid index of a position.
pos | the position |
Implements ASimpleNTable.
void CSimple3DNTable::insertParticleCircular | ( | SimpleParticle | cbp | ) | [protected, virtual] |
insert circular images of the particle
cbp | the particle |
Implements ASimpleNTable.
References allidx().