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(), PtrDynList< Foam::profilingInformation >::pop_back(), List< Field< scalar > >::pop_back(), DynamicField< Foam::vector >::pop_back(), DynamicList< Foam::vector >::pop_back(), 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()

patchInterps clear ( )

Referenced by exprDriver::addVariables(), faPatchData::assign(), bitSet::assign(), faPatchData::assign_coupled(), HashSet< word, Hash< word > >::assignMany(), ILList< LListBase, T >::clear(), IjkField< Foam::vector >::clear(), PtrList< transferModel >::clear(), DictionaryBase< DLPtrList< T >, T >::clear(), LPtrList< LListBase, T >::clear(), HashPtrTable< exprResult >::clear(), keyType::clear(), wordRe::clear(), LList< Foam::chemPointISAT< CompType, ThermoType > *>::clear(), ZoneMesh< cellZone, polyMesh >::clear(), UnsortedMeshedSurface< Face >::clear(), dictionary::clear(), PtrDynList< Foam::profilingInformation >::clearStorage(), DynamicList< Foam::vector >::clearStorage(), DynamicField< Foam::vector >::clearStorage(), HashTable< const regIOobject * >::clearStorage(), ensightFaMesh::correct(), ensightMesh::correct(), tmp< Foam::surfaceInterpolationScheme< GType > >::cref(), refPtr< Foam::mapDistributePolyMesh >::cref(), DSMCCloud< ParcelType >::DSMCCloud(), tmp< Foam::surfaceInterpolationScheme< GType > >::emplace(), refPtr< Foam::mapDistributePolyMesh >::emplace(), fieldsExpression::execute(), fieldExpression::execute(), sampledFaceZone::expire(), ensightMesh::expire(), sampledPatch::expire(), exprValue::exprValue(), faceTriangulation::faceTriangulation(), exprResult::getResult(), topoSet::invert(), seriesWriter::load(), mergedSurf::merge(), moleculeCloud::moleculeCloud(), ILList< LListBase, T >::operator=(), UILList< LListBase, T >::operator=(), SortableList< T >::operator=(), LPtrList< LListBase, T >::operator=(), keyType::operator=(), regExpPosix::operator=(), wordRe::operator=(), regExpCxx::operator=(), LList< Foam::chemPointISAT< CompType, ThermoType > *>::operator=(), tmp< Foam::surfaceInterpolationScheme< GType > >::operator=(), refPtr< Foam::mapDistributePolyMesh >::operator=(), CircularBuffer< T >::operator=(), DynamicList< Foam::vector >::operator=(), UnsortedMeshedSurface< Face >::operator=(), Matrix< RectangularMatrix< Type >, Type >::operator=(), exprResult::operator=(), HashTable< const regIOobject * >::operator=(), MeshedSurface< Foam::face >::operator=(), dictionary::operator=(), cuttingSurface::performCut(), cuttingPlane::performCut(), PtrDynList< Foam::profilingInformation >::pop_back(), List< Field< scalar > >::pop_back(), DynamicField< Foam::vector >::pop_back(), DynamicList< Foam::vector >::pop_back(), extendedEdgeMeshFormat::read(), OBJsurfaceFormat< Face >::read(), extendedFeatureEdgeMeshFormat::read(), OFFsurfaceFormat< Face >::read(), NASedgeFormat::read(), STARCDsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), ABAQUSsurfaceFormat< Face >::read(), GTSsurfaceFormat< Face >::read(), TRIsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), STARCDedgeFormat::read(), edgeMeshFormat::read(), STLsurfaceFormat< Face >::read(), ABAQUSCore::readHelper::read(), schemesLookup::read(), UnsortedMeshedSurface< Face >::read(), MeshedSurface< Foam::face >::read(), boundaryRegion::readDict(), cellTable::readDict(), exprString::readEntry(), GeometricBoundaryField< Foam::vector, Foam::fvPatchField, Foam::volMesh >::readField(), PtrList< transferModel >::readIstream(), Matrix< RectangularMatrix< Type >, Type >::readMatrix(), exprValue::readTokens(), tmp< Foam::surfaceInterpolationScheme< GType > >::ref(), refPtr< Foam::mapDistributePolyMesh >::ref(), ocharstream::release(), icharstream::release(), Matrix< RectangularMatrix< Type >, Type >::release(), ocountstream::reset(), icharstream::reset(), ospanstream::reset(), pointFieldDecomposer::reset(), faMeshSubset::reset(), ispanstream::reset(), fvMeshSubset::reset(), dynamicCode::reset(), refPtr< Foam::mapDistributePolyMesh >::reset(), tmp< Foam::surfaceInterpolationScheme< GType > >::reset(), fvFieldDecomposer::reset(), faFieldDecomposer::reset(), exprResult::resetImpl(), PtrListDetail< const Foam::UList >::resize(), PtrList< transferModel >::resize(), Matrix< RectangularMatrix< Type >, Type >::resize_nocopy(), PtrListDetail< const Foam::UList >::resize_null(), HashTable< const regIOobject * >::retain(), ocharstream::rewind(), icharstream::rewind(), ospanstream::rewind(), ispanstream::rewind(), seriesWriter::scan(), exprValue::set(), SHA1::SHA1(), SHA1Digest::SHA1Digest(), PtrDynList< Foam::profilingInformation >::shrink_unsafe(), DynamicList< Foam::vector >::shrink_unsafe(), DynamicField< Foam::vector >::shrink_unsafe(), ocharstream::swap(), icharstream::swap(), ILList< LListBase, T >::transfer(), LPtrList< LListBase, T >::transfer(), List< Field< scalar > >::transfer(), LList< Foam::chemPointISAT< CompType, ThermoType > *>::transfer(), Matrix< RectangularMatrix< Type >, Type >::transfer(), UnsortedMeshedSurface< Face >::transfer(), HashTable< const regIOobject * >::transfer(), MeshedSurface< Foam::face >::transfer(), memInfo::update(), vtuSizing::vtuSizing(), JobInfo::write(), CStringList::~CStringList(), HashPtrTable< exprResult >::~HashPtrTable(), HashTable< const regIOobject * >::~HashTable(), ILList< LListBase, T >::~ILList(), LList< Foam::chemPointISAT< CompType, ThermoType > *>::~LList(), LPtrList< LListBase, T >::~LPtrList(), MeshedSurface< Foam::face >::~MeshedSurface(), refPtr< Foam::mapDistributePolyMesh >::~refPtr(), regExpPosix::~regExpPosix(), and tmp< Foam::surfaceInterpolationScheme< GType > >::~tmp().

◆ 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(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::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(), 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(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), 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(), age::newField(), 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::swapBoundaryCellPositions(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), meshRefinement::testSyncBoundaryFaceList(), triSurface::transfer(), liquidFilmBase::Up(), oversetFvMeshBase::updateAddressing(), motionSmootherAlgo::updateMesh(), liquidFilmBase::Uw(), zoneCellStencils::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::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>())