ESyS-Particle  4.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
CPaddedBlock3D Class Reference

Class for the generation of a 3D lattice with a random middle section in a rectangular area. More...

#include <PaddedBlock3D.h>

Inheritance diagram for CPaddedBlock3D:
Inheritance graph
[legend]
Collaboration diagram for CPaddedBlock3D:
Collaboration graph
[legend]

List of all members.

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)
- 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 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 void insertParticle (const SimpleParticle)
virtual void tagParticleClosestTo (const Vec3 &, int)
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)

Protected Member Functions

virtual Vec3 getAPoint ()
void generate_regular_padding ()

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< PlaneBorders
double m_rmin
double m_rmax
 min/max particle radius
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
bool m_circ_x
- Protected Attributes inherited from ARandomAssembly
ASimpleNTablem_snt
set< BasicInteraction, BILessm_iset
vector< SimpleParticlem_bpart

Detailed Description

Class for the generation of a 3D lattice with a random middle section in a rectangular area.

Author:
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

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

Parameters:
xminminimum in x-direction
xmaxmaximum in x-direction
yminminimum in y-direction
ymaxmaximum in y-direction
zminminimum in z-direction
zmaxmaximum in z-direction
rminminimum particle radius
rmaxmaximum particle radius

Member Function Documentation

void CPaddedBlock3D::generate ( int  tries,
unsigned int  seed 
)
virtual

Fill the space in the block

Parameters:
triesnumber of times the insertion of a particle is tried
seedseed 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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

Vec3 CPaddedBlock3D::getAPoint ( )
protectedvirtual

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.

Here is the call graph for this function:


The documentation for this class was generated from the following files: