Identifies a 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 &dict, const label index) | |
Construct from dictionary. More... | |
patchIdentifier (const patchIdentifier &p, const label index) | |
Copy construct, resetting the index. More... | |
virtual | ~patchIdentifier ()=default |
Destructor. More... | |
const word & | name () const |
Return the patch name. More... | |
word & | name () |
Modifiable patch name. More... | |
const word & | physicalType () const |
The optional physical type of the patch. More... | |
word & | physicalType () |
Modifiable optional physical type of the patch. More... | |
label | index () const |
The index of this patch in the boundaryMesh. More... | |
label & | index () |
Modifiable the index of this patch in the boundaryMesh. More... | |
const wordList & | inGroups () const |
The optional groups that the patch belongs to. More... | |
wordList & | inGroups () |
Modifiable optional groups that the patch belongs to. More... | |
bool | inGroup (const word &name) const |
Check if the patch is in named group. More... | |
void | write (Ostream &os) const |
Write patchIdentifier as a dictionary. More... | |
Friends | |
Ostream & | operator<< (Ostream &os, const patchIdentifier &p) |
Identifies a 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 35 of file patchIdentifier.C.
patchIdentifier | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index | ||
) |
patchIdentifier | ( | const patchIdentifier & | p, |
const label | index | ||
) |
Copy construct, resetting the index.
Definition at line 65 of file patchIdentifier.C.
|
virtualdefault |
Destructor.
|
inline |
Return the patch name.
Definition at line 109 of file patchIdentifier.H.
Referenced by polyTopoChange::addMesh(), boundaryMesh::addPatch(), boundaryRadiationProperties::boundaryRadiationProperties(), symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), mappedPatchBase::calcMapping(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), hexRef8::checkMesh(), emptyFaPatch::clone(), symmetryFaPatch::clone(), faPatch::clone(), ConstantField< Type >::ConstantField(), boundaryMesh::deletePatch(), snappyLayerDriver::doLayers(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), coupleGroupIdentifier::findOtherPatchID(), FaceCellWave< Type, TrackingData >::handleCyclicPatches(), FaceCellWave< Type, TrackingData >::handleProcPatches(), particle< Type >::hitCyclicAMIPatch(), patchIdentifier::inGroup(), cyclicACMIPolyPatch::initGeometry(), trackingInverseDistance::markBoundaries(), fvPatch::name(), facePointPatch::name(), polyBoundaryMesh::neighbourEdges(), cyclicACMIPolyPatch::nonOverlapPatchID(), boundaryMesh::patchify(), patchInteractionDataList::patchInteractionDataList(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), AMIWeights::reportPatch(), cyclicACMIPolyPatch::resetAMI(), motionSmootherAlgo::scaleMesh(), solidAbsorption::solidAbsorption(), processorCyclicPolyPatch::tag(), meshRefinement::testSyncBoundaryFaceList(), cyclicPolyPatch::transformGlobalFace(), sampledPatch::update(), vtkWrite::write(), boundaryMesh::writeTriSurface(), and AMIWeights::writeWeightField().
|
inline |
Modifiable patch name.
Definition at line 115 of file patchIdentifier.H.
|
inline |
The optional physical type of the patch.
Definition at line 121 of file patchIdentifier.H.
Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::deletePatch(), boundaryMesh::patchify(), boundaryMesh::read(), and boundaryMesh::writeTriSurface().
|
inline |
Modifiable optional physical type of the patch.
Definition at line 127 of file patchIdentifier.H.
|
inline |
The index of this patch in the boundaryMesh.
Definition at line 133 of file patchIdentifier.H.
Referenced by ThermoSurfaceFilm< CloudType >::absorbInteraction(), ThermoSurfaceFilm< CloudType >::bounceInteraction(), boundaryMesh::changePatchType(), emptyFaPatch::clone(), symmetryFaPatch::clone(), emptyPolyPatch::clone(), wallPolyPatch::clone(), symmetryPolyPatch::clone(), oversetPolyPatch::clone(), genericPolyPatch::clone(), symmetryPlanePolyPatch::clone(), cyclicSlipPolyPatch::clone(), nonuniformTransformCyclicPolyPatch::clone(), wedgePolyPatch::clone(), mappedVariableThicknessWallPolyPatch::clone(), cyclicPeriodicAMIPolyPatch::clone(), mappedPolyPatch::clone(), mappedWallPolyPatch::clone(), processorCyclicPolyPatch::clone(), cyclicACMIPolyPatch::clone(), faPatch::clone(), processorPolyPatch::clone(), oldCyclicPolyPatch::clone(), cyclicAMIPolyPatch::clone(), polyPatch::clone(), cyclicPolyPatch::clone(), LocalInteraction< CloudType >::correct(), MultiInteraction< CloudType >::correct(), StandardWallInteraction< CloudType >::correct(), ThermoSurfaceFilm< CloudType >::drySplashInteraction(), FaceCellWave< Type, TrackingData >::handleCyclicPatches(), facePointPatch::index(), fvPatch::index(), cyclicFaPatch::neighbPatchID(), cyclicPolyPatch::owner(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::patchData(), patchInteractionDataList::patchInteractionDataList(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), PatchCollisionDensity< CloudType >::postPatch(), ParticleErosion< CloudType >::postPatch(), PatchPostProcessing< CloudType >::postPatch(), ThermoSurfaceFilm< CloudType >::splashInteraction(), ThermoSurfaceFilm< CloudType >::transferParcel(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), ThermoSurfaceFilm< CloudType >::wetSplashInteraction(), and vtkWrite::write().
|
inline |
Modifiable the index of this patch in the boundaryMesh.
Definition at line 139 of file patchIdentifier.H.
|
inline |
The optional groups that the patch belongs to.
Definition at line 145 of file patchIdentifier.H.
Referenced by polyBoundaryMesh::setGroup().
|
inline |
Modifiable optional groups that the patch belongs to.
Definition at line 151 of file patchIdentifier.H.
Check if the patch is in named group.
Definition at line 79 of file patchIdentifier.C.
References patchIdentifier::name().
Referenced by polyBoundaryMesh::setGroup().
void write | ( | Ostream & | os | ) | const |
Write patchIdentifier as a dictionary.
Definition at line 85 of file patchIdentifier.C.
References token::END_STATEMENT, Foam::nl, Ostream::writeEntry(), and Ostream::writeKeyword().
Referenced by boundaryPatch::write(), genericPolyPatch::write(), faPatch::write(), oldCyclicPolyPatch::write(), and polyPatch::write().
|
friend |