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);
181 for (
const label pointi : zoneSet.
addressing())
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();
237 word oldTypeName = typeName;
240 const_cast<word&
>(
type()) = oldTypeName;
265 pointZones[
zoneID] = addressing_;
269 return ok && pointZones.
write(valid);
276 labelList newAddressing(addressing_.size());
279 for (
const label pointi : addressing_)
290 addressing_.transfer(newAddressing);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
label maxSize() const
The max row length used.
void invert()
Return the matrix inverse into itself if no elem is equal to zero.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
virtual bool resize()
Resize the ODE solver.
const word & name() const noexcept
Return the object name.
writeOption
Enumeration defining the write options.
readOption
Enumeration defining the read options.
The IOstreamOption is a simple container for options an IOstream can normally have.
void resize(const label len)
Adjust allocated size of list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void clearStorage()
Clear the list and delete storage.
const T * set(const label i) const
void setSize(const label newLen)
Same as resize()
void size(const label n)
Older name for setAddressableSize.
label size() const noexcept
The number of elements in the list.
label findZoneID(const word &zoneName) const
Find zone index by name, return -1 if not found.
void clearAddressing()
Clear addressing.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write using stream options.
void sync()
Do all: synchronise all IOFields and objectRegistry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
void updateMesh()
Update for new mesh topology.
Like pointSet but -reads data from pointZone -updates pointZone when writing.
virtual void subtractSet(const topoSet &set)
Subtract elements present in set.
const labelList & addressing() const
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.
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
Mesh consisting of general polyhedral cells.
const pointZoneMesh & pointZones() const noexcept
Return point zone mesh.
Cell-face mesh analysis engine.
label nPoints() const noexcept
Number of mesh points.
void writeDebug() const
Debug write.
virtual bool write(const bool valid=true) const
Write using setting from DB.
General set of labels of mesh quantity (points, cells, faces).
virtual bool found(const label id) const
Has the given index?
virtual void check(const label maxSize)
Check limits on addressable range.
bool set() const
Are all the vector set.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
const labelIOList & zoneID
To & refCast(From &r)
Reference type cast template function.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static const char *const typeName
The type name used in ensight case files.