111 const scalar smallDist
128 const point& samplePt,
131 const scalar smallDist,
168 (name, mesh, searchEngine, dict)
184 searchEngine_(searchEngine)
249 return searchEngine_;
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
const polyMesh & mesh() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
iNew(const polyMesh &mesh, const meshSearch &searchEngine)
label findNearFace(const label celli, const point &sample, const scalar smallDist) const
Returns face label (or -1) of face which is close to sample.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static autoPtr< sampledSet > New(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Return a reference to the selected sampledSet.
label getNeighbourCell(const label) const
Returns the neigbour cell or the owner if face in on the boundary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual ~sampledSet()
Destructor.
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingCurveDist)
Sets sample data.
point pushIn(const point &sample, const label facei) const
Moves sample in direction of -n to it is 'inside' of facei.
const labelList & faces() const
Ostream & write(Ostream &) const
Output for debugging.
Holds list of sampling positions.
const labelList & segments() const
autoPtr< sampledSet > operator()(Istream &is) const
Holds list of sampling points which is filled at construction time. Various implementations of this b...
A class for handling words, derived from string.
TypeName("sampledSet")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Class used for the read-construction of.
labelList segments_
Segment numbers.
declareRunTimeSelectionTable(autoPtr, sampledSet, word,(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict),(name, mesh, searchEngine, dict))
label getBoundaryCell(const label) const
Returns cell next to boundary face.
const word & name() const
sampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis)
Construct from components.
label pointInCell(const point &p, const label samplei) const
Return the cell in which the point on the sample line.
scalar calcSign(const label facei, const point &sample) const
Calculates inproduct of face normal and vector sample-face centre.
const meshSearch & searchEngine() const
autoPtr< sampledSet > clone() const
Clone.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
labelList cells_
Cell numbers.
Mesh consisting of general polyhedral cells.
Macros to ease declaration of run-time selection tables.
bool getTrackingPoint(const point &samplePt, const point &bPoint, const label bFacei, const scalar smallDist, point &trackPt, label &trackCelli, label &trackFacei) const
Calculates start of tracking given samplePt and first boundary.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const labelList & cells() const
labelList faces_
Face numbers (-1 if not known)