38 point::uniform(-ROOTVGREAT),
39 point::uniform(ROOTVGREAT)
44 point::uniform(ROOTVGREAT),
45 point::uniform(-ROOTVGREAT)
121 auto& pt = tpt.ref();
124 pt[1] =
point(max_.x(), min_.y(), min_.z());
125 pt[2] =
point(max_.x(), max_.y(), min_.z());
126 pt[3] =
point(min_.x(), max_.y(), min_.z());
127 pt[4] =
point(min_.x(), min_.y(), max_.z());
128 pt[5] =
point(max_.x(), min_.y(), max_.z());
130 pt[7] =
point(min_.x(), max_.y(), max_.z());
139 auto& pts = tpts.ref();
143 pts[facei] = faceCentre(facei);
157 <<
"face should be [0..5]"
163 case 0: pt.
x() =
min().x();
break;
164 case 1: pt.
x() =
max().x();
break;
165 case 2: pt.
y() =
min().y();
break;
166 case 3: pt.
y() =
max().y();
break;
167 case 4: pt.
z() =
min().z();
break;
168 case 5: pt.
z() =
max().z();
break;
212 const auto& pts = tpts();
214 for (
const point&
p : pts)
226 return (above && below);
275 return point(surfPtx, surfPty, surfPtz);
291 reinterpret_cast<const char*
>(&bb.min_),
305 is >> bb.min_ >> bb.max_;
309 Detail::readContiguous<boundBox>
312 reinterpret_cast<char*
>(&bb.min_),
Inter-processor communication reduction functions.
A 1D vector of objects of type <T> with a fixed length <N>.
streamFormat format() const noexcept
Get the current stream format.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
A bounding box defined in terms of min/max extrema points.
void reduce()
Parallel reduction of min/max values.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
bool contains(const point &pt) const
Contains point? (inside or on edge)
static const boundBox greatBox
A large boundBox: min/max == -/+ ROOTVGREAT.
void add(const boundBox &bb)
Extend to include the second box.
void inflate(const scalar s)
Inflate box by factor*mag(span) in all dimensions.
tmp< pointField > faceCentres() const
Face midpoints.
boundBox()
Construct without any points - an inverted bounding box.
static const FixedList< vector, 6 > faceNormals
The unit normal per face.
bool intersects(const plane &pln) const
Does plane intersect this bounding box.
static const faceList faces
Faces to point addressing, as per a 'hex' cell.
bool intersect(const boundBox &bb)
Intersection (union) with the second box.
point centre() const
The centre (midpoint) of the bounding box.
bool containsAny(const UList< point > &points) const
Contains any of the points? (inside or on edge)
tmp< pointField > points() const
Corner points in an order corresponding to a 'hex' cell.
const point & faceCentre() const noexcept
Returns the centre of the cutting PLICface.
label nearest() const
The nearest control point, or -1 if invalid.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
side sideOfPlane(const point &p) const
Return the side of the plane that the point is on.
@ FRONT
The front (positive normal) side of the plane.
A class for managing temporary objects.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
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))
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
vector point
Point is a vector.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
Istream & operator>>(Istream &, directionInfo &)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
#define forAll(list, i)
Loop across all elements in list.