46 template<
class T>
class tmp;
48 bool operator==(
const boundBox&,
const boundBox&);
49 bool operator!=(
const boundBox&,
const boundBox&);
52 Ostream&
operator<<(Ostream&,
const boundBox&);
70 void calculate(
const UList<point>&,
const bool doReduce =
true);
77 static const scalar
great;
109 const bool doReduce =
true
115 template<
unsigned Size>
120 const bool doReduce =
true
153 inline scalar
mag()
const;
156 inline scalar
volume()
const;
159 inline scalar
minDim()
const;
162 inline scalar
maxDim()
const;
165 inline scalar
avgDim()
const;
186 inline bool overlaps(
const point&,
const scalar radiusSqr)
const;
208 template<
unsigned Size>
227 template<
unsigned Size>
A 1D vector of objects of type <T> with a fixed size <Size>.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A bounding box defined in terms of the points at its extremities.
point nearest(const point &) const
Return the nearest point on the boundBox to the supplied point.
const point & min() const
Minimum point defining the bounding box.
const point & max() const
Maximum point defining the bounding box.
static const boundBox invertedBox
A very large inverted boundBox: min/max == +/- vGreat.
static const scalar great
The great value used for greatBox and invertedBox.
scalar volume() const
The volume of the bound box.
friend bool operator==(const boundBox &, const boundBox &)
friend bool operator!=(const boundBox &, const boundBox &)
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
static const boundBox greatBox
A very large boundBox: min/max == -/+ vGreat.
static faceList faces()
Return faces with correct point order.
void inflate(const scalar s)
Inflate box by factor*mag(span) in all dimensions.
bool contains(const point &) const
Contains point? (inside or on edge)
friend Ostream & operator<<(Ostream &, const boundBox &)
scalar minDim() const
Smallest length/height/width dimension.
scalar mag() const
The magnitude of the bounding box span.
scalar avgDim() const
Average length/height/width dimension.
bool containsAny(const UList< point > &) const
Contains any of the points? (inside or on edge)
boundBox()
Construct null, setting points to zero.
friend Istream & operator>>(Istream &, boundBox &)
point midpoint() const
The midpoint of the bounding box.
vector span() const
The bounding box span (from minimum to maximum)
scalar maxDim() const
Largest length/height/width dimension.
bool containsInside(const point &) const
Contains point? (inside only)
tmp< pointField > points() const
Return corner points in an order corresponding to a 'hex' cell.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for managing temporary objects.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
bool operator!=(const particle &, const particle &)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
bool contiguous< boundBox >()
Data associated with boundBox type are contiguous.
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)