34 " has been provided. \n";
44 "invalid/repeated axis names in axisOrder. This is provided: " <<
axisOrder_ <<
endl;
54 uV[i] =
realx3(1.0, 0.0, 0.0);
58 uV[i] =
realx3(0.0, 1.0, 0.0);
62 uV[i] =
realx3(0.0, 0.0, 1.0);
67 "unknown name for axis in axisOrder: " << ca <<
endl;
85 auto minP = region_->minPoint();
86 auto maxP = region_->maxPoint();
91 while(
n < numPoints_ )
93 if(region_->isInside(cntr))
95 position_.push_back(cntr);
101 if(
dot(uVector1_, cntr) >
dot(uVector1_, maxP) )
103 cntr = (minP*uVector1_) + ( (cntr+dl) * uVector2_) + (cntr*uVector3_);
105 if(
dot(uVector2_, cntr) >
dot(uVector2_, maxP) )
107 cntr = (cntr*uVector1_) + (minP*uVector2_) + ((cntr+dl)*uVector3_);
109 if(
dot(uVector3_,cntr) >
dot(uVector3_, maxP) )
112 "positioned " <<
n <<
" points in the domain and it is full. \n" <<
113 "request to position "<< numPoints_<<
" points has failed.\n";
132 dict.
subDict(
"positionOrderedInfo")
136 poDict_.getVal<
real>(
"diameter")
140 poDict_.getVal<
size_t>(
"numPoints")
144 poDict_.getValOrSet(
"axisOrder",
wordList{
"x",
"y",
"z"})
148 maxNumberOfParticles_,
RESERVE()
152 if( !findAxisIndex() )
159 fatalErrorInFunction<<
"You must provided a region (box, cylinder, ...) for positioning particles in dictionary "<<
164 if(!positionPointsOrdered())