109 if (!dEntry.isDict())
112 <<
"Ignoring non-dictionary entry " 145 source->verbose(verbosity);
159 source->applyToSet(action, result);
177 <<
"Ignoring unhandled action: " EnumType get(const word &enumName) const
The enumeration corresponding to the given name.
static autoPtr< topoSetCellSource > New(const word &sourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected source type.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Cell-face mesh analysis engine.
Create a new set and ADD elements to it.
virtual void writeDebug(Ostream &os, const primitiveMesh &mesh, const label maxLen) const
Write maxLen items with label and coordinates.
Add elements to current set.
void reset()
Set values to false, leaving the size untouched.
Base for a special purpose topoSet using labels stored as a bitSet.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Invert the elements in the current set.
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.
A special purpose topoSet with the cell labels stored as a bitSet. It does not correspond to a cellSe...
cellBitSet(const polyMesh &mesh)
Construct with nCells elements, all elements unset.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
virtual void invert(const label maxLen)
Invert contents.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
A class for handling words, derived from Foam::string.
void writeDebug(Ostream &os, const label maxElem, topoSet::const_iterator &iter, label &elemI) const
Write part of contents nicely formatted. Prints labels only.
Union of elements with current set.
const vectorField & cellCentres() const
static bitSet select(const polyMesh &mesh, const dictionary &dict, const bool verbosity=false)
Return a cell selection according to the dictionary specification of actions.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
Subtract elements from current set.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
#define WarningInFunction
Report a warning using Foam::Warning.
const bitSet & addressing() const noexcept
Return the bitSet.
label nCells() const noexcept
Number of mesh cells.
Mesh consisting of general polyhedral cells.
static const Enum< setAction > combineNames
The setAction enum text when combining selections. Names: "use", "add", "subtract", "subset", "invert", "ignore".
A keyword and a list of tokens is an 'entry'.