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;
106 pointZoneSet& zoneSet = refCast<pointZoneSet>(
set);
112 Info<<
" Adding all points from point set: " 113 << setName_ <<
" ..." <<
endl;
117 pointSet loadedSet(
mesh_, setName_);
121 DynamicList<label> newAddressing(zoneSet.addressing());
125 if (!zoneSet.found(pointi))
127 newAddressing.append(pointi);
131 zoneSet.addressing().transfer(newAddressing);
138 Info<<
" Removing all points from point set: " 139 << setName_ <<
" ..." <<
endl;
143 pointSet loadedSet(
mesh_, setName_);
146 DynamicList<label> newAddressing(zoneSet.addressing().size());
148 forAll(zoneSet.addressing(), i)
150 if (!loadedSet.found(zoneSet.addressing()[i]))
152 newAddressing.append(zoneSet.addressing()[i]);
155 zoneSet.addressing().transfer(newAddressing);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
The topoSetPointZoneSource is a intermediate class for handling topoSet sources for selecting point z...
labelList pointLabels(nPoints, -1)
bool verbose_
Output verbosity (default: true)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Create a new set and ADD elements to it.
Add elements to current set.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
setToPointZone(const polyMesh &mesh, const word &setName)
Construct from components.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
A class for handling words, derived from Foam::string.
setAction
Enumeration defining various actions.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Subtract elements from current set.
#define WarningInFunction
Report a warning using Foam::Warning.
Class with constructor to add usage string to table.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.