46 nearestToCell::typeName,
47 "\n Usage: nearestToCell (pt0 .. ptn)\n\n" 48 " Select the nearest cell for each of the points pt0 ..ptn\n\n" 54 void Foam::nearestToCell::combine(topoSet&
set,
const bool add)
const 58 addOrDelete(
set, mesh_.findNearestCell(points_[pointi]),
add);
85 points_(dict.
lookup(
"points"))
117 Info<<
" Adding cells nearest to " << points_ <<
endl;
123 Info<<
" Removing cells nearest to " << points_ <<
endl;
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Macros for easy insertion into run-time selection tables.
nearestToCell(const polyMesh &mesh, const pointField &points)
Construct from components.
Base class of a source for a topoSet.
setAction
Enumeration defining the valid actions.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Class with constructor to add usage string to table.
virtual ~nearestToCell()
Destructor.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const