125 addressing_(refCast<const pointZoneSet>(
set).
addressing())
144 for (
label pointI = 0; pointI < maxLen; pointI++)
156 for (
label pointI = 0; pointI < maxLen; pointI++)
160 addressing_[
n] = pointI;
172 const pointZoneSet& fSet = refCast<const pointZoneSet>(
set);
174 forAll(fSet.addressing(), i)
176 label pointI = fSet.addressing()[i];
180 newAddressing.
append(pointI);
184 addressing_.
transfer(newAddressing);
193 const pointZoneSet& fSet = refCast<const pointZoneSet>(
set);
201 newAddressing.
append(pointI);
205 addressing_.
transfer(newAddressing);
214 const pointZoneSet& fSet = refCast<const pointZoneSet>(
set);
218 label pointI = addressing_[i];
220 if (!fSet.found(pointI))
223 newAddressing.
append(pointI);
227 addressing_.
transfer(newAddressing);
251 word oldTypeName = typeName;
252 const_cast<word&
>(
type()) = pointSet::typeName;
254 const_cast<word&
>(
type()) = oldTypeName;
262 zoneID = pointZones.
size();
279 pointZones[zoneID] = addressing_;
283 return ok && pointZones.
write();
295 label pointI = addressing_[i];
299 newAddressing[
n] = newPointI;
305 addressing_.
transfer(newAddressing);
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
virtual void addSet(const topoSet &set)
Add elements present in set.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write pointZone.
label size() const
Return the number of elements in the PtrList.
bool set(const label) const
Is element set.
virtual void sync(const polyMesh &mesh)
Sync pointZoneSet across coupled patches.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write using given format, version and compression.
General set of labels of mesh quantity (points, cells, faces).
const labelList & reversePointMap() const
Reverse point map.
A subset of mesh points. The labels of points in the zone can be obtained from the addressing() list...
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void resize(const label newSize)
Resize the hash table for efficiency.
void size(const label)
Override size to be inconsistent with allocated storage.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const pointZoneMesh & pointZones() const
Return point zone mesh.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
pointSet(const IOobject &obj)
Construct from IOobject.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
virtual ~pointZoneSet()
Destructor.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
void clearStorage()
Clear the table entries and the table itself.
virtual bool write() const
Write using setting from DB.
void clearAddressing()
Clear addressing.
Cell-face mesh analysis engine.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
void setSize(const label)
Reset size of List.
streamFormat
Enumeration for the format of data in the stream.
readOption
Enumeration defining the read options.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Update any stored data for new labels.
Macros for easy insertion into run-time selection tables.
label size() const
Return number of elements in table.
const word & name() const
Return name.
void check(const label maxLabel)
Check validity of contents.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
compressionType
Enumeration for the format of data in the stream.
pointZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
Mesh consisting of general polyhedral cells.
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
const labelList & addressing() const
writeOption
Enumeration defining the write options.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label findZoneID(const word &zoneName) const
Find zone index given a name.
void append(const T &)
Append an element at the end of the list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
bool found(const label &) const
Return true if hashedEntry is found in table.
defineTypeNameAndDebug(combustionModel, 0)
Like pointSet but updates pointZone when writing.
bool insert(const label &key)
Insert a new entry.