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