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);
257 word oldTypeName = typeName;
258 const_cast<word&
>(
type()) = pointSet::typeName;
260 const_cast<word&
>(
type()) = oldTypeName;
268 zoneID = pointZones.
size();
285 pointZones[zoneID] = addressing_;
289 return ok && pointZones.
write(write);
301 label pointi = addressing_[i];
309 newAddressing.setSize(n);
311 addressing_.
transfer(newAddressing);
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
label findZoneID(const word &zoneName) const
Find zone index given a name.
#define forAll(list, i)
Loop across all elements in list.
writeOption
Enumeration defining the write options.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
const word & name() const
Return name.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
bool set(const label) const
Is element set.
Cell-face mesh analysis engine.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write=true) const
Write pointZone.
void size(const label)
Override size to be inconsistent with allocated storage.
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.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
void check(const label maxLabel)
Check validity of contents.
label size() const
Return number of elements in table.
Macros for easy insertion into run-time selection tables.
pointSet(const IOobject &obj)
Construct from IOobject.
const meshPointZones & pointZones() const
Return point zones.
virtual ~pointZoneSet()
Destructor.
virtual void addSet(const topoSet &set)
Add elements present in set.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
pointZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
bool found(const label &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void append(const T &)
Append an element at the end of the list.
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.
const labelList & reversePointMap() const
Reverse point map.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
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)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
label size() const
Return the number of elements in the UPtrList.
virtual void topoChange(const polyTopoChangeMap &map)
Update any stored data for new labels.
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...
const labelList & addressing() const
List< label > sortedToc() const
Return the table of contents as a sorted list.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write) const
Write using given format, version and compression.
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.
virtual void sync(const polyMesh &mesh)
Sync set across coupled patches. Adds coupled points to set.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Update any stored data for new labels.
virtual bool write(const bool write=true) const
Write using setting from DB.
void clearAddressing()
Clear addressing.
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.
void clearStorage()
Clear the table entries and the table itself.
Like pointSet but -reads data from pointZone -updates pointZone when writing.