41 void Foam::nbrToCell::combine(topoSet&
set,
const bool add)
const 44 const polyBoundaryMesh& patches = mesh_.boundaryMesh();
46 boolList isCoupled(mesh_.nFaces()-mesh_.nInternalFaces(),
false);
50 const polyPatch& pp = patches[
patchi];
54 label facei = pp.start();
57 isCoupled[facei-mesh_.nInternalFaces()] =
true;
65 const cell& cFaces = cells[celli];
71 label facei = cFaces[i];
73 if (mesh_.isInternalFace(facei))
77 else if (isCoupled[facei-mesh_.nInternalFaces()])
83 if (nNbrCells <= minNbrs_)
85 addOrDelete(
set, celli, add);
131 Info<<
" Adding cells with only " << minNbrs_ <<
" or less" 132 " neighbouring cells" <<
" ..." <<
endl;
138 Info<<
" Removing cells with only " << minNbrs_ <<
" or less" 139 " neighbouring cells" <<
" ..." <<
endl;
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > 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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const cellList & cells() const
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.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
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
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.