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.

◆ resize() [1/2]

◆ 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 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< Key, Hash >::assignMany(), HashPtrTable< IOobject >::clear(), HashTable< T, Key, Hash >::clearStorage(), ensightMesh::correct(), ensightFaMesh::correct(), refPtr< T >::cref(), tmp< T >::cref(), ILList< ParticleType >::eraseHead(), fieldExpression::execute(), fieldsExpression::execute(), ensightMesh::expire(), exprResult::getResult(), topoSet::invert(), seriesWriter::load(), mergedSurf::merge(), refPtr< Field< InputType > >::operator tmp< Field< InputType > >(), CircularBuffer< T >::operator=(), dictionary::operator=(), exprResult::operator=(), ILList< LListBase, T >::operator=(), LList< LListBase, T >::operator=(), LPtrList< LListBase, T >::operator=(), Matrix< Form, Type >::operator=(), MeshedSurface< Face >::operator=(), refPtr< T >::operator=(), tmp< T >::operator=(), UnsortedMeshedSurface< Face >::operator=(), keyType::operator=(), DynamicList< T, SizeMin >::operator=(), regExpCxx::operator=(), regExpPosix::operator=(), SortableList< T >::operator=(), HashTable< T, Key, Hash >::operator=(), wordRe::operator=(), schemesLookup::read(), extendedEdgeMeshFormat::read(), extendedFeatureEdgeMeshFormat::read(), NASedgeFormat::read(), ABAQUSsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), GTSsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), OBJsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), STARCDsurfaceFormat< Face >::read(), STLsurfaceFormat< Face >::read(), TRIsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), edgeMeshFormat::read(), OBJedgeFormat::read(), STARCDedgeFormat::read(), MeshedSurface< Face >::read(), UnsortedMeshedSurface< Face >::read(), ABAQUSCore::readHelper::read(), boundaryRegion::readDict(), cellTable::readDict(), exprString::readEntry(), GeometricBoundaryField< Type, PatchField, GeoMesh >::readField(), PtrList< T >::readIstream(), Matrix< Form, Type >::readMatrix(), fvBoundaryMesh::readUpdate(), tmp< Foam::surfaceInterpolationScheme< Type > >::ref(), refPtr< T >::ref(), tmp< T >::ref(), Matrix< Form, Type >::release(), faMeshSubset::reset(), fvMeshSubset::reset(), dynamicCode::reset(), faFieldDecomposer::reset(), fvFieldDecomposer::reset(), pointFieldDecomposer::reset(), refPtr< T >::reset(), tmp< T >::reset(), exprResult::resetImpl(), CompactListList< T >::resize(), ocountstream::rewind(), scalarRange::scalarRange(), seriesWriter::scan(), SHA1::SHA1(), SHA1Digest::SHA1Digest(), HashTable< T, Key, Hash >::transfer(), List< T >::transfer(), LList< LListBase, T >::transfer(), LPtrList< LListBase, T >::transfer(), Matrix< Form, Type >::transfer(), MeshedSurface< Face >::transfer(), UnsortedMeshedSurface< Face >::transfer(), memInfo::update(), vtuSizing::vtuSizing(), JobInfo::write(), CStringList::~CStringList(), HashPtrTable< T, Key, Hash >::~HashPtrTable(), HashTable< T, Key, Hash >::~HashTable(), ILList< LListBase, T >::~ILList(), LList< LListBase, T >::~LList(), LPtrList< LListBase, T >::~LPtrList(), MeshedSurface< Face >::~MeshedSurface(), MeshedSurfaceIOAllocator::~MeshedSurfaceIOAllocator(), refPtr< T >::~refPtr(), and regExpPosix::~regExpPosix().

◆ if() [2/2]

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

Definition at line 173 of file convertProcessorPatches.H.

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

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)); }
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59

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(), assemblyFaceAreaPairGAMGAgglomeration::assemblyFaceAreaPairGAMGAgglomeration(), patchMeshWriter::beginPiece(), meshRefinement::blockLeakFaces(), decompositionMethod::calcCellCells(), addPatchCellLayer::calcExtrudeInfo(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), solarLoad::calculate(), repatchPolyTopoChanger::changePatches(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), hexRef8::checkMesh(), polyMeshGeometry::checkVolRatio(), polyBoundaryMesh::clearAddressing(), polyBoundaryMesh::clearGeom(), adjointEikonalSolver::computeYPhi(), LRR< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), directionalMeshWave::correct(), advectionDiffusion::correct(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), ReynoldsStress< BasicTurbulenceModel >::correctWallShearStress(), decompositionMethod::decompose(), faMeshDecomposition::decomposeMesh(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), snappyRefineDriver::doRefine(), faBoundaryMesh::edgeFaces(), faBoundaryMesh::edgeLabels(), wallHeatFlux::execute(), yPlus::execute(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), faBoundaryMeshMapper::faBoundaryMeshMapper(), fvBoundaryMesh::faceCells(), polyBoundaryMesh::faceCells(), faMeshMapper::faMeshMapper(), localPointRegion::findDuplicateFacePairs(), polyMeshTetDecomposition::findFaceBasePts(), fvBoundaryMesh::findPatchID(), polyBoundaryMesh::findPatchIDs(), for(), forAll(), FreeStream< CloudType >::FreeStream(), fvBoundaryMeshMapper::fvBoundaryMeshMapper(), removeCells::getExposedFaces(), GenericPatchGeoFieldsWriter< PatchType >::getFaceField(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), combineFaces::getMergeSets(), externalDisplacementMeshMover::getPatch(), surfaceFormatsCore::getSelectedPatches(), globalIndexAndTransform::globalIndexAndTransform(), if(), PDRblock::innerMesh(), faBoundaryMesh::interfaces(), fvBoundaryMesh::interfaces(), isoSurfacePoint::isoSurfacePoint(), triSurfaceLoader::load(), fvMeshTools::loadOrCreateMesh(), faMeshTools::loadOrCreateMesh(), localPointRegion::localPointRegion(), patchMeanVelocityForce::magUbarAve(), meshRefinement::makePatch(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), meshRefinement::meshedPatches(), fvBoundaryMesh::movePoints(), processorTopology::New(), age::newField(), faMeshTools::newMesh(), faBoundaryMesh::nNonProcessor(), polyBoundaryMesh::nNonProcessor(), meshSearch::nonCoupledBoundaryTree(), JohnsonJacksonSchaeffer::nu(), Schaeffer::nu(), polyBoundaryMesh::patchID(), faBoundaryMesh::patchRanges(), faBoundaryMesh::patchStarts(), pointBoundaryMeshMapper::pointBoundaryMeshMapper(), polyBoundaryMesh::polyBoundaryMesh(), fvMeshDistribute::printMeshInfo(), triSurfaceMesh::regions(), polyBoundaryMesh::reorder(), snappySnapDriver::repatchToSurface(), patchProbes::sample(), motionSmootherAlgo::scaleMesh(), faBoundaryMesh::setGroup(), polyBoundaryMesh::setGroup(), lumpedPointDisplacementPointPatchVectorField::setPatchControls(), removeCells::setRefinement(), addPatchCellLayer::setRefinement(), perfectInterface::setRefinement(), meshCutAndRemove::setRefinement(), removeFaces::setRefinement(), combineFaces::setRefinement(), duplicatePoints::setRefinement(), shapeOptimisation::shapeOptimisation(), triSurface::sortedZones(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointMap(), meshRefinement::testSyncBoundaryFaceList(), triSurface::transfer(), dynamicOversetFvMesh::updateAddressing(), motionSmootherAlgo::updateMesh(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), wallLayerCells::wallLayerCells(), streamLineBase::wallPatch(), polyBoundaryMesh::whichPatch(), wallShearStress::write(), yPlus::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

labelList 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>())