|
ESyS-Particle
2.3.4
|
Abstract base class providing the interface for a simple, serial neighbor table. Used in random initialization. More...
#include <SimpleNTable.h>


Public Member Functions | |
| ASimpleNTable () | |
| virtual | ~ASimpleNTable () |
| 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.
| ASimpleNTable::ASimpleNTable | ( | ) |
|
protectedpure virtual |
Implemented in CSimple3DNTable, and CSimple2DNTable.
Referenced by insertParticle().

| int ASimpleNTable::getClosestParticleID | ( | const Vec3 & | pos | ) | const |
get particle closest to given position
| pos | the position |
References index(), esys::lsm::bpu::iter(), m_data, and m_dim.
Referenced by CRandomBlock2D::tagParticleClosestTo().


|
pure virtual |
Implemented in CSimple3DNTable, and CSimple2DNTable.
Referenced by CRoughPaddedBlock3D::generate(), FaultedBlock2D::generate(), CPaddedBlock3D::generate(), CRandomBlock2D::generate(), CRandomBlock3D::generate(), CSplitBlock2D::generate(), and CSplitBlock3D::generate().

| const vector< SimpleParticle > * ASimpleNTable::getNeighbors | ( | const Vec3 & | pos | ) | const |
get all particles near a given position
| pos | the position |
References index(), and m_data.
Referenced by ARandomAssembly::getClosestNeighbors(), and ARandomAssembly::getNeighborList().


| int ASimpleNTable::getNumInsertedParticles | ( | ) | const |
References m_numInsertedParticles.
|
protectedpure virtual |
Implemented in CSimple3DNTable, and CSimple2DNTable.
Referenced by getClosestParticleID(), and getNeighbors().

| void ASimpleNTable::insertParticle | ( | SimpleParticle | cbp | ) |
Add particle to all neighorlists it belongs to
| cbp | the particle |
References allidx(), SimpleParticle::getPos(), insertParticleCircular(), m_data, and m_numInsertedParticles.
Referenced by CRandomBlock2D::insertParticle(), and CRandomBlock3D::insertParticle().


|
protectedpure virtual |
Implemented in CSimple3DNTable, and CSimple2DNTable.
Referenced by insertParticle().

|
protected |
Referenced by CSimple2DNTable::CSimple2DNTable(), CSimple3DNTable::CSimple3DNTable(), getClosestParticleID(), CSimple2DNTable::getInteractions(), CSimple3DNTable::getInteractions(), getNeighbors(), insertParticle(), CSimple2DNTable::insertParticleCircular(), CSimple3DNTable::insertParticleCircular(), CSimple2DNTable::print(), CSimple3DNTable::print(), and ~ASimpleNTable().
|
protected |
Referenced by CSimple2DNTable::allidx(), CSimple3DNTable::allidx(), CSimple2DNTable::CSimple2DNTable(), CSimple3DNTable::CSimple3DNTable(), getClosestParticleID(), CSimple2DNTable::index(), CSimple3DNTable::index(), CSimple2DNTable::insertParticleCircular(), and CSimple3DNTable::insertParticleCircular().
|
protected |
Referenced by getNumInsertedParticles(), and insertParticle().
|
protected |