41 void Foam::nbrToCell::combine(topoSet& set,
const bool add)
const
54 label facei = pp.start();
71 label facei = cFaces[i];
83 if (nNbrCells <= minNbrs_)
106 const polyMesh&
mesh,
107 const dictionary&
dict
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.
nbrToCell(const polyMesh &mesh, const label minNbrs)
Construct from components.
virtual ~nbrToCell()
Destructor.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
const polyBoundaryMesh & boundary() 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
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
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const fvPatchList & patches
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
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)
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
List< cell > cellList
list of cells
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< bool > boolList
Bool container classes.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)