103 if (!dEntry.isDict())
106 <<
"Ignoring non-dictionary entry "
120 result.invert(
mesh.nCells());
139 source->verbose(verbosity);
153 source->applyToSet(action, result);
163 result.subset(other);
171 <<
"Ignoring unhandled action: "
176 bitSet addr(std::move(result.addressing()));
EnumType get(const word &enumName) const
The enumeration corresponding to the given name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A special purpose topoSet with the cell labels stored as a bitSet. It does not correspond to a cellSe...
cellBitSet(const polyMesh &mesh, const bool val=false)
Construct with nCells elements, all elements unset or initial value.
virtual void writeDebug(Ostream &os, const primitiveMesh &mesh, const label maxLen) const
Write maxLen items with label and coordinates.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
static bitSet select(const polyMesh &mesh, const dictionary &dict, const bool verbosity=false)
Return a cell selection according to the dictionary specification of actions.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
A keyword and a list of tokens is an 'entry'.
Mesh consisting of general polyhedral cells.
Cell-face mesh analysis engine.
virtual void invert(const label maxLen)
Invert contents.
virtual void subset(const labelUList &elems)
Subset contents. Only elements present in both sets remain.
topoBitSet(const polyMesh &mesh, const word &setName)
Construct (no-read) with empty selection.
const bitSet & addressing() const noexcept
Return the bitSet.
void reset()
Set values to false, leaving the size untouched.
static autoPtr< topoSetCellSource > New(const word &sourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected source type.
@ SUBSET
Union of elements with current set.
@ IGNORE
"ignore" no-op action
@ SUBTRACT
Subtract elements from current set.
@ INVERT
Invert the elements in the current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
static const Enum< setAction > combineNames
The setAction enum text when combining selections. Names: "use", "add", "subtract",...
label writeDebug(Ostream &os, const label maxElem, labelHashSet::const_iterator &iter) const
Write part of contents nicely formatted.
A class for handling words, derived from Foam::string.
#define defineTypeName(Type)
Define the typeName.
OBJstream os(runTime.globalPath()/outputName)
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & endl(Ostream &os)
Add newline and flush stream.