ESyS-Particle
4.0.1
|
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 void | generate (int, unsigned int) |
Protected Member Functions | |
virtual Vec3 | getAPoint () |
void | generate_regular_padding () |
Protected Attributes | |
double | m_pad_size |
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 |
void CPaddedBlock3D::generate | ( | int | tries, |
unsigned int | seed | ||
) | [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.
Reimplemented in CRoughPaddedBlock3D.
References ARandomAssembly3D::checkAFit(), ARandomAssembly3D::fillSpace(), generate_regular_padding(), CRandomBlock3D::insertParticle(), ARandomAssembly::m_random(), ARandomAssembly3D::m_rmax, and ARandomAssembly3D::m_zmax.
void CPaddedBlock3D::generate_regular_padding | ( | ) | [protected] |
generate regular padding sections
References ARandomAssembly3D::checkAFit(), CRandomBlock3D::insertParticle(), ARandomAssembly3D::m_rmax, and ARandomAssembly3D::m_zmax.
Referenced by generate(), and CRoughPaddedBlock3D::generate().
Vec3 CPaddedBlock3D::getAPoint | ( | ) | [protected, virtual] |
Generate a random point within the space of the random part of the block
Reimplemented from CRandomBlock3D.
References ARandomAssembly::m_random(), and ARandomAssembly3D::m_zmax.