Go to the documentation of this file.
49 setToCellZone::typeName,
50 "\n Usage: setToCellZone <cellSet>\n\n"
51 " Select all cells in the cellSet.\n\n"
98 if (!isA<cellZoneSet>(
set))
101 <<
"Operation only allowed on a cellZoneSet." <<
endl;
108 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
112 Info<<
" Adding all cells from cellSet " << setName_
122 for (
const label celli : fSet)
124 if (!zoneSet.
found(celli))
126 newAddressing.
append(celli);
133 else if (action == topoSetSource::SUBTRACT)
137 Info<<
" Removing all cells from cellSet " << setName_
142 cellSet loadedSet(mesh_, setName_);
151 newAddressing.append(zoneSet.
addressing()[i]);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
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 (stdout output on master, null elsewhere)
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.
A collection of cell labels.
The topoSetCellZoneSource is a intermediate class for handling topoSet sources for selecting cell zon...
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
setToCellZone(const polyMesh &mesh, const word &setName)
Construct from components.