Go to the documentation of this file.
58 class mapDistributePolyMesh;
205 const word& wantedType,
313 virtual bool found(
const label
id)
const;
316 virtual bool set(
const label
id);
319 virtual bool unset(
const label
id);
329 virtual void invert(
const label maxLen);
369 template<
class Container>
378 template<
class Container>
void writeDebug(Ostream &os, const label maxElem, topoSet::const_iterator &iter, label &elemI) const
Write part of contents nicely formatted. Prints labels only.
static fileName localPath(const polyMesh &mesh, const word &name)
Name of file set will use.
topoSet(const topoSet &)=delete
No copy construct.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static void setInstance(const fileName &instance, Container &)
Helper: set instance on all sets in container.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for handling file names.
void operator=(const topoSet &)
Copy labelHashSet part only.
const fileName & instance() const noexcept
virtual void deleteSet(const topoSet &set)
Deprecated(2018-10) subtract elements present in set.
static int disallowGenericSets
Debug switch to disallow the use of generic sets.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
static autoPtr< topoSet > New(const word &setType, const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Return a pointer to a toposet read from file.
virtual void invert(const label maxLen)
Invert contents.
Mesh consisting of general polyhedral cells.
static IOobject findIOobject(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Find IOobject in the polyMesh/sets (used as constructor helper)
typename parent_type::const_key_iterator const_iterator
A const_iterator, returning reference to the key.
virtual void addSet(const topoSet &set)
Add elements present in set.
writeOption
Enumeration defining the write options.
autoPtr< topoSet > clone() const
Clone.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual bool found(const label id) const
Has the given index?
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels. Not implemented.
virtual bool set(const label id)
Set an index.
declareRunTimeSelectionTable(autoPtr, topoSet, word,(const polyMesh &mesh, const word &name, readOption r, writeOption w),(mesh, name, r, w))
virtual void subtractSet(const topoSet &set)
Subtract elements present in set.
General set of labels of mesh quantity (points, cells, faces).
virtual label maxSize(const polyMesh &mesh) const =0
Return max allowable index (+1). Not implemented.
OBJstream os(runTime.globalPath()/outputName)
const word & name() const noexcept
Return name.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual void distribute(const mapDistributePolyMesh &)=0
Update any stored data for mesh redistribution.
virtual bool writeData(Ostream &) const
Write contents.
virtual ~topoSet()=default
Destructor.
virtual bool unset(const label id)
Unset an index.
virtual void check(const label maxSize)
Check limits on addressable range.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
TypeName("topoSet")
Runtime type information.
readOption
Enumeration defining the read options.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
virtual void sync(const polyMesh &mesh)
Sync set across coupled patches.
virtual void updateLabels(const labelUList &map)
Update map from map.
static void removeFiles(const polyMesh &)
Helper: remove all sets files from mesh instance.
Cell-face mesh analysis engine.