Go to the documentation of this file.
81 const polyMesh& mesh_;
123 const scalar smallDist
140 const point& samplePt,
143 const scalar smallDist,
279 return searchEngine_;
Holds list of sampling points which is filled at construction time. Various implementations of this b...
static autoPtr< sampledSet > New(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Return a reference to the selected sampledSet.
virtual ~sampledSet()=default
Destructor.
const word & name() const
void checkDimensions() const
Check for consistent sizing.
autoPtr< sampledSet > operator()(Istream &is) const
Ostream & write(Ostream &) const
Output for debugging.
A class for handling words, derived from Foam::string.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
autoPtr< coordSet > gather(labelList &indexSet, labelList &allSegments) const
Helper: gather onto master and sort.
label getNeighbourCell(const label) const
Returns the neighbour cell or the owner if face in on the boundary.
const meshSearch & searchEngine() const
declareRunTimeSelectionTable(autoPtr, sampledSet, word,(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict),(name, mesh, searchEngine, dict))
coordFormat
Enumeration defining the output format for coordinates.
scalar calcSign(const label facei, const point &sample) const
Calculates inproduct of face normal and vector sample-face centre.
const labelList & cells() const
TypeName("sampledSet")
Runtime type information.
label findNearFace(const label celli, const point &sample, const scalar smallDist) const
Returns face label (or -1) of face which is close to sample.
sampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const coordSet::coordFormat axisType)
Construct from components.
Mesh consisting of general polyhedral cells.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
iNew(const polyMesh &mesh, const meshSearch &searchEngine)
labelList segments_
Segment numbers.
const labelList & segments() const
autoPtr< sampledSet > clone() const
Clone.
const labelList & faces() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Holds list of sampling positions.
label getBoundaryCell(const label) const
Returns cell next to boundary face.
point pushIn(const point &sample, const label facei) const
Moves sample in direction of -n to it is 'inside' of facei.
labelList cells_
Cell numbers.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const polyMesh & mesh() const
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingCurveDist)
Set sample data. Copy list contents.
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.
labelList faces_
Face numbers (-1 if not known)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label pointInCell(const point &p, const label samplei) const
Return the cell in which the point on the sample line.
Class used for the read-construction of.
Minimal example by using system/controlDict.functions: