A list of mesh zones. More...
Public Member Functions | |
ZoneMesh (const IOobject &, const MeshType &) | |
Read constructor given IOobject and a MeshType reference. More... | |
ZoneMesh (const IOobject &, const MeshType &, const label size) | |
Construct given size. More... | |
ZoneMesh (const IOobject &, const MeshType &, const PtrList< ZoneType > &) | |
Construct given a PtrList. More... | |
~ZoneMesh () | |
Destructor. More... | |
const MeshType & | mesh () const |
Return the mesh reference. More... | |
const Map< label > & | zoneMap () const |
Map of zones containing zone index for all zoned elements. More... | |
label | whichZone (const label objectIndex) const |
Given a global object index, return the zone it is in. More... | |
wordList | types () const |
Return a list of zone types. More... | |
wordList | names () const |
Return a list of zone names. More... | |
labelList | findIndices (const keyType &) const |
Return zone indices for all matches. More... | |
label | findIndex (const keyType &) const |
Return zone index for the first match, return -1 if not found. More... | |
label | findZoneID (const word &zoneName) const |
Find zone index given a name. More... | |
PackedBoolList | findMatching (const keyType &) const |
Mark cells that match the zone specification. More... | |
void | clearAddressing () |
Clear addressing. More... | |
void | clear () |
Clear the zones. More... | |
bool | checkDefinition (const bool report=false) const |
Check zone definition. Return true if in error. More... | |
bool | checkParallelSync (const bool report=false) const |
Check whether all procs have all zones and in same order. Return. More... | |
void | movePoints (const pointField &) |
Correct zone mesh after moving points. More... | |
bool | writeData (Ostream &) const |
writeData member function required by regIOobject More... | |
const ZoneType & | operator[] (const word &) const |
Return const reference to ZoneType by name. More... | |
ZoneType & | operator[] (const word &) |
Return reference to ZoneType by name. More... | |
Private Member Functions | |
bool | read () |
Read if IOobject flags set. Return true if read. More... | |
ZoneMesh (const ZoneMesh &) | |
Disallow construct as copy. More... | |
void | operator= (const ZoneMesh< ZoneType, MeshType > &) |
Disallow assignment. More... | |
void | calcZoneMap () const |
Create zone map. More... | |
Private Attributes | |
const MeshType & | mesh_ |
Reference to mesh. More... | |
Map< label > * | zoneMapPtr_ |
Map of zone labels for given element. More... | |
Friends | |
Ostream & | operator (Ostream &, const ZoneMesh< ZoneType, MeshType > &) |
Read constructor given IOobject and a MeshType reference.
Construct given a PtrList.
~ZoneMesh | ( | ) |
Destructor.
Definition at line 200 of file ZoneMesh.C.
|
private |
Read if IOobject flags set. Return true if read.
Definition at line 74 of file ZoneMesh.C.
|
private |
Create zone map.
Definition at line 35 of file ZoneMesh.C.
|
inline |
Return the mesh reference.
Definition at line 127 of file ZoneMesh.H.
Referenced by faceZone::calcFaceZonePatch().
const Foam::Map< Foam::label > & zoneMap | ( | ) | const |
Map of zones containing zone index for all zoned elements.
Return -1 if the object is not in the zone
Definition at line 211 of file ZoneMesh.C.
Foam::label whichZone | ( | const label | objectIndex | ) | const |
Given a global object index, return the zone it is in.
If object does not belong to any zones, return -1
Definition at line 226 of file ZoneMesh.C.
Referenced by layerAdditionRemoval::addCellLayer(), slidingInterface::calcAttachedAddressing(), changePatchID(), slidingInterface::coupleInterface(), attachDetach::detachInterface(), meshCutter::getFaceInfo(), insertDuplicateMerge(), main(), meshRefinement::mergeBaffles(), layerAdditionRemoval::removeCellLayer(), removeCells::setRefinement(), perfectInterface::setRefinement(), and edgeCollapser::setRefinement().
Foam::wordList types | ( | ) | const |
Return a list of zone types.
Definition at line 246 of file ZoneMesh.C.
Foam::wordList names | ( | ) | const |
Return a list of zone names.
Definition at line 263 of file ZoneMesh.C.
Referenced by preserveFaceZonesConstraint::add(), surfaceZonesInfo::addCellZonesToMesh(), meshReader::addFaceZones(), surfaceZonesInfo::addFaceZonesToMesh(), preserveFaceZonesConstraint::apply(), displacementInterpolationMotionSolver::calcInterpolation(), meshRefinement::checkCoupledFaceZones(), zoneToPoint::combine(), zoneToFace::combine(), zoneToCell::combine(), faceZoneToCell::combine(), polyMeshAdder::mergeCellZones(), polyMeshAdder::mergeFaceZones(), polyMeshAdder::mergePointZones(), multiSolidBodyMotionFvMesh::multiSolidBodyMotionFvMesh(), fvMeshTools::newMesh(), cellTable::operator=(), cellSource::setCellZoneCells(), faceSource::setFaceZoneFaces(), solidBodyMotionFvMesh::solidBodyMotionFvMesh(), and displacementLayeredMotionMotionSolver::solve().
Foam::labelList findIndices | ( | const keyType & | key | ) | const |
Return zone indices for all matches.
Definition at line 280 of file ZoneMesh.C.
Foam::label findIndex | ( | const keyType & | key | ) | const |
Return zone index for the first match, return -1 if not found.
Definition at line 313 of file ZoneMesh.C.
Foam::label findZoneID | ( | const word & | zoneName | ) | const |
Find zone index given a name.
Definition at line 348 of file ZoneMesh.C.
Referenced by surfaceZonesInfo::addCellZone(), surfaceZonesInfo::addFaceZone(), displacementInterpolationMotionSolver::calcInterpolation(), cellZoneSet::cellZoneSet(), vtkPV4Foam::convertVolField(), vtkPV3Foam::convertVolFields(), FacePostProcessing< CloudType >::FacePostProcessing(), faceZoneSet::faceZoneSet(), meshRefinement::findCellZoneInsideWalk(), meshRefinement::getZoneBafflePatches(), interRegionExplicitPorositySource::initialise(), multiSolidBodyMotionFvMesh::multiSolidBodyMotionFvMesh(), pointZoneSet::pointZoneSet(), removeZone(), fvMeshDistribute::sendMesh(), cellSource::setCellZoneCells(), faceSource::setFaceZoneFaces(), solidBodyMotionFvMesh::solidBodyMotionFvMesh(), displacementLayeredMotionMotionSolver::solve(), cellZoneSet::writeObject(), pointZoneSet::writeObject(), faceZoneSet::writeObject(), and meshRefinement::zonify().
Foam::PackedBoolList findMatching | ( | const keyType & | key | ) | const |
Mark cells that match the zone specification.
Definition at line 377 of file ZoneMesh.C.
Referenced by sampledPlane::update().
void clearAddressing | ( | ) |
Clear addressing.
Definition at line 394 of file ZoneMesh.C.
Referenced by interRegionExplicitPorositySource::initialise(), removeZone(), reorderMesh(), polyTopoChange::resetZones(), polyMesh::updateMesh(), domainDecomposition::writeDecomposition(), cellZoneSet::writeObject(), pointZoneSet::writeObject(), and faceZoneSet::writeObject().
void clear | ( | ) |
Clear the zones.
Definition at line 408 of file ZoneMesh.C.
Referenced by polyMeshAdder::add(), cellTable::addCellZones(), Foam::loadOrCreateMesh(), and fvMeshTools::newMesh().
bool checkDefinition | ( | const bool | report = false | ) | const |
Check zone definition. Return true if in error.
Definition at line 418 of file ZoneMesh.C.
bool checkParallelSync | ( | const bool | report = false | ) | const |
Check whether all procs have all zones and in same order. Return.
true if in error.
Definition at line 436 of file ZoneMesh.C.
void movePoints | ( | const pointField & | p | ) |
Correct zone mesh after moving points.
Definition at line 514 of file ZoneMesh.C.
bool writeData | ( | Ostream & | os | ) | const |
writeData member function required by regIOobject
Definition at line 527 of file ZoneMesh.C.
|
private |
Reference to mesh.
Definition at line 70 of file ZoneMesh.H.
Referenced by ZoneMesh< cellZone, polyMesh >::mesh().
Map of zone labels for given element.
Definition at line 73 of file ZoneMesh.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.