48 "\n Usage: nbrToCell <nNeighbours>\n\n" 49 " Select all cells with <= nNeighbours neighbouring cells\n\n" 55 void Foam::nbrToCell::combine(topoSet&
set,
const bool add)
const 58 const polyBoundaryMesh& patches = mesh_.boundaryMesh();
60 boolList isCoupled(mesh_.nFaces()-mesh_.nInternalFaces(),
false);
64 const polyPatch& pp = patches[
patchi];
68 label facei = pp.start();
71 isCoupled[facei-mesh_.nInternalFaces()] =
true;
79 const cell& cFaces = cells[celli];
85 label facei = cFaces[i];
87 if (mesh_.isInternalFace(facei))
91 else if (isCoupled[facei-mesh_.nInternalFaces()])
97 if (nNbrCells <= minNbrs_)
99 addOrDelete(
set, celli, add);
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;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~nbrToCell()
Destructor.
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.
const cellList & cells() const
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
List< bool > boolList
Bool container classes.
setAction
Enumeration defining the valid actions.
label readLabel(Istream &is)
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.
nbrToCell(const polyMesh &mesh, const label minNbrs)
Construct from components.
Mesh consisting of general polyhedral cells.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
List< cell > cellList
list of cells
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.