Go to the documentation of this file.
46 setToPointZone::typeName,
47 "\n Usage: setToPointZone <pointSet>\n\n"
48 " Select all points in the pointSet.\n\n"
95 if (!isA<pointZoneSet>(set))
98 <<
"Operation only allowed on a pointZoneSet." <<
endl;
104 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
108 Info<<
" Adding all points from pointSet " << setName_
113 pointSet loadedSet(mesh_, setName_);
121 if (!zoneSet.
found(pointi))
123 newAddressing.
append(pointi);
130 else if (action == topoSetSource::SUBTRACT)
134 Info<<
" Removing all points from pointSet " << setName_
139 pointSet loadedSet(mesh_, setName_);
148 newAddressing.append(zoneSet.
addressing()[i]);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
setToPointZone(const polyMesh &mesh, const word &setName)
Construct from components.
Like pointSet but -reads data from pointZone -updates pointZone when writing.
A class for handling words, derived from Foam::string.
Class with constructor to add usage string to table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
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?
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)....
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)
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.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
defineTypeNameAndDebug(combustionModel, 0)
const labelList & addressing() const
#define WarningInFunction
Report a warning using Foam::Warning.
labelList pointLabels(nPoints, -1)
void updateSet()
Sort addressing and make pointSet part consistent with addressing.