49 setToPointZone::typeName,
50 "\n Usage: setToPointZone <pointSet>\n\n"
51 " Select all points in the pointSet.\n\n"
98 if (!isA<pointZoneSet>(set))
101 <<
"Operation only allowed on a pointZoneSet." <<
endl;
112 Info<<
" Adding all points from pointSet " << setName_
117 pointSet loadedSet(mesh_, setName_);
125 if (!zoneSet.
found(pointi))
127 newAddressing.
append(pointi);
138 Info<<
" Removing all points from pointSet " << setName_
143 pointSet loadedSet(mesh_, setName_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &list)
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Like pointSet but -reads data from pointZone -updates pointZone when writing.
const labelList & addressing() const
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
Mesh consisting of general polyhedral cells.
A topoSetSource to convert a pointSet to a pointZone (and associated pointSet).
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
The topoSetPointZoneSource is a intermediate class for handling topoSet sources for selecting point z...
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
General set of labels of mesh quantity (points, cells, faces).
virtual bool found(const label id) const
Has the given index?
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define WarningInFunction
Report a warning using Foam::Warning.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList pointLabels(nPoints, -1)
#define forAll(list, i)
Loop across all elements in list.