64 "\n Usage: haloToCell\n\n"
65 " Select halo cells\n\n"
86 if (isA<topoBitSet>(set))
88 current |= refCast<const topoBitSet>(set).addressing();
92 for (
const label celli : set)
103 for (label stepi = 0; stepi < steps_; ++stepi)
110 outsideFaces.reset();
111 for (
const label celli : current)
113 for (
const label facei :
cells[celli])
115 outsideFaces.flip(facei);
126 bitXorEqOp<unsigned int>()
131 for (
const label facei : outsideFaces)
133 updates.set(faceOwn[facei]);
136 updates.set(faceNei[facei]);
147 Info<<
" Grow " << current.count()
148 <<
" by " << updates.count() <<
endl;
161 Info<<
" Shrink " << current.count()
162 <<
" by " << updates.count() <<
endl;
239 Info<<
" action=new option is not available for haloToCell" <<
nl
240 <<
" Cannot create new of halo (needs a starting set)"
250 Info<<
" Adding halo cells to the current set, using "
251 << steps_ <<
" step ..." <<
endl;
260 Info<<
" Removing cells on the perimeter of current set, using "
261 << steps_ <<
" step ..." <<
endl;
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A topoSetCellSource to select cells attached to the outside of this cellSet, and add into/remove from...
label steps() const noexcept
The number of steps to grow/shrink.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Mesh consisting of general polyhedral cells.
virtual const labelList & faceOwner() const
Return face owner.
virtual const labelList & faceNeighbour() const
Return face neighbour.
bool isInternalFace(const label faceIndex) const noexcept
Return true if given face label is internal to the mesh.
label nFaces() const noexcept
Number of mesh faces.
const cellList & cells() const
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
bool verbose_
Output verbosity (default: true)
const polyMesh & mesh_
Reference to the mesh.
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
List< label > labelList
A List of labels.
List< cell > cellList
A List of cells.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
constexpr char nl
The newline '\n' character (0x0a)
dict add("bounds", meshBb)