35 #ifndef searchableSurfaces_H 36 #define searchableSurfaces_H 56 public PtrList<searchableSurface>
112 const bool singleRegionName
153 const word& surfaceName,
219 const scalar initialDistSqr,
220 const scalar convergenceDistSqr,
234 bool checkSizes(
const scalar maxRatio,
const bool report)
const;
247 const scalar minQuality,
257 const scalar maxRatio,
258 const scalar tolerance,
260 const scalar minQuality,
void findNearest(const pointField &, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &) const
Find nearest. Return -1 (and a miss()) or surface and nearest.
label findSurfaceID(const word &name) const
Find index of surface. Return -1 if not found.
label checkGeometry(const scalar maxRatio, const scalar tolerance, const autoPtr< writer< scalar > > &setWriter, const scalar minQuality, const bool report) const
All geometric checks. Return number of failed checks.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
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.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE ))
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.
word name(const complex &)
Return a string representation of a complex.
Triangulated surface description with patch information.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
pointIndexHit facesIntersection(const scalar initialDistSqr, const scalar convergenceDistSqr, const point &start) const
Calculate point which is on a set of surfaces.
iterator end()
Return an iterator to end traversing the PtrList.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const searchableSurface & operator[](const word &) const
Return const reference to searchableSurface by name.
bool checkNormalOrientation(const bool report) const
Are all (triangulated) surfaces consistent normal orientation.
ClassName("searchableSurfaces")
bool checkIntersection(const scalar tol, const autoPtr< writer< scalar > > &, const bool report) const
Do surfaces self-intersect or intersect others.
const List< wordList > & regionNames() const
bool checkQuality(const scalar minQuality, const bool report) const
Check triangle quality.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A bounding box defined in terms of the points at its extremities.
void findNearestIntersection(const pointField &start, const pointField &end, labelList &surface1, List< pointIndexHit > &hit1, labelList &surface2, List< pointIndexHit > &hit2) const
bool checkClosed(const bool report) const
Are all surfaces closed and manifold.
label checkTopology(const bool report) const
All topological checks. Return number of failed checks.
void writeStats(const List< wordList > &, Ostream &) const
Write some stats.
void findAllIntersections(const pointField &start, const pointField &end, labelListList &surfaces, List< List< pointIndexHit > > &) const
Find all intersections in order from start to end. Returns for.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
boundBox bounds() const
Calculate bounding box.
scalarField samples(nIntervals, 0)
bool checkSizes(const scalar maxRatio, const bool report) const
Are all bounding boxes of similar size.
Container for searchableSurfaces.
const wordList & names() const
label findSurfaceRegionID(const word &surfaceName, const word ®ionName) const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void findAnyIntersection(const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &) const
Find any intersection. Return hit point information and.