GenGeo  1.1
HGrainGenerator2D Class Reference

#include <HGrainGenerator.h>

Inheritance diagram for HGrainGenerator2D:
Collaboration diagram for HGrainGenerator2D:

Public Member Functions

 HGrainGenerator2D ()
 HGrainGenerator2D (double)
virtual ~HGrainGenerator2D ()
virtual void generatePacking (AVolume2D *, MNTable2D *, int, int)
- Public Member Functions inherited from AGenerator2D
virtual ~AGenerator2D ()

Protected Attributes

double m_rad

Friends

ostream & operator<< (ostream &, const HGrainGenerator2D &)

Detailed Description

class the generate hexagonal grains on a regular base lattice

Constructor & Destructor Documentation

HGrainGenerator2D::HGrainGenerator2D ( )
HGrainGenerator2D::HGrainGenerator2D ( double  rad)

constructor

Parameters
radparticle radius

References m_rad.

HGrainGenerator2D::~HGrainGenerator2D ( )
virtual

destructor - do nothing

Member Function Documentation

void HGrainGenerator2D::generatePacking ( AVolume2D vol,
MNTable2D ntable,
int  gid,
int  tag 
)
virtual

generate packing

Parameters
vola pointer to the volume in which the packing is generated
ntablea pointer to the neighbour table used
gidparticle group id
tagthe particle tag

Implements AGenerator2D.

References MNTable2D::generateBondsWithMask(), AVolume::getBoundingBox(), MNTable2D::insert(), m_rad, MNTable2D::removeTagged(), Sphere::setTag(), and MNTable2D::tagParticlesNear().

Referenced by exportHGrainGenerator2D(), and main().

Here is the call graph for this function:

Friends And Related Function Documentation

ostream& operator<< ( ostream &  ost,
const HGrainGenerator2D T 
)
friend

Member Data Documentation

double HGrainGenerator2D::m_rad
protected

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