convertProcessorPatches.H File Reference

Code chunk for converting volume fields on processor boundaries, included by foamToVTK. More...

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 (Pstream::nProcs())
 
 for (const label patchId :patchIds)
 
patchWriters resize (nPatchWriters)
 
 if (internalWriter)
 
 for (vtk::patchWriter &writer :patchWriters)
 
patchWriters clear ()
 
 if (Pstream::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

Code chunk for converting volume fields on processor boundaries, included by foamToVTK.

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 74 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 PtrDynList< Foam::profilingInformation >::append(), List< vectorField >::append(), DynamicList< Foam::FixedList< scalar, 3 > >::append(), DynamicField< Foam::Vector >::append(), bitSet::assign(), HashSet< word, Hash< word > >::assignMany(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::clearStorage(), CloudFunctionObjectList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::CloudFunctionObjectList(), Field< Foam::Vector2D >::Field(), IjkField< Foam::Vector< bool > >::IjkField(), InjectionModelList< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::InjectionModelList(), topoSet::invert(), List< vectorField >::newElmt(), DynamicField< Foam::Vector >::operator()(), DynamicList< Foam::FixedList< scalar, 3 > >::operator()(), PtrList< transferModel >::operator=(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::operator=(), bitSet::orEq(), ParticleForceList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::ParticleForceList(), PtrListDictionary< phaseModel >::PtrListDictionary(), PtrList< transferModel >::readIstream(), PtrDynList< Foam::profilingInformation >::reserve(), MRFZoneList::reset(), porosityModelList::reset(), optionList::reset(), PtrListDetail< const Foam::UList >::resize(), PtrDynList< Foam::profilingInformation >::resize(), IjkField< Foam::Vector< bool > >::resize(), List< vectorField >::resize(), PtrList< transferModel >::resize(), SquareMatrix< cmptType >::resize(), DynamicList< Foam::FixedList< scalar, 3 > >::resize(), DynamicField< Foam::Vector >::resize(), PtrDynList< Foam::profilingInformation >::set(), bitSet::set(), SquareMatrix< cmptType >::setSize(), Matrix< RectangularMatrix< Type >, Type >::setSize(), PtrDynList< Foam::profilingInformation >::shrink(), DynamicList< Foam::FixedList< scalar, 3 > >::shrinkStorage(), DynamicField< Foam::Vector >::shrinkStorage(), PtrDynList< Foam::profilingInformation >::squeezeNull(), bitSet::unset(), cellZoneSet::updateSet(), pointZoneSet::updateSet(), faceZoneSet::updateSet(), and bitSet::xorEq().

Here is the caller graph for this function:

◆ procPatchNames()

List<wordList> procPatchNames ( Pstream::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 91 of file convertProcessorPatches.H.

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

Here is the call graph for this function:

◆ resize() [2/2]

◆ if() [1/2]

if ( internalWriter  )

Definition at line 156 of file convertProcessorPatches.H.

References internalWriter.

◆ for() [2/2]

for ( vtk::patchWriter &writer :patchWriters  )

Definition at line 161 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(), IjkField< Foam::Vector< bool > >::clear(), ILList< LListBase, T >::clear(), PtrList< transferModel >::clear(), DictionaryBase< IDLList< simpleObjectRegistryEntry >, simpleObjectRegistryEntry >::clear(), HashPtrTable< exprResult >::clear(), LPtrList< LListBase, T >::clear(), vtuCells::clear(), keyType::clear(), wordRe::clear(), ZoneMesh< cellZone, polyMesh >::clear(), LList< Foam::chemPointISAT< CompType, ThermoType > * >::clear(), UnsortedMeshedSurface< Face >::clear(), dictionary::clear(), PtrDynList< Foam::profilingInformation >::clearStorage(), DynamicList< Foam::FixedList< scalar, 3 > >::clearStorage(), DynamicField< Foam::Vector >::clearStorage(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::clearStorage(), ensightFaMesh::correct(), ensightMesh::correct(), tmp< Foam::surfaceInterpolationScheme< GType > >::cref(), refPtr< Foam::OSstream >::cref(), DSMCCloud< ParcelType >::DSMCCloud(), fieldsExpression::execute(), fieldExpression::execute(), sampledFaceZone::expire(), ensightMesh::expire(), sampledPatch::expire(), exprResult::getResult(), topoSet::invert(), seriesWriter::load(), mergedSurf::merge(), moleculeCloud::moleculeCloud(), ILList< LListBase, T >::operator=(), SortableList< T >::operator=(), UILList< LListBase, T >::operator=(), LPtrList< LListBase, T >::operator=(), keyType::operator=(), regExpPosix::operator=(), wordRe::operator=(), regExpCxx::operator=(), tmp< Foam::surfaceInterpolationScheme< GType > >::operator=(), refPtr< Foam::OSstream >::operator=(), LList< Foam::chemPointISAT< CompType, ThermoType > * >::operator=(), DynamicList< Foam::FixedList< scalar, 3 > >::operator=(), Matrix< RectangularMatrix< Type >, Type >::operator=(), UnsortedMeshedSurface< Face >::operator=(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::operator=(), exprResult::operator=(), MeshedSurface< Foam::face >::operator=(), dictionary::operator=(), cuttingSurface::performCut(), cuttingPlane::performCut(), extendedEdgeMeshFormat::read(), extendedFeatureEdgeMeshFormat::read(), OBJsurfaceFormat< Face >::read(), NASedgeFormat::read(), OFFsurfaceFormat< Face >::read(), ABAQUSsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), GTSsurfaceFormat< Face >::read(), STARCDsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), TRIsurfaceFormat< Face >::read(), STARCDedgeFormat::read(), VTKsurfaceFormat< Face >::read(), edgeMeshFormat::read(), STLsurfaceFormat< Face >::read(), schemesLookup::read(), ABAQUSCore::readHelper::read(), UnsortedMeshedSurface< Face >::read(), MeshedSurface< Foam::face >::read(), boundaryRegion::readDict(), cellTable::readDict(), exprString::readEntry(), GeometricField< Type, PatchField, GeoMesh >::Boundary::readField(), PtrList< transferModel >::readIstream(), Matrix< RectangularMatrix< Type >, Type >::readMatrix(), fvBoundaryMesh::readUpdate(), tmp< Foam::surfaceInterpolationScheme< GType > >::ref(), refPtr< Foam::OSstream >::ref(), Matrix< RectangularMatrix< Type >, Type >::release(), pointFieldDecomposer::reset(), refPtr< Foam::OSstream >::reset(), tmp< Foam::surfaceInterpolationScheme< GType > >::reset(), dynamicCode::reset(), fvFieldDecomposer::reset(), faFieldDecomposer::reset(), exprResult::resetImpl(), PtrListDetail< const Foam::UList >::resize(), PtrList< transferModel >::resize(), Matrix< RectangularMatrix< Type >, Type >::resize_nocopy(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::retain(), uiliststream::rewind(), ocountstream::rewind(), scalarRange::scalarRange(), seriesWriter::scan(), fvMeshSubset::setCellSubset(), CompactListList< T, Container >::setSize(), SHA1::SHA1(), SHA1Digest::SHA1Digest(), ILList< LListBase, T >::transfer(), LPtrList< LListBase, T >::transfer(), CompactListList< T, Container >::transfer(), List< vectorField >::transfer(), LList< Foam::chemPointISAT< CompType, ThermoType > * >::transfer(), Matrix< RectangularMatrix< Type >, Type >::transfer(), UnsortedMeshedSurface< Face >::transfer(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::transfer(), MeshedSurface< Foam::face >::transfer(), memInfo::update(), vtuSizing::vtuSizing(), JobInfo::write(), CStringList::~CStringList(), HashPtrTable< exprResult >::~HashPtrTable(), HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::~HashTable(), ILList< LListBase, T >::~ILList(), LList< Foam::chemPointISAT< CompType, ThermoType > * >::~LList(), LPtrList< LListBase, T >::~LPtrList(), MeshedSurface< Foam::face >::~MeshedSurface(), refPtr< Foam::OSstream >::~refPtr(), regExpPosix::~regExpPosix(), and tmp< Foam::surfaceInterpolationScheme< GType > >::~tmp().

◆ if() [2/2]

if ( Pstream::master() &&  nProcPatches)

Definition at line 173 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))
)

Definition at line 39 of file convertProcessorPatches.H.

Referenced by vtkWrite::write().

◆ subDirNaming

const auto subDirNaming
Initial value:
=
[](const label i) -> fileName
{ return "processor" / ("processor" + Foam::name(i)); }

Definition at line 54 of file convertProcessorPatches.H.

Referenced by for(), and if().

◆ internalWriter

◆ patchWriters

◆ patches

const polyBoundaryMesh& patches = mesh.boundaryMesh()

Definition at line 65 of file convertProcessorPatches.H.

Referenced by isoSurfacePoint::adaptPatchFields(), fvMeshAdder::add(), columnFvMeshInfo::addLocalPatches(), polyTopoChange::addMesh(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), lumpedPointMovement::areas(), assemblyFaceAreaPairGAMGAgglomeration::assemblyFaceAreaPairGAMGAgglomeration(), patchMeshWriter::beginPiece(), decompositionMethod::calcCellCells(), addPatchCellLayer::calcExtrudeInfo(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), solarLoad::calculate(), repatchPolyTopoChanger::changePatches(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), hexRef8::checkMesh(), polyMeshGeometry::checkVolRatio(), polyBoundaryMesh::clearAddressing(), polyBoundaryMesh::clearGeom(), 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(), yPlus::execute(), wallHeatFlux::execute(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), faBoundaryMesh::faBoundaryMesh(), faBoundaryMeshMapper::faBoundaryMeshMapper(), fvBoundaryMesh::faceCells(), polyBoundaryMesh::faceCells(), faMeshMapper::faMeshMapper(), localPointRegion::findDuplicateFacePairs(), polyMeshTetDecomposition::findFaceBasePts(), fvBoundaryMesh::findPatchID(), 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(), PDRblock::innerMesh(), fvBoundaryMesh::interfaces(), faBoundaryMesh::interfaces(), isoSurfacePoint::isoSurfacePoint(), triSurfaceLoader::load(), localPointRegion::localPointRegion(), meshRefinement::makePatch(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), meshRefinement::meshedPatches(), fvBoundaryMesh::movePoints(), faBoundaryMesh::movePoints(), fvMesh::movePoints(), age::newField(), faBoundaryMesh::nNonProcessor(), polyBoundaryMesh::nNonProcessor(), ProcessorTopology< Container, ProcPatch >::nonBlockingSchedule(), meshSearch::nonCoupledBoundaryTree(), Schaeffer::nu(), JohnsonJacksonSchaeffer::nu(), polyBoundaryMesh::patchID(), faBoundaryMesh::patchRanges(), faBoundaryMesh::patchStarts(), pointBoundaryMeshMapper::pointBoundaryMeshMapper(), polyBoundaryMesh::polyBoundaryMesh(), fvMeshDistribute::printMeshInfo(), ProcessorTopology< Container, ProcPatch >::ProcessorTopology(), triSurfaceMesh::regions(), polyBoundaryMesh::reorder(), snappySnapDriver::repatchToSurface(), patchProbes::sample(), motionSmootherAlgo::scaleMesh(), polyBoundaryMesh::setGroup(), lumpedPointDisplacementPointPatchVectorField::setPatchControls(), duplicatePoints::setRefinement(), removeCells::setRefinement(), perfectInterface::setRefinement(), combineFaces::setRefinement(), removeFaces::setRefinement(), meshCutAndRemove::setRefinement(), addPatchCellLayer::setRefinement(), shapeOptimisation::shapeOptimisation(), triSurface::sortedZones(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), meshRefinement::testSyncBoundaryFaceList(), triSurface::transfer(), dynamicOversetFvMesh::updateAddressing(), faBoundaryMesh::updateMesh(), motionSmootherAlgo::updateMesh(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), wallLayerCells::wallLayerCells(), streamLineBase::wallPatch(), polyBoundaryMesh::whichPatch(), yPlus::write(), wallShearStress::write(), vtkWrite::write(), faBoundaryMesh::writeData(), polyBoundaryMesh::writeData(), patchMeshWriter::writeNeighIDs(), patchMeshWriter::writePatchIDs(), patchMeshWriter::writePoints(), patchMeshWriter::writePolys(), patchMeshWriter::writePolysLegacy(), writer::writeSolution(), lumpedPointMovement::writeVTP(), lumpedPointMovement::writeZonesVTP(), wallLubricationModel::zeroGradWalls(), and meshRefinement::zonify().

◆ patchIds

◆ nPatchWriters

label nPatchWriters = 0

Definition at line 85 of file convertProcessorPatches.H.

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

◆ nProcPatches

const label nProcPatches = returnReduce(nPatchWriters, sumOp<label>())
Foam::fieldTypes::volume
const wordList volume
Standard volume field types (scalar, vector, tensor, etc)
Foam::identity
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
Definition: labelList.C:38
patches
const polyBoundaryMesh & patches
Definition: convertProcessorPatches.H:65
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59