58class 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>
label size() const noexcept
The number of elements in table.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const fileName & instance() const noexcept
Read access to instance path component.
writeOption
Enumeration defining the write options.
readOption
Enumeration defining the read options.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A const_iterator for iterating across on values.
A class for handling file names.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh consisting of general polyhedral cells.
Cell-face mesh analysis engine.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
General set of labels of mesh quantity (points, cells, faces).
static void setInstance(const fileName &instance, Container &)
Helper: set instance on all sets in container.
virtual void distribute(const mapDistributePolyMesh &)=0
Update any stored data for mesh redistribution.
static void removeFiles(const polyMesh &)
Helper: remove all sets files from mesh instance.
virtual bool writeData(Ostream &) const
Write contents.
void writeDebug(Ostream &os, const label maxElem, topoSet::const_iterator &iter, label &elemI) const
Write part of contents nicely formatted. Prints labels only.
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)
virtual void invert(const label maxLen)
Invert contents.
virtual bool unset(const label id)
Unset an index.
static fileName localPath(const polyMesh &mesh, const word &name)
Name of file set will use.
void operator=(const topoSet &)
Copy labelHashSet part only.
autoPtr< topoSet > clone() const
Clone.
virtual void subtractSet(const topoSet &set)
Subtract elements present in set.
declareRunTimeSelectionTable(autoPtr, topoSet, size,(const polyMesh &mesh, const word &name, const label size, writeOption w),(mesh, name, size, w))
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const =0
virtual void deleteSet(const topoSet &set)
Deprecated(2018-10) subtract elements present in set.
topoSet(const topoSet &)=delete
No copy construct.
declareRunTimeSelectionTable(autoPtr, topoSet, set,(const polyMesh &mesh, const word &name, const topoSet &set, writeOption w),(mesh, name, set, w))
virtual label maxSize(const polyMesh &mesh) const =0
Return max allowable index (+1). Not implemented.
static int disallowGenericSets
Debug switch to disallow the use of generic sets.
virtual void sync(const polyMesh &mesh)
Sync set across coupled patches.
virtual void addSet(const topoSet &set)
Add elements present in set.
TypeName("topoSet")
Runtime type information.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels. Not implemented.
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 subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
virtual void updateLabels(const labelUList &map)
Update map from map.
declareRunTimeSelectionTable(autoPtr, topoSet, word,(const polyMesh &mesh, const word &name, readOption r, writeOption w),(mesh, name, r, w))
virtual bool set(const label id)
Set an index.
virtual ~topoSet()=default
Destructor.
virtual void check(const label maxSize)
Check limits on addressable range.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.