87 const cellZone& fz = cellZones[zoneID];
142 for (
label celli = 0; celli < maxLen; celli++)
154 for (
label celli = 0; celli < maxLen; celli++)
158 addressing_[
n] = celli;
179 newAddressing.
append(celli);
183 addressing_.
transfer(newAddressing);
200 newAddressing.
append(celli);
204 addressing_.
transfer(newAddressing);
217 label celli = addressing_[i];
219 if (!fSet.
found(celli))
222 newAddressing.
append(celli);
226 addressing_.
transfer(newAddressing);
256 word oldTypeName = typeName;
257 const_cast<word&
>(
type()) = cellSet::typeName;
259 const_cast<word&
>(
type()) = oldTypeName;
267 zoneID = cellZones.
size();
283 cellZones[zoneID] = addressing_;
298 label celli = addressing_[i];
302 newAddressing[
n] = newCelli;
308 addressing_.
transfer(newAddressing);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
bool insert(const label &key)
Insert a new entry.
bool set(const label &key)
Same as insert (cannot overwrite nil content)
List< Key > sortedToc() const
Return the table of contents as a sorted list.
void clearStorage()
Clear the table entries and the table itself.
bool found(const Key &) const
Return true if hashedEntry is found in table.
void resize(const label newSize)
Resize the hash table for efficiency.
readOption
Enumeration defining the read options.
const word & name() const
Return name.
writeOption
Enumeration defining the write options.
streamFormat
Enumeration for the format of data in the stream.
compressionType
Enumeration for the format of data in the stream.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< T > set(const label, const word &key, T *)
Set element to pointer provided and return old element.
label findIndex(const word &key) const
Return the index of the given the key or -1 if not found.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
label size() const
Return the number of elements in the UPtrList.
A collection of cell labels.
virtual void sync(const polyMesh &mesh)
Sync cellSet across coupled patches.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
Like cellSet but -reads data from cellZone -updates cellZone when writing.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write=true) const
Write cellZone.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
cellZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
virtual void sync(const polyMesh &mesh)
Sync cellSet across coupled patches; update cellZone from cellSet.
virtual void addSet(const topoSet &set)
Add elements present in set.
const labelList & addressing() const
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
virtual void topoChange(const polyTopoChangeMap &map)
Update any stored data for new labels.
virtual ~cellZoneSet()
Destructor.
void updateSet()
Sort addressing and make cellSet part consistent with addressing.
Mesh consisting of general polyhedral cells.
const cellZoneList & cellZones() const
Return cell zones.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reverseCellMap() const
Reverse cell map.
Cell-face mesh analysis engine.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write) const
Write using given format, version and compression.
virtual bool write(const bool write=true) const
Write using setting from DB.
General set of labels of mesh quantity (points, cells, faces).
void check(const label maxLabel)
Check validity of contents.
A class for handling words, derived from string.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dimensionedScalar c
Speed of light in a vacuum.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
To & refCast(From &r)
Reference type cast template function.
word name(const bool)
Return a word representation of a bool.
int order(const scalar s)
defineTypeNameAndDebug(combustionModel, 0)
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.