131 for (label celli = 0; celli < maxLen; ++celli)
140 addressing_.setSize(
n);
143 for (label celli = 0; celli < maxLen; ++celli)
147 addressing_[
n] = celli;
160 const cellZoneSet& zoneSet = refCast<const cellZoneSet>(set);
162 for (
const label celli : zoneSet.
addressing())
166 newAddressing.
append(celli);
170 addressing_.transfer(newAddressing);
179 const cellZoneSet& zoneSet = refCast<const cellZoneSet>(set);
181 for (
const label celli : zoneSet.
addressing())
185 newAddressing.
append(celli);
189 addressing_.transfer(newAddressing);
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;
240 const_cast<word&
>(
type()) = oldTypeName;
265 cellZones[
zoneID] = addressing_;
269 return ok && cellZones.
write(valid);
276 labelList newAddressing(addressing_.size());
279 for (
const label celli : addressing_)
284 newAddressing[
n] = newCelli;
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.
A collection of cell labels.
Like cellSet but -reads data from cellZone -updates cellZone 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 cellZone 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 cellSet part consistent with 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 & reverseCellMap() const
Reverse cell map.
void updateMesh()
Update for new mesh topology.
Mesh consisting of general polyhedral cells.
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
Cell-face mesh analysis engine.
label nCells() const noexcept
Number of mesh cells.
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.