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... | |
word & | name () |
Return name for modification. 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... | |
label | index () const |
Return the index of this patch in the boundaryMesh. More... | |
label & | index () |
Return the index of this patch in the boundaryMesh 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... | |
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 33 of file patchIdentifier.C.
Referenced by patchIdentifier::patchIdentifier().
patchIdentifier | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
Construct from dictionary.
Definition at line 48 of file patchIdentifier.C.
References patchIdentifier::patchIdentifier(), and dictionary::readIfPresent().
patchIdentifier | ( | const patchIdentifier & | p, |
const label | index | ||
) |
Construct from geometric patch, resetting the index.
Definition at line 63 of file patchIdentifier.C.
|
virtual |
Destructor.
Definition at line 77 of file patchIdentifier.C.
|
inline |
Return name.
Definition at line 110 of file patchIdentifier.H.
Referenced by polyTopoChange::addMesh(), fvMeshTools::addPatch(), boundaryMesh::addPatch(), processorCyclicPolyPatch::calcGeometry(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), hexRef8::checkMesh(), meshRefinement::checkZoneFaces(), decompositionMethod::decompose(), boundaryMesh::deletePatch(), snappyLayerDriver::doLayers(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), coupleGroupIdentifier::findOtherPatchID(), FaceCellWave< Type, TrackingData >::handleCyclicPatches(), FaceCellWave< Type, TrackingData >::handleProcPatches(), particle< Type >::hitCyclicAMIPatch(), meshToMesh::interpolationMethodAMI(), mappedFixedValueFvPatchField< Type >::mapper(), MeshedSurface< Foam::face >::MeshedSurface(), fvPatch::name(), facePointPatch::name(), NamedEnum< directionType, 3 >::names(), regionModel::nbrCoupledPatchID(), polyBoundaryMesh::neighbourEdges(), cyclicACMIPolyPatch::nonOverlapPatchID(), combineEqOp< Type, TrackingData >::operator()(), boundaryMesh::patchify(), patchInteractionDataList::patchInteractionDataList(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), thermalBaffleModel::read(), boundaryMesh::read(), cyclicRepeatAMIPolyPatch::resetAMI(), cyclicACMIPolyPatch::resetAMI(), mappedPatchBase::samplePatch(), mappedPatchBase::sampleRegion(), motionSmootherAlgo::scaleMesh(), processorCyclicPolyPatch::tag(), meshRefinement::testSyncBoundaryFaceList(), cyclicPolyPatch::transformGlobalFace(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), patch::update(), and boundaryMesh::writeTriSurface().
|
inline |
Return name for modification.
Definition at line 116 of file patchIdentifier.H.
|
inline |
Return the optional physical type of the patch.
Definition at line 122 of file patchIdentifier.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::deletePatch(), boundaryMesh::patchify(), boundaryMesh::read(), and boundaryMesh::writeTriSurface().
|
inline |
Return the optional physical type of the patch for modification.
Definition at line 128 of file patchIdentifier.H.
|
inline |
Return the index of this patch in the boundaryMesh.
Definition at line 134 of file patchIdentifier.H.
Referenced by ThermoSurfaceFilm< CloudType >::absorbInteraction(), ThermoSurfaceFilm< CloudType >::bounceInteraction(), processorCyclicPolyPatch::calcGeometry(), boundaryMesh::changePatchType(), LocalInteraction< CloudType >::correct(), ThermoSurfaceFilm< CloudType >::drySplashInteraction(), radiationCoupledBase::emissivity(), facePointPatch::index(), fvPatch::index(), meshToMesh::interpolationMethodAMI(), cyclicPolyPatch::owner(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::patchData(), patchInteractionDataList::patchInteractionDataList(), PatchCollisionDensity< CloudType >::postPatch(), PatchPostProcessing< CloudType >::postPatch(), ParticleErosion< CloudType >::postPatch(), ThermoSurfaceFilm< CloudType >::splashInteraction(), ThermoSurfaceFilm< CloudType >::transferParcel(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), and ThermoSurfaceFilm< CloudType >::wetSplashInteraction().
|
inline |
Return the index of this patch in the boundaryMesh for modification.
Definition at line 140 of file patchIdentifier.H.
|
inline |
Return the optional groups patch belongs to.
Definition at line 146 of file patchIdentifier.H.
Referenced by polyBoundaryMesh::setGroup().
|
inline |
Return the optional groups patch belongs to for modification.
Definition at line 152 of file patchIdentifier.H.
References patchIdentifier::inGroup(), patchIdentifier::operator<<, and patchIdentifier::write().
bool inGroup | ( | const word & | name | ) | const |
Test if in group.
Definition at line 83 of file patchIdentifier.C.
References Foam::findIndex().
Referenced by patchIdentifier::inGroups(), and polyBoundaryMesh::setGroup().
void write | ( | Ostream & | os | ) | const |
Write patchIdentifier as a dictionary.
Definition at line 89 of file patchIdentifier.C.
References List< T >::size(), and Foam::writeEntry().
Referenced by patchIdentifier::inGroups(), Foam::operator<<(), boundaryPatch::write(), genericPolyPatch::write(), oldCyclicPolyPatch::write(), and polyPatch::write().
|
friend |
Referenced by patchIdentifier::inGroups().