patchIdentifier Class Reference

Identifies a patch by name and index, with optional physical type and group information. More...

Inheritance diagram for patchIdentifier:
[legend]

Public Member Functions

 patchIdentifier (const patchIdentifier &)=default
 Copy construct. More...
 
patchIdentifieroperator= (const patchIdentifier &)=default
 Copy assignment. More...
 
virtual ~patchIdentifier ()=default
 Destructor. More...
 
 patchIdentifier ()
 Default construct. Uses name="", index=0. More...
 
 patchIdentifier (const word &name, const label index)
 Construct from mandatory components. More...
 
 patchIdentifier (const word &name, const label index, const word &physicalType, 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 &ident, const label index)
 Copy construct, resetting the index. More...
 
const wordname () const noexcept
 The patch name. More...
 
wordname () noexcept
 Modifiable patch name. More...
 
label index () const noexcept
 The index of this patch in the boundaryMesh. More...
 
label & index () noexcept
 Modifiable index of this patch in the boundaryMesh. More...
 
const wordphysicalType () const noexcept
 The (optional) physical type of the patch. More...
 
wordphysicalType () noexcept
 Modifiable (optional) physical type of the patch. More...
 
const wordListinGroups () const noexcept
 The (optional) groups that the patch belongs to. More...
 
wordListinGroups () noexcept
 Modifiable (optional) groups that the patch belongs to. More...
 
bool inGroup (const word &name) const
 True if given name is in a group. More...
 
void write (Ostream &os) const
 

Static Public Member Functions

static word defaultName (const label n=-1)
 Default patch name: "patch" or "patchN". More...
 

Detailed Description

Identifies a patch by name and index, with optional physical type and group information.

Source files

Definition at line 55 of file patchIdentifier.H.

Constructor & Destructor Documentation

◆ patchIdentifier() [1/6]

patchIdentifier ( const patchIdentifier )
default

Copy construct.

◆ ~patchIdentifier()

virtual ~patchIdentifier ( )
virtualdefault

Destructor.

◆ patchIdentifier() [2/6]

Default construct. Uses name="", index=0.

Definition at line 34 of file patchIdentifier.C.

◆ patchIdentifier() [3/6]

patchIdentifier ( const word name,
const label  index 
)

Construct from mandatory components.

Definition at line 42 of file patchIdentifier.C.

◆ patchIdentifier() [4/6]

patchIdentifier ( const word name,
const label  index,
const word physicalType,
const wordList inGroups = wordList() 
)

Construct from components.

Definition at line 53 of file patchIdentifier.C.

◆ patchIdentifier() [5/6]

patchIdentifier ( const word name,
const dictionary dict,
const label  index 
)

Construct from dictionary.

Definition at line 68 of file patchIdentifier.C.

References dict, and dictionary::readIfPresent().

Here is the call graph for this function:

◆ patchIdentifier() [6/6]

patchIdentifier ( const patchIdentifier ident,
const label  index 
)

Copy construct, resetting the index.

Definition at line 82 of file patchIdentifier.C.

Member Function Documentation

◆ defaultName()

static word defaultName ( const label  n = -1)
inlinestatic

Default patch name: "patch" or "patchN".

Definition at line 76 of file patchIdentifier.H.

References n.

Referenced by voxelMeshSearch::makeMesh().

Here is the caller graph for this function:

◆ operator=()

patchIdentifier& operator= ( const patchIdentifier )
default

Copy assignment.

Referenced by polyPatch::operator=().

Here is the caller graph for this function:

◆ name() [1/2]

const word& name ( ) const
inlinenoexcept

The patch name.

Definition at line 135 of file patchIdentifier.H.

Referenced by cyclicAMIPolyPatch::addAMIFaces(), polyTopoChange::addMesh(), boundaryMesh::addPatch(), faPatchData::assign(), boundaryRadiationProperties::boundaryRadiationProperties(), symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), boundaryMesh::changeFaces(), boundaryMesh::changePatchType(), hexRef8::checkMesh(), lumpedPointMovement::checkPatchControl(), symmetryFaPatch::clone(), emptyFaPatch::clone(), faPatch::clone(), ConstantField< Type >::ConstantField(), cyclicAMIPolyPatch::cylindricalCS(), boundaryMesh::deletePatch(), snappyLayerDriver::doLayers(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), faMesh::faMesh(), coupleGroupIdentifier::findOtherPatchID(), FaceCellWave< Type, TrackingData >::handleProcPatches(), particle< Type >::hitCyclicAMIPatch(), patchIdentifier::inGroup(), cyclicAMIPolyPatch::interpolate(), trackingInverseDistance::markBoundaries(), facePointPatch::name(), fvPatch::name(), polyBoundaryMesh::neighbourEdges(), cyclicACMIPolyPatch::nonOverlapPatchID(), boundaryMesh::patchify(), fvMeshDistribute::printMeshInfo(), polyMeshAdder::procPatchPairs(), boundaryMesh::read(), AMIWeights::reportPatch(), cyclicACMIPolyPatch::resetAMI(), cyclicACMIFvPatch::resetPatchAreas(), cyclicAMIPolyPatch::restoreScaledGeometry(), motionSmootherAlgo::scaleMesh(), cyclicACMIPolyPatch::scalePatchFaceAreas(), solidAbsorption::solidAbsorption(), processorCyclicPolyPatch::tag(), meshRefinement::testSyncBoundaryFaceList(), cyclicPolyPatch::transformGlobalFace(), dynamicMotionSolverFvMeshAMI::update(), cyclicACMIPolyPatch::updateAreas(), vtkWrite::write(), boundaryMesh::writeTriSurface(), and AMIWeights::writeWeightField().

◆ name() [2/2]

word& name ( )
inlinenoexcept

Modifiable patch name.

Definition at line 141 of file patchIdentifier.H.

◆ index() [1/2]

label index ( ) const
inlinenoexcept

The index of this patch in the boundaryMesh.

Definition at line 147 of file patchIdentifier.H.

Referenced by KinematicSurfaceFilm< CloudType >::absorbInteraction(), cyclicAMIPolyPatch::addAMIFaces(), KinematicSurfaceFilm< CloudType >::bounceInteraction(), boundaryPatch::boundaryPatch(), boundaryMesh::changePatchType(), lumpedPointMovement::checkPatchControl(), symmetryFaPatch::clone(), emptyFaPatch::clone(), emptyPolyPatch::clone(), wallPolyPatch::clone(), symmetryPolyPatch::clone(), oversetPolyPatch::clone(), genericPolyPatch::clone(), symmetryPlanePolyPatch::clone(), cyclicSlipPolyPatch::clone(), nonuniformTransformCyclicPolyPatch::clone(), wedgePolyPatch::clone(), cyclicPeriodicAMIPolyPatch::clone(), mappedVariableThicknessWallPolyPatch::clone(), mappedPolyPatch::clone(), mappedWallPolyPatch::clone(), processorCyclicPolyPatch::clone(), faPatch::clone(), processorPolyPatch::clone(), oldCyclicPolyPatch::clone(), polyPatch::clone(), cyclicACMIPolyPatch::clone(), cyclicPolyPatch::clone(), cyclicAMIPolyPatch::clone(), LocalInteraction< CloudType >::correct(), MultiInteraction< CloudType >::correct(), StandardWallInteraction< CloudType >::correct(), RecycleInteraction< CloudType >::correct(), KinematicSurfaceFilm< CloudType >::drySplashInteraction(), lumpedPointMovement::hasPatchControl(), facePointPatch::index(), fvPatch::index(), cyclicACMIFvPatch::movePoints(), cyclicFaPatch::neighbPatchID(), mappedPolyPatch::neighbPolyPatchID(), mappedWallPolyPatch::neighbPolyPatchID(), cyclicAMIPolyPatch::neighbPolyPatchID(), cyclicPolyPatch::owner(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::patchData(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), PatchCollisionDensity< CloudType >::postPatch(), ParticleErosion< CloudType >::postPatch(), PatchPostProcessing< CloudType >::postPatch(), PatchInteractionFields< CloudType >::postPatch(), PatchParticleHistogram< CloudType >::postPatch(), AMIWeights::read(), lumpedPointMovement::setPatchControl(), KinematicSurfaceFilm< CloudType >::splashInteraction(), ThermoSurfaceFilm< CloudType >::transferParcel(), KinematicSurfaceFilm< CloudType >::transferParcel(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), KinematicSurfaceFilm< CloudType >::wetSplashInteraction(), and vtkWrite::write().

◆ index() [2/2]

label& index ( )
inlinenoexcept

Modifiable index of this patch in the boundaryMesh.

Definition at line 153 of file patchIdentifier.H.

◆ physicalType() [1/2]

const word& physicalType ( ) const
inlinenoexcept

The (optional) physical type of the patch.

Definition at line 159 of file patchIdentifier.H.

Referenced by boundaryMesh::addPatch(), boundaryMesh::changeFaces(), boundaryMesh::deletePatch(), boundaryMesh::patchify(), boundaryMesh::read(), and boundaryMesh::writeTriSurface().

Here is the caller graph for this function:

◆ physicalType() [2/2]

word& physicalType ( )
inlinenoexcept

Modifiable (optional) physical type of the patch.

Definition at line 165 of file patchIdentifier.H.

◆ inGroups() [1/2]

const wordList& inGroups ( ) const
inlinenoexcept

The (optional) groups that the patch belongs to.

Definition at line 171 of file patchIdentifier.H.

◆ inGroups() [2/2]

wordList& inGroups ( )
inlinenoexcept

Modifiable (optional) groups that the patch belongs to.

Definition at line 177 of file patchIdentifier.H.

◆ inGroup()

bool inGroup ( const word name) const
inline

True if given name is in a group.

Definition at line 183 of file patchIdentifier.H.

References patchIdentifier::name().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write (physicalType, inGroups) dictionary entries (without surrounding braces)

Definition at line 96 of file patchIdentifier.C.

References token::END_STATEMENT, Foam::nl, os(), Ostream::writeEntry(), and Ostream::writeKeyword().

Referenced by Foam::operator<<(), boundaryPatch::write(), genericPolyPatch::write(), faPatch::write(), oldCyclicPolyPatch::write(), and polyPatch::write().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: