Go to the documentation of this file.
53 pointSet::clearStorage();
132 for (label pointi = 0; pointi < maxLen; ++pointi)
141 addressing_.setSize(
n);
144 for (label pointi = 0; pointi < maxLen; ++pointi)
148 addressing_[
n] = pointi;
158 DynamicList<label> newAddressing(addressing_.size());
160 const pointZoneSet& zoneSet = refCast<const pointZoneSet>(
set);
162 for (
const label pointi : zoneSet.addressing())
166 newAddressing.append(pointi);
170 addressing_.transfer(newAddressing);
177 DynamicList<label> newAddressing(addressing_);
179 const pointZoneSet& zoneSet = refCast<const pointZoneSet>(
set);
181 for (
const label pointi : zoneSet.addressing())
185 newAddressing.append(pointi);
189 addressing_.transfer(newAddressing);
196 DynamicList<label> newAddressing(addressing_.size());
198 const pointZoneSet& zoneSet = refCast<const pointZoneSet>(
set);
200 for (label pointi : addressing_)
202 if (!zoneSet.found(pointi))
205 newAddressing.append(pointi);
209 addressing_.transfer(newAddressing);
219 addressing_ = sortedToc();
237 word oldTypeName = typeName;
238 const_cast<word&
>(
type()) = pointSet::typeName;
240 const_cast<word&
>(
type()) = oldTypeName;
248 zoneID = pointZones.size();
250 pointZones.setSize(
zoneID+1);
265 pointZones[
zoneID] = addressing_;
269 return ok && pointZones.write(valid);
276 labelList newAddressing(addressing_.size());
279 for (
const label pointi : addressing_)
281 const label
newPointi = morphMap.reversePointMap()[pointi];
288 newAddressing.resize(
n);
290 addressing_.transfer(newAddressing);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
Like pointSet but -reads data from pointZone -updates pointZone when writing.
virtual void updateMesh(const mapPolyMesh &morphMap)
void set(List< bool > &bools, const labelRange &range)
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
virtual label maxSize(const polyMesh &mesh) const
virtual void invert(const label maxLen)
Mesh consisting of general polyhedral cells.
label nPoints() const noexcept
virtual bool found(const label id) const
static void check(const int retVal, const char *what)
patchWriters resize(patchIds.size())
virtual void sync(const polyMesh &mesh)
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 writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
General set of labels of mesh quantity (points, cells, faces).
virtual void sync(const polyMesh &mesh)
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
label findZoneID(const word &zoneName) const
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
virtual void addSet(const topoSet &set)
virtual void subset(const topoSet &set)
const word & name() const noexcept
const labelList & reversePointMap() const
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)
const pointZoneMesh & pointZones() const noexcept
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,...
virtual void subtractSet(const topoSet &set)
pointZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
defineTypeNameAndDebug(combustionModel, 0)
const labelList & addressing() const
Cell-face mesh analysis engine.