Go to the documentation of this file.
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++)
179 newAddressing.
append(cellI);
200 newAddressing.
append(cellI);
219 if (!fSet.
found(cellI))
222 newAddressing.
append(cellI);
237 return mesh.nCells();
250 word oldTypeName = typeName;
251 const_cast<word&
>(
type()) = cellSet::typeName;
253 const_cast<word&
>(
type()) = oldTypeName;
261 zoneID = cellZones.size();
263 cellZones.setSize(zoneID+1);
278 cellZones[zoneID] = addressing_;
282 return ok && cellZones.write();
298 newAddressing[
n] = newCellI;
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write using given format, version and compression.
A class for handling words, derived from string.
void resize(const label newSize)
Resize the hash table for efficiency.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
compressionType
Enumeration for the format of data in the stream.
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
Mesh consisting of general polyhedral cells.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
virtual ~cellZoneSet()
Destructor.
virtual void addSet(const topoSet &set)
Add elements present in set.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
writeOption
Enumeration defining the write options.
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
const labelList & addressing() const
Like cellSet but updates cellZone when writing.
General set of labels of mesh quantity (points, cells, faces).
virtual void sync(const polyMesh &mesh)
Sync cellZoneSet across coupled patches.
label size() const
Return number of elements in table.
Macros for easy insertion into run-time selection tables.
bool found(const Key &) const
Return true if hashedEntry is found in table.
A collection of cell labels.
label findZoneID(const word &zoneName) const
Find zone index given a name.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
cellZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void setSize(const label)
Reset size of List.
const labelList & reverseCellMap() const
Reverse cell map.
void clearStorage()
Clear the table entries and the table itself.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool insert(const Key &key)
Insert a new entry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const dimensionedScalar c
Speed of light in a vacuum.
readOption
Enumeration defining the read options.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void clearAddressing()
Clear addressing.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write cellZone.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
bool set(const Key &key)
Same as insert (cannot overwrite nil content)
streamFormat
Enumeration for the format of data in the stream.
Cell-face mesh analysis engine.