Go to the documentation of this file.
48 setToCellZone::typeName,
49 "\n Usage: setToCellZone <cellSet>\n\n"
50 " Select all cells in the cellSet.\n\n"
76 setName_(
dict.lookup(
"set"))
106 if (!isA<cellZoneSet>(set))
109 <<
"Operation only allowed on a cellZoneSet." <<
endl;
117 Info<<
" Adding all cells from cellSet " << setName_
128 label cellI = iter.key();
130 if (!fzSet.
found(cellI))
132 newAddressing.
append(cellI);
141 Info<<
" Removing all cells from cellSet " << setName_
145 cellSet loadedSet(mesh_, setName_);
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
Class with constructor to add usage string to table.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
virtual ~setToCellZone()
Destructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const labelList & addressing() const
Like cellSet but updates cellZone when writing.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
bool found(const Key &) const
Return true if hashedEntry is found in table.
Base class of a source for a topoSet.
A collection of cell labels.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
static addToUsageTable usage_
Add usage string.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
setToCellZone(const polyMesh &mesh, const word &setName)
Construct from components.