Go to the documentation of this file.
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;
108 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
112 Info<<
" Adding all points from pointSet " << setName_
117 pointSet loadedSet(mesh_, setName_);
125 if (!zoneSet.
found(pointi))
127 newAddressing.
append(pointi);
134 else if (action == topoSetSource::SUBTRACT)
138 Info<<
" Removing all points from pointSet " << setName_
143 pointSet loadedSet(mesh_, setName_);
152 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.
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.
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?
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)
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.
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...
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.