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


Public Member Functions | |
| CPaddedBlock3D (double, double, double, double, double, double, double, double, double, double, int, bool circ_x=false) | |
| virtual | ~CPaddedBlock3D () |
| virtual void | generate (int, unsigned int) |
Public Member Functions inherited from CSplitBlock3D | |
| CSplitBlock3D (double, double, double, double, double, double, double, double, double, int, bool circ_x=false, bool rough=false) | |
| virtual | ~CSplitBlock3D () |
| virtual void | tagSplit (int, int, double) |
Public Member Functions inherited from CRandomBlock3D | |
| CRandomBlock3D (double, double, double, double, double, double, double, double, double, bool, bool is_bonded=true) | |
| virtual | ~CRandomBlock3D () |
| 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 | writeToVtkFile (const string &) |
Protected Member Functions | |
| virtual Vec3 | getAPoint () |
| void | generate_regular_padding () |
Protected Member Functions inherited from CRandomBlock3D | |
| 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_pad_size |
Protected Attributes inherited from CSplitBlock3D | |
| double | m_ysplit |
| int | m_dir |
Protected Attributes inherited from CRandomBlock3D | |
| 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 |
Additional Inherited Members | |
Static Protected Attributes inherited from ARandomAssembly | |
| static double | m_small_value =1e-7 |
Class for the generation of a 3D lattice with a random middle section in a rectangular area.
| CPaddedBlock3D::CPaddedBlock3D | ( | double | xmin, |
| double | xmax, | ||
| double | ymin, | ||
| double | ymax, | ||
| double | zmin, | ||
| double | zmax, | ||
| double | rmin, | ||
| double | rmax, | ||
| double | ysplit, | ||
| double | pad, | ||
| int | dir, | ||
| bool | circ_x = false |
||
| ) |
Constructor of CPaddedBlock3d
| 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 |
References m_pad_size.
|
inlinevirtual |
|
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 |
Reimplemented from CSplitBlock3D.
References ARandomAssembly3D::checkAFit(), ARandomAssembly3D::fillSpace(), generate_regular_padding(), ASimpleNTable::getInteractions(), CRandomBlock3D::getNParts(), CRandomBlock3D::insertParticle(), esys::lsm::bpu::iter(), ARandomAssembly::m_bpart, CSplitBlock3D::m_dir, ARandomAssembly::m_iset, m_pad_size, ARandomAssembly::m_random(), ARandomAssembly3D::m_rmax, ARandomAssembly3D::m_rmin, ARandomAssembly::m_snt, ARandomAssembly3D::m_xmax, ARandomAssembly3D::m_xmin, ARandomAssembly3D::m_ymax, ARandomAssembly3D::m_ymin, CSplitBlock3D::m_ysplit, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.

|
protected |
generate regular padding sections
References ARandomAssembly3D::checkAFit(), CRandomBlock3D::getNParts(), CRandomBlock3D::insertParticle(), CSplitBlock3D::m_dir, m_pad_size, ARandomAssembly3D::m_rmax, ARandomAssembly3D::m_xmax, ARandomAssembly3D::m_xmin, ARandomAssembly3D::m_ymax, ARandomAssembly3D::m_ymin, ARandomAssembly3D::m_zmax, and ARandomAssembly3D::m_zmin.
Referenced by CRoughPaddedBlock3D::generate(), and generate().


|
protectedvirtual |
Generate a random point within the space of the random part of the block
Reimplemented from CRandomBlock3D.
References CSplitBlock3D::m_dir, m_pad_size, 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.

|
protected |
Referenced by CPaddedBlock3D(), CRoughPaddedBlock3D::generate(), generate(), generate_regular_padding(), and getAPoint().