43 "\n Usage: nbrToCell <nNeighbours>\n\n" 44 " Select all cells with <= nNeighbours neighbouring cells\n\n" 50 void Foam::nbrToCell::combine(topoSet&
set,
const bool add)
const 53 const polyBoundaryMesh& patches = mesh_.boundaryMesh();
55 boolList isCoupled(mesh_.nFaces()-mesh_.nInternalFaces(),
false);
59 const polyPatch& pp = patches[
patchi];
63 label facei = pp.start();
66 isCoupled[facei-mesh_.nInternalFaces()] =
true;
74 const cell& cFaces = cells[celli];
80 label facei = cFaces[i];
82 if (mesh_.isInternalFace(facei))
86 else if (isCoupled[facei-mesh_.nInternalFaces()])
92 if (nNbrCells <= minNbrs_)
94 addOrDelete(
set, celli, add);
151 Info<<
" Adding cells with only " << minNbrs_ <<
" or less" 152 " neighbouring cells" <<
" ..." <<
endl;
158 Info<<
" Removing cells with only " << minNbrs_ <<
" or less" 159 " 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.