41 void Foam::nbrToCell::combine(topoSet& set,
const bool add)
const
54 label facei = pp.start();
65 const cell& cFaces =
cells[celli];
71 label facei = cFaces[i];
83 if (nNbrCells <= minNbrs_)
111 minNbrs_(
dict.lookup<
label>(
"neighbours"))
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.
Macros for easy insertion into run-time selection tables.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A topoSetSource to select cells based on number of neighbouring cells (i.e. number of internal or cou...
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
nbrToCell(const polyMesh &mesh, const label minNbrs)
Construct from components.
virtual ~nbrToCell()
Destructor.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
label nInternalFaces() const
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
const cellList & cells() const
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
const polyMesh & mesh() const
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from string.
const fvPatchList & patches
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
List< cell > cellList
list of cells
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< bool > boolList
Bool container classes.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)