Go to the documentation of this file.
111 const scalar smallDist
129 const point& samplePt,
200 static const scalar
tol;
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.
const word & name() const
const meshSearch & searchEngine_
Reference to mesh searching class.
autoPtr< sampledSet > operator()(Istream &is) const
Ostream & write(Ostream &) const
Output for debugging.
A class for handling words, derived from string.
label getCell(const label faceI, const point &sample) const
Returns cell using face and containing sample.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
const meshSearch & searchEngine() const
declareRunTimeSelectionTable(autoPtr, sampledSet, word,(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const dictionary &dict),(name, mesh, searchEngine, dict))
const labelList & cells() 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.
virtual ~sampledSet()
Destructor.
Mesh consisting of general polyhedral cells.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
sampledSet(const word &name, const polyMesh &mesh, const meshSearch &searchEngine, const word &axis)
Construct from components.
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.
bool getTrackingPoint(const vector &offset, const point &samplePt, const point &bPoint, const label bFaceI, point &trackPt, label &trackCellI, label &trackFaceI) const
Calculates start of tracking given samplePt and first boundary.
const meshSearch & searchEngine_
const labelList & segments() const
autoPtr< sampledSet > clone() const
Clone.
const labelList & faces() const
A list of keyword definitions, which are a keyword followed by any number of values (e....
Holds list of sampling positions.
label findNearFace(const label cellI, const point &sample, const scalar smallDist) const
Returns face label (or -1) of face which is close to sample.
label getBoundaryCell(const label) const
Returns cell next to boundary face.
labelList cells_
Cell numbers.
scalar calcSign(const label faceI, const point &sample) const
Calculates inproduct of face normal and vector sample-face centre.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const polyMesh & mesh() const
void setSamples(const List< point > &samplingPts, const labelList &samplingCells, const labelList &samplingFaces, const labelList &samplingSegments, const scalarList &samplingCurveDist)
Sets sample data.
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
labelList faces_
Face numbers (-1 if not known)
static const scalar tol
Tolerance when comparing points. Usually relative to difference.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const polyMesh & mesh_
Reference to mesh.
Class used for the read-construction of.