78 if (!isA<cellZoneSet>(
set))
81 <<
"Operation only allowed on a cellZoneSet." <<
endl;
89 Info<<
" Adding all cells from cellSet " << setName_
100 label celli = iter.key();
102 if (!fzSet.
found(celli))
104 newAddressing.append(celli);
113 Info<<
" Removing all cells from cellSet " << setName_
117 cellSet loadedSet(mesh_, setName_);
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Like cellSet but -reads data from cellZone -updates cellZone when writing.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Macros for easy insertion into run-time selection tables.
setToCellZone(const polyMesh &mesh, const word &setName)
Construct from components.
Base class of a source for a topoSet.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
bool found(const Key &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
setAction
Enumeration defining the valid actions.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
virtual ~setToCellZone()
Destructor.
#define WarningInFunction
Report a warning using Foam::Warning.
A collection of cell labels.
const labelList & addressing() const
Mesh consisting of general polyhedral cells.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
ITstream & lookupBackwardsCompatible(const wordList &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream, trying a list of keywords.