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);
256 word oldTypeName = typeName;
257 const_cast<word&
>(
type()) = cellSet::typeName;
259 const_cast<word&
>(
type()) = oldTypeName;
267 zoneID = cellZones.
size();
284 cellZones[zoneID] = addressing_;
288 return ok && cellZones.
write(valid);
300 label celli = addressing_[i];
304 newAddressing[
n] = newCelli;
310 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.
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.
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.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
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 -reads data from cellZone -updates cellZone when writing.
virtual void addSet(const topoSet &set)
Add elements present in set.
readOption
Enumeration defining the read options.
bool insert(const label &key)
Insert a new entry.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
Write cellZone.
void check(const label maxLabel)
Check validity of contents.
label size() const
Return number of elements in table.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Macros for easy insertion into run-time selection tables.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
Write using given format, version and compression.
label findZoneID(const word &zoneName) const
Find zone index given a name.
bool found(const label &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
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.
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...
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
const labelList & reverseCellMap() const
Reverse cell map.
defineTypeNameAndDebug(combustionModel, 0)
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
General set of labels of mesh quantity (points, cells, faces).
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
label size() const
Return the number of elements in the UPtrList.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
void setSize(const label)
Reset size of List.
A collection of cell labels.
List< label > sortedToc() const
Return the table of contents as a sorted list.
const labelList & addressing() const
void resize(const label newSize)
Resize the hash table for efficiency.
Mesh consisting of general polyhedral cells.
virtual void sync(const polyMesh &mesh)
Sync cellSet across coupled patches; update cellZone from cellSet.
virtual bool write(const bool valid=true) const
Write using setting from DB.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
virtual void sync(const polyMesh &mesh)
Sync cellSet across coupled patches.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void clearStorage()
Clear the table entries and the table itself.