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/regionPrefix/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>()) |
Code chunk for converting volume fields on processor boundaries, included by foamToVTK.
Original source file convertProcessorPatches.H
Definition in file convertProcessorPatches.H.
fileName vtmOutputBase | ( | outputDir/regionPrefix/vtkName+ | timeDesc | ) |
forAll | ( | patchIds | , |
i | |||
) |
Definition at line 74 of file convertProcessorPatches.H.
References patches, and patchIds.
Referenced by if().
patchWriters resize | ( | patchIds. | size() | ) |
Referenced by PtrDynList< Foam::profilingInformation >::append(), List< substance >::append(), bitSet::assign(), HashSet< Foam::string >::assignMany(), HashTable< Foam::phase * >::clearStorage(), IjkField< Foam::Vector< bool > >::IjkField(), InjectionModelList< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::InjectionModelList(), topoSet::invert(), List< substance >::newElmt(), PtrList< transferModel >::operator=(), HashTable< Foam::phase * >::operator=(), bitSet::orEq(), ParticleForceList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::ParticleForceList(), PtrList< transferModel >::readIstream(), PtrDynList< Foam::profilingInformation >::reserve(), MRFZoneList::reset(), porosityModelList::reset(), optionList::reset(), PtrListDetail< Foam::diameterModels::velocityGroup >::resize(), IjkField< Foam::Vector< bool > >::resize(), PtrDynList< Foam::profilingInformation >::resize(), List< substance >::resize(), PtrList< transferModel >::resize(), SquareMatrix< cmptType >::resize(), PtrDynList< Foam::profilingInformation >::set(), bitSet::set(), PtrDynList< Foam::profilingInformation >::setCapacity(), PtrDynList< Foam::profilingInformation >::setSize(), PtrList< transferModel >::setSize(), SquareMatrix< cmptType >::setSize(), List< substance >::setSize(), Matrix< RectangularMatrix< Type >, Type >::setSize(), PtrDynList< Foam::profilingInformation >::shrink(), PtrDynList< Foam::profilingInformation >::squeezeNull(), bitSet::unset(), and bitSet::xorEq().
List<wordList> procPatchNames | ( | Pstream::nProcs() | ) |
Definition at line 91 of file convertProcessorPatches.H.
References Foam::New(), nPatchWriters, patches, patchId(), patchWriters, procPatchNames(), subDirNaming, vtmOutputBase(), and writer().
patchWriters resize | ( | nPatchWriters | ) |
if | ( | internalWriter | ) |
Definition at line 156 of file convertProcessorPatches.H.
References internalWriter.
for | ( | vtk::patchWriter &writer :patchWriters | ) |
Definition at line 161 of file convertProcessorPatches.H.
References writer().
patchInterps clear | ( | ) |
Referenced by exprDriver::addVariables(), bitSet::assign(), HashSet< Foam::string >::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(), keyType::clear(), vtuCells::clear(), wordRe::clear(), ZoneMesh< cellZone, polyMesh >::clear(), LList< Foam::string >::clear(), UnsortedMeshedSurface< Face >::clear(), dictionary::clear(), PtrDynList< Foam::profilingInformation >::clearStorage(), DynamicField< Foam::Vector >::clearStorage(), DynamicList< Foam::triPoints >::clearStorage(), HashTable< Foam::phase * >::clearStorage(), ensightMesh::correct(), refPtr< Foam::PrimitivePatch >::cref(), tmp< Foam::fv::convectionScheme< scalar > >::cref(), DSMCCloud< ParcelType >::DSMCCloud(), fieldExpression::execute(), fieldsExpression::execute(), ensightMesh::expire(), sampledFaceZone::expire(), sampledPatch::expire(), exprResult::getObjectResult(), exprResult::getResult(), topoSet::invert(), isoSurfaceTopo::isoSurfaceTopo(), seriesWriter::load(), mergedSurf::merge(), moleculeCloud::moleculeCloud(), ILList< LListBase, T >::operator=(), SortableList< T >::operator=(), UILList< LListBase, T >::operator=(), LPtrList< LListBase, T >::operator=(), regExpPosix::operator=(), keyType::operator=(), regExpCxx::operator=(), refPtr< Foam::PrimitivePatch >::operator=(), wordRe::operator=(), tmp< Foam::fv::convectionScheme< scalar > >::operator=(), LList< Foam::string >::operator=(), DynamicList< Foam::triPoints >::operator=(), Matrix< RectangularMatrix< Type >, Type >::operator=(), UnsortedMeshedSurface< Face >::operator=(), HashTable< Foam::phase * >::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(), STARCDsurfaceFormat< Face >::read(), GTSsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), TRIsurfaceFormat< Face >::read(), STARCDedgeFormat::read(), edgeMeshFormat::read(), VTKsurfaceFormat< Face >::read(), fvSchemes::read(), STLsurfaceFormat< Face >::read(), faSchemes::read(), ABAQUSCore::readHelper::read(), UnsortedMeshedSurface< Face >::read(), MeshedSurface< Foam::face >::read(), boundaryRegion::readDict(), cellTable::readDict(), GeometricField< Type, PatchField, GeoMesh >::Boundary::readField(), PtrList< transferModel >::readIstream(), Matrix< RectangularMatrix< Type >, Type >::readMatrix(), exprDriver::readTable(), fvBoundaryMesh::readUpdate(), refPtr< Foam::PrimitivePatch >::ref(), tmp< Foam::fv::convectionScheme< scalar > >::ref(), Matrix< RectangularMatrix< Type >, Type >::release(), refPtr< Foam::PrimitivePatch >::reset(), tmp< Foam::fv::convectionScheme< scalar > >::reset(), dynamicCode::reset(), exprResult::resetImpl(), PtrListDetail< Foam::diameterModels::velocityGroup >::resize(), PtrList< transferModel >::resize(), HashTable< Foam::phase * >::retain(), uiliststream::rewind(), ocountstream::rewind(), scalarRange::scalarRange(), seriesWriter::scan(), regExpPosix::set(), regExpCxx::set(), fvMeshSubset::setCellSubset(), exprResult::setObjectResultImpl(), CompactListList< T, Container >::setSize(), SHA1::SHA1(), SHA1Digest::SHA1Digest(), ILList< LListBase, T >::transfer(), LPtrList< LListBase, T >::transfer(), CompactListList< T, Container >::transfer(), List< substance >::transfer(), LList< Foam::string >::transfer(), Matrix< RectangularMatrix< Type >, Type >::transfer(), UnsortedMeshedSurface< Face >::transfer(), HashTable< Foam::phase * >::transfer(), MeshedSurface< Foam::face >::transfer(), memInfo::update(), vtuSizing::vtuSizing(), CStringList::~CStringList(), HashPtrTable< exprResult >::~HashPtrTable(), HashTable< Foam::phase * >::~HashTable(), ILList< LListBase, T >::~ILList(), LList< Foam::string >::~LList(), LPtrList< LListBase, T >::~LPtrList(), MeshedSurface< Foam::face >::~MeshedSurface(), refPtr< Foam::PrimitivePatch >::~refPtr(), regExpPosix::~regExpPosix(), and tmp< Foam::fv::convectionScheme< scalar > >::~tmp().
if | ( | Pstream::master() && | nProcPatches | ) |
Definition at line 173 of file convertProcessorPatches.H.
References forAll(), Foam::Info, n, Foam::name(), Foam::nl, nProcPatches, procPatchNames(), subDirNaming, vtmBoundaries, vtmOutputBase(), and vtmWriter.
const label nVolFields |
Definition at line 39 of file convertProcessorPatches.H.
Referenced by vtkWrite::write().
const auto subDirNaming |
Definition at line 54 of file convertProcessorPatches.H.
autoPtr<vtk::internalWriter> internalWriter |
Definition at line 60 of file convertProcessorPatches.H.
Referenced by if(), vtkWrite::write(), Foam::writeDimField(), Foam::writeDimFields(), Foam::writePointField(), Foam::writePointFields(), Foam::writeVolField(), vtkWrite::writeVolFields(), and Foam::writeVolFields().
PtrList<vtk::patchWriter> patchWriters |
Definition at line 63 of file convertProcessorPatches.H.
Referenced by for(), vtkWrite::write(), Foam::writePointField(), Foam::writePointFields(), Foam::writeVolField(), vtkWrite::writeVolFields(), and Foam::writeVolFields().
const polyBoundaryMesh& patches = mesh.boundaryMesh() |
Definition at line 65 of file convertProcessorPatches.H.
Referenced by isoSurfacePoint::adaptPatchFields(), fvMeshAdder::add(), columnFvMeshInfo::addLocalPatches(), polyTopoChange::addMesh(), zoneCellStencils::allCoupledFacesPatch(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), lumpedPointMovement::areas(), 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(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), snappyRefineDriver::doRefine(), yPlus::execute(), wallHeatFlux::execute(), extendedCellToCellStencil::extendedCellToCellStencil(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), faBoundaryMesh::faBoundaryMesh(), faBoundaryMeshMapper::faBoundaryMeshMapper(), faMeshMapper::faMeshMapper(), localPointRegion::findDuplicateFacePairs(), polyMeshTetDecomposition::findFaceBasePts(), fvBoundaryMesh::findPatchID(), polyBoundaryMesh::findPatchIDs(), for(), forAll(), lumpedPointMovement::forcesAndMoments(), FreeStream< CloudType >::FreeStream(), fvBoundaryMeshMapper::fvBoundaryMeshMapper(), removeCells::getExposedFaces(), surfaceMeshWriter::getFaceField(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), combineFaces::getMergeSets(), externalDisplacementMeshMover::getPatch(), surfaceFormatsCore::getSelectedPatches(), globalIndexAndTransform::globalIndexAndTransform(), polyBoundaryMesh::groupPatchIDs(), PDRblock::innerMesh(), isoSurfacePoint::isoSurfacePoint(), triSurfaceLoader::load(), localPointRegion::localPointRegion(), meshRefinement::makePatch(), meshRefinement::mergePatchFaces(), meshRefinement::mergePatchFacesUndo(), meshRefinement::meshedPatches(), fvBoundaryMesh::movePoints(), faBoundaryMesh::movePoints(), fvMesh::movePoints(), polyBoundaryMesh::nNonProcessor(), ProcessorTopology< Container, ProcPatch >::nonBlockingSchedule(), meshSearch::nonCoupledBoundaryTree(), zoneCellStencils::nonEmptyFacesPatch(), Schaeffer::nu(), JohnsonJacksonSchaeffer::nu(), polyBoundaryMesh::patchID(), pointBoundaryMeshMapper::pointBoundaryMeshMapper(), polyBoundaryMesh::polyBoundaryMesh(), fvMeshDistribute::printMeshInfo(), ProcessorTopology< Container, ProcPatch >::ProcessorTopology(), triSurfaceMesh::regions(), polyBoundaryMesh::reorder(), snappySnapDriver::repatchToSurface(), patchProbes::sample(), motionSmootherAlgo::scaleMesh(), meshRefinement::selectSeparatedCoupledFaces(), 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(), zoneCellStencils::validBoundaryFaces(), 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().
labelList patchIds |
Definition at line 67 of file convertProcessorPatches.H.
Referenced by ensightMesh::correct(), forAll(), Foam::lumpedPointTools::lumpedPointPatchList(), GeometricField< Type, PatchField, GeoMesh >::Boundary::readField(), vtkWrite::write(), lumpedPointMovement::writeVTP(), and lumpedPointMovement::writeZonesVTP().
label nPatchWriters = 0 |
Definition at line 85 of file convertProcessorPatches.H.
Referenced by for(), if(), and vtkWrite::write().
const label nProcPatches = returnReduce(nPatchWriters, sumOp<label>()) |
Definition at line 171 of file convertProcessorPatches.H.
Referenced by if().