ESyS-Particle
4.0.1
|
Abstract base class for random assemblies, to be used for initialization of random lattices. More...
#include <ARandomAssembly.h>
Public Member Functions | |
virtual void | generate (int, unsigned int)=0 |
virtual void | insertParticle (const SimpleParticle)=0 |
virtual void | tagParticleClosestTo (const Vec3 &, int)=0 |
virtual void | tagEdgeY (int, int, double)=0 |
virtual void | tagEdgeZ (int, int, double)=0 |
virtual void | tagSplit (int, int, double) |
virtual void | writeToGeoFile (const string &)=0 |
virtual void | writeToVtkFile (const string &) |
virtual double | calcPorosity ()=0 |
virtual vector< pair< double, double > > | getSizeDistribution (int)=0 |
Protected Member Functions | |
double | m_random (double, double) |
vector< SimpleParticle > | getNeighborList (const SimpleParticle &) |
vector< SimpleParticle > | get3ClosestNeighbors (const SimpleParticle &, const vector< SimpleParticle > &) |
vector< SimpleParticle > | getClosestNeighbors (const SimpleParticle &, int) |
SimpleParticle | getClosestParticle (const SimpleParticle &, const vector< SimpleParticle > &) |
Protected Attributes | |
ASimpleNTable * | m_snt |
set< BasicInteraction, BILess > | m_iset |
vector< SimpleParticle > | m_bpart |
Static Protected Attributes | |
static double | m_small_value = 1e-7 |
Abstract base class for random assemblies, to be used for initialization of random lattices.
|
protected |
Get the 3 clostest neighbors of a particle (sorted)
Po | the particle |
NL | the list of neighbors |
|
protected |
Get the n closest neighbors of a particle (sorted)
Po | the particle |
n | max nr. or neighbours returned |
References ASimpleNTable::getNeighbors().
Referenced by ARandomAssembly3D::fillSpace(), and ARandomAssembly2D::fillSpace().
|
protected |
get particle closest to a particle (on surface separation)
Po | the particle |
NL | the list of neighbors |
|
protected |
get the list of neighbors of a particle
Po | the Particle |
References ASimpleNTable::getNeighbors().
Referenced by ARandomAssembly3D::checkAFit(), and ARandomAssembly2D::checkAFit().
|
protected |
helper function, return random value between min & max
Referenced by ARandomAssembly3D::fillSpace(), ARandomAssembly2D::fillSpace(), CSplitBlock3D::generate(), CPaddedBlock3D::generate(), CRandomBlock2D::generate(), FaultedBlock2D::generate(), CRoughPaddedBlock3D::generate(), CRandomBlock3D::generate(), CPaddedBlock3D::getAPoint(), CRandomBlock2D::getAPoint(), FaultedBlock2D::getAPoint(), CRandomBlock3D::getAPoint(), and CRoughPaddedBlock3D::setRoughness().