Loading...
Searching...
No Matches
readKivaGrid.H File Reference
Include dependency graph for readKivaGrid.H:

Go to the source code of this file.

Functions

std::ifstream kivaFile (kivaFileName)
 if (!kivaFile.good())
pointField points (nPoints)
labelList idface (nPoints)
labelList fv (nPoints)
 for (label i=0;i< nPoints;i++)
labelList i1tab (nPoints)
labelList i3tab (nPoints)
labelList i8tab (nPoints)
labelList idreg (nPoints)
labelList f (nPoints)
labelList bcl (nPoints)
labelList bcf (nPoints)
labelList bcb (nPoints)
 if (mTable==0)
labelList imtab (nPoints)
labelList jmtab (nPoints)
labelList kmtab (nPoints)
face quadFace (4)
face triFace (3)
 if (pFaces[LINER].size() &&pFaces[LINER][0].size() &&pFaces[CYLINDERHEAD].size() &&pFaces[CYLINDERHEAD][0].size())
 if (pFaces[WEDGE].size() &&pFaces[WEDGE][0].size())
faceListList boundary (nPatches)
wordList patchNames (nPatches)
wordList patchTypes (nPatches)
labelList pointLabels (nPoints, -1)
 forAll (cellShapes, celli)
 forAll (pointLabels, pointi)
points setSize (newPointi)
 forAll (boundary, patchi)
 preservePatchTypes (runTime, runTime.constant(), polyMesh::meshSubDir, patchNames, patchDicts, defaultFacesName, defaultFacesType)
 forAll (patchNames, patchi)
polyMesh pShapeMesh (IOobject(polyMesh::defaultRegion, runTime.constant(), runTime), std::move(points), cellShapes, boundary, patchNames, patchDicts, defaultFacesName, defaultFacesType)

Variables

Info<< "Reading kiva grid from file "<< kivaFileName<< endl;char title[120];kivaFile.getline(title, 120, '\n');label nPoints, nCells, nRegs;kivaFile > nCells nPoints nRegs
label i4
label mTable
Info<< "Finished reading KIVA file"<< endl;cellShapeList cellShapes(nPoints);labelList cellZoning(nPoints, -1);const cellModel &hex=cellModel::ref(cellModel::HEX);labelList hexLabels(8);label activeCells=0;labelList pointMap(nPoints);forAll(pointMap, i){ pointMap[i]=i;}for(label i=0;i< nPoints;i++){ if(f[i] > 0.0) { hexLabels[0]=i;hexLabels[1]=i1tab[i];hexLabels[2]=i3tab[i1tab[i]];hexLabels[3]=i3tab[i];hexLabels[4]=i8tab[i];hexLabels[5]=i1tab[i8tab[i]];hexLabels[6]=i3tab[i1tab[i8tab[i]]];hexLabels[7]=i3tab[i8tab[i]];cellShapes[activeCells].reset(hex, hexLabels);edgeList edges=cellShapes[activeCells].edges();forAll(edges, ei) { if(edges[ei].mag(points)< SMALL) { label start=pointMap[edges[ei].start()];while(start !=pointMap[start]) { start=pointMap[start];} label end=pointMap[edges[ei].end()];while(end !=pointMap[end]) { end=pointMap[end];} pointMap[start]=pointMap[end]=Foam::min(start, end);} } cellZoning[activeCells]=idreg[i];activeCells++;}}cellShapes.setSize(activeCells);cellZoning.setSize(activeCells);forAll(cellShapes, celli){ cellShape &cs=cellShapes[celli];forAll(cs, i) { cs[i]=pointMap[cs[i]];} cs.collapse();}label bcIDs[11]={-1, 0, 2, 4, -1, 5, -1, 6, 7, 8, 9};constexpr label nBCs=12;const word *kivaPatchTypes[nBCs]={ &wallPolyPatch::typeName, &wallPolyPatch::typeName, &wallPolyPatch::typeName, &wallPolyPatch::typeName, &symmetryPolyPatch::typeName, &wedgePolyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &symmetryPolyPatch::typeName, &oldCyclicPolyPatch::typeName};enum patchTypeNames{ PISTON, VALVE, LINER, CYLINDERHEAD, AXIS, WEDGE, INFLOW, OUTFLOW, PRESIN, PRESOUT, SYMMETRYPLANE, CYCLIC};const char *kivaPatchNames[nBCs]={ "piston", "valve", "liner", "cylinderHead", "axis", "wedge", "inflow", "outflow", "presin", "presout", "symmetryPlane", "cyclic"};List< DynamicList< face > > pFaces [nBCs]
label nPatches = 0
word defaultFacesName = "defaultFaces"
word defaultFacesType = emptyPolyPatch::typeName
label nAddedPatches = 0
label newPointi = 0
PtrList< dictionary > patchDicts

Function Documentation

◆ kivaFile()

std::ifstream kivaFile ( kivaFileName )

Referenced by bcb(), for(), if(), and imtab().

Here is the caller graph for this function:

◆ if() [1/4]

if ( !kivaFile. good())

Definition at line 3 of file readKivaGrid.H.

References FatalErrorInFunction, and kivaFile().

Here is the call graph for this function:

◆ points()

pointField points ( nPoints )

References nPoints.

◆ idface()

labelList idface ( nPoints )

Referenced by for(), and if().

Here is the caller graph for this function:

◆ fv()

labelList fv ( nPoints )

References nPoints.

Referenced by for(), and if().

Here is the caller graph for this function:

◆ for()

for ( )

Definition at line 23 of file readKivaGrid.H.

References fv(), i4, idface(), kivaFile(), nPoints, and points.

Here is the call graph for this function:

◆ i1tab()

labelList i1tab ( nPoints )

References nPoints.

Referenced by bcb().

Here is the caller graph for this function:

◆ i3tab()

labelList i3tab ( nPoints )

Referenced by bcb(), and triFace().

Here is the caller graph for this function:

◆ i8tab()

labelList i8tab ( nPoints )

Referenced by bcb(), and triFace().

Here is the caller graph for this function:

◆ idreg()

labelList idreg ( nPoints )

Referenced by bcb().

Here is the caller graph for this function:

◆ f()

labelList f ( nPoints )

Referenced by oversetFvMeshBase::active(), isoSurfacePoint::adaptPatchFields(), singleProcessorFaceSets::add(), multivariateSurfaceInterpolationScheme< Type >::fieldTable::add(), polyMeshAdder::add(), polyTopoChange::addFace(), polyTopoChange::addFace(), oversetFvMeshBase::addInterpolation(), forces::addToInternalField(), regIOobject::addWatch(), regIOobject::addWatch(), unwatchedIOdictionary::addWatch(), unwatchedIOdictionary::addWatch(), fileOperation::addWatches(), masterUncollatedFileOperation::addWatches(), polyMeshTetDecomposition::adjustTetBasePtIs(), singleProcessorFaceSets::apply(), polyPatch::areaFraction(), Field< TypeGrad >::autoMap(), fvPatchField< Type >::autoMap(), Foam::average(), averageNeighbourFvGeometryScheme::averageCentres(), bcb(), booleanSurface::booleanSurface(), primitiveMeshTools::boundaryFaceSkewness(), searchableBox::boundingSpheres(), triSurfaceMesh::boundingSpheres(), PrimitivePatch< FaceList, PointField >::box(), treeDataPrimitivePatch< PatchType >::boxes(), nearWallFields::calcAddressing(), volPointInterpolationAdjoint::calcBoundaryAddressing(), PatchTools::calcBounds(), holeToFace::calcClosure(), BrownianMotionForce< CloudType >::calcCoupled(), cellMatcher::calcEdgeAddressing(), coupledPolyPatch::calcFaceTol(), triSurfaceTools::calcInterpolationWeights(), cellMatcher::calcLocalFaces(), cellMatcher::calcPointFaceIndex(), primitiveMesh::calcPointOrder(), createShellMesh::calcPointRegions(), cutFace::calcSubFace(), cutFace::calcSubFace(), cutFace::calcSubFace(), cutFaceAdvect::calcSubFace(), cutFaceAdvect::calcSubFace(), cutFaceAdvect::calcSubFace(), cutFaceIso::calcSubFace(), cutFacePLIC::calcSubFace(), rotorDiskSource::calculate(), MUCSheterogeneousRate< CloudType >::calculate(), noiseModel::calculate(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), pointMVCWeight::calcWeights(), pointMVCWeight::calcWeights(), meshReader::cellFaceIdentifier::cellFaceIdentifier(), cellMatcher::cellMatcher(), cell::centre(), cellModel::centre(), repatchPolyTopoChanger::changeAnchorPoint(), primitiveMesh::checkCellsZipUp(), polyMeshGeometry::checkEdgeLength(), primitiveMesh::checkEdgeLength(), polyMeshGeometry::checkFaceAngles(), primitiveMeshGeometry::checkFaceAngles(), polyMeshGeometry::checkFaceFlatness(), polyMeshGeometry::checkFacePyramids(), primitiveMesh::checkFacePyramids(), primitiveMeshGeometry::checkFacePyramids(), MeshedSurface< Foam::face >::checkFaces(), Foam::checkFaceSizeMatch(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), primitiveMeshGeometry::checkFaceTwist(), primitiveMesh::checkFaceVertices(), Foam::checkFireEdges(), hexRef8::checkMesh(), edgeCollapser::checkMeshQuality(), PatchTools::checkOrientation(), searchableSurfaces::checkQuality(), triSurface::checkTriangles(), polyMeshGeometry::checkTriangleTwist(), TomiyamaLift::Cl(), triSurface::ClassName(), averageNeighbourFvGeometryScheme::clipFaceTet(), Foam::cmptAv(), Foam::cmptAv(), Foam::cmptAv(), Foam::cmptMag(), Foam::cmptMag(), Foam::cmptMag(), Foam::cmptMax(), Foam::cmptMax(), Foam::cmptMin(), Foam::cmptMin(), cellShape::collapsedFaces(), triSurfaceTools::collapseEdges(), ORourkeCollision< CloudType >::collideSorted(), triSurface::compactPoints(), Foam::component(), Foam::component(), Foam::component(), Foam::component(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), edgeCollapser::consistentCollapse(), inversePointDistanceDiffusivity::correct(), CentredFitScheme< scalar, biLinearFitPolynomial, centredCFCCellToFaceStencilObject >::correction(), pointLinear< Type >::correction(), removePoints::countPointUsage(), coupledFaePatchField< Type >::coupledFaePatchField(), coupledFaPatchField< Type >::coupledFaPatchField(), coupledFvPatchField< Type >::coupledFvPatchField(), coupledFvsPatchField< Type >::coupledFvsPatchField(), wallBoundedParticle::crossDiagonalEdge(), wallBoundedParticle::crossEdgeConnectedFace(), wallBoundedParticle::crossEdgeConnectedFace(), STARCDMeshReader::cullPoints(), wallBoundedParticle::currentEdge(), triSurfaceTools::curvatures(), cutCellIso::cutCellIso(), cutFaceIso::cutFaceIso(), cutFaceAdvect::cutPoints(), cutFaceAdvect::cutPoints(), liquidProperties::D(), decompositionMethod::decompose(), distributedTriSurfaceMesh::distribute(), meshRefinement::doSplitFaces(), meshRefinement::dupNonManifoldBoundaryPoints(), primitiveMesh::edgeFaces(), PatchTools::edgeOwner(), directionInfo::edgeToFaceIndex(), directionInfo::enterDomain(), kinematicThinFilmIBM::evolveRegion(), multiRegion::execute(), turbulenceFields::execute(), face::face(), face::face(), hexCell::face(), primitiveMeshTools::faceConcavity(), ABAQUSCore::faceDecomposition(), NASCore::faceDecomposition(), primitiveMesh::faceEdges(), primitiveMesh::faceEdges(), primitiveMeshTools::faceFlatness(), hexRef8::faceLevel(), mappedPatchBase::facePoint(), primitiveMeshTools::facePyramidVolume(), hexCell::faces(), primitiveMeshTools::faceSkewness(), polyMeshTetDecomposition::faceTetIndices(), faceTriangulation::faceTriangulation(), faceTriangulation::faceTriangulation(), tetIndices::faceTriIs(), pointMeshTools::featurePointsEdges(), boundaryDataSurfaceReader::fieldNames(), polyMeshTetDecomposition::findBasePoint(), addPatchCellLayer::findDuplicatedPoints(), localPointRegion::findDuplicateFaces(), patchFieldProbe::findElements(), FitData< FitDataType, ExtendedStencil, Polynomial >::findFaceDirs(), treeDataPrimitivePatch< PatchType >::findIntersection(), treeDataFace::findNearest(), treeDataPrimitivePatch< PatchType >::findNearest(), meshSearch::findNearestBoundaryFace(), wallBoundedStreamLine::findNearestTet(), sampledSet::findNearFace(), treeDataPrimitivePatch< primitivePatch >::findSelfIntersectOp::findSelfIntersectOp(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshTetDecomposition::findTet(), ISstream::flags(), OSstream::flags(), for(), forAll(), pairPotential::force(), pairPotentialList::force(), noiseFFT::frequencies(), MMA::fTilda(), noiseModel::gainA(), noiseModel::gainB(), noiseModel::gainC(), noiseModel::gainD(), PatchTools::gatherAndMerge(), PatchTools::gatherAndMerge(), Foam::gAverage(), isoSurfacePoint::generateFaceTriPoints(), coupledPolyPatch::getAnchorPoints(), Foam::getBoundedColours(), isoSurfaceBase::getCellCutType(), snappySnapDriver::getFacePoints(), Foam::ensightOutput::Detail::getFaceSizes(), Foam::ensightOutput::Detail::getFaceSizes(), surfaceSets::getHangingCells(), edgeFaceCirculator::getMinIndex(), boundaryMesh::getNearest(), boundaryMesh::getNTris(), cellDistFuncs::getPointNeighbours(), Foam::ensightOutput::Detail::getPolysFacePoints(), coupledPolyPatch::getRotation(), hexRef8::getSplitPoints(), treeDataFace::getVolumeType(), wallBoundedParticle::hitProcessorPatch(), indexedVertex< Gt, Vb >::indexedVertex(), indexedVertex< Gt, Vb >::indexedVertex(), indexedVertex< Gt, Vb >::indexedVertex(), indexedVertex< Gt, Vb >::indexedVertex(), indexedVertex< K >::indexedVertex(), indexedVertex< K >::indexedVertex(), indexedVertex< K >::indexedVertex(), indexedVertex< K >::indexedVertex(), FreeStream< CloudType >::inflow(), dynamicRefineFvMesh::init(), turbulenceFields::initialise(), waveModel::initialiseGeometry(), streamLineBase::initInterpolations(), processorPolyPatch::initUpdateMesh(), blendedInterfacialModel::interpolate(), cellCellStencil::interpolate(), patchTransformedInterpolation::interpolate(), meshToMesh0::interpolateField(), meshToMesh0::interpolateField(), Foam::interpolatePointToCell(), face::intersection(), fileOperation::isFileOrDir(), isoSurfacePoint::isoSurfacePoint(), isoSurfaceTopo::isoSurfaceTopo(), triSurfaceMesh::isSurfaceClosed(), Foam::levelSetFraction(), triSurfaceLoader::load(), cell::mag(), cellModel::mag(), Foam::mag(), Foam::mag(), Foam::mag(), Foam::magSqr(), Foam::magSqr(), Foam::magSqr(), highAspectRatioFvGeometryScheme::makeAverageCentres(), primitiveMeshTools::makeFaceCentresAndAreas(), stabilisedFvGeometryScheme::makeFaceCentresAndAreas(), Field< Type >::map(), Field< Type >::map(), snappyLayerDriver::mapFaceZonePoints(), edgeCollapser::markFaceZoneEdges(), edgeCollapser::markSmallSliverFaces(), momentOfInertia::massPropertiesPatch(), Foam::max(), noiseFFT::meanPf(), propellerInfo::meanSampleDiskField(), polyMeshAdder::mergePoints(), triSurfaceTools::mergePoints(), Foam::min(), Foam::minMax(), Foam::minMaxMag(), polyMeshTetDecomposition::minQuality(), hexCell::modelFaces(), tetCell::modelFaces(), polyTopoChange::modifyFace(), polyTopoChange::modifyFace(), DSMCParcel< ParcelType >::move(), findCellParticle::move(), KinematicParcel< ParcelType >::move(), molecule::move(), MPPICParcel< ParcelType >::move(), solidParticle::move(), trackedParticle::move(), regionModel1D::moveMesh(), cyclicAMIFvPatch::movePoints(), solidBodyFvGeometryScheme::movePoints(), KinematicParcel< particle >::trackingData::muc(), face::nearestPointClassify(), Field< T >::NewCalculatedType(), MeshedSurface< Face >::nTriangles(), MeshedSurface< Foam::face >::nTriangles(), MeshedSurfaceProxy< Face >::nTriangles(), noiseFFT::octaveBandInfo(), noiseFFT::octaves(), noiseModel::octaves(), TimeScaleModel::oneByTau(), equilibrium::oneByTau(), isotropic::oneByTau(), nonEquilibrium::oneByTau(), ConstMatrixBlock< MatrixType >::operator Field< cmptType >(), MatrixBlock< MatrixType >::operator Field< cmptType >(), spatialTransform::dual::operator&(), spatialTransform::transpose::operator&(), masterUncollatedFileOperation::chModOp::operator()(), masterUncollatedFileOperation::existsOp::operator()(), masterUncollatedFileOperation::fileOrNullOp::operator()(), masterUncollatedFileOperation::fileSizeOp::operator()(), masterUncollatedFileOperation::highResLastModifiedOp::operator()(), masterUncollatedFileOperation::isDirOp::operator()(), masterUncollatedFileOperation::isFileOp::operator()(), masterUncollatedFileOperation::lastModifiedOp::operator()(), masterUncollatedFileOperation::mkDirOp::operator()(), masterUncollatedFileOperation::modeOp::operator()(), masterUncollatedFileOperation::mvBakOp::operator()(), masterUncollatedFileOperation::readDirOp::operator()(), masterUncollatedFileOperation::rmDirOp::operator()(), masterUncollatedFileOperation::rmOp::operator()(), masterUncollatedFileOperation::typeOp::operator()(), findNearestMaskedOp< PatchType >::operator()(), offsetOp< face >::operator()(), offsetOp< labelledTri >::operator()(), offsetOp< triFace >::operator()(), parallelFvGeometryScheme::transformOriented::operator()(), treeDataCell::findIntersectOp::operator()(), treeDataPrimitivePatch< PatchType >::findSelfIntersectOp::operator()(), Field< Type >::operator/=(), Foam::operator<<(), Foam::operator<<(), Foam::operator<<(), Foam::operator<<(), MatrixBlock< MatrixType >::operator=(), MeshedSurface< Foam::face >::operator=(), Foam::operator>>(), Foam::operator>>(), Foam::operator^(), Foam::operator^(), cell::opposingFaceLabel(), OppositeFaceCellWave< Type, TrackingData >::opposingFaceLabels(), oppositeFace::oppositeFace(), triSurfaceTools::oppositeVertex(), oldCyclicPolyPatch::order(), triSurfaceTools::otherVertices(), distributedTriSurfaceMesh::overlappingSurface(), searchableRotatedBox::overlaps(), treeDataFace::overlaps(), treeDataFace::overlaps(), treeDataPrimitivePatch< PatchType >::overlaps(), treeDataPrimitivePatch< PatchType >::overlaps(), Pair< T >::Pair(), Pair< T >::Pair(), Pair< T >::Pair(), Pair< labelPair >::Pair(), Pair< labelPair >::Pair(), Pair< labelPair >::Pair(), CollisionRecordList< PairType, WallType >::pairAccessed(), CollisionRecordList< PairType, WallType >::pairData(), CollisionRecordList< PairType, WallType >::pairOrigIdOfOther(), CollisionRecordList< PairType, WallType >::pairOrigProcOfOther(), LBFGS::pivotFields(), polyMesh::pointInCell(), primitiveMesh::pointInCell(), pointMVCWeight::pointMVCWeight(), PatchTools::pointNormals(), PatchTools::pointNormals(), polyAddFace::polyAddFace(), polyModifyFace::polyModifyFace(), FaceInteraction< CloudType >::postFace(), Foam::pow(), Foam::pow(), Foam::pow(), Foam::printTriangle(), pointNoise::processData(), processorCyclicFvPatchField< Type >::processorCyclicFvPatchField(), processorCyclicFvsPatchField< Type >::processorCyclicFvsPatchField(), processorFaePatchField< Type >::processorFaePatchField(), processorFaPatchField< Type >::processorFaPatchField(), processorFvPatchField< Type >::processorFvPatchField(), processorFvsPatchField< Type >::processorFvsPatchField(), noiseFFT::PSDf(), ThermoCloud< Foam::DSMCCloud< dsmcParcel > >::radT4(), noiseModel::RAf(), cyclicAMILduInterfaceField::rank(), cyclicLduInterfaceField::rank(), processorLduInterfaceField::rank(), face::ray(), noiseModel::RBf(), noiseModel::RCf(), noiseModel::RDf(), boundaryMesh::read(), AC3DsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), OBJsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), STARCDsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), multiRegion::read(), turbulenceFields::read(), wallBoundedStreamLine::read(), STARCDMeshReader::readCells(), triSurfaceLoader::readDir(), FIREMeshReader::readFaces(), CollidingParcel< ParcelType >::readFields(), ensightSurfaceReader::readGeometry(), liquidProperties::readIfPresent(), processorLduInterface::receive(), referredWallFace::referredWallFace(), referredWallFace::referredWallFace(), fileName::relative(), surfaceFormatsCore::relativeFilePath(), triSurface::relativeFilePath(), KinematicCloud< Foam::DSMCCloud< dsmcParcel > >::relax(), meshRefinement::removeLeakCells(), snappySnapDriver::repatchToSurface(), KinematicCloud< Foam::DSMCCloud< dsmcParcel > >::resetSourceTerms(), ODESolver::resizeField(), ODESolver::resizeField(), includeEtcEntry::resolveEtcFile(), includeEntry::resolveFile(), faceAreaWeightAMI::restartUncoveredSourceFace(), Foam::rewritePatchLabels(), Field< Type >::rmap(), noiseFFT::RMSmeanPf(), ensightMeshReader::rotateFace(), edgeFaceCirculator::sameOrder(), sampledFaceZone::sampleOnPoints(), sampledPatch::sampleOnPoints(), sampledSurface::sampleOnPoints(), oversetFvMeshBase::scaleConnection(), edgeFaceCirculator::setCanonical(), refinementSurfaces::setCurvatureMinLevelFields(), IOstream::setf(), IOstream::setf(), fvGeometryScheme::setMeshPhi(), noiseModel::setOctaveBands(), addPatchCellLayer::setRefinement(), boundaryCutter::setRefinement(), combineFaces::setRefinement(), createShellMesh::setRefinement(), duplicatePoints::setRefinement(), edgeCollapser::setRefinement(), faceCollapser::setRefinement(), hexRef8::setRefinement(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), perfectInterface::setRefinement(), removeCells::setRefinement(), removeFaces::setRefinement(), removePoints::setRefinement(), tetDecomposer::setRefinement(), combineFaces::setUnrefinement(), sizeGroup::sizeGroup(), rigidBodyMeshMotion::solve(), rigidBodyMeshMotionSolver::solve(), sixDoFRigidBodyMotionSolver::solve(), PatchTools::sortedEdgeFaces(), noiseModel::SPL(), noiseModel::SPL(), meshRefinement::splitFace(), Foam::sqr(), Foam::sqr(), Foam::sqr(), AMIInterpolation::srcPointFace(), Foam::stabilise(), MeshedSurface< Foam::face >::subsetMesh(), Foam::sum(), Foam::sumMag(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), Foam::SVDcomp(), swapec(), MeshedSurface< Foam::face >::swapFaces(), MeshedSurface< Foam::face >::swapPoints(), face::symmhash_code(), syncTools::syncEdgeMap(), processorLduInterface::tag(), Foam::tetCutPrism0(), Foam::tetCutPrism0(), Foam::tetCutPrism01(), Foam::tetCutPrism01(), Foam::tetCutPrism23(), Foam::tetCutPrism23(), Foam::tetCutTet(), Foam::tetCutTet(), AMIInterpolation::tgtPointFace(), cutFaceAdvect::timeIntegratedFaceFlux(), fileName::toAbsolute(), particle< Type >::track(), wallBoundedParticle::trackToEdge(), particle< Type >::trackToFace(), cyclicACMILduInterfaceField::transformCoupleField(), cyclicACMILduInterfaceField::transformCoupleField(), cyclicAMILduInterfaceField::transformCoupleField(), cyclicAMILduInterfaceField::transformCoupleField(), cyclicLduInterfaceField::transformCoupleField(), cyclicLduInterfaceField::transformCoupleField(), processorLduInterfaceField::transformCoupleField(), processorLduInterfaceField::transformCoupleField(), faceAreaIntersect::triangleFan(), face::triangles(), boundaryMesh::triangulate(), faceAreaIntersect::triangulate(), MeshedSurface< Face >::triangulate(), triSurfaceTools::triangulate(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), boundaryMesh::triangulateLocal(), advancingFrontAMI::triangulatePatch(), Foam::triCutQuad(), Foam::triCutQuad(), Foam::triCutTri(), Foam::triCutTri(), triFace(), tetIndices::triIs(), Tuple2< scalar, vector >::Tuple2(), Tuple2< scalar, vector >::Tuple2(), noiseModel::uniformFrequencies(), IOstream::unsetf(), directionInfo::updateCell(), outletMappedUniformInletFvPatchField< Type >::updateCoeffs(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), patchEdgeFaceRegions::updateEdge(), patchFaceOrientation::updateEdge(), patchEdgeFaceRegions::updateFace(), patchFaceOrientation::updateFace(), primitiveMeshTools::updateFaceCentresAndAreas(), combineFaces::updateMesh(), coupledPolyPatch::updateMesh(), patchInjectionBase::updateMesh(), processorPolyPatch::updateMesh(), removePoints::updateMesh(), exprResultDelayed::updateReadValue(), triSurfaceTools::validTri(), triSurfaceTools::validTri(), forceCoeffs::coeffDesc::value(), triSurfaceTools::vertexNormals(), triSurfaceTools::vertexNormalWeight(), surfaceIteratorIso::vofCutCell(), surfaceIteratorPLIC::vofCutCell(), cuttingSurfaceBase::walkCellCuts(), CollisionRecordList< PairType, WallType >::wallAccessed(), CollisionRecordList< PairType, WallType >::wallData(), wallLayerCells::wallLayerCells(), CollisionRecordList< PairType, WallType >::wallPRel(), ensightFaces::write(), ABAQUSsurfaceFormat< Face >::write(), FLMAsurfaceFormat< Face >::write(), NASsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), VTPsurfaceFormat< Face >::write(), X3DsurfaceFormat< Face >::write(), multiFieldValue::write(), multiRegion::write(), turbulenceFields::write(), mesh::write(), OBJstream::write(), OBJstream::write(), OBJstream::write(), OBJstream::write(), rawWriter::write(), STLsurfaceFormat< Face >::writeAscii(), STLsurfaceFormat< Face >::writeAscii(), STLsurfaceFormat< Face >::writeBinary(), box::writeBoxes(), CollidingParcel< ParcelType >::writeFields(), noiseModel::writeFreqDataToFile(), externalCoupled::writeGeometry(), AABBTreeBase::writeOBJ(), coupledPolyPatch::writeOBJ(), enrichedPatch::writeOBJ(), indexedOctreeBase::writeOBJ(), Foam::meshTools::writeOBJ(), Foam::ensightOutput::writePolysPoints(), Foam::ensightOutput::writePolysPoints(), MeshedSurface< Face >::writeStats(), triSurface::writeStats(), abaqusWriter::writeTemplate(), nastranWriter::writeTemplate(), rawWriter::writeTemplate(), x3dWriter::writeTemplate(), noiseModel::writeWeightings(), Foam::writeZone(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::yPlusTherm(), and alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().

◆ bcl()

labelList bcl ( nPoints )

Referenced by bcb(), and triFace().

Here is the caller graph for this function:

◆ bcf()

labelList bcf ( nPoints )

Referenced by bcb().

Here is the caller graph for this function:

◆ bcb()

labelList bcb ( nPoints )

References bcb(), bcf(), bcl(), f(), i1tab(), i3tab(), i4, i8tab(), idreg(), kivaFile(), and nPoints.

Referenced by bcb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ if() [2/4]

if ( mTable = = 0)

Definition at line 77 of file readKivaGrid.H.

References FatalErrorInFunction, and mTable.

◆ imtab()

labelList imtab ( nPoints )

References i4, imtab(), jmtab(), kivaFile(), kmtab(), and nPoints.

Referenced by imtab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jmtab()

labelList jmtab ( nPoints )

Referenced by imtab().

Here is the caller graph for this function:

◆ kmtab()

labelList kmtab ( nPoints )

Referenced by imtab().

Here is the caller graph for this function:

◆ quadFace()

face quadFace ( 4 )

Referenced by if(), and triFace().

Here is the caller graph for this function:

◆ triFace()

◆ if() [3/4]

if ( pFaces. size() &&pFaces.size() &&pFaces.size() &&pFaces.size()[LINER][LINER][0][CYLINDERHEAD][CYLINDERHEAD][0])

Definition at line 318 of file readKivaGrid.H.

References forAll, Foam::min(), pFaces, and points.

Here is the call graph for this function:

◆ if() [4/4]

if ( pFaces. size() &&pFaces.size()[WEDGE][WEDGE][0])

Definition at line 408 of file readKivaGrid.H.

References cellShapes, nPatches, pFaces, points, and Foam::tan().

Here is the call graph for this function:

◆ boundary()

faceListList boundary ( nPatches )

References nPatches.

◆ patchNames()

◆ patchTypes()

◆ pointLabels()

◆ forAll() [1/4]

forAll ( cellShapes ,
celli  )

Definition at line 488 of file readKivaGrid.H.

References cellShapes, forAll, and pointLabels().

Here is the call graph for this function:

◆ forAll() [2/4]

forAll ( pointLabels ,
pointi  )

Definition at line 498 of file readKivaGrid.H.

References newPointi, pointLabels(), and points.

Here is the call graph for this function:

◆ setSize()

◆ forAll() [3/4]

forAll ( boundary ,
patchi  )

Definition at line 520 of file readKivaGrid.H.

References boundary, f(), forAll, and pointLabels().

Here is the call graph for this function:

◆ preservePatchTypes()

preservePatchTypes ( runTime ,
runTime. constant(),
polyMesh::meshSubDir ,
patchNames ,
patchDicts ,
defaultFacesName ,
defaultFacesType  )

References defaultFacesName, defaultFacesType, patchDicts, patchNames(), and runTime.

Here is the call graph for this function:

◆ forAll() [4/4]

forAll ( patchNames ,
patchi  )

Definition at line 545 of file readKivaGrid.H.

References dictionary, patchDicts, patchNames(), and patchTypes().

Here is the call graph for this function:

◆ pShapeMesh()

polyMesh pShapeMesh ( IOobject(polyMesh::defaultRegion, runTime.constant(), runTime) ,
std::move(points) ,
cellShapes ,
boundary ,
patchNames ,
patchDicts ,
defaultFacesName ,
defaultFacesType  )

References boundary, cellShapes, defaultFacesName, defaultFacesType, patchDicts, patchNames(), points, pShapeMesh(), and runTime.

Referenced by pShapeMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nRegs

Info<< "Reading kiva grid from file " << kivaFileName << endl;char title[120];kivaFile.getline(title, 120, '\n');label nPoints, nCells, nRegs;kivaFile > nCells nPoints nRegs

Definition at line 17 of file readKivaGrid.H.

◆ i4

label i4

Definition at line 20 of file readKivaGrid.H.

Referenced by bcb(), for(), and imtab().

◆ mTable

kivaFile mTable

Definition at line 74 of file readKivaGrid.H.

Referenced by if().

◆ pFaces

Info<< "Finished reading KIVA file" << endl;cellShapeList cellShapes(nPoints);labelList cellZoning(nPoints, -1);const cellModel& hex = cellModel::ref(cellModel::HEX);labelList hexLabels(8);label activeCells = 0;labelList pointMap(nPoints);forAll(pointMap, i){ pointMap[i] = i;}for (label i=0; i<nPoints; i++){ if (f[i] > 0.0) { hexLabels[0] = i; hexLabels[1] = i1tab[i]; hexLabels[2] = i3tab[i1tab[i]]; hexLabels[3] = i3tab[i]; hexLabels[4] = i8tab[i]; hexLabels[5] = i1tab[i8tab[i]]; hexLabels[6] = i3tab[i1tab[i8tab[i]]]; hexLabels[7] = i3tab[i8tab[i]]; cellShapes[activeCells].reset(hex, hexLabels); edgeList edges = cellShapes[activeCells].edges(); forAll(edges, ei) { if (edges[ei].mag(points) < SMALL) { label start = pointMap[edges[ei].start()]; while (start != pointMap[start]) { start = pointMap[start]; } label end = pointMap[edges[ei].end()]; while (end != pointMap[end]) { end = pointMap[end]; } pointMap[start] = pointMap[end] = Foam::min(start, end); } } cellZoning[activeCells] = idreg[i]; activeCells++; }}cellShapes.setSize(activeCells);cellZoning.setSize(activeCells);forAll(cellShapes, celli){ cellShape& cs = cellShapes[celli]; forAll(cs, i) { cs[i] = pointMap[cs[i]]; } cs.collapse();}label bcIDs[11] = {-1, 0, 2, 4, -1, 5, -1, 6, 7, 8, 9};constexpr label nBCs = 12;const word* kivaPatchTypes[nBCs] ={ &wallPolyPatch::typeName, &wallPolyPatch::typeName, &wallPolyPatch::typeName, &wallPolyPatch::typeName, &symmetryPolyPatch::typeName, &wedgePolyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &symmetryPolyPatch::typeName, &oldCyclicPolyPatch::typeName};enum patchTypeNames{ PISTON, VALVE, LINER, CYLINDERHEAD, AXIS, WEDGE, INFLOW, OUTFLOW, PRESIN, PRESOUT, SYMMETRYPLANE, CYCLIC};const char* kivaPatchNames[nBCs] ={ "piston", "valve", "liner", "cylinderHead", "axis", "wedge", "inflow", "outflow", "presin", "presout", "symmetryPlane", "cyclic"};List<DynamicList<face> > pFaces[nBCs]

Definition at line 233 of file readKivaGrid.H.

Referenced by singleProcessorFaceSets::add(), singleProcessorFaceSets::apply(), snappySnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), geometricElementTransformPointSmoother::calculate(), polyMeshTetDecomposition::cellTetIndices(), motionSmootherAlgo::checkMesh(), motionSmootherAlgo::checkMesh(), PrimitivePatch< FaceList, PointField >::checkPointManifold(), wallBoundedParticle::crossEdgeConnectedFace(), decompositionMethod::decompose(), polyMeshTetDecomposition::faceTetIndices(), cellClassification::fillRegionPoints(), polyMeshTetDecomposition::findBasePoint(), localPointRegion::findDuplicateFaces(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshTetDecomposition::findTet(), cellLooper::getVertFacesNonEdge(), if(), if(), if(), volPointInterpolation::interpolateBoundaryField(), volPointInterpolationAdjoint::interpolateBoundaryField(), volPointInterpolationAdjoint::interpolateSensitivitiesField(), volPointInterpolationAdjoint::interpolateSensitivitiesField(), volPointInterpolationAdjoint::makeBoundaryWeights(), mappedPolyPatch::newInternalProcFaces(), mappedWallPolyPatch::newInternalProcFaces(), oldCyclicPolyPatch::order(), boundaryMesh::patchify(), primitiveMesh::pointCells(), PatchTools::pointNormals(), PatchTools::pointNormals(), Foam::polyMeshZipUpCells(), perfectInterface::setRefinement(), removePoints::setRefinement(), hexRef8::setUnrefinement(), triSurfaceTools::trackToEdge(), dynamicRefineFvMesh::unrefine(), and triSurfaceTools::vertexNormals().

◆ nPatches

◆ defaultFacesName

word defaultFacesName = "defaultFaces"

Definition at line 456 of file readKivaGrid.H.

Referenced by Foam::preservePatchTypes(), preservePatchTypes(), and pShapeMesh().

◆ defaultFacesType

word defaultFacesType = emptyPolyPatch::typeName

Definition at line 457 of file readKivaGrid.H.

Referenced by Foam::preservePatchTypes(), preservePatchTypes(), and pShapeMesh().

◆ nAddedPatches

label nAddedPatches = 0

Definition at line 459 of file readKivaGrid.H.

◆ newPointi

◆ patchDicts