144 for (
label pointi = 0; pointi < maxLen; pointi++)
156 for (
label pointi = 0; pointi < maxLen; pointi++)
160 addressing_[
n] = pointi;
180 newAddressing.
append(pointi);
184 addressing_.
transfer(newAddressing);
201 newAddressing.
append(pointi);
205 addressing_.
transfer(newAddressing);
218 label pointi = addressing_[i];
220 if (!fSet.
found(pointi))
223 newAddressing.
append(pointi);
227 addressing_.
transfer(newAddressing);
257 word oldTypeName = typeName;
258 const_cast<word&
>(
type()) = pointSet::typeName;
260 const_cast<word&
>(
type()) = oldTypeName;
268 zoneID = pointZones.
size();
284 pointZones[zoneID] = addressing_;
299 label pointi = addressing_[i];
309 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.
virtual void sync(const polyMesh &mesh)
Sync set across coupled patches. Adds coupled points to set.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Update any stored data for new labels.
Like pointSet but -reads data from pointZone -updates pointZone when writing.
virtual ~pointZoneSet()
Destructor.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
pointZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
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 pointZone.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
virtual void sync(const polyMesh &mesh)
Sync pointZoneSet across coupled patches.
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.
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
A subset of mesh points. The labels of points in the zone can be obtained from the addressing() list.
Mesh consisting of general polyhedral cells.
const pointZoneList & pointZones() const
Return point zones.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point 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.