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 86 label facei =
pp.start();
97 const cell& cFaces =
cells[celli];
101 for (
const label facei : cFaces)
113 if (nNbrCells <= minNbrs_)
125 const polyMesh&
mesh,
168 Info<<
" Adding cells with only " << minNbrs_
169 <<
" or fewer neighbouring cells" <<
" ..." <<
endl;
178 Info<<
" Removing cells with only " << minNbrs_
179 <<
" or fewer neighbouring cells" <<
" ..." <<
endl;
List< cell > cellList
List of cell.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Create a new set and ADD elements to it.
Add elements to current set.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A min/max value pair with additional methods. In addition to conveniently storing values...
Ostream & endl(Ostream &os)
Add newline and flush stream.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
const cellList & cells() const
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells...
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
Macros for easy insertion into run-time selection tables.
bool isInternalFace(const label faceIndex) const noexcept
Return true if given face label is internal to the mesh.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
#define forAll(list, i)
Loop across all elements in list.
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
const polyMesh & mesh() const noexcept
Reference to the mesh.
setAction
Enumeration defining various actions.
label nInternalFaces() const noexcept
Number of internal faces.
const polyMesh & mesh_
Reference to the mesh.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Subtract elements from current set.
Class with constructor to add usage string to table.
const polyBoundaryMesh & patches
nbrToCell(const polyMesh &mesh, const label minNbrs)
Construct from components.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.
label nBoundaryFaces() const noexcept
Number of boundary faces (== nFaces - nInternalFaces)
List< bool > boolList
A List of bools.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.