Go to the documentation of this file.
48 "\n Usage: nbrToCell <nNeighbours>\n\n"
49 " Select all cells with <= nNeighbours neighbouring cells\n\n"
85 label faceI = cFaces[i];
159 Info<<
" Adding cells with only " << minNbrs_ <<
" or less"
160 " neighbouring cells" <<
" ..." <<
endl;
166 Info<<
" Removing cells with only " << minNbrs_ <<
" or less"
167 " neighbouring cells" <<
" ..." <<
endl;
void combine(topoSet &set, const bool add) const
virtual ~nbrToCell()
Destructor.
nbrToCell(const polyMesh &mesh, const label minNbrs)
Construct from components.
#define forAll(list, i)
Loop across all elements in list.
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.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const cellList & cells() const
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
const polyMesh & mesh() const
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A patch is a list of labels that address the faces in the global face list.
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....
label nInternalFaces() const
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
label start() const
Return start label of this patch in the polyMesh face list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static addToUsageTable usage_
Add usage string.
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
label readLabel(Istream &is)
label minNbrs_
Number of internal faces on cell.
defineTypeNameAndDebug(combustionModel, 0)
A cell is defined as a list of faces with extra functionality.
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.