Go to the documentation of this file.
14 #ifndef ESYS_LSMCLOSEPACKBLOCK_HPP
15 #define ESYS_LSMCLOSEPACKBLOCK_HPP
24 template <
typename TmplClosePackIterator,
typename TmplParticle>
33 m_dimCounts(numX, numY, numZ),
34 m_orientation(orientation)
38 template <
typename TmplClosePackIterator,
typename TmplParticle>
39 template <
typename TmplParticleCollection>
42 TmplParticleCollection &particleCollection
52 ((m_orientation ==
DEFAULT_ORIENT) && (m_dimCounts[2] <= 1)) ?
XYZ : m_orientation
57 particleCollection.createParticle(
69 template <
typename TmplClosePackIterator,
typename TmplParticle>
74 template <
typename TmplClosePackIterator,
typename TmplParticle>
86 template <
typename TmplClosePackIterator,
typename TmplParticle>
95 m_generator(numX, numY, numZ, radius)
100 template <
typename TmplClosePackIterator,
typename TmplParticle>
105 template <
typename TmplClosePackIterator,
typename TmplParticle>
108 m_generator.createParticles(*
this);
111 template <
typename TmplClosePackIterator,
typename TmplParticle>
114 return m_generator.getRadius();
ClosePackBlock(unsigned int numX, unsigned int numY, unsigned int numZ, double radius=0.5, ClosePackOrientation orientation=DEFAULT_ORIENT)
Definition: ClosePackBlock.hpp:87
void createParticles()
Definition: ClosePackBlock.hpp:106
Definition: CubicBlockIterator.h:32
virtual ~ClosePackBlock()
Definition: ClosePackBlock.hpp:101
double getRadius() const
Definition: ClosePackBlock.hpp:112
bool hasNext() const
Definition: ClosePackIterator.hpp:148
Definition: CheckPointable.cpp:17
ClosePackBlockGenerator(unsigned int numX, unsigned int numY, unsigned int numZ, double radius=0.5, ClosePackOrientation orientation=DEFAULT_ORIENT)
Definition: ClosePackBlock.hpp:25
double getRadius() const
Definition: ClosePackBlock.hpp:75
Vec3 next()
Definition: ClosePackIterator.hpp:183
virtual ~ClosePackBlockGenerator()
Definition: ClosePackBlock.hpp:70
@ XYZ
Definition: ClosePackOrientation.h:28
ClosePackOrientation
Definition: ClosePackOrientation.h:26
@ DEFAULT_ORIENT
Definition: ClosePackOrientation.h:27
Definition: ParticleCollection.h:35
void createParticles(TmplParticleCollection &particleCollection)
Definition: ClosePackBlock.hpp:41