111 const scalar smallDist
128 const point& samplePt,
131 const scalar smallDist,
168 (name, mesh, searchEngine, dict)
184 searchEngine_(searchEngine)
249 return searchEngine_;
label getBoundaryCell(const label) const
Returns cell next to boundary face.
label findNearFace(const label celli, const point &sample, const scalar smallDist) const
Returns face label (or -1) of face which is close to sample.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
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)
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.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const labelList & faces() const
virtual ~sampledSet()
Destructor.
Ostream & write(Ostream &) const
Output for debugging.
autoPtr< sampledSet > clone() const
Clone.
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingCurveDist)
Sets sample data.
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.
label pointInCell(const point &p, const label samplei) const
Return the cell in which the point on the sample line.
const labelList & segments() const
Holds list of sampling positions.
Holds list of sampling points which is filled at construction time. Various implementations of this b...
A class for handling words, derived from string.
const labelList & cells() const
const word & name() const
point pushIn(const point &sample, const label facei) const
Moves sample in direction of -n to it is 'inside' of facei.
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))
sampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis)
Construct from components.
scalar calcSign(const label facei, const point &sample) const
Calculates inproduct of face normal and vector sample-face centre.
label getNeighbourCell(const label) const
Returns the neigbour cell or the owner if face in on the boundary.
const polyMesh & mesh() const
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.
const meshSearch & searchEngine() const
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
labelList faces_
Face numbers (-1 if not known)
autoPtr< sampledSet > operator()(Istream &is) const