Go to the documentation of this file.
52 cellSet::clearStorage();
131 for (label celli = 0; celli < maxLen; ++celli)
140 addressing_.setSize(
n);
143 for (label celli = 0; celli < maxLen; ++celli)
147 addressing_[
n] = celli;
158 DynamicList<label> newAddressing(addressing_.size());
160 const cellZoneSet& zoneSet = refCast<const cellZoneSet>(
set);
162 for (
const label celli : zoneSet.addressing())
166 newAddressing.append(celli);
170 addressing_.transfer(newAddressing);
177 DynamicList<label> newAddressing(addressing_);
179 const cellZoneSet& zoneSet = refCast<const cellZoneSet>(
set);
181 for (
const label celli : zoneSet.addressing())
185 newAddressing.append(celli);
189 addressing_.transfer(newAddressing);
196 DynamicList<label> newAddressing(addressing_.size());
198 const cellZoneSet& zoneSet = refCast<const cellZoneSet>(
set);
200 for (
const label celli : addressing_)
202 if (!zoneSet.found(celli))
205 newAddressing.append(celli);
209 addressing_.transfer(newAddressing);
219 addressing_ = sortedToc();
237 word oldTypeName = typeName;
238 const_cast<word&
>(
type()) = cellSet::typeName;
240 const_cast<word&
>(
type()) = oldTypeName;
248 zoneID = cellZones.size();
250 cellZones.setSize(
zoneID+1);
265 cellZones[
zoneID] = addressing_;
269 return ok && cellZones.write(valid);
276 labelList newAddressing(addressing_.size());
279 for (
const label celli : addressing_)
281 label newCelli = morphMap.reverseCellMap()[celli];
284 newAddressing[
n] = newCelli;
288 newAddressing.resize(
n);
290 addressing_.transfer(newAddressing);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
virtual void sync(const polyMesh &mesh)
void set(List< bool > &bools, const labelRange &range)
virtual label maxSize(const polyMesh &mesh) const
virtual void subtractSet(const topoSet &set)
A class for handling words, derived from Foam::string.
void resize(const label len)
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Mesh consisting of general polyhedral cells.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
virtual void addSet(const topoSet &set)
label nCells() const noexcept
virtual void subset(const topoSet &set)
virtual bool found(const label id) const
static void check(const int retVal, const char *what)
patchWriters resize(patchIds.size())
const cellZoneMesh & cellZones() const noexcept
DynamicList< T, SizeMin > & append(const T &val)
virtual bool set(const label id)
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual void invert(const label maxLen)
const labelList & addressing() const
Like cellSet but -reads data from cellZone -updates cellZone when writing.
General set of labels of mesh quantity (points, cells, faces).
virtual void sync(const polyMesh &mesh)
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
const labelIOList & zoneID
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
A collection of cell labels.
label findZoneID(const word &zoneName) const
cellZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
const word & name() const noexcept
const labelList & reverseCellMap() const
virtual void updateMesh(const mapPolyMesh &morphMap)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName::Type type(const fileName &name, const bool followLink=true)
virtual void check(const label maxSize)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
word name(const expressions::valueTypeCode typeCode)
void inplaceReorder(const labelUList &oldToNew, ListType &input, const bool prune=false)
labelList sortedOrder(const UList< T > &input)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)
Cell-face mesh analysis engine.