Identifies patch by name, patch index and physical type. More...
Public Member Functions | |
patchIdentifier (const word &name, const label index, const word &physicalType=word::null, const wordList &inGroups=wordList()) | |
Construct from components. More... | |
patchIdentifier (const word &name, const dictionary &, const label index) | |
Construct from dictionary. More... | |
patchIdentifier (const patchIdentifier &, const label index) | |
Construct from geometric patch, resetting the index. More... | |
virtual | ~patchIdentifier () |
Destructor. More... | |
const word & | name () const |
Return name. More... | |
label | index () const |
Return the index of this patch in the boundaryMesh. More... | |
const word & | physicalType () const |
Return the optional physical type of the patch. More... | |
word & | physicalType () |
Return the optional physical type of the patch for modification. More... | |
const wordList & | inGroups () const |
Return the optional groups patch belongs to. More... | |
wordList & | inGroups () |
Return the optional groups patch belongs to for modification. More... | |
bool | inGroup (const word &) const |
Test if in group. More... | |
void | write (Ostream &) const |
Write patchIdentifier as a dictionary. More... | |
Protected Attributes | |
word | name_ |
Name of patch. More... | |
label | index_ |
Index of patch in boundary. More... | |
word | physicalType_ |
Optional physical type. More... | |
wordList | inGroups_ |
Optional groups patch belongs to. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const patchIdentifier &) |
Identifies patch by name, patch index and physical type.
Definition at line 57 of file patchIdentifier.H.
patchIdentifier | ( | const word & | name, |
const label | index, | ||
const word & | physicalType = word::null , |
||
const wordList & | inGroups = wordList() |
||
) |
Construct from components.
Definition at line 32 of file patchIdentifier.C.
patchIdentifier | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 47 of file patchIdentifier.C.
References dict, patchIdentifier::inGroups_, and patchIdentifier::physicalType_.
patchIdentifier | ( | const patchIdentifier & | p, |
const label | index | ||
) |
Construct from geometric patch, resetting the index.
Definition at line 62 of file patchIdentifier.C.
|
virtual |
Destructor.
Definition at line 77 of file patchIdentifier.C.
|
inline |
Return name.
Definition at line 112 of file patchIdentifier.H.
References patchIdentifier::name_.
Referenced by repatchMesh::addPatch(), fvMeshTools::addPatch(), symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), nonConformalMappedPatchBase::calcOwner(), repatchMesh::changePatchType(), Foam::meshCheck::checkGeometry(), hexRef8::checkMesh(), Foam::meshCheck::checkTopology(), Foam::meshCheck::checkWedges(), meshRefinement::checkZoneFaces(), cyclicPolyPatch::cyclicPolyPatch(), decompositionMethod::decompose(), repatchMesh::deletePatch(), snappyLayerDriver::doLayers(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), coupleGroupIdentifier::findOtherPatchID(), mappedPatchBase::getMap(), FaceCellWave< Type, TrackingData >::handleCyclicPatches(), FaceCellWave< Type, TrackingData >::handleProcPatches(), MomentumParcel< ParcelType >::hitWallPatch(), meshToMesh::meshToMesh(), fvPatch::name(), facePointPatch::name(), polyBoundaryMesh::nbrEdges(), nonConformalMappedPatchBase::nbrMappedPatch(), polyPatch::New(), mappedExtrudedPatchBase::patchFaceAreas(), mappedExtrudedPatchBase::patchLocalPoints(), Foam::polyMeshUnMergeCyclics(), polyTopoChange::polyTopoChange(), fvMeshDistribute::printMeshInfo(), repatchMesh::read(), motionSmootherAlgo::scaleMesh(), processorCyclicPolyPatch::tag(), meshRefinement::testSyncBoundaryFaceList(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), patch::update(), patchToPatchStabilisation::update(), and mappedPatchBaseBase::validateMapForField().
|
inline |
Return the index of this patch in the boundaryMesh.
Definition at line 118 of file patchIdentifier.H.
References patchIdentifier::index_.
Referenced by CloudFilmTransfer< CloudType >::absorbInteraction(), CloudFilmTransfer< CloudType >::bounceInteraction(), repatchMesh::changePatchType(), Foam::meshCheck::checkGeometry(), meshToMesh::consistent(), LocalInteraction< CloudType >::correct(), multiValveEngine::movingObject::createStaticPatchSet(), CloudFilmTransfer< CloudType >::drySplashInteraction(), Foam::meshCheck::findOppositeWedge(), particle::hitNonConformalCyclicPatch(), fvPatch::index(), facePointPatch::index(), polyPatch::New(), cyclicPolyPatch::owner(), MomentumCloud< CloudType >::patchData(), PatchPostProcessing< CloudType >::postPatch(), ParticleErosion< CloudType >::preFace(), PatchCollisionDensity< CloudType >::preFace(), CloudFilmTransfer< CloudType >::splashInteraction(), CloudFilmTransfer< CloudType >::transferParcel(), and CloudFilmTransfer< CloudType >::wetSplashInteraction().
|
inline |
Return the optional physical type of the patch.
Definition at line 124 of file patchIdentifier.H.
References patchIdentifier::physicalType_.
Referenced by repatchMesh::addPatch(), repatchMesh::deletePatch(), and repatchMesh::read().
|
inline |
Return the optional physical type of the patch for modification.
Definition at line 130 of file patchIdentifier.H.
References patchIdentifier::physicalType_.
|
inline |
Return the optional groups patch belongs to.
Definition at line 136 of file patchIdentifier.H.
References patchIdentifier::inGroups_.
Referenced by filmSurfacePolyPatch::filmSurfacePolyPatch(), filmWallPolyPatch::filmWallPolyPatch(), mappedExtrudedWallPolyPatch::mappedExtrudedWallPolyPatch(), mappedFilmSurfacePolyPatch::mappedFilmSurfacePolyPatch(), mappedFilmWallPolyPatch::mappedFilmWallPolyPatch(), mappedInternalPolyPatch::mappedInternalPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), polyPatch::polyPatch(), polyBoundaryMesh::setGroup(), and wallPolyPatch::wallPolyPatch().
|
inline |
Return the optional groups patch belongs to for modification.
Definition at line 142 of file patchIdentifier.H.
References patchIdentifier::inGroups_.
bool inGroup | ( | const word & | name | ) | const |
Test if in group.
Definition at line 83 of file patchIdentifier.C.
References Foam::findIndex(), and Foam::name().
Referenced by polyBoundaryMesh::setGroup().
void write | ( | Ostream & | os | ) | const |
Write patchIdentifier as a dictionary.
Definition at line 89 of file patchIdentifier.C.
References Foam::writeEntry().
Referenced by genericPolyPatch::write(), polyPatch::write(), and repatchPatch::write().
|
friend |
|
protected |
Name of patch.
Definition at line 64 of file patchIdentifier.H.
Referenced by patchIdentifier::name().
|
protected |
Index of patch in boundary.
Definition at line 67 of file patchIdentifier.H.
Referenced by patchIdentifier::index().
|
protected |
Optional physical type.
Definition at line 70 of file patchIdentifier.H.
Referenced by patchIdentifier::patchIdentifier(), and patchIdentifier::physicalType().
|
protected |
Optional groups patch belongs to.
Definition at line 73 of file patchIdentifier.H.
Referenced by patchIdentifier::inGroups(), and patchIdentifier::patchIdentifier().