Go to the documentation of this file.
62 "\n Usage: nbrToCell <nNeighbours>\n\n"
63 " Select all cells with <= nNeighbours neighbouring cells\n\n"
69 void Foam::nbrToCell::combine(topoSet& set,
const bool add)
const
76 for (
const polyPatch& pp :
patches)
80 label facei = pp.start();
91 const cell& cFaces =
cells[celli];
95 for (
const label facei : cFaces)
107 if (nNbrCells <= minNbrs_)
161 Info<<
" Adding cells with only " << minNbrs_
162 <<
" or fewer neighbouring cells" <<
" ..." <<
endl;
171 Info<<
" Removing cells with only " << minNbrs_
172 <<
" or fewer neighbouring cells" <<
" ..." <<
endl;
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
nbrToCell(const polyMesh &mesh, const label minNbrs)
Construct from components.
label nInternalFaces() const
Number of internal faces.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Class with constructor to add usage string to table.
const cellList & cells() const
List< bool > boolList
A List of bools.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Create a new set and ADD elements to it.
const polyMesh & mesh() const
Reference to the mesh.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
List< cell > cellList
A List of cells.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label nBoundaryFaces() const
Number of boundary faces (== nFaces - nInternalFaces)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Subtract elements from the set.
A topoSetCellSource to select cells with N or less number of neighbouring cells (i....
static MinMax< T > ge(const T &minVal)
A semi-infinite range from minVal to the type max.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
const polyBoundaryMesh & patches
T getCheck(const word &keyword, const Predicate &pred, enum keyType::option matchOpt=keyType::REGEX) const
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)