#include <OpenFOAM/ZoneMesh.H>
List of mesh zones.
Definition at line 62 of file ZoneMesh.H.
Inheritance diagram for ZoneMesh< ZoneType, MeshType >:
Collaboration diagram for ZoneMesh< ZoneType, MeshType >:Public Member Functions | |
| ZoneMesh (const IOobject &, const MeshType &) | |
| Read constructor given IOobject and a MeshType reference.
| |
| ZoneMesh (const IOobject &, const MeshType &, const label size) | |
| Construct given size.
| |
| ~ZoneMesh () | |
| const MeshType & | mesh () const |
| Return the mesh reference.
| |
| const Map< label > & | zoneMap () const |
| Map of zones containing zone index for all zoned elements.
| |
| label | whichZone (const label objectIndex) const |
| Given a global object index, return the zone it is in. If.
| |
| wordList | types () const |
| Return a list of zone types.
| |
| wordList | names () const |
| Return a list of zone names.
| |
| label | findZoneID (const word &zoneName) const |
| Find zone index given a name.
| |
| void | clearAddressing () |
| Clear addressing.
| |
| void | clear () |
| Clear the zones.
| |
| bool | checkDefinition (const bool report=false) const |
| Check zone definition. Return true if in error.
| |
| void | movePoints (const pointField &) |
| Correct zone mesh after moving points.
| |
| bool | writeData (Ostream &) const |
| writeData member function required by regIOobject
| |
Friends | |
| Ostream & | operator (Ostream &, const ZoneMesh< ZoneType, MeshType > &) |
Read constructor given IOobject and a MeshType reference.
Definition at line 81 of file ZoneMesh.C.
References IOstream::check(), forAll, IOobject::MUST_READ, IOobject::READ_IF_PRESENT, PtrList< T >::set(), PtrList< T >::setSize(), and PtrList< T >::size().
Construct given size.
Definition at line 140 of file ZoneMesh.C.
| ~ZoneMesh | ( | ) |
Definition at line 156 of file ZoneMesh.C.
| const MeshType& mesh | ( | ) | const [inline]
|
Return the mesh reference.
Definition at line 116 of file ZoneMesh.H.
| const Map< 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 166 of file ZoneMesh.C.
| 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 180 of file ZoneMesh.C.
References HashTable< T, Key, Hash >::end(), and HashTable< T, Key, Hash >::find().
Referenced by meshRefinement::mergeBaffles(), polyMeshAdder::mergePoints(), removeCells::setRefinement(), edgeCollapser::setRefinement(), and perfectInterface::setRefinement().
| wordList types | ( | ) | const |
Return a list of zone types.
Definition at line 198 of file ZoneMesh.C.
References forAll, and PtrList< T >::size().
| wordList names | ( | ) | const |
Return a list of zone names.
Definition at line 215 of file ZoneMesh.C.
References forAll, and PtrList< T >::size().
Referenced by meshRefinement::checkCoupledFaceZones(), displacementInterpolationFvMotionSolver::displacementInterpolationFvMotionSolver(), cellTable::operator=(), and meshRefinement::zonify().
| label findZoneID | ( | const word & | zoneName ) | const |
Find zone index given a name.
Definition at line 231 of file ZoneMesh.C.
References Foam::endl(), forAll, Foam::Info, and Foam::name().
Referenced by meshRefinement::balance(), cellZoneSet::cellZoneSet(), faceZoneSet::faceZoneSet(), autoSnapDriver::getZoneSurfacePoints(), pointZoneSet::pointZoneSet(), autoSnapDriver::repatchToSurface(), sampledPlane::sampledPlane(), sampledPlane::update(), ZoneID< faceZone >::update(), pointZoneSet::writeObject(), faceZoneSet::writeObject(), cellZoneSet::writeObject(), and meshRefinement::zonify().
| void clearAddressing | ( | ) |
Clear addressing.
Definition at line 258 of file ZoneMesh.C.
References Foam::deleteDemandDrivenData(), and forAll.
Referenced by Foam::polyMeshZipUpCells(), polyMesh::updateMesh(), pointZoneSet::writeObject(), faceZoneSet::writeObject(), and cellZoneSet::writeObject().
| void clear | ( | ) |
Clear the zones.
Reimplemented from PtrList< ZoneType >.
Definition at line 272 of file ZoneMesh.C.
References PtrList< T >::clear().
Referenced by polyMeshAdder::add(), and cellTable::addCellZones().
| bool checkDefinition | ( | const bool | report = false
) |
const |
Check zone definition. Return true if in error.
Definition at line 281 of file ZoneMesh.C.
References forAll.
| void movePoints | ( | const pointField & | p ) |
Correct zone mesh after moving points.
Definition at line 297 of file ZoneMesh.C.
References forAll.
| bool writeData | ( | Ostream & | os ) | const [virtual]
|
writeData member function required by regIOobject
Implements regIOobject.
Definition at line 310 of file ZoneMesh.C.
References IOstream::good().