Like faceSet but updates faceZone when writing. More...
#include <meshTools/faceZoneSet.H>
Like faceSet but updates faceZone when writing.
Definition at line 50 of file faceZoneSet.H.
Public Member Functions | |
TypeName ("faceZoneSet") | |
Runtime type information.
| |
faceZoneSet (const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE) | |
Construct from objectRegistry and name.
| |
faceZoneSet (const polyMesh &mesh, const word &name, const label, writeOption w=NO_WRITE) | |
Construct from additional size of labelHashSet.
| |
faceZoneSet (const polyMesh &mesh, const word &name, const topoSet &, writeOption w=NO_WRITE) | |
Construct from existing set.
| |
virtual | ~faceZoneSet () |
const labelList & | addressing () const |
labelList & | addressing () |
const boolList & | flipMap () const |
boolList & | flipMap () |
void | updateSet () |
Sort addressing and make faceSet 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 faceZoneSet 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 faceZone.
| |
virtual void | updateMesh (const mapPolyMesh &morphMap) |
Update any stored data for new labels.
| |
virtual label | maxSize (const polyMesh &mesh) const |
Return max index+1.
|
faceZoneSet | ( | const polyMesh & | mesh, |
const word & | name, | ||
readOption | r = MUST_READ ,
|
||
writeOption | w = NO_WRITE
|
||
) |
Construct from objectRegistry and name.
Definition at line 69 of file faceZoneSet.C.
References polyMesh::faceZones(), ZoneMesh< ZoneType, MeshType >::findZoneID(), faceZone::flipMap(), IOobject::MUST_READ, primitiveMesh::nFaces(), and IOobject::READ_IF_PRESENT.
faceZoneSet | ( | const polyMesh & | mesh, |
const word & | name, | ||
const label | size, | ||
writeOption | w = NO_WRITE
|
||
) |
Construct from additional size of labelHashSet.
Definition at line 102 of file faceZoneSet.C.
faceZoneSet | ( | const polyMesh & | mesh, |
const word & | name, | ||
const topoSet & | set, | ||
writeOption | w = NO_WRITE
|
||
) |
Construct from existing set.
Definition at line 119 of file faceZoneSet.C.
~faceZoneSet | ( | ) | [virtual]
|
Definition at line 137 of file faceZoneSet.C.
TypeName | ( | "faceZoneSet" | ) |
Runtime type information.
const labelList& addressing | ( | ) | const [inline]
|
Definition at line 109 of file faceZoneSet.H.
Referenced by faceZoneSet::addSet(), setToFaceZone::applyToSet(), setsToFaceZone::applyToSet(), faceZoneToFaceZone::applyToSet(), and faceZoneSet::subset().
labelList& addressing | ( | ) | [inline]
|
Definition at line 114 of file faceZoneSet.H.
const boolList& flipMap | ( | ) | const [inline]
|
Definition at line 120 of file faceZoneSet.H.
Referenced by faceZoneSet::addSet(), setToFaceZone::applyToSet(), setsToFaceZone::applyToSet(), faceZoneToFaceZone::applyToSet(), and faceZoneSet::subset().
boolList& flipMap | ( | ) | [inline]
|
Definition at line 125 of file faceZoneSet.H.
void updateSet | ( | ) |
Sort addressing and make faceSet part consistent with addressing.
Definition at line 50 of file faceZoneSet.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 faceZoneSet::addSet(), setToFaceZone::applyToSet(), setsToFaceZone::applyToSet(), faceZoneToFaceZone::applyToSet(), faceZoneSet::deleteSet(), faceZoneSet::invert(), faceZoneSet::subset(), and faceZoneSet::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 143 of file faceZoneSet.C.
References HashTable< nil, label, Hash< label > >::found(), List< T >::setSize(), and faceZoneSet::updateSet().
void subset | ( | const topoSet & | set ) | [virtual]
|
Subset contents. Only elements present in both sets remain.
Reimplemented from topoSet.
Definition at line 162 of file faceZoneSet.C.
References faceZoneSet::addressing(), HashTable< T, label, Hash< label > >::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), faceZoneSet::flipMap(), forAll, IOobject::name(), List< T >::size(), List< T >::transfer(), faceZoneSet::updateSet(), and WarningIn.
void addSet | ( | const topoSet & | set ) | [virtual]
|
Add elements present in set.
Reimplemented from topoSet.
Definition at line 210 of file faceZoneSet.C.
References faceZoneSet::addressing(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), HashTable< T, label, Hash< label > >::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), faceZoneSet::flipMap(), forAll, IOobject::name(), List< T >::size(), List< T >::transfer(), faceZoneSet::updateSet(), and WarningIn.
void deleteSet | ( | const topoSet & | set ) | [virtual]
|
Delete elements present in set.
Reimplemented from topoSet.
Definition at line 261 of file faceZoneSet.C.
References HashTable< T, label, Hash< label > >::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, IOobject::name(), List< T >::size(), List< T >::transfer(), faceZoneSet::updateSet(), and WarningIn.
void sync | ( | const polyMesh & | mesh ) | [virtual]
|
Sync faceZoneSet across coupled patches.
Reimplemented from faceSet.
Definition at line 313 of file faceZoneSet.C.
void writeDebug | ( | Ostream & | os, |
const primitiveMesh & | mesh, | ||
const label | maxLen | ||
) | const [virtual]
|
Write maxLen items with label and coordinates.
Reimplemented from faceSet.
Definition at line 398 of file faceZoneSet.C.
References faceSet::writeDebug().
bool writeObject | ( | IOstream::streamFormat | s, |
IOstream::versionNumber | v, | ||
IOstream::compressionType | c | ||
) | const [virtual]
|
Write faceZone.
Write using given format, version and compression.
Reimplemented from regIOobject.
Definition at line 325 of file faceZoneSet.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 faceSet.
Definition at line 369 of file faceZoneSet.C.
References forAll, mapPolyMesh::reverseFaceMap(), List< T >::setSize(), List< T >::size(), List< T >::transfer(), and faceZoneSet::updateSet().
label maxSize | ( | const polyMesh & | mesh ) | const [virtual]
|
Return max index+1.
Reimplemented from faceSet.
Definition at line 317 of file faceZoneSet.C.
References primitiveMesh::nFaces().