Like cellSet but updates cellZone when writing. More...
#include <meshTools/cellZoneSet.H>
Like cellSet but updates cellZone when writing.
Definition at line 50 of file cellZoneSet.H.
Public Member Functions | |
TypeName ("cellZoneSet") | |
Runtime type information.
| |
cellZoneSet (const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE) | |
Construct from objectRegistry and name.
| |
cellZoneSet (const polyMesh &mesh, const word &name, const label, writeOption w=NO_WRITE) | |
Construct from additional size of labelHashSet.
| |
cellZoneSet (const polyMesh &mesh, const word &name, const topoSet &, writeOption w=NO_WRITE) | |
Construct from existing set.
| |
virtual | ~cellZoneSet () |
const labelList & | addressing () const |
labelList & | addressing () |
void | updateSet () |
Sort addressing and make cellSet 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 cellZoneSet 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 cellZone.
| |
virtual void | updateMesh (const mapPolyMesh &morphMap) |
Update any stored data for new labels.
| |
virtual label | maxSize (const polyMesh &mesh) const |
Return max index+1.
|
cellZoneSet | ( | 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 cellZoneSet.C.
References polyMesh::cellZones(), ZoneMesh< ZoneType, MeshType >::findZoneID(), IOobject::MUST_READ, primitiveMesh::nCells(), and IOobject::READ_IF_PRESENT.
cellZoneSet | ( | 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 cellZoneSet.C.
cellZoneSet | ( | const polyMesh & | mesh, |
const word & | name, | ||
const topoSet & | set, | ||
writeOption | w = NO_WRITE
|
||
) |
Construct from existing set.
Definition at line 115 of file cellZoneSet.C.
~cellZoneSet | ( | ) | [virtual]
|
Definition at line 132 of file cellZoneSet.C.
TypeName | ( | "cellZoneSet" | ) |
Runtime type information.
const labelList& addressing | ( | ) | const [inline]
|
Definition at line 104 of file cellZoneSet.H.
Referenced by cellZoneSet::addSet(), and setToCellZone::applyToSet().
labelList& addressing | ( | ) | [inline]
|
Definition at line 109 of file cellZoneSet.H.
void updateSet | ( | ) |
Sort addressing and make cellSet part consistent with addressing.
Definition at line 50 of file cellZoneSet.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 cellZoneSet::addSet(), setToCellZone::applyToSet(), cellZoneSet::deleteSet(), cellZoneSet::invert(), cellZoneSet::subset(), and cellZoneSet::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 cellZoneSet.C.
References HashTable< nil, label, Hash< label > >::found(), List< T >::setSize(), and cellZoneSet::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 cellZoneSet.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), forAll, HashTable< nil, label, Hash< label > >::found(), List< T >::size(), List< T >::transfer(), and cellZoneSet::updateSet().
void addSet | ( | const topoSet & | set ) | [virtual]
|
Add elements present in set.
Reimplemented from topoSet.
Definition at line 176 of file cellZoneSet.C.
References cellZoneSet::addressing(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), forAll, HashTable< nil, label, Hash< label > >::found(), List< T >::transfer(), and cellZoneSet::updateSet().
void deleteSet | ( | const topoSet & | set ) | [virtual]
|
Delete elements present in set.
Reimplemented from topoSet.
Definition at line 197 of file cellZoneSet.C.
References List< T >::append(), forAll, List< T >::size(), List< T >::transfer(), and cellZoneSet::updateSet().
void sync | ( | const polyMesh & | mesh ) | [virtual]
|
Sync cellZoneSet across coupled patches.
Reimplemented from cellSet.
Definition at line 219 of file cellZoneSet.C.
void writeDebug | ( | Ostream & | os, |
const primitiveMesh & | mesh, | ||
const label | maxLen | ||
) | const [virtual]
|
Write maxLen items with label and coordinates.
Reimplemented from cellSet.
Definition at line 299 of file cellZoneSet.C.
References cellSet::writeDebug().
bool writeObject | ( | IOstream::streamFormat | s, |
IOstream::versionNumber | v, | ||
IOstream::compressionType | c | ||
) | const [virtual]
|
Write cellZone.
Write using given format, version and compression.
Reimplemented from regIOobject.
Definition at line 231 of file cellZoneSet.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 cellSet.
Definition at line 274 of file cellZoneSet.C.
References forAll, mapPolyMesh::reverseCellMap(), List< T >::setSize(), List< T >::size(), List< T >::transfer(), and cellZoneSet::updateSet().
label maxSize | ( | const polyMesh & | mesh ) | const [virtual]
|
Return max index+1.
Reimplemented from cellSet.
Definition at line 223 of file cellZoneSet.C.
References primitiveMesh::nCells().