53#ifndef Foam_sampledSet_H
54#define Foam_sampledSet_H
81 const polyMesh& mesh_;
125 const scalar smallDist
142 const point& samplePt,
145 const scalar smallDist,
317 return searchEngine_;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
Minimal example by using system/controlDict.functions:
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
T & last()
Return the last element of the list.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Holds list of sampling positions.
const word & axis() const
The sort axis name.
const word & name() const noexcept
The coord-set name.
coordFormat
Enumeration defining the output format for coordinates.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Mesh consisting of general polyhedral cells.
autoPtr< sampledSet > operator()(Istream &is) const
iNewCapture(const polyMesh &mesh, const meshSearch &searchEngine, DynamicList< dictionary > &capture)
Class used for the read-construction of.
autoPtr< sampledSet > operator()(Istream &is) const
iNew(const polyMesh &mesh, const meshSearch &searchEngine)
Holds list of sampling points which is filled at construction time. Various implementations of this b...
labelList faces_
Face numbers (-1 if not known)
const labelList & faces() const noexcept
const meshSearch & searchEngine() const noexcept
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingDistance)
Set sample data. Copy list contents.
label pointInCell(const point &p, const label samplei) const
Return the cell in which the point on the sample line.
label getNeighbourCell(const label) const
Returns the neighbour cell or the owner if face in on the boundary.
scalar calcSign(const label facei, const point &sample) const
Calculates inproduct of face normal and vector sample-face centre.
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 segments_
Segment numbers.
labelList cells_
Cell numbers.
label getBoundaryCell(const label) const
Returns cell next to boundary face.
void checkDimensions() const
Check for consistent sizing.
declareRunTimeSelectionTable(autoPtr, sampledSet, word,(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict),(name, mesh, searchEngine, dict))
autoPtr< sampledSet > clone() const
Clone.
point pushIn(const point &sample, const label facei) const
Moves sample in direction of -n to it is 'inside' of facei.
const polyMesh & mesh() const noexcept
const labelList & cells() const noexcept
static autoPtr< sampledSet > New(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict)
Return a reference to the selected sampledSet.
const labelList & segments() const noexcept
TypeName("sampledSet")
Runtime type information.
virtual ~sampledSet()=default
Destructor.
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 class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.