11 #ifndef _PARTICLEDATA_H_ 12 #define _PARTICLEDATA_H_ 24 #include "NamespaceHeader.H" 28 boxids(
const unsigned id,
const unsigned pi)
50 const IntVect bin(
D_DECL6((
int)floor((a_x[0] - a_origin[0])/a_dx[0]),
51 (
int)floor((a_x[1] - a_origin[1])/a_dx[1]),
52 (
int)floor((a_x[2] - a_origin[2])/a_dx[2]),
53 (
int)floor((a_x[3] - a_origin[3])/a_dx[3]),
54 (
int)floor((a_x[4] - a_origin[4])/a_dx[4]),
55 (
int)floor((a_x[5] - a_origin[5])/a_dx[5])));
84 const int& a_fixedBoxSize,
91 const int& a_fixedBoxSize,
104 size_t numParticlesLocal()
const;
109 size_t numParticles()
const;
114 size_t numValidLocal()
const;
119 size_t numValid()
const;
124 size_t numOutcastLocal()
const;
129 size_t numOutcast()
const;
136 bool isClosed()
const;
142 const RealVect& meshSpacing()
const;
148 const int& fixedBoxSize()
const;
153 void gatherOutcast();
176 const int a_numGhost)
const;
178 bool isDefined()
const;
182 void allocateVector();
200 if (a[0]>b[0])
return true;
201 else if (a[0]<b[0])
return false;
203 if (a[1]>b[1])
return true;
204 else if (a[1]<b[1])
return false;
206 if (a[2]>b[2])
return true;
207 else if (a[2]<b[2])
return false;
209 if (a[3]>b[3])
return true;
210 else if (a[3]<b[3])
return false;
212 if (a[4]>b[4])
return true;
213 else if (a[4]<b[4])
return false;
215 if (a[5]>b[5])
return true;
216 else if (a[5]<b[5])
return false;
244 const int a_refRatio,
245 const bool a_flip=
false,
254 const int a_refRatio,
255 const bool a_flip=
false,
259 #include "NamespaceFooter.H" #define D_DECL6(a, b, c, d, e, f)
Definition: CHArray.H:39
boxids()
Definition: ParticleData.H:34
void operator=(const boxids &bi)
Definition: ParticleData.H:37
IntVect locateBin(const RealVect a_x, const RealVect a_dx, const RealVect a_origin)
compute the cell index containing the physical position of the item
Definition: ParticleData.H:47
unsigned idx
Definition: ParticleData.H:42
#define D_TERM6(a, b, c, d, e, f)
Definition: CHArray.H:40
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
boxids(const unsigned id, const unsigned pi)
Definition: ParticleData.H:28
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:145
Data that maintains a one-to-one mapping of T to the boxes in a BoxLayout.
Definition: BoxLayout.H:26
void collectValidParticles(List< P > &a_partValid, ParticleData< P > &a_PD, const LevelData< BaseFab< bool > > *a_mask, const RealVect a_meshSpacing, const int a_refRatio, const bool a_flip=false, const RealVect a_origin=RealVect(D_DECL6(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)))
Definition: ParticleDataI.H:28
boxids(const boxids &bi)
Definition: ParticleData.H:31
ProblemDomain m_physDomain
Definition: ParticleData.H:187
void getBoxes(Vector< Vector< Box > > &a_boxes, Vector< int > &a_refRat, const Box &a_domain)
RealVect m_origin
Definition: ParticleData.H:189
#define CH_TIME(name)
Definition: CH_Timer.H:82
bool m_isDefined
Definition: ParticleData.H:192
new code
Definition: BoxLayoutData.H:170
List< P > m_outcast
Definition: ParticleData.H:186
Definition: ParticleData.H:195
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
RealVect m_meshSpacing
Definition: ParticleData.H:188
unsigned pid
Definition: ParticleData.H:43
Definition: ParticleData.H:26
int m_fixedBoxSize
Definition: ParticleData.H:190
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: ParticleData.H:67
ListBoxFactory< P > m_factory
Definition: ParticleData.H:191