Go to the documentation of this file.
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;
160 const pointZoneSet& zoneSet = refCast<const pointZoneSet>(set);
162 for (
const label pointi : zoneSet.addressing())
166 newAddressing.append(pointi);
170 addressing_.transfer(newAddressing);
179 const pointZoneSet& zoneSet = refCast<const pointZoneSet>(set);
185 newAddressing.
append(pointi);
189 addressing_.transfer(newAddressing);
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();
239 word oldTypeName = typeName;
240 const_cast<word&
>(
type()) = pointSet::typeName;
242 const_cast<word&
>(
type()) = oldTypeName;
250 zoneID = pointZones.size();
252 pointZones.setSize(
zoneID+1);
267 pointZones[
zoneID] = addressing_;
271 return ok && pointZones.write(valid);
278 labelList newAddressing(addressing_.size());
281 for (
const label pointi : addressing_)
290 newAddressing.resize(
n);
292 addressing_.transfer(newAddressing);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
label size() const noexcept
The number of elements in table.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
Write using given format, version and compression.
Like pointSet but -reads data from pointZone -updates pointZone when writing.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
A class for handling words, derived from Foam::string.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool valid) const
Write pointZone.
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.
writeOption
Enumeration defining the write options.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Representation of a major/minor version number.
virtual void sync(const polyMesh &mesh)
Sync pointZoneSet across coupled patches.
const pointZoneMesh & pointZones() const
Return point zone mesh.
word name(const complex &c)
Return string representation of complex.
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.
void resize(const label sz)
Resize the hash table for efficiency.
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.
streamFormat
Data format (ascii | binary)
Macros for easy insertion into run-time selection tables.
const labelIOList & zoneID
label findZoneID(const word &zoneName) const
Find zone index given a name, return -1 if not found.
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.
void clearStorage()
Clear the table entries and the table itself.
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.
label nPoints() const
Number of mesh points.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const dimensionedScalar c
Speed of light in a vacuum.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
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.