|
ESyS-Particle
2.3.4
|
Class for the generation of a 3D random lattice in a rectangular area. More...
#include <RandomBlock3D.h>


Public Member Functions | |
| CRandomBlock3D (double, double, double, double, double, double, double, double, double, bool, bool is_bonded=true) | |
| virtual | ~CRandomBlock3D () |
| virtual void | generate (int, unsigned int) |
| virtual void | insertParticle (const SimpleParticle) |
| virtual void | tagEdgeY (int, int, double) |
| virtual void | tagEdgeZ (int, int, double) |
| virtual void | writeToGeoFile (const string &) |
| virtual double | calcPorosity () |
| virtual vector< pair< double, double > > | getSizeDistribution (int) |
Public Member Functions inherited from ARandomAssembly3D | |
| virtual void | tagParticleClosestTo (const Vec3 &, int)=0 |
Public Member Functions inherited from ARandomAssembly | |
| virtual | ~ARandomAssembly () |
| virtual void | tagSplit (int, int, double) |
| virtual void | writeToVtkFile (const string &) |
Protected Member Functions | |
| virtual Vec3 | getAPoint () |
| virtual int | getNParts () const |
Protected Member Functions inherited from ARandomAssembly3D | |
| bool | findAFit (SimpleParticle &, const vector< SimpleParticle > &) |
| bool | findAFit (SimpleParticle &, const vector< SimpleParticle > &, const Plane3D &) |
| virtual bool | checkAFit (const SimpleParticle &) |
| virtual Plane3D | getClosestPlane (const SimpleParticle &) |
| void | fillSpace (int) |
Protected Member Functions inherited from ARandomAssembly | |
| 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 | |
| double | m_maxConnDist |
Protected Attributes inherited from ARandomAssembly3D | |
| vector< Plane3D > | Borders |
| double | m_rmin |
| double | m_rmax |
| min/max particle radius More... | |
| double | m_xmin |
| double | m_xmax |
| double | m_ymin |
| double | m_ymax |
| double | m_zmin |
| double | m_zmax |
| x,y,z borders of the lattice More... | |
| bool | m_circ_x |
Protected Attributes inherited from ARandomAssembly | |
| ASimpleNTable * | m_snt |
| set< BasicInteraction, BILess > | m_iset |
| vector< SimpleParticle > | m_bpart |
Private Attributes | |
| bool | m_is_bonded |
Additional Inherited Members | |
Static Protected Attributes inherited from ARandomAssembly | |
| static double | m_small_value =1e-7 |
Class for the generation of a 3D random lattice in a rectangular area.
| CRandomBlock3D::CRandomBlock3D | ( | double | xmin, |
| double | xmax, | ||
| double | ymin, | ||
| double | ymax, | ||
| double | zmin, | ||
| double | zmax, | ||
| double | rmin, | ||
| double | rmax, | ||
| double | mcd, | ||
| bool | circ_x, | ||
| bool | is_bonded = true |
||
| ) |
Constructor of CRandomBlock
| xmin | minimum in x-direction |
| xmax | maximum in x-direction |
| ymin | minimum in y-direction |
| ymax | maximum in y-direction |
| zmin | minimum in z-direction |
| zmax | maximum in z-direction |
| rmin | minimum particle radius |
| rmax | maximum particle radius |
| mcd | maximum relative distance for bond generation |
References ARandomAssembly3D::Borders, ARandomAssembly3D::m_circ_x, m_is_bonded, m_maxConnDist, ARandomAssembly3D::m_rmax, ARandomAssembly3D::m_rmin, ARandomAssembly::m_snt, ARandomAssembly3D::m_xmax, ARandomAssembly3D::m_xmin, ARandomAssembly3D::m_ymax, ARandomAssembly3D::m_ymin, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.
|
virtual |
References ARandomAssembly::m_snt, and NULL.
|
virtual |
calculate the porosity of the material
Implements ARandomAssembly.
References console, Console::Info(), esys::lsm::bpu::iter(), ARandomAssembly::m_bpart, ARandomAssembly3D::m_xmax, ARandomAssembly3D::m_xmin, ARandomAssembly3D::m_ymax, ARandomAssembly3D::m_ymin, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.

|
virtual |
Fill the space in the block
| tries | number of times the insertion of a particle is tried |
| seed | seed for the random number generator |
Implements ARandomAssembly3D.
Reimplemented in CSplitBlock3D, and CPaddedBlock3D.
References ARandomAssembly3D::checkAFit(), ARandomAssembly3D::fillSpace(), ASimpleNTable::getInteractions(), getNParts(), insertParticle(), m_is_bonded, ARandomAssembly::m_iset, m_maxConnDist, ARandomAssembly::m_random(), ARandomAssembly3D::m_rmax, ARandomAssembly3D::m_rmin, ARandomAssembly::m_snt, ARandomAssembly3D::m_xmax, ARandomAssembly3D::m_xmin, ARandomAssembly3D::m_ymax, ARandomAssembly3D::m_ymin, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.

|
protectedvirtual |
Generate a random point within the space of the block
Implements ARandomAssembly3D.
Reimplemented in CPaddedBlock3D.
References ARandomAssembly::m_random(), ARandomAssembly3D::m_rmin, ARandomAssembly3D::m_xmax, ARandomAssembly3D::m_xmin, ARandomAssembly3D::m_ymax, ARandomAssembly3D::m_ymin, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.

|
inlineprotectedvirtual |
Implements ARandomAssembly3D.
References ARandomAssembly::m_bpart.
Referenced by CRoughPaddedBlock3D::generate(), CPaddedBlock3D::generate(), generate(), CSplitBlock3D::generate(), and CPaddedBlock3D::generate_regular_padding().

|
virtual |
return a histogram of the particle size distribution
| nbins | number of bins |
Implements ARandomAssembly.
|
virtual |
Insert a particle into the internal structures
| P | the particle |
Implements ARandomAssembly3D.
References ASimpleNTable::insertParticle(), ARandomAssembly::m_bpart, and ARandomAssembly::m_snt.
Referenced by CRoughPaddedBlock3D::generate(), CPaddedBlock3D::generate(), generate(), CSplitBlock3D::generate(), and CPaddedBlock3D::generate_regular_padding().


|
virtual |
Tag particle closest to a given position
| pos | the position |
| tag | the tag |
Tag particles along xz-edges
| tag1 | tag for particles along y_min |
| tag2 | tag for particles along y_max |
| d | maximum distance from the edge at which a particle gets tagged |
Implements ARandomAssembly3D.
References esys::lsm::bpu::iter(), ARandomAssembly::m_bpart, ARandomAssembly3D::m_ymax, and ARandomAssembly3D::m_ymin.

|
virtual |
Tag particles along xy-edges
| tag1 | tag for particles along z_min |
| tag2 | tag for particles along z_max |
| d | maximum distance from the edge at which a particle gets tagged |
Implements ARandomAssembly3D.
References esys::lsm::bpu::iter(), ARandomAssembly::m_bpart, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.

|
virtual |
Write the particles contained in the random block into a LSM geometry file v 1.2
| filename | the name of the file |
Implements ARandomAssembly.
References esys::lsm::bpu::iter(), ARandomAssembly::m_bpart, ARandomAssembly3D::m_circ_x, ARandomAssembly::m_iset, ARandomAssembly3D::m_xmax, ARandomAssembly3D::m_xmin, ARandomAssembly3D::m_ymax, ARandomAssembly3D::m_ymin, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.

|
private |
Referenced by CRandomBlock3D(), and generate().
|
protected |
Referenced by CRandomBlock3D(), and generate().