53 #ifndef Foam_sampledSet_H 54 #define Foam_sampledSet_H 118 scalar
calcSign(
const label facei,
const point& sample)
const;
125 const scalar smallDist
142 const point& samplePt,
145 const scalar smallDist,
225 const polyMesh& mesh_;
226 const meshSearch& search_;
229 DynamicList<dictionary>& capture_;
235 const polyMesh&
mesh,
237 DynamicList<dictionary>& capture
317 return searchEngine_;
336 Ostream&
write(Ostream&)
const;
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
void checkDimensions() const
Check for consistent sizing.
iNew(const polyMesh &mesh, const meshSearch &searchEngine)
const word & axis() const
The sort axis name.
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 a number of values (eg...
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 neighbour 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)...
autoPtr< sampledSet > operator()(Istream &is) const
const labelList & faces() const noexcept
point pushIn(const point &sample, const label facei) const
Moves sample in direction of -n to it is 'inside' of facei.
virtual ~sampledSet()=default
Destructor.
sampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const coordSet::coordFormat axisType)
Construct from components.
Ostream & write(Ostream &) const
Output for debugging.
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 Foam::string.
coordFormat
Enumeration defining the output format for coordinates.
const word & name() const noexcept
The coord-set name.
TypeName("sampledSet")
Runtime type information.
Class used for the read-construction of.
labelList segments_
Segment numbers.
const labelList & segments() const noexcept
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
declareRunTimeSelectionTable(autoPtr, sampledSet, word,(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict),(name, mesh, searchEngine, dict))
const polyMesh & mesh() const noexcept
label getBoundaryCell(const label) const
Returns cell next to boundary face.
iNewCapture(const polyMesh &mesh, const meshSearch &searchEngine, DynamicList< dictionary > &capture)
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
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 noexcept
autoPtr< sampledSet > clone() const
Clone.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingDistance)
Set sample data. Copy list contents.
labelList cells_
Cell numbers.
Mesh consisting of general polyhedral cells.
Macros to ease declaration of run-time selection tables.
List< label > labelList
A List of labels.
const labelList & cells() const noexcept
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.
labelList faces_
Face numbers (-1 if not known)