Identifies patch by name, patch index and physical type. More...
#include <OpenFOAM/patchIdentifier.H>
Identifies patch by name, patch index and physical type.
Definition at line 58 of file patchIdentifier.H.
Public Member Functions | |
patchIdentifier (const word &name, const label index, const word &physicalType=word::null) | |
Construct from components. | |
patchIdentifier (const word &name, const dictionary &, const label index) | |
Construct from dictionary. | |
patchIdentifier (const patchIdentifier &, const label index) | |
Construct from geometric patch, resetting the index. | |
virtual | ~patchIdentifier () |
const word & | name () const |
Return name. | |
word & | name () |
Return name for modification. | |
const word & | physicalType () const |
Return the optional physical type of the patch. | |
word & | physicalType () |
Return the optional physical type of the patch for modification. | |
label | index () const |
Return the index of this patch in the boundaryMesh. | |
label & | index () |
Return the index of this patch in the boundaryMesh for modification. | |
void | write (Ostream &) const |
Write patchIdentifier as a dictionary. |
Friends | |
Ostream & | operator<< (Ostream &, const patchIdentifier &) |
patchIdentifier | ( | const word & | name, |
const label | index, | ||
const word & | physicalType = word::null |
||
) |
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 45 of file patchIdentifier.C.
References dictionary::readIfPresent().
patchIdentifier | ( | const patchIdentifier & | p, |
const label | index | ||
) |
Construct from geometric patch, resetting the index.
Definition at line 59 of file patchIdentifier.C.
|
virtual |
Definition at line 72 of file patchIdentifier.C.
|
inline |
Return name.
Definition at line 108 of file patchIdentifier.H.
Referenced by polyTopoChange::addMesh(), boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), hexRef8::checkMesh(), boundaryMesh::deletePatch(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), cellDistFuncs::getPatchIDs(), MeshedSurface< Face >::MeshedSurface(), fvPatch::name(), facePointPatch::name(), polyBoundaryMesh::neighbourEdges(), boundaryMesh::patchify(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), motionSmoother::scaleMesh(), perfectInterface::setRefinement(), meshRefinement::testSyncBoundaryFaceList(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), and boundaryMesh::writeTriSurface().
|
inline |
Return name for modification.
Definition at line 114 of file patchIdentifier.H.
|
inline |
Return the optional physical type of the patch.
Definition at line 120 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 126 of file patchIdentifier.H.
|
inline |
Return the index of this patch in the boundaryMesh.
Definition at line 132 of file patchIdentifier.H.
Referenced by boundaryMesh::changePatchType(), MaxwellianThermal< CloudType >::correct(), MixedDiffuseSpecular< CloudType >::correct(), LocalInteraction< CloudType >::correct(), DsmcParcel< ParcelType >::hitWallPatch(), fvPatch::index(), facePointPatch::index(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureCoupledBaffleFvPatchScalarField::updateCoeffs().
|
inline |
Return the index of this patch in the boundaryMesh for modification.
Definition at line 138 of file patchIdentifier.H.
void write | ( | Ostream & | os | ) | const |
Write patchIdentifier as a dictionary.
Reimplemented in cyclicPolyPatch, polyPatch, processorPolyPatch, directMappedWallPolyPatch, directMappedPolyPatch, genericPolyPatch, and boundaryPatch.
Definition at line 78 of file patchIdentifier.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().
Referenced by Foam::operator<<(), boundaryPatch::write(), genericPolyPatch::write(), and polyPatch::write().
|
friend |