Go to the documentation of this file.
46 nearestToPoint::typeName,
47 "\n Usage: nearestToPoint (pt0 .. ptn)\n\n"
48 " Select the nearest point for each of the points pt0 ..ptn\n\n"
67 for (
label i = 1; i < pts.size(); i++)
71 if (distSqr < minDistSqr)
138 Info<<
" Adding points nearest to " << points_ <<
endl;
144 Info<<
" Removing points nearest to " << points_ <<
endl;
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
void combine(topoSet &set, const bool add) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
pointField points_
Points to select nearest to.
Mesh consisting of general polyhedral cells.
virtual ~nearestToPoint()
Destructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
nearestToPoint(const polyMesh &mesh, const pointField &points)
Construct from components.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
static addToUsageTable usage_
Add usage string.