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);
249 word oldTypeName = typeName;
250 const_cast<word&
>(
type()) = cellSet::typeName;
252 const_cast<word&
>(
type()) = oldTypeName;
260 zoneID = cellZones.
size();
277 cellZones[zoneID] = addressing_;
281 return ok && cellZones.
write();
293 label celli = addressing_[i];
297 newAddressing[
n] = newCelli;
303 addressing_.
transfer(newAddressing);
virtual ~cellZoneSet()
Destructor.
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.
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
Write maxLen items with label and coordinates.
cellZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
Cell-face mesh analysis engine.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
Like cellSet but updates cellZone when writing.
virtual void addSet(const topoSet &set)
Add elements present in set.
label size() const
Return number of elements in table.
const labelList & addressing() const
readOption
Enumeration defining the read options.
bool insert(const label &key)
Insert a new entry.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
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.
label findZoneID(const word &zoneName) const
Find zone index given a name.
A class for handling words, derived from string.
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
void append(const T &)
Append an element at the end of the list.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
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.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write cellZone.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
void setSize(const label)
Reset size of List.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
A collection of cell labels.
const labelList & reverseCellMap() const
Reverse cell map.
virtual bool write() const
Write using setting from DB.
void resize(const label newSize)
Resize the hash table for efficiency.
Mesh consisting of general polyhedral cells.
virtual void sync(const polyMesh &mesh)
Sync cellZoneSet across coupled patches.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
const word & name() const
Return name.
label size() const
Return the number of elements in the UPtrList.
void clearStorage()
Clear the table entries and the table itself.