Go to the documentation of this file.
53 pointSet::clearStorage();
119 addressing_(refCast<const pointZoneSet>(
set).addressing())
132 for (label pointi = 0; pointi < maxLen; ++pointi)
141 addressing_.setSize(
n);
144 for (label pointi = 0; pointi < maxLen; ++pointi)
148 addressing_[
n] = pointi;
162 for (
const label pointi : zoneSet.addressing())
166 newAddressing.append(pointi);
170 addressing_.transfer(newAddressing);
181 for (
const label pointi : zoneSet.
addressing())
185 newAddressing.
append(pointi);
189 addressing_.transfer(newAddressing);
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_)
288 newAddressing.resize(
n);
290 addressing_.transfer(newAddressing);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Like pointSet but -reads data from pointZone -updates pointZone when writing.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
A class for handling words, derived from Foam::string.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
virtual void invert(const label maxLen)
Invert contents.
Mesh consisting of general polyhedral cells.
label nPoints() const noexcept
Number of mesh points.
writeOption
Enumeration defining the write options.
static void check(const int retVal, const char *what)
patchWriters resize(patchIds.size())
virtual void sync(const polyMesh &mesh)
Sync pointZoneSet across coupled patches.
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
virtual bool set(const label id)
Set an index.
The IOstreamOption is a simple container for options an IOstream can normally have.
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).
virtual void sync(const polyMesh &mesh)
Sync set across coupled patches. Adds coupled points to set.
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
Write using stream options.
label findZoneID(const word &zoneName) const
Find zone index by name, return -1 if not found.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write pointZone using stream options.
virtual void addSet(const topoSet &set)
Add elements present in set.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
const labelList & reversePointMap() const
Reverse point map.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const pointZoneMesh & pointZones() const noexcept
Return point zone mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void inplaceReorder(const labelUList &oldToNew, ListType &input, const bool prune=false)
Inplace reorder the elements of a list.
labelList sortedOrder(const UList< T > &input)
Return the (stable) sort order for the list.
readOption
Enumeration defining the read options.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void clearAddressing()
Clear addressing.
virtual void subtractSet(const topoSet &set)
Subtract elements present in set.
pointZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
defineTypeNameAndDebug(combustionModel, 0)
const labelList & addressing() const
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
Cell-face mesh analysis engine.