checkPatchTopology.H File Reference

Input. More...

Go to the source code of this file.

Functions

meshDefDict readIfPresent ("polyMeshPatches", polyPatchNames)
 
const labelList patchIDs (pbm.indices(polyPatchNames, true))
 
 for (const label patchi :patchIDs)
 
labelList faceLabels (nFaceLabels)
 
uindirectPrimitivePatch pp (UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
 
labelHashSet badEdges (pp.nEdges()/20)
 
 if (returnReduceAnd(pp.empty()))
 
else if (UPstream::parRun())
 
 if (foundError)
 

Variables

const polyBoundaryMesh & pbm = mesh.boundaryMesh()
 
wordRes polyPatchNames
 
label nFaceLabels = 0
 
labelHashSet * pointSetPtr = nullptr
 
labelHashSet * badEdgesPtr = &badEdges
 
bool foundError = false
 
 else
 

Detailed Description

Input.

Original source file checkPatchTopology.H

Definition in file checkPatchTopology.H.

Function Documentation

◆ readIfPresent()

◆ patchIDs()

const labelList patchIDs ( pbm.  indicespolyPatchNames, true)

Referenced by preservePatches::add(), snappyLayerDriver::addLayers(), snappyLayerDriver::addLayersSinglePass(), preservePatches::apply(), boundaryMesh::changeFaces(), transferModelList::correct(), injectionModelList::correct(), cellDistFuncs::correctBoundaryFaceCells(), cellDistFuncs::correctBoundaryPointCells(), curvatureSeparation::curvatureSeparation(), structuredDecomp::decompose(), snappyLayerDriver::doLayers(), GeometricBoundaryField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::evaluateSelected(), patchProbes::findElements(), polyBoundaryMesh::findPatchIDs(), GeometricBoundaryField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::GeometricBoundaryField(), externalDisplacementMeshMover::getPatch(), cellDistFuncs::getPatchIDs(), injectionModelList::info(), transferModelList::info(), volPointInterpolationAdjoint::interpolateSensitivitiesField(), layerParameters::layerParameters(), patchMeanVelocityForce::magUbarAve(), meshRefinement::makePatch(), polyBoundaryMesh::matchGroups(), cellDistFuncs::maxPatchSize(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), meshRefinement::meshedPatches(), patchDistMethod::New(), displacementMethod::New(), patchDistMethod::patchTypes(), structuredRenumber::renumber(), sampledPatchInternalField::sampledPatchInternalField(), sampledPatchInternalField::sampleOnPoints(), Foam::selectPatchFaces(), fvMeshSubsetter::setCellSubset(), motionSmootherAlgo::setDisplacement(), motionSmootherAlgo::setDisplacementPatchFields(), faceSetOption::setFaceSelection(), faBoundaryMesh::setGroup(), polyBoundaryMesh::setGroup(), displacementMethod::setPatchIDs(), cellDistFuncs::sumPatchSize(), sampledPatch::update(), and externalCoupled::writeGeometry().

Here is the caller graph for this function:

◆ for()

for ( const label patchi :patchIDs  )

Definition at line 38 of file checkPatchTopology.H.

References nFaceLabels, and pbm.

◆ faceLabels()

◆ pp()

uindirectPrimitivePatch pp ( UIndirectList< face >  mesh.faces(), faceLabels,
mesh.  points() 
)

Referenced by ThermoSurfaceFilm< CloudType >::absorbInteraction(), KinematicSurfaceFilm< CloudType >::absorbInteraction(), isoSurfacePoint::adaptPatchFields(), preservePatches::add(), polyMeshAdder::add(), snappyLayerDriver::addLayers(), snappyLayerDriver::addLayersSinglePass(), polyTopoChange::addMesh(), fvMeshTools::addPatch(), meshRefinement::addPatch(), zoneCellStencils::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), cellToCellStencil::allCoupledFacesPatch(), preservePatches::apply(), searchableSurfaceToFaceZone::applyToSet(), lumpedPointMovement::areas(), sensitivitySurface::assembleSensitivities(), assemblyFaceAreaPairGAMGAgglomeration::assemblyFaceAreaPairGAMGAgglomeration(), averageNeighbourFvGeometryScheme::averageCentres(), averageNeighbourFvGeometryScheme::averageNeighbourCentres(), snappySnapDriver::avgCellCentres(), patchMeshWriter::beginPiece(), meshRefinement::blockLeakFaces(), KinematicSurfaceFilm< CloudType >::bounceInteraction(), boundaryRadiationProperties::boundaryRadiationProperties(), treeDataPrimitivePatch< PatchType >::boxes(), volPointInterpolationAdjoint::calcBoundaryAddressing(), Foam::meshTools::calcBoxPointNormals(), globalMeshData::calcCellCells(), holeToFace::calcClosure(), curvatureSeparation::calcCosAngle(), addPatchCellLayer::calcExtrudeInfo(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), processorCyclicPolyPatch::calcGeometry(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::calcSnapDistance(), viewFactor::calculate(), solarLoad::calculate(), hexRef8::checkMesh(), lumpedPointMovement::checkPatchControl(), Foam::collocatedPatch(), ConstantField< Type >::ConstantField(), reconstructedDistanceFunction::constructRDF(), Rebound< CloudType >::correct(), patchInjection::correct(), MultiInteraction< CloudType >::correct(), LocalInteraction< CloudType >::correct(), StandardWallInteraction< CloudType >::correct(), wallDistAddressing::correct(), limitTemperature::correct(), RecycleInteraction< CloudType >::correct(), meshRefinement::countEdgeFaces(), globalMeshData::coupledPatch(), ReynoldsAnalogy::Cp(), heThermo< BasicSolidThermo, MixtureType >::Cp(), heThermo< BasicSolidThermo, MixtureType >::CpByCpv(), heThermo< BasicSolidThermo, MixtureType >::Cpv(), meshRefinement::createBaffles(), structuredDecomp::decompose(), decompositionMethod::decompose(), snappySnapDriver::detectNearSurfaces(), directions::directions(), snappyLayerDriver::doLayers(), snappySnapDriver::doSnap(), KinematicSurfaceFilm< CloudType >::drySplashInteraction(), wallHeatFlux::execute(), Curle::execute(), faceCoupleInfo::faceLabels(), polyMeshTools::faceOrthogonality(), mappedPatchBase::facePoints(), FacePostProcessing< CloudType >::FacePostProcessing(), polyMeshTools::faceSkewness(), polyMeshTools::faceWeights(), faMesh::faMesh(), patchProbes::findElements(), mappedPatchBase::findLocalSamples(), lduPrimitiveMeshAssembly::findNbrMeshId(), volPointInterpolationAdjoint::flatBoundaryField(), volPointInterpolation::flatBoundaryField(), for(), lumpedPointMovement::forcesAndMoments(), heThermo< BasicSolidThermo, MixtureType >::gamma(), PatchTools::gatherAndMerge(), removeCells::getExposedFaces(), snappySnapDriver::getFacePoints(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), decompositionConstraint::getMinBoundaryValue(), externalDisplacementMeshMover::getPatch(), addPatchCellLayer::globalEdgeFaces(), globalIndexAndTransform::globalIndexAndTransform(), lumpedPointMovement::hasPatchControl(), heThermo< BasicSolidThermo, MixtureType >::he(), heheuPsiThermo< BasicPsiThermo, MixtureType >::heheuPsiThermo(), KinematicParcel< ParcelType >::hitPatch(), if(), isoSurfaceBase::ignoreCyclics(), heatExchangerModel::initialise(), viewFactor::initialise(), fluxSummary::initialiseCellZoneAndDirection(), fluxSummary::initialiseFaceZone(), fluxSummary::initialiseFaceZoneAndDirection(), processorPolyPatch::initOrder(), cyclicACMIPolyPatch::initOrder(), processorCyclicPolyPatch::initOrder(), cyclicPolyPatch::initOrder(), volPointInterpolationAdjoint::interpolateBoundaryField(), isoSurfacePoint::isoSurfacePoint(), heSolidThermo< BasicSolidThermo, MixtureType >::Kappa(), temperatureCoupledBase::kappa(), interfaceOxideRate< Thermo, OtherThermo >::Kexp(), wallPointAddressing::leaveDomain(), localPointRegion::localPointRegion(), highAspectRatioFvGeometryScheme::makeAverageCentres(), mappedVariableThicknessWallFvPatch::makeDeltaCoeffs(), meshRefinement::makePatch(), fvMatrix< Type >::mapContributions(), trackingInverseDistance::markBoundaries(), inverseDistance::markBoundaries(), momentOfInertia::massPropertiesPatch(), meshStructure::meshStructure(), medialAxisMeshMover::move(), regionModel1D::moveMesh(), solidBodyFvGeometryScheme::movePoints(), heheuPsiThermo< BasicPsiThermo, MixtureType >::mub(), heheuPsiThermo< BasicPsiThermo, MixtureType >::muu(), regionModel::nbrCoupledPatchID(), polyBoundaryMesh::neighbourEdges(), cyclicPointPatch::neighbPatch(), cyclicAMIPointPatch::neighbPatch(), cyclicACMIPointPatch::neighbPatch(), cyclicACMIPolyPatch::neighbPatch(), cyclicPolyPatch::neighbPatch(), cyclicAMIPolyPatch::neighbPatch(), wallTransmissivityModel::New(), wallAbsorptionEmissionModel::New(), PatchFunction1< Foam::vector >::New(), PatchFunction1< Foam::vector >::NewCompat(), PatchFunction1< Foam::vector >::NewIfPresent(), meshSearch::nonCoupledBoundaryTree(), faceShading::nonCoupledPatches(), zoneCellStencils::nonEmptyFacesPatch(), opaqueDiffusive::opaqueDiffusive(), opaqueReflective::opaqueReflective(), labelRangeOp< polyPatch >::operator()(), Foam::operator<<(), Foam::operator>>(), oldCyclicPolyPatch::order(), cyclicACMIPolyPatch::order(), processorPolyPatch::order(), processorCyclicPolyPatch::order(), cyclicPolyPatch::order(), cyclicAMIPolyPatch::order(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::patchData(), polyMeshAdder::patchFacePairs(), sampledPatch::patchIDs(), patchInteractionDataList::patchInteractionDataList(), enthalpySorptionFvPatchScalarField::patchSource(), sensitivitySurfacePoints::populateExtendedIDs(), PatchCollisionDensity< CloudType >::postPatch(), CloudFunctionObjectList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::postPatch(), ParticleErosion< CloudType >::postPatch(), PatchInteractionFields< CloudType >::postPatch(), ParticlePostProcessing< CloudType >::postPatch(), ParticleHistogram< CloudType >::postPatch(), fvMeshDistribute::printMeshInfo(), singleDirectionUniformBin::processField(), uniformBin::processField(), polyMeshAdder::procPatchPairs(), heheuPsiThermo< BasicPsiThermo, MixtureType >::psib(), heheuPsiThermo< BasicPsiThermo, MixtureType >::psiu(), AMIWeights::read(), fieldExtents::read(), boundaryMesh::read(), processorCyclicPolyPatch::referPatch(), fvMeshTools::removeEmptyPatches(), RemoveParcels< CloudType >::RemoveParcels(), SloanRenumber::renumber(), structuredRenumber::renumber(), snappySnapDriver::repatchToSurface(), AMIWeights::reportPatch(), sampledPatchInternalField::sampleOnPoints(), sampledPatch::sampleOnPoints(), sampledFaceZone::sampleOnPoints(), motionSmootherAlgo::scaleMesh(), meshRefinement::selectSeparatedCoupledFaces(), sensitivitySurfacePoints::sensitivitySurfacePoints(), uniformBin::setBinsAddressing(), extractEulerianParticles::setBlockedFaces(), motionSmootherAlgo::setDisplacement(), rotorDiskSource::setFaceArea(), fvGeometryScheme::setMeshPhi(), lumpedPointMovement::setPatchControl(), removeCells::setRefinement(), addPatchCellLayer::setRefinement(), shortestPathSet::shortestPathSet(), snappySnapDriver::smoothDisplacement(), solidAbsorption::solidAbsorption(), kinematicSingleLayer::solveMomentum(), kinematicSingleLayer::solveThickness(), KinematicSurfaceFilm< CloudType >::splashInteraction(), Foam::sumNeighbours(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), heheuPsiThermo< BasicPsiThermo, MixtureType >::Tb(), meshRefinement::testSyncBoundaryFaceList(), ThermoSurfaceFilm< CloudType >::transferParcel(), KinematicSurfaceFilm< CloudType >::transferParcel(), transparent::transparent(), polynomial::Tsat(), function1::Tsat(), ensightFaces::uniqueMeshPoints(), dynamicMotionSolverFvMeshAMI::update(), lduPrimitiveMeshAssembly::update(), sampledFaceZone::update(), sampledPatch::update(), oversetFvMeshBase::updateAddressing(), cellMotionFvPatchField< Type >::updateCoeffs(), energyJumpAMIFvPatchScalarField::updateCoeffs(), energyJumpFvPatchScalarField::updateCoeffs(), fixedPressureCompressibleDensityFvPatchScalarField::updateCoeffs(), outletMappedUniformInletHeatAdditionFvPatchField::updateCoeffs(), supersonicFreestreamFvPatchVectorField::updateCoeffs(), speciesSorptionFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), movingWallVelocityFvPatchVectorField::Uwall(), zoneCellStencils::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), polyMeshTools::volRatio(), wallLayerCells::wallLayerCells(), WallLocalSpringSliderDashpot< CloudType >::WallLocalSpringSliderDashpot(), streamLineBase::wallPatch(), KinematicSurfaceFilm< CloudType >::wetSplashInteraction(), OBJstream::write(), AMIWeights::write(), wallShearStress::write(), ensightFaces::write(), vtkWrite::write(), Foam::vtk::writeCellSetFaces(), faBoundaryMesh::writeEntry(), polyBoundaryMesh::writeEntry(), Foam::vtk::writeFaceSet(), patchMeshWriter::writeNeighIDs(), caseInfo::writePatches(), Foam::ensightOutput::writePointField(), patchMeshWriter::writePoints(), patchMeshWriter::writePolys(), patchMeshWriter::writePolysLegacy(), Foam::ensightOutput::writeVolField(), lumpedPointMovement::writeVTP(), AMIWeights::writeWeightField(), lumpedPointMovement::writeZonesVTP(), and meshRefinement::zonify().

◆ badEdges()

labelHashSet badEdges ( pp.nEdges()/  20)

Referenced by if().

Here is the caller graph for this function:

◆ if() [1/3]

if ( returnReduceAnd(pp.empty())  )

Definition at line 69 of file checkPatchTopology.H.

◆ if() [2/3]

else if ( UPstream::parRun()  )

Definition at line 73 of file checkPatchTopology.H.

References badEdgesPtr, forAll, foundError, Foam::max(), mesh, pointSetPtr, pp(), Foam::reduce(), and Foam::Zero.

Here is the call graph for this function:

◆ if() [3/3]

if ( foundError  )

Definition at line 132 of file checkPatchTopology.H.

References badEdges(), Foam::Info, mesh, Foam::nl, pp(), Foam::returnReduce(), and writer().

Here is the call graph for this function:

Variable Documentation

◆ pbm

const polyBoundaryMesh& pbm = mesh.boundaryMesh()

Definition at line 27 of file checkPatchTopology.H.

Referenced by preservePatches::add(), polyMeshAdder::add(), snappyLayerDriver::addLayers(), snappyLayerDriver::addLayersSinglePass(), preservePatches::apply(), searchableSurfaceToFaceZone::applyToSet(), averageNeighbourFvGeometryScheme::averageCentres(), averageNeighbourFvGeometryScheme::averageNeighbourCentres(), meshRefinement::balance(), boundaryRadiationProperties::boundaryRadiationProperties(), SurfaceFilmModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::cacheFilmFields(), volPointInterpolationAdjoint::calcBoundaryAddressing(), globalMeshData::calcCellCells(), curvatureSeparation::calcInvR1(), patchInjection::correct(), pointPatchDist::correct(), directionalPressureGradientExplicitSource::correct(), meshRefinement::createBaffles(), Foam::createReconstructMap(), motionSmootherAlgo::curPoints(), structuredDecomp::decompose(), polyMeshTools::faceOrthogonality(), FacePostProcessing< CloudType >::FacePostProcessing(), polyMeshTools::faceSkewness(), polyMeshTools::faceWeights(), cellVolumeWeight::findHoles(), inverseDistance::findHoles(), coupleGroupIdentifier::findOtherPatchID(), for(), fvBoundaryMesh::fvBoundaryMesh(), meshRefinement::getFaceZoneInfo(), decompositionConstraint::getMinBoundaryValue(), if(), injectionModelList::info(), transferModelList::info(), singleDirectionUniformBin::initialise(), uniformBin::initialise(), fluxSummary::initialiseCellZoneAndDirection(), SurfaceFilmModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::inject(), SurfaceFilmModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::injectParticles(), interpolationCellPatchConstrained< Type >::interpolate(), highAspectRatioFvGeometryScheme::makeAverageCentres(), trackingInverseDistance::markBoundaries(), inverseDistance::markBoundaries(), cellVolumeWeight::markPatchCells(), betaMax::markProcessorEdges(), oversetPolyPatch::master(), Cloud< passivePositionParticle >::move(), solidBodyFvGeometryScheme::movePoints(), regionModel::nbrCoupledPatchID(), faceShading::nonCoupledPatches(), Foam::operator<<(), polyMeshAdder::patchFacePairs(), patchInjection::patchInjection(), pointBoundaryMesh::pointBoundaryMesh(), polyMeshAdder::procPatchPairs(), heatTransferCoeffModel::read(), binModel::read(), wallHeatFlux::read(), wallShearStress::read(), fieldExtents::read(), nearWallFields::read(), Curle::read(), forces::read(), fvBoundaryMesh::readUpdate(), fvMeshTools::removeEmptyPatches(), RemoveParcels< CloudType >::RemoveParcels(), structuredRenumber::renumber(), sampledMeshedSurface::sampleOnFaces(), Foam::selectPatchFaces(), rotorDiskSource::setFaceArea(), faceSetOption::setFaceSelection(), shortestPathSet::shortestPathSet(), Foam::sumNeighbours(), dynamicMotionSolverFvMeshAMI::update(), polyMeshTools::volRatio(), AMIWeights::write(), momentum::write(), and caseInfo::writePatches().

◆ polyPatchNames

wordRes polyPatchNames

Definition at line 29 of file checkPatchTopology.H.

Referenced by Foam::selectPatchFaces().

◆ nFaceLabels

nFaceLabels = 0

◆ pointSetPtr

◆ badEdgesPtr

labelHashSet* badEdgesPtr = &badEdges

◆ foundError

◆ else

else
Initial value:
{
const TopoType pTyp = pp.surfaceType(badEdgesPtr)
labelHashSet * badEdgesPtr
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())

Definition at line 126 of file checkPatchTopology.H.