43 setToPointZone::typeName,
44 "\n Usage: setToPointZone <pointSet>\n\n" 45 " Select all points in the pointSet.\n\n" 69 setName_(dict.
lookup(
"set"))
98 if (!isA<pointZoneSet>(
set))
101 <<
"Operation only allowed on a pointZoneSet." <<
endl;
109 Info<<
" Adding all points from pointSet " << setName_
120 label pointi = iter.key();
122 if (!fzSet.
found(pointi))
124 newAddressing.append(pointi);
133 Info<<
" Removing all points from pointSet " << setName_
137 pointSet loadedSet(mesh_, setName_);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setToPointZone(const polyMesh &mesh, const word &setName)
Construct from components.
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
bool found(const Key &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
const labelList & addressing() const
#define WarningInFunction
Report a warning using Foam::Warning.
Class with constructor to add usage string to table.
virtual ~setToPointZone()
Destructor.
Mesh consisting of general polyhedral cells.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Like pointSet but -reads data from pointZone -updates pointZone when writing.