80 const label initialCapacity,
100Foam::cellSet::cellSet
112Foam::cellSet::cellSet
124Foam::cellSet::cellSet
137Foam::cellSet::cellSet
153Foam::cellSet::cellSet
157 const label initialCapacity,
169Foam::cellSet::cellSet
200 reader.readIOcontents(
typeName, labels);
201 reader.checkLabels(labels,
mesh.nCells());
211 return mesh.nCells();
227 for (
const label celli : labels)
235 const label len = contents.size();
239 for (label i=0; i < len; ++i)
241 if (contents.test(i))
252 for (label i=0; i < len; ++i)
254 if (contents.test(i))
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
bool set(const Key &key)
Same as insert (no value to overwrite).
void reserve(label numEntries)
Reserve space for at least the specified number of elements (not the number of buckets) and regenerat...
label size() const noexcept
The number of elements in table.
void clear()
Remove all entries from table.
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true).
@ NO_REGISTER
Do not request registration (bool: false).
readOption
Enumeration defining read preferences.
@ NO_READ
Nothing to be read.
writeOption
Enumeration defining write preferences.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
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.
bool test(const label i) const
Test bool value at specified position, always false for out-of-range access.
void size(const label n)
Older name for setAddressableSize.
A collection of cell labels.
virtual void distribute(const mapDistributePolyMesh &map)
Update any stored data for mesh redistribution.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
static labelHashSet readContents(const polyMesh &mesh, const word &name)
Read and return contents. Intermediate IOobject is not registered.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
void distributeCellData(List< T > &values) const
Distribute list of cell data.
label nOldCells() const noexcept
Number of cells in mesh before distribution.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reverseCellMap() const noexcept
Reverse cell map.
Mesh consisting of general polyhedral cells.
Cell-face mesh analysis engine.
const vectorField & cellCentres() const
General set of labels of mesh quantity (points, cells, faces).
topoSet(const topoSet &)=delete
No copy construct.
static IOobject findIOobject(const polyMesh &mesh, const word &name, IOobjectOption::readOption rOpt=IOobjectOption::MUST_READ, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, IOobjectOption::registerOption reg=IOobjectOption::LEGACY_REGISTER)
Find IOobject in the polyMesh/sets/ (used as constructor helper).
label writeDebug(Ostream &os, const label maxElem, labelHashSet::const_iterator &iter) const
Write part of contents nicely formatted.
virtual void updateLabels(const labelUList &map)
Update map from map.
virtual bool set(const label id)
Set an index.
virtual void check(const label maxSize)
Check limits on addressable range.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
#define defineTypeName(Type)
Define the typeName.
OBJstream os(runTime.globalPath()/outputName)
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
static void check(const int retVal, const char *what)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
List< bool > boolList
A List of bools.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
UList< label > labelUList
A UList of labels.