
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 |
| std::ifstream kivaFile | ( | kivaFileName | ) |
| if | ( | !kivaFile. | good() | ) |
Definition at line 3 of file readKivaGrid.H.
References FatalErrorInFunction, and kivaFile().

| labelList idface | ( | nPoints | ) |
| labelList fv | ( | nPoints | ) |
| for | ( | ) |
Definition at line 23 of file readKivaGrid.H.
References fv(), i4, idface(), kivaFile(), nPoints, and points.

| labelList i1tab | ( | nPoints | ) |
| labelList i3tab | ( | nPoints | ) |
| labelList i8tab | ( | nPoints | ) |
| 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().
| labelList bcl | ( | nPoints | ) |
| labelList bcb | ( | nPoints | ) |
| if | ( | mTable | = = 0 | ) |
Definition at line 77 of file readKivaGrid.H.
References FatalErrorInFunction, and mTable.
| labelList imtab | ( | nPoints | ) |
| face triFace | ( | 3 | ) |
References bcl(), f(), i3tab(), i8tab(), nPoints, and quadFace().
Referenced by tetIndices::faceTriIs(), if(), momentOfInertia::massPropertiesPatch(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), triFace::reverseFace(), MeshedSurface< face >::transcribe(), and tetIndices::triIs().


| 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.

| if | ( | pFaces. | size() &&pFaces.size()[WEDGE][WEDGE][0] | ) |
Definition at line 408 of file readKivaGrid.H.
References cellShapes, nPatches, pFaces, points, and Foam::tan().

| wordList patchNames | ( | nPatches | ) |
References nPatches.
Referenced by snappyRefineDriver::addFaceZones(), CV2D::calcDual(), polyBoundaryMesh::checkDefinition(), wallLayerCells::ClassName(), CV2D::extractPatches(), extrudePatchMesh::extrudePatchMesh(), forAll(), cellDistFuncs::getPatchIDs(), voxelMeshSearch::makeMesh(), ParticleErosion< CloudType >::ParticleErosion(), patchInjection::patchInjection(), Foam::preservePatchTypes(), preservePatchTypes(), sampledPatchInternalField::print(), pShapeMesh(), fieldExtents::read(), wallShearStress::read(), fvMeshSubset::reset(), wallLayerCells::wallLayerCells(), and conformalVoronoiMesh::writeMesh().

| wordList patchTypes | ( | nPatches | ) |
References nPatches.
Referenced by age::execute(), extrudePatchMesh::extrudePatchMesh(), forAll(), cellVolumeWeight::interpolatePatchTypes(), cellVolumeWeight::interpolatePatchTypes(), inverseDistance::markBoundaries(), trackingInverseDistance::markBoundaries(), wallDist::wallDist(), and searchableSurfaces::writeStats().

| labelList pointLabels | ( | nPoints | , |
| - | 1 ) |
References nPoints.
Referenced by setToPointZone::applyToSet(), faPatch::calcPointEdges(), cellModel::centre(), cellModel::edge(), cellModel::edges(), cellModel::face(), cellModel::faces(), forAll(), forAll(), forAll(), processorFaPatch::initUpdateMesh(), cell::labels(), cellModel::mag(), processorFaPatch::makeNonGlobalPatchPoints(), surfaceFeatures::nearestSamples(), cell::points(), Foam::pointsAverage(), setSize(), globalMeshData::sharedPointGlobalLabels(), globalMeshData::sharedPoints(), processorFaPatch::updateMesh(), and coupledPolyPatch::writeOBJ().

| forAll | ( | cellShapes | , |
| celli | ) |
Definition at line 488 of file readKivaGrid.H.
References cellShapes, forAll, and pointLabels().

| forAll | ( | pointLabels | , |
| pointi | ) |
Definition at line 498 of file readKivaGrid.H.
References newPointi, pointLabels(), and points.

References cellShapes, forAll, newPointi, pointLabels(), and points.
Referenced by polyTopoChanger::addTopologyModifiers(), pairPotentialList::buildPotentials(), tetherPotentialList::buildPotentials(), face::collapse(), nearWallDist::correct(), patchPatchDist::correct(), and ParSortableList< Type >::sort().


| forAll | ( | boundary | , |
| patchi | ) |
Definition at line 520 of file readKivaGrid.H.
References boundary, f(), forAll, and pointLabels().

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

| forAll | ( | patchNames | , |
| patchi | ) |
Definition at line 545 of file readKivaGrid.H.
References dictionary, patchDicts, patchNames(), and patchTypes().

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


| 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.
| label i4 |
Definition at line 20 of file readKivaGrid.H.
| kivaFile mTable |
Definition at line 74 of file readKivaGrid.H.
Referenced by if().
| 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().
| label nPatches = 0 |
Definition at line 394 of file readKivaGrid.H.
Referenced by boundary(), addPatchCellLayer::calcExtrudeInfo(), polyTopoChange::ClassName(), PointEdgeWave< Type, TrackingData >::countPatchType(), snappyLayerDriver::determineSidePatches(), if(), fvMeshTools::newMesh(), patchInjection::patchInjection(), patchNames(), patchTypes(), polyTopoChange::polyTopoChange(), STARCDMeshReader::readBoundary(), FIREMeshReader::reorganize(), and polyTopoChange::setNumPatches().
| word defaultFacesName = "defaultFaces" |
Definition at line 456 of file readKivaGrid.H.
Referenced by Foam::preservePatchTypes(), preservePatchTypes(), and pShapeMesh().
| word defaultFacesType = emptyPolyPatch::typeName |
Definition at line 457 of file readKivaGrid.H.
Referenced by Foam::preservePatchTypes(), preservePatchTypes(), and pShapeMesh().
| label nAddedPatches = 0 |
Definition at line 459 of file readKivaGrid.H.
| label newPointi = 0 |
Definition at line 497 of file readKivaGrid.H.
Referenced by extendedEdgeMesh::add(), polyTopoChange::changeMesh(), extendedEdgeMesh::flipNormals(), forAll(), triSurfaceTools::greenRefine(), fvMeshSubset::reset(), setSize(), hexRef8::subset(), triSurfaceTools::triangulateFaceCentre(), addPatchCellLayer::updateMesh(), boundaryCutter::updateMesh(), hexRef8::updateMesh(), hexRef8Data::updateMesh(), localPointRegion::updateMesh(), pointZoneSet::updateMesh(), and polyMesh::updateMesh().
| PtrList<dictionary> patchDicts |
Definition at line 533 of file readKivaGrid.H.
Referenced by forAll(), blockMesh::patchDicts(), Foam::preservePatchTypes(), preservePatchTypes(), pShapeMesh(), and conformalVoronoiMesh::writeMesh().