Like pointSet but updates pointZone when writing. More...
#include <meshTools/pointZoneSet.H>
Like pointSet but updates pointZone when writing.
Definition at line 50 of file pointZoneSet.H.
Public Member Functions | |
TypeName ("pointZoneSet") | |
Runtime type information.
| |
pointZoneSet (const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE) | |
Construct from objectRegistry and name.
| |
pointZoneSet (const polyMesh &mesh, const word &name, const label, writeOption w=NO_WRITE) | |
Construct from additional size of labelHashSet.
| |
pointZoneSet (const polyMesh &mesh, const word &name, const topoSet &, writeOption w=NO_WRITE) | |
Construct from existing set.
| |
virtual | ~pointZoneSet () |
const labelList & | addressing () const |
labelList & | addressing () |
void | updateSet () |
Sort addressing and make pointSet part consistent with addressing.
| |
virtual void | invert (const label maxLen) |
Invert contents. (insert all members 0..maxLen-1 which were not in.
| |
virtual void | subset (const topoSet &set) |
Subset contents. Only elements present in both sets remain.
| |
virtual void | addSet (const topoSet &set) |
Add elements present in set.
| |
virtual void | deleteSet (const topoSet &set) |
Delete elements present in set.
| |
virtual void | sync (const polyMesh &mesh) |
Sync pointZoneSet across coupled patches.
| |
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.
| |
virtual void | updateMesh (const mapPolyMesh &morphMap) |
Update any stored data for new labels.
| |
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.
Definition at line 68 of file pointZoneSet.C.
References ZoneMesh< ZoneType, MeshType >::findZoneID(), IOobject::MUST_READ, primitiveMesh::nPoints(), polyMesh::pointZones(), and IOobject::READ_IF_PRESENT.
pointZoneSet | ( | const polyMesh & | mesh, |
const word & | name, | ||
const label | size, | ||
writeOption | w = NO_WRITE
|
||
) |
Construct from additional size of labelHashSet.
Definition at line 99 of file pointZoneSet.C.
pointZoneSet | ( | const polyMesh & | mesh, |
const word & | name, | ||
const topoSet & | set, | ||
writeOption | w = NO_WRITE
|
||
) |
Construct from existing set.
Definition at line 115 of file pointZoneSet.C.
~pointZoneSet | ( | ) | [virtual]
|
Definition at line 132 of file pointZoneSet.C.
TypeName | ( | "pointZoneSet" | ) |
Runtime type information.
const labelList& addressing | ( | ) | const [inline]
|
Definition at line 107 of file pointZoneSet.H.
Referenced by pointZoneSet::addSet(), and setToPointZone::applyToSet().
labelList& addressing | ( | ) | [inline]
|
Definition at line 112 of file pointZoneSet.H.
void updateSet | ( | ) |
Sort addressing and make pointSet part consistent with addressing.
Definition at line 50 of file pointZoneSet.C.
References HashTable< nil, label, Hash< label > >::clearStorage(), forAll, Foam::inplaceReorder(), HashSet< label, Hash< label > >::insert(), HashTable< nil, label, Hash< label > >::resize(), List< T >::size(), and Foam::sortedOrder().
Referenced by pointZoneSet::addSet(), setToPointZone::applyToSet(), pointZoneSet::deleteSet(), pointZoneSet::invert(), pointZoneSet::subset(), and pointZoneSet::updateMesh().
void invert | ( | const label | maxLen ) | [virtual]
|
Invert contents. (insert all members 0..maxLen-1 which were not in.
set)
Reimplemented from topoSet.
Definition at line 138 of file pointZoneSet.C.
References HashTable< nil, label, Hash< label > >::found(), List< T >::setSize(), and pointZoneSet::updateSet().
void subset | ( | const topoSet & | set ) | [virtual]
|
Subset contents. Only elements present in both sets remain.
Reimplemented from topoSet.
Definition at line 155 of file pointZoneSet.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), forAll, HashTable< nil, label, Hash< label > >::found(), List< T >::size(), List< T >::transfer(), and pointZoneSet::updateSet().
void addSet | ( | const topoSet & | set ) | [virtual]
|
Add elements present in set.
Reimplemented from topoSet.
Definition at line 176 of file pointZoneSet.C.
References pointZoneSet::addressing(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), forAll, HashTable< nil, label, Hash< label > >::found(), List< T >::transfer(), and pointZoneSet::updateSet().
void deleteSet | ( | const topoSet & | set ) | [virtual]
|
Delete elements present in set.
Reimplemented from topoSet.
Definition at line 197 of file pointZoneSet.C.
References List< T >::append(), forAll, List< T >::size(), List< T >::transfer(), and pointZoneSet::updateSet().
void sync | ( | const polyMesh & | mesh ) | [virtual]
|
Sync pointZoneSet across coupled patches.
Reimplemented from pointSet.
Definition at line 219 of file pointZoneSet.C.
void writeDebug | ( | Ostream & | os, |
const primitiveMesh & | mesh, | ||
const label | maxLen | ||
) | const [virtual]
|
Write maxLen items with label and coordinates.
Reimplemented from pointSet.
Definition at line 299 of file pointZoneSet.C.
References pointSet::writeDebug().
bool writeObject | ( | IOstream::streamFormat | s, |
IOstream::versionNumber | v, | ||
IOstream::compressionType | c | ||
) | const [virtual]
|
Write pointZone.
Write using given format, version and compression.
Reimplemented from regIOobject.
Definition at line 231 of file pointZoneSet.C.
References ZoneMesh< ZoneType, MeshType >::clearAddressing(), ZoneMesh< ZoneType, MeshType >::findZoneID(), Foam::name(), PtrList< T >::set(), PtrList< T >::setSize(), PtrList< T >::size(), Foam::type(), regIOobject::write(), and regIOobject::writeObject().
void updateMesh | ( | const mapPolyMesh & | morphMap ) | [virtual]
|
Update any stored data for new labels.
Reimplemented from pointSet.
Definition at line 274 of file pointZoneSet.C.
References forAll, mapPolyMesh::reversePointMap(), List< T >::setSize(), List< T >::size(), List< T >::transfer(), and pointZoneSet::updateSet().
label maxSize | ( | const polyMesh & | mesh ) | const [virtual]
|
Return max index+1.
Reimplemented from pointSet.
Definition at line 223 of file pointZoneSet.C.
References primitiveMesh::nPoints().