Go to the documentation of this file.
125 addressing_(refCast<const pointZoneSet>(set).addressing())
144 for (
label pointI = 0; pointI < maxLen; pointI++)
156 for (
label pointI = 0; pointI < maxLen; pointI++)
180 newAddressing.
append(pointI);
201 newAddressing.
append(pointI);
220 if (!fSet.
found(pointI))
223 newAddressing.
append(pointI);
238 return mesh.nPoints();
251 word oldTypeName = typeName;
252 const_cast<word&
>(
type()) = pointSet::typeName;
254 const_cast<word&
>(
type()) = oldTypeName;
262 zoneID = pointZones.size();
264 pointZones.setSize(zoneID+1);
279 pointZones[zoneID] = addressing_;
283 return ok && pointZones.write();
299 newAddressing[
n] = newPointI;
Like pointSet but updates pointZone when writing.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write using given format, version and compression.
A class for handling words, derived from string.
void resize(const label newSize)
Resize the hash table for efficiency.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
compressionType
Enumeration for the format of data in the stream.
A subset of mesh points. The labels of points in the zone can be obtained from the addressing() list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Update any stored data for new labels.
virtual void invert(const label maxLen)
Invert contents. (insert all members 0..maxLen-1 which were not in.
Mesh consisting of general polyhedral cells.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void sync(const polyMesh &mesh)
Sync pointZoneSet across coupled patches.
const pointZoneMesh & pointZones() const
Return point zone mesh.
writeOption
Enumeration defining the write options.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
Write pointZone.
General set of labels of mesh quantity (points, cells, faces).
label size() const
Return number of elements in table.
Macros for easy insertion into run-time selection tables.
bool found(const Key &) const
Return true if hashedEntry is found in table.
label findZoneID(const word &zoneName) const
Find zone index given a name.
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.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
virtual void addSet(const topoSet &set)
Add elements present in set.
virtual void subset(const topoSet &set)
Subset contents. Only elements present in both sets remain.
virtual void deleteSet(const topoSet &set)
Delete elements present in set.
void setSize(const label)
Reset size of List.
void clearStorage()
Clear the table entries and the table itself.
virtual ~pointZoneSet()
Destructor.
const labelList & reversePointMap() const
Reverse point map.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool insert(const Key &key)
Insert a new entry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const dimensionedScalar c
Speed of light in a vacuum.
readOption
Enumeration defining the read options.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void clearAddressing()
Clear addressing.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
pointZoneSet(const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
Construct from objectRegistry and name.
defineTypeNameAndDebug(combustionModel, 0)
const labelList & addressing() const
word name(const complex &)
Return a string representation of a complex.
void updateSet()
Sort addressing and make pointSet part consistent with addressing.
bool set(const Key &key)
Same as insert (cannot overwrite nil content)
streamFormat
Enumeration for the format of data in the stream.
Cell-face mesh analysis engine.