87 const cellZone& fz = cellZones[zoneID];
123 addressing_(refCast<const cellZoneSet>(
set).
addressing())
142 for (
label cellI = 0; cellI < maxLen; cellI++)
154 for (
label cellI = 0; cellI < maxLen; cellI++)
158 addressing_[
n] = cellI;
171 const cellZoneSet& fSet = refCast<const cellZoneSet>(
set);
173 forAll(fSet.addressing(), i)
175 label cellI = fSet.addressing()[i];
179 newAddressing.
append(cellI);
183 addressing_.
transfer(newAddressing);
192 const cellZoneSet& fSet = refCast<const cellZoneSet>(
set);
200 newAddressing.
append(cellI);
204 addressing_.
transfer(newAddressing);
213 const cellZoneSet& fSet = refCast<const cellZoneSet>(
set);
217 label cellI = addressing_[i];
219 if (!fSet.found(cellI))
222 newAddressing.
append(cellI);
226 addressing_.
transfer(newAddressing);
250 word oldTypeName = typeName;
251 const_cast<word&
>(
type()) = cellSet::typeName;
253 const_cast<word&
>(
type()) = oldTypeName;
261 zoneID = cellZones.
size();
278 cellZones[zoneID] = addressing_;
282 return ok && cellZones.
write();
294 label cellI = addressing_[i];
298 newAddressing[
n] = newCellI;
304 addressing_.
transfer(newAddressing);
const cellZoneMesh & cellZones() const
Return cell zone mesh.
const labelList & addressing() const
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
label size() const
Return the number of elements in the PtrList.
bool set(const label) const
Is element set.
Like cellSet but updates cellZone when writing.
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).
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.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
A collection of cell labels.
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.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write cellZone.
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
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.
void setSize(const label)
Reset size of List.
virtual void addSet(const topoSet &set)
Add elements present in set.
streamFormat
Enumeration for the format of data in the stream.
readOption
Enumeration defining the read options.
Macros for easy insertion into run-time selection tables.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
label size() const
Return number of elements in table.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
const word & name() const
Return name.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
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.
cellZoneSet(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.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
writeOption
Enumeration defining the write options.
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.
const labelList & reverseCellMap() const
Reverse cell map.
virtual ~cellZoneSet()
Destructor.
void append(const T &)
Append an element at the end of the list.
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
virtual void sync(const polyMesh &mesh)
Sync cellZoneSet across coupled patches.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
bool found(const label &) const
Return true if hashedEntry is found in table.
defineTypeNameAndDebug(combustionModel, 0)
bool insert(const label &key)
Insert a new entry.