53 bool operator==(
const boundSphere&,
const boundSphere&);
54 bool operator!=(
const boundSphere&,
const boundSphere&);
57 Ostream&
operator<<(Ostream&,
const boundSphere&);
77 template<
class Po
intList>
79 typename std::conditional
81 std::is_base_of<UList<point>, PointList>::value,
83 typename std::conditional
85 std::is_base_of<UIndirectList<point>, PointList>::value,
103 template<
class Po
intList>
104 class LocalAndRemotePoints
106 const PointList& locals_;
114 inline LocalAndRemotePoints(
const PointList& locals)
119 inline label nRemotes()
const
121 return remotes_.
size();
124 inline const point& operator[](
const label i)
const
129 : remotes_[i - locals_.size()].
data;
137 : remotes_[i - locals_.size()];
143 return remoteTable_.
found(
r);
149 if (remoteTable_.
found(rp))
return remoteTable_[rp];
150 return insertNoCheck(rp);
157 return locals_.size() + remotes_.
size();
171 template<
class Po
intList>
172 static inline PointUList<PointList> pointUList(
const PointList&);
178 template<
class Remote>
182 struct implementation
186 template<
class Po
intList>
195 template<
class Po
intList>
206 template<
class Po
intList>
214 template<
class Po
intList,
class DLPermutation>
221 const label nBoundaryPs
227 template<
class Po
intList>
238 template<
class Po
intList>
275 inline const point&
c()
const;
278 inline scalar
rSqr()
const;
281 inline scalar
r()
const;
284 inline bool valid()
const;
290 inline void inflate(
const scalar
s);
299 template<
class Po
intList>
308 template<
class Po
intList>
317 template<
class Po
intList>
328 template<
class Po
intList>
336 template<
class Po
intList>
346 template<
class Po
intList>
355 template<
class Po
intList>
365 template<
class Po
intList>
375 template<
class Po
intList>
386 template<
class Po
intList>
390 const bool strict =
false
396 template<
class Po
intList>
401 const bool strict =
false
407 template<
class Po
intList>
412 const bool strict =
false
418 template<
class Po
intList>
424 const bool strict =
false
A bi-directional constant iterator.
A permutation stored in the same manner as a doubly-linked list in order to facilitate reordering in ...
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
An STL-conforming hash table.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
bool found(const Key &) const
Return true if hashedEntry is found in table.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Struct for keeping processor, element (cell, face, point) and a piece of data. Used for finding minim...
A 2-tuple for storing two objects of different types.
A List with indirect addressing.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
T * data()
Return a pointer to the first data element,.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
static direction size()
Return the number of elements in the VectorSpace = Ncmpts.
The smallest sphere enclosing a given set of points.
boundSphere()
Construct a null/invalid sphere.
static bool overlap(const boundSphere &a, const boundSphere &b)
Return whether two spheres overlap.
bool valid() const
Return whether this sphere is valid.
scalar r() const
Return the radius.
static boundSphere trivial(const PointList &ps, const FixedList< label, 4 > &pis, const label nPs)
Return the sphere bounding the given set of up to four points.
static boundSphere bruteForce(const PointList &ps)
Return the sphere bounding the given set of points using an.
static boundSphere crSqr(const point &c, const scalar rSqr)
Construct given a point and a radius squared.
void inflate(const scalar s)
Expand the sphere by the given factor.
static boundSphere intersect(const PointList &ps, const FixedList< label, 4 > &pis, const label nPs)
Return the sphere intersecting the given set of up to four points.
friend Istream & operator>>(Istream &, boundSphere &)
Read from stream.
friend bool operator==(const boundSphere &, const boundSphere &)
Equality comparison.
friend bool operator!=(const boundSphere &, const boundSphere &)
Inequality comparison.
scalar rSqr() const
Return the radius squared.
static boundSphere cr(const point &c, const scalar r)
Construct given a point and a radius.
friend Ostream & operator<<(Ostream &, const boundSphere &)
Write to stream.
const point & c() const
Return the centre.
static boundSphere global(const PointList &ps, const bool strict=false)
Return the sphere bounding the given set of points using Welzl's.
bool contains(const point &p) const
Return whether this sphere contains a given point.
A zero-sized class without any storage. Used, for example, in HashSet.
Struct for keeping processor, element (cell, face, point) index.
label elementi
Element index.
label proci
Processor index.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
bool operator!=(const particle &, const particle &)
Istream & operator>>(Istream &, pointEdgeDist &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
randomGenerator rndGen(653213)