Go to the documentation of this file.
46 setToCellZone::typeName,
47 "\n Usage: setToCellZone <cellSet>\n\n"
48 " Select all cells in the cellSet.\n\n"
95 if (!isA<cellZoneSet>(set))
98 <<
"Operation only allowed on a cellZoneSet." <<
endl;
104 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
108 Info<<
" Adding all cells from cellSet " << setName_
118 for (
const label celli : fSet)
120 if (!zoneSet.
found(celli))
122 newAddressing.
append(celli);
129 else if (action == topoSetSource::SUBTRACT)
133 Info<<
" Removing all cells from cellSet " << setName_
138 cellSet loadedSet(mesh_, setName_);
147 newAddressing.append(zoneSet.
addressing()[i]);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
A class for handling words, derived from Foam::string.
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
Class with constructor to add usage string to table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
virtual bool found(const label id) const
Has the given index?
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
void transfer(List< T > &list)
const labelList & addressing() const
Like cellSet but -reads data from cellZone -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 a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
A collection of cell labels.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
setToCellZone(const polyMesh &mesh, const word &setName)
Construct from components.