32 " has been provided. \n";
42 "invalid/repeated axis names in axisOrder. This is provided: " <<
axisOrder_ <<
endl;
46 std::array<realx3,3> uV;
52 uV[i] =
realx3(1.0, 0.0, 0.0);
56 uV[i] =
realx3(0.0, 1.0, 0.0);
60 uV[i] =
realx3(0.0, 0.0, 1.0);
65 "unknown name for axis in axisOrder: " << ca <<
endl;
83 const auto& region = pRegion();
84 auto minP = region.minPoint();
85 auto maxP = region.maxPoint();
90 while(
n < numPoints_ )
92 if(region.isInside(cntr))
94 position_.push_back(cntr);
100 if(
dot(uVector1_, cntr) >
dot(uVector1_, maxP) )
102 cntr = (minP*uVector1_) + ( (cntr+dl) * uVector2_) + (cntr*uVector3_);
104 if(
dot(uVector2_, cntr) >
dot(uVector2_, maxP) )
106 cntr = (cntr*uVector1_) + (minP*uVector2_) + ((cntr+dl)*uVector3_);
108 if(
dot(uVector3_,cntr) >
dot(uVector3_, maxP) )
111 "positioned " <<
n <<
" points in the domain and it is full. \n" <<
112 "request to position "<< numPoints_<<
" points has failed.\n";
136 poDict_.getVal<
real>(
"diameter")
140 poDict_.getVal<
uint64>(
"numPoints")
144 poDict_.getValOrSet(
"axisOrder",
wordList{
"x",
"y",
"z"})
149 max(maxNumberOfParticles(), numPoints_),
155 if( !findAxisIndex() )
160 if(!positionPointsOrdered())