Go to the documentation of this file.
76 (octant & RIGHTHALF) ?
max().
x() :
min().
x(),
77 (octant & TOPHALF) ?
max().
y() :
min().
y(),
78 (octant & FRONTHALF) ?
max().z() :
min().z()
86 return subOctant(centre(), pt);
100 if (pt.
x() > mid.
x())
105 if (pt.
y() > mid.
y())
110 if (pt.
z() > mid.
z())
127 return subOctant(centre(), pt, onEdge);
143 if (pt.
x() > mid.
x())
147 else if (pt.
x() == mid.
x())
152 if (pt.
y() > mid.
y())
156 else if (pt.
y() == mid.
y())
161 if (pt.
z() > mid.
z())
165 else if (pt.
z() == mid.
z())
189 if (pt.
x() > mid.
x())
193 else if (pt.
x() == mid.
x())
202 if (pt.
y() > mid.
y())
206 else if (pt.
y() == mid.
y())
215 if (pt.
z() > mid.
z())
219 else if (pt.
z() == mid.
z())
240 vector dist = centre() - pt;
266 if (dist.
x() < dist.
y())
268 if (dist.
y() < dist.
z())
274 else if (dist.
z() < dist.
x())
289 if (dist.
z() < dist.
y())
295 else if (dist.
x() < dist.
z())
310 octantOrder[0] = octant;
312 octantOrder[1] = octant ^
min;
313 octantOrder[2] = octant ^ mid;
314 octantOrder[3] = octant ^
max;
316 octantOrder[4] = octantOrder[1] ^ mid;
317 octantOrder[5] = octantOrder[1] ^
max;
318 octantOrder[6] = octantOrder[2] ^
max;
320 octantOrder[7] = octantOrder[4] ^
max;
339 newSpan[dir] =
Foam::max(newSpan[dir], minSpan);
const Cmpt & x() const
Access to the vector x component.
treeBoundBox extend(Random &rndGen, const scalar s) const
Return slightly wider bounding box.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
Type sample01()
Return a sample whose components lie in the range [0,1].
Standard boundBox with extra functionality for use in octree.
const point & max() const
Maximum describing the bounding box.
treeBoundBox()
Construct without any points - an inverted bounding box.
const Cmpt & z() const
Access to the vector z component.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
const point & min() const
Minimum describing the bounding box.
vector span() const
The bounding box span (from minimum to maximum)
bool operator!=(const eddy &a, const eddy &b)
point corner(const direction octant) const
Corner point of given octant.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalar typDim() const
Typical dimension length,height,width.
void searchOrder(const point &pt, FixedList< direction, 8 > &octantOrder) const
Calculates optimal order to look for nearest to point.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
const Cmpt & y() const
Access to the vector y component.
direction subOctant(const point &pt) const
Returns octant number given point and the calculated midpoint.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A 1D vector of objects of type <T> with a fixed length <N>.
A bounding box defined in terms of min/max extrema points.
vector point
Point is a vector.
static constexpr direction nComponents
Number of components in this vector space.