convertProcessorPatches.H File Reference

Go to the source code of this file.

Functions

fileName vtmOutputBase (outputDir/regionDir/vtkName+timeDesc)
 
 forAll (patchIds, i)
 
patchWriters resize (patchIds.size())
 
List< wordList > procPatchNames (UPstream::nProcs())
 
 for (const label patchId :patchIds)
 
patchWriters resize (nPatchWriters)
 
 if (internalWriter)
 
 for (vtk::patchWriter &writer :patchWriters)
 
patchWriters clear ()
 
 if (UPstream::master() &&nProcPatches)
 

Variables

const label nVolFields
 
const auto subDirNaming
 
autoPtr< vtk::internalWriter > internalWriter
 
PtrList< vtk::patchWriter > patchWriters
 
const polyBoundaryMesh & patches = mesh.boundaryMesh()
 
labelList patchIds
 
label nPatchWriters = 0
 
const label nProcPatches = returnReduce(nPatchWriters, sumOp<label>())
 

Detailed Description

Original source file convertProcessorPatches.H

Definition in file convertProcessorPatches.H.

Function Documentation

◆ vtmOutputBase()

fileName vtmOutputBase ( outputDir/regionDir/vtkName+  timeDesc)

Referenced by for(), if(), and vtkWrite::write().

Here is the caller graph for this function:

◆ forAll()

forAll ( patchIds  ,
 
)

Definition at line 63 of file convertProcessorPatches.H.

References patches, and patchIds.

Referenced by if().

Here is the caller graph for this function:

◆ resize() [1/2]

patchWriters resize ( patchIds.  size())

Referenced by bitSet::andEq(), Field< Foam::vector >::assign(), bitSet::assign(), Field< Foam::vector >::autoMap(), CloudFunctionObjectList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::CloudFunctionObjectList(), CompactIOList< face, label >::CompactIOList(), List< Field< scalar > >::emplace_back(), DynamicList< Foam::vector >::emplace_back(), DynamicField< Foam::vector >::emplace_back(), PtrDynList< Foam::profilingInformation >::emplace_set(), Field< Foam::vector >::Field(), GlobalIOField< vector >::GlobalIOField(), GlobalIOList< kinematicParcelInjectionData >::GlobalIOList(), IjkField< Foam::vector >::IjkField(), InjectionModelList< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::InjectionModelList(), IOList< labelList >::IOList(), Field< Foam::vector >::map(), List< Field< scalar > >::newElmt(), DynamicList< Foam::vector >::operator()(), DynamicField< Foam::vector >::operator()(), PtrList< transferModel >::operator=(), bitSet::orEq(), ParticleForceList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::ParticleForceList(), SubStrings< StringType >::pop_back(), PtrDynList< Foam::profilingInformation >::pop_back(), List< Field< scalar > >::pop_back(), DynamicField< Foam::vector >::pop_back(), DynamicList< Foam::vector >::pop_back(), SubStrings< StringType >::pop_front(), PtrListDictionary< phaseModel >::PtrListDictionary(), PtrDynList< Foam::profilingInformation >::push_back(), PtrList< transferModel >::push_back(), List< Field< scalar > >::push_back(), DynamicList< Foam::vector >::push_back(), DynamicField< Foam::vector >::push_back(), GeometricBoundaryField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::readField(), PtrList< transferModel >::readIstream(), PtrDynList< Foam::profilingInformation >::reserve(), MRFZoneList::reset(), porosityModelList::reset(), optionList::reset(), PtrDynList< Foam::profilingInformation >::resize(), List< Field< scalar > >::resize(), IjkField< Foam::vector >::resize(), PtrListDetail< const Foam::UList >::resize(), PtrList< transferModel >::resize(), SquareMatrix< cmptType >::resize(), DynamicList< Foam::vector >::resize(), DynamicField< Foam::vector >::resize(), token::Compound< T >::resize(), PtrDynList< Foam::profilingInformation >::set(), bitSet::set(), SquareMatrix< cmptType >::setSize(), Matrix< RectangularMatrix< Type >, Type >::setSize(), PtrDynList< Foam::profilingInformation >::shrink_to_fit(), DynamicList< Foam::vector >::shrink_to_fit(), DynamicField< Foam::vector >::shrink_to_fit(), PtrDynList< Foam::profilingInformation >::try_emplace(), bitSet::unset(), and bitSet::xorEq().

◆ procPatchNames()

List<wordList> procPatchNames ( UPstream::nProcs()  )

Referenced by for(), and if().

Here is the caller graph for this function:

◆ for() [1/2]

for ( const label patchId :patchIds  )

Definition at line 79 of file convertProcessorPatches.H.

References Foam::New(), nPatchWriters, patches, patchId(), patchWriters, pp(), procPatchNames(), subDirNaming, vtmOutputBase(), and writer().

Here is the call graph for this function:

◆ resize() [2/2]

◆ if() [1/2]

if ( internalWriter  )

Definition at line 145 of file convertProcessorPatches.H.

References internalWriter.

◆ for() [2/2]

for ( vtk::patchWriter &writer :patchWriters  )

Definition at line 150 of file convertProcessorPatches.H.

References writer().

Here is the call graph for this function:

◆ clear()

patchWriters clear ( )

◆ if() [2/2]

if ( UPstream::master() &&  nProcPatches)

Definition at line 162 of file convertProcessorPatches.H.

References forAll(), Foam::Info, n, Foam::name(), Foam::nl, nProcPatches, outputName(), procPatchNames(), subDirNaming, vtmBoundaries, vtmOutputBase(), and vtmWriter.

Here is the call graph for this function:

Variable Documentation

◆ nVolFields

const label nVolFields
Initial value:
=
(
objects.count(stringListOps::foundOp<word>(fieldTypes::volume))
)
const wordList volume
Standard volume field types (scalar, vector, tensor, etc)

Definition at line 28 of file convertProcessorPatches.H.

Referenced by vtkWrite::write().

◆ subDirNaming

const auto subDirNaming
Initial value:
=
[](const label i) -> fileName
{ return "processor" / ("processor" + Foam::name(i)); }
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127

Definition at line 43 of file convertProcessorPatches.H.

Referenced by for(), and if().

◆ internalWriter

◆ patchWriters

◆ patches

const polyBoundaryMesh& patches = mesh.boundaryMesh()

Definition at line 54 of file convertProcessorPatches.H.

Referenced by isoSurfacePoint::adaptPatchFields(), fvMeshAdder::add(), columnFvMeshInfo::addLocalPatches(), polyTopoChange::addMesh(), zoneCellStencils::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), cellToCellStencil::allCoupledFacesPatch(), lumpedPointMovement::areas(), assemblyFaceAreaPairGAMGAgglomeration::assemblyFaceAreaPairGAMGAgglomeration(), patchMeshWriter::beginPiece(), meshRefinement::blockLeakFaces(), addPatchCellLayer::calcExtrudeInfo(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), solarLoad::calculate(), processorColour::cellColour(), repatchPolyTopoChanger::changePatches(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), hexRef8::checkMesh(), polyMeshGeometry::checkVolRatio(), polyBoundaryMesh::clearAddressing(), polyBoundaryMesh::clearGeom(), processorColour::colour(), adjointEikonalSolver::computeYPhi(), hexRef8::consistentSlowRefinement2(), directionalMeshWave::correct(), SSG< BasicTurbulenceModel >::correct(), LRR< BasicTurbulenceModel >::correct(), advectionDiffusion::correct(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::correctWallShearStress(), decompositionMethod::decompose(), faMeshDecomposition::decomposeMesh(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), snappyRefineDriver::doRefine(), faBoundaryMesh::edgeFaces(), faBoundaryMesh::edgeLabels(), yPlus::execute(), wallHeatFlux::execute(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), faBoundaryMesh::faBoundaryMesh(), faBoundaryMeshMapper::faBoundaryMeshMapper(), fvBoundaryMesh::faceCells(), polyBoundaryMesh::faceCells(), faMeshMapper::faMeshMapper(), localPointRegion::findDuplicateFacePairs(), polyMeshTetDecomposition::findFaceBasePts(), polyBoundaryMesh::findPatchIDs(), for(), forAll(), lumpedPointMovement::forcesAndMoments(), FreeStream< CloudType >::FreeStream(), fvBoundaryMeshMapper::fvBoundaryMeshMapper(), removeCells::getExposedFaces(), GenericPatchGeoFieldsWriter< PatchType >::getFaceField(), combineFaces::getMergeSets(), externalDisplacementMeshMover::getPatch(), surfaceFormatsCore::getSelectedPatches(), globalIndexAndTransform::globalIndexAndTransform(), hexCellFvMesh::hexCellFvMesh(), viewFactor::initialise(), PDRblock::innerMesh(), fvBoundaryMesh::interfaces(), faBoundaryMesh::interfaces(), isoSurfacePoint::isoSurfacePoint(), triSurfaceLoader::load(), localPointRegion::localPointRegion(), patchMeanVelocityForce::magUbarAve(), meshRefinement::makePatch(), volSurfaceMapping::mapInternalToSurface(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), meshRefinement::meshedPatches(), fvBoundaryMesh::movePoints(), processorTopology::New(), faMeshTools::newMesh(), faBoundaryMesh::nNonProcessor(), polyBoundaryMesh::nNonProcessor(), meshSearch::nonCoupledBoundaryTree(), zoneCellStencils::nonEmptyFacesPatch(), faBoundaryMesh::nProcessorPatches(), polyBoundaryMesh::nProcessorPatches(), Schaeffer::nu(), JohnsonJacksonSchaeffer::nu(), polyBoundaryMesh::patchID(), faBoundaryMesh::patchRanges(), polyBoundaryMesh::patchSet(), faBoundaryMesh::patchStarts(), pointBoundaryMeshMapper::pointBoundaryMeshMapper(), polyBoundaryMesh::polyBoundaryMesh(), faMeshTools::printMeshChecks(), externalFileSource::read(), contactHeatFluxSource::read(), triSurfaceMesh::regions(), polyBoundaryMesh::reorder(), snappySnapDriver::repatchToSurface(), patchProbes::sample(), motionSmootherAlgo::scaleMesh(), faBoundaryMesh::setGroup(), polyBoundaryMesh::setGroup(), lumpedPointDisplacementPointPatchVectorField::setPatchControls(), duplicatePoints::setRefinement(), removeCells::setRefinement(), perfectInterface::setRefinement(), combineFaces::setRefinement(), removeFaces::setRefinement(), meshCutAndRemove::setRefinement(), addPatchCellLayer::setRefinement(), triSurface::sortedZones(), oversetFvPatchField< Type >::storeFringeCoefficients(), syncTools::swapBoundaryCellList(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), meshRefinement::testSyncBoundaryFaceList(), triSurface::transfer(), liquidFilmBase::Up(), oversetFvMeshBase::updateAddressing(), motionSmootherAlgo::updateMesh(), liquidFilmBase::Uw(), zoneCellStencils::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), wallLayerCells::wallLayerCells(), streamLineBase::wallPatch(), polyBoundaryMesh::whichPatchFace(), yPlus::write(), wallShearStress::write(), vtkWrite::write(), patchMeshWriter::writeNeighIDs(), patchMeshWriter::writePatchIDs(), patchMeshWriter::writePoints(), patchMeshWriter::writePolys(), patchMeshWriter::writePolysLegacy(), writer::writeSolution(), lumpedPointMovement::writeVTP(), lumpedPointMovement::writeZonesVTP(), wallLubricationModel::zeroGradWalls(), and meshRefinement::zonify().

◆ patchIds

labelList patchIds
Initial value:
=
(
patches.size()-patches.nNonProcessor(),
patches.nNonProcessor()
)
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
Definition: labelLists.C:44
const polyBoundaryMesh & patches

Definition at line 56 of file convertProcessorPatches.H.

Referenced by injectionModelList::correct(), ensightMesh::correct(), forAll(), if(), Foam::lumpedPointTools::lumpedPointPatchList(), filmTurbulenceModel::primaryRegionFriction(), GeometricBoundaryField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::readField(), vtkWrite::write(), lumpedPointMovement::writeVTP(), and lumpedPointMovement::writeZonesVTP().

◆ nPatchWriters

label nPatchWriters = 0

Definition at line 74 of file convertProcessorPatches.H.

Referenced by for(), if(), and vtkWrite::write().

◆ nProcPatches

const label nProcPatches = returnReduce(nPatchWriters, sumOp<label>())