readKivaGrid.H File Reference
Include dependency graph for readKivaGrid.H:

Go to the source code of this file.

Functions

ifstream kivaFile (kivaFileName.c_str())
 
 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), move(points), cellShapes, boundary, patchNames, patchDicts, defaultFacesName, defaultFacesType)
 
 polyMeshUnMergeCyclics (pShapeMesh)
 

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=*(cellModeller::lookup("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]=cellShape(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];} label minLabel=min(start, end);pointMap[start]=pointMap[end]=minLabel;} } 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};const 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, &mergedCyclicPolyPatch::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< SLList< 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()

ifstream kivaFile ( kivaFileName.  c_str())

Referenced by for().

Here is the caller graph for this function:

◆ if() [1/4]

if ( !kivaFile.  good())

Definition at line 3 of file readKivaGrid.H.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ points()

pointField points ( nPoints  )

Referenced by for(), forAll(), and if().

Here is the caller graph for this function:

◆ idface()

labelList idface ( nPoints  )

Referenced by for(), and if().

Here is the caller graph for this function:

◆ fv()

labelList fv ( nPoints  )

Referenced by for(), if(), and makeMomentumTransportModelTypes().

Here is the caller graph for this function:

◆ for()

for ( )

Definition at line 23 of file readKivaGrid.H.

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

Here is the call graph for this function:

◆ i1tab()

labelList i1tab ( nPoints  )

◆ i3tab()

labelList i3tab ( nPoints  )

◆ i8tab()

labelList i8tab ( nPoints  )

◆ idreg()

labelList idreg ( nPoints  )

◆ f()

labelList f ( nPoints  )

Referenced by singleProcessorFaceSetsConstraint::add(), multivariateSurfaceInterpolationScheme< Type >::fieldTable::add(), polyTopoChange::addFace(), fvTotalSource::addSource(), fvTotalSource::addSupType(), regIOobject::addWatch(), fileOperation::addWatches(), masterUncollatedFileOperation::addWatches(), waveAlphaFvPatchScalarField::alphan(), MPLICface::alphaPhiU(), singleProcessorFaceSetsConstraint::apply(), face::areaAndCentreStabilised(), Foam::average(), face::average(), cell::bb(), booleanSurface::booleanSurface(), Foam::meshCheck::boundaryFaceSkewness(), searchableBox::boundingSpheres(), triSurfaceMesh::boundingSpheres(), PatchTools::calcBounds(), BrownianMotionForce< CloudType >::calcCoupled(), cellMatcher::calcEdgeAddressing(), coupledPolyPatch::calcFaceTol(), faceZone::calcFaceZonePatch(), triSurfaceTools::calcInterpolationWeights(), cellMatcher::calcLocalFaces(), cellMatcher::calcPointFaceIndex(), primitiveMesh::calcPointOrder(), createShellMesh::calcPointRegions(), rotorDisk::calculate(), KocamustafaogullariIshiiNucleationSite::calculate(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), pointMVCWeight::calcWeights(), cellEdgeAddressingData::cellEdgeAddressingData(), cellMatcher::cellMatcher(), primitiveMesh::cellPoints(), tetOverlapVolume::cellVolumeMinDecomp(), cell::centre(), repatcher::changeAnchorPoint(), Foam::meshCheck::checkCellsZipUp(), Foam::meshCheck::checkCoupledPoints(), Foam::meshCheck::checkEdgeAlignment(), Foam::meshCheck::checkEdgeLength(), Foam::meshCheck::checkFaceAngles(), Foam::meshCheck::checkFaceFlatness(), Foam::meshCheck::checkFacePyramids(), MeshedSurface< Face >::checkFaces(), Foam::meshCheck::checkFaceTet(), polyMeshTetDecomposition::checkFaceTets(), Foam::meshCheck::checkFaceTwist(), Foam::meshCheck::checkFaceVertices(), hexRef8::checkMesh(), edgeCollapser::checkMeshQuality(), PatchTools::checkOrientation(), CollisionRecordList< vector, vector >::checkPairRecord(), searchableSurfaces::checkQuality(), Foam::meshCheck::checkTopology(), triSurface::checkTriangles(), Foam::meshCheck::checkTriangleTwist(), CollisionRecordList< vector, vector >::checkWallRecord(), Foam::meshCheck::checkWedges(), TomiyamaLift::Cl(), ensightPartFaces::classify(), Foam::cmptAv(), Foam::cmptMag(), Foam::cmptMax(), Foam::cmptMin(), cellShape::collapsedFaces(), triSurfaceTools::collapseEdges(), ORourkeCollision< CloudType >::collideSorted(), Foam::component(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), edgeCollapser::consistentCollapse(), bound::constrain(), CentredFitScheme< Type, Polynomial, Stencil >::correction(), pointLinear< Type >::correction(), removePoints::countPointUsage(), triSurface::curvature(), MPLICface::cutFace(), decompositionMethod::decompose(), cellsToCells::distributeMesh(), snappySnapDriver::doSnap(), PatchTools::edgeOwner(), cell::edges(), directionInfo::edgeToFaceIndex(), BlendedInterfacialModel< ModelType >::evaluate(), turbulenceFields::execute(), blendingMethod::f1DispersedIn2(), blendingMethod::f2DispersedIn1(), Foam::meshCheck::faceConcavity(), Foam::cutPoly::faceCuts(), primitiveMesh::faceEdges(), Foam::meshCheck::faceFlatness(), hexRef8::faceLevel(), FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), Foam::meshCheck::facePyramidVolume(), cellModel::faces(), Foam::meshCheck::faceSkewness(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTriIs(), blendingMethod::fDisplaced(), polyMeshTetDecomposition::findBasePoint(), localPointRegion::findDuplicateFaces(), treeDataPrimitivePatch< PatchType >::findIntersection(), meshSearch::findNearestBoundaryFace(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshTetDecomposition::findTet(), Foam::first(), dummyISstream::flags(), dummyIstream::flags(), ISstream::flags(), OSstream::flags(), forAll(), pairPotentialList::force(), pairPotential::force(), Foam::gAverage(), surfaceFieldValue::getFieldValues(), surfaceSets::getHangingCells(), edgeFaceCirculator::getMinIndex(), repatchMesh::getNearest(), hexRef8::getSplitPoints(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), snappySnapDriver::getZoneSurfacePoints(), includeEntry::includeFileName(), FreeStream< CloudType >::inflow(), coupledPolyPatch::initOrder(), processorPolyPatch::initTopoChange(), waveSpectrum::integralFS(), PiersonMoskowitz::integralS(), waveSpectrum::integralS(), linearInterpolationWeights::integrationWeights(), Foam::blendedInterfacialModel::interpolate(), patch::interpolateField(), thresholdCellFaces::interpolateField(), Foam::interpolatePointToCell(), meshRefinement::intersectedPoints(), face::intersection(), IOField< Type >::IOField(), irregular::irregular(), fileOperation::isFileOrDir(), function::jcalc(), functionDot::jcalc(), cell::labels(), noiseFFT::Ldelta(), Foam::levelSetFraction(), Foam::listConfigFiles(), particle::locate(), Foam::longestEdge(), basicThermo::lookupThermo(), cell::mag(), Foam::mag(), Foam::magSqr(), Field< Type >::map(), edgeCollapser::markFaceZoneEdges(), edgeCollapser::markSmallSliverFaces(), Foam::max(), adjustTimeStepToCombustion::maxDeltaT(), Foam::maxMagSqr(), noiseFFT::meanPf(), triSurfaceTools::mergePoints(), meshTriangulation::meshTriangulation(), Foam::min(), Foam::minMagSqr(), polyMeshTetDecomposition::minQuality(), polyTopoChange::modifyFace(), findCellParticle::move(), trackedParticle::move(), molecule::move(), sampledSetParticle::move(), solidParticle::move(), DSMCParcel< ParcelType >::move(), MomentumParcel< ParcelType >::move(), primitiveMesh::movePoints(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), face::nearestPointClassify(), Field< Type >::NewCalculatedType(), isotropic::oneByTau(), nonEquilibrium::oneByTau(), ConstMatrixBlock< MatrixType >::operator Field< cmptType >(), MatrixBlock< MatrixType >::operator Field< cmptType >(), spatialTransform::transpose::operator&(), spatialTransform::dual::operator&(), inversePointDistanceDiffusivity::operator()(), treeDataPrimitivePatch< PatchType >::findSelfIntersectOp::operator()(), treeDataCell::findIntersectOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataPrimitivePatch< PatchType >::findNearestOp::operator()(), patchToPatchFieldMapper::operator()(), fieldMapper::operator()(), Foam::operator<<(), MatrixBlock< MatrixType >::operator=(), FieldField< Field, Type >::operator=(), Function1< Type >::operator=(), Function2< Type >::operator=(), Foam::operator>>(), Foam::operator^(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherVertices(), distributedTriSurfaceMesh::overlappingSurface(), treeDataFace::overlaps(), treeDataPrimitivePatch< PatchType >::overlaps(), Pair< Type >::Pair(), CollisionRecordList< PairType, WallType >::pairAccessed(), CollisionRecordList< PairType, WallType >::pairData(), CollisionRecordList< PairType, WallType >::pairOrigIdOfOther(), CollisionRecordList< vector, vector >::pairOrigProcOfOther(), fvPatch::patchInternalField(), noiseFFT::Pdelta(), unintegrableForNonZeroQ::Phi01(), primitiveMesh::pointInCell(), polyMesh::pointInCell(), pointMVCWeight::pointMVCWeight(), PatchTools::pointNormals(), cell::points(), Foam::pow(), LiaoBase::precompute(), face::ray(), AC3DsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), OBJsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), repatchMesh::read(), STARCD::readCells(), DimensionedField< Type, GeoMesh >::readField(), CollidingParcel< ParcelType >::readFields(), liquidProperties::readIfPresent(), processorLduInterface::receive(), refiner::refiner(), DLListBase::removeHead(), SLListBase::removeHead(), snappySnapDriver::repatchToSurface(), ODESolver::resizeField(), face::reverseFace(), Field< Type >::rmap(), noiseFFT::RMSmeanPf(), GodaJONSWAP::S(), JONSWAP::S(), PiersonMoskowitz::S(), edgeFaceCirculator::sameOrder(), unintegrable::sampleInterval(), mappedInternalPatchBase::samplePoints(), sampledSurfaces::sampleType(), processorLduInterface::send(), edgeFaceCirculator::setCanonical(), IOstream::setf(), removePoints::setRefinement(), meshCutter::setRefinement(), addPatchCellLayer::setRefinement(), perfectInterface::setRefinement(), hexRef8::setRefinement(), removeCells::setRefinement(), combineFaces::setRefinement(), edgeCollapser::setRefinement(), duplicatePoints::setRefinement(), createShellMesh::setRefinement(), combineFaces::setUnrefinement(), ThermoCloud< CloudType >::sigmap(), rigidBodyMeshMotion::solve(), rigidBodyMeshMotionSolver::solve(), sixDoFRigidBodyMotionSolver::solve(), PatchTools::sortedEdgeFaces(), meshRefinement::splitFaces(), meshRefinement::splitMesh(), fileOperation::splitProcessorPath(), Foam::sqr(), Foam::stabilise(), MeshedSurface< Face >::stitchFaces(), PatchTools::subsetMap(), MeshedSurface< Face >::subsetMesh(), UnsortedMeshedSurface< Face >::subsetMesh(), triSurface::subsetMeshMap(), Foam::sum(), Foam::sumCmptMag(), Foam::sumMag(), Foam::sumSqr(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), SVD::SVD(), swapec(), syncTools::syncEdgeMap(), thermo< Thermo, Type >::T(), Foam::T(), Foam::tetCutPrism0(), Foam::tetCutPrism01(), Foam::tetCutPrism23(), Foam::tetCutTet(), fileName::toAbsolute(), combineFaces::topoChange(), removePoints::topoChange(), processorPolyPatch::topoChange(), unitConversion::toStandard(), unitConversion::toUser(), particle::track(), particle::trackToAndHitFace(), particle::trackToCell(), particle::trackToFace(), filmVoFTransfer::TransferRate(), VoFFilmTransfer::TransferRate(), directionInfo::transform(), cyclicLduInterfaceField::transformCoupleField(), processorLduInterfaceField::transformCoupleField(), Foam::transformFieldMask(), triSurfaceTools::triangulate(), MeshedSurface< Face >::triangulate(), triSurfaceTools::triangulateFaceCentre(), Foam::triCutQuad(), Foam::triCutTri(), triFace::triFaceFace(), waveVelocityFvPatchVectorField::Un(), MPPICParcel< ParcelType >::trackingData::updateAverages(), directionInfo::updateCell(), outletMappedUniformInletFvPatchField< Type >::updateCoeffs(), fWallFunctionFvPatchScalarField::updateCoeffs(), externalTemperatureFvPatchScalarField::updateCoeffs(), patchFaceOrientation::updateEdge(), patchEdgeFaceRegions::updateEdge(), patchFaceOrientation::updateFace(), patchEdgeFaceRegions::updateFace(), linearInterpolationWeights::valueWeights(), volPointInterpolation::volPointInterpolation(), CollisionRecordList< PairType, WallType >::wallAccessed(), CollisionRecordList< vector, vector >::wallData(), CollisionRecordList< PairType, WallType >::wallData(), CollisionRecordList< PairType, WallType >::wallPRel(), CollisionRecordList< vector, vector >::wallPRel(), face::which(), SizeDistribution< CloudType >::write(), AC3DsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), X3DsurfaceFormat< Face >::write(), liquidProperties::write(), OBJstream::write(), forcesBase::writeBins(), ensightPartFaces::writeConnectivity(), Foam::writeEntry(), Foam::cutPoly::writeFaceCuts(), CollidingParcel< ParcelType >::writeFields(), fieldAverage::writeFieldType(), forcesBase::writeFileHeader(), coupledPolyPatch::writeOBJ(), Foam::meshTools::writeOBJ(), triSurface::writeStats(), distribution::x(), standardNormal::x(), alphatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm(), and GlobalIOListBase< List, GlobalIOList, Type >::~GlobalIOListBase().

◆ bcl()

labelList bcl ( nPoints  )

◆ bcf()

labelList bcf ( nPoints  )

◆ bcb()

labelList bcb ( nPoints  )

◆ if() [2/4]

if ( mTable  = = 0)

Definition at line 71 of file readKivaGrid.H.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ imtab()

labelList imtab ( nPoints  )

◆ jmtab()

labelList jmtab ( nPoints  )

◆ kmtab()

labelList kmtab ( nPoints  )

◆ quadFace()

face quadFace ( )

Referenced by if().

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 314 of file readKivaGrid.H.

References Foam::endl(), forAll(), forAllConstIter, Foam::Info, 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 410 of file readKivaGrid.H.

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

Here is the call graph for this function:

◆ boundary()

◆ patchNames()

◆ patchTypes()

wordList patchTypes ( nPatches  )

Referenced by age::execute(), forAll(), and searchableSurfaces::writeStats().

Here is the caller graph for this function:

◆ pointLabels()

◆ forAll() [1/4]

forAll ( cellShapes  ,
celli   
)

Definition at line 486 of file readKivaGrid.H.

References cellShapes, and pointLabels().

Referenced by forAll(), if(), and setSize().

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

◆ forAll() [2/4]

forAll ( pointLabels  ,
pointi   
)

Definition at line 496 of file readKivaGrid.H.

References newPointi, pointLabels(), and points().

Here is the call graph for this function:

◆ setSize()

points setSize ( newPointi  )

References cellShapes, forAll(), and pointLabels().

Referenced by DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), List< T >::append(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::append(), PtrList< T >::append(), UPtrList< T >::append(), pairPotentialList::buildPotentials(), tetherPotentialList::buildPotentials(), CompactListList< label >::clone(), face::collapse(), CompactIOListBase< Container, IOContainer, CompactIOContainer, Type >::CompactIOListBase(), patchPatchDist::correct(), cpuLoad::distribute(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::erase(), processorFvPatchField< Type >::initEvaluate(), IOListBase< Container, IOContainer, Type >::IOListBase(), Field< tensor >::map(), Field< Type >::map(), cpuLoad::mapMesh(), List< T >::newElmt(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::operator()(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::operator()(), DynamicList< Foam::List >::operator=(), PackedBoolList::operator=(), PtrList< T >::operator=(), ReactionList< Foam::sutherlandTransport >::ReactionList(), ReactionList< ThermoType >::ReactionList(), PtrList< T >::read(), GeometricBoundaryField< Type, PatchField, GeoMesh >::readField(), PackedList< nBits >::reserve(), MRFZoneList::reset(), porosityModelList::reset(), GeometricBoundaryField< Type, PatchField, GeoMesh >::reset(), CompactListList< T >::resize(), List< T >::resize(), PtrList< T >::resize(), UPtrList< T >::resize(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::resize(), CompactListList< label >::resize(), PackedList< nBits >::setCapacity(), SquareMatrix< Type >::setSize(), List< T >::setSize(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::setSize(), PackedList< nBits >::shrink(), and ParSortableList< Type >::sort().

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

◆ forAll() [3/4]

forAll ( boundary  ,
patchi   
)

Definition at line 518 of file readKivaGrid.H.

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

Here is the call graph for this function:

◆ preservePatchTypes()

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

◆ forAll() [4/4]

forAll ( patchNames  ,
patchi   
)

Definition at line 543 of file readKivaGrid.H.

References patchDicts, patchi, and patchTypes().

Here is the call graph for this function:

◆ pShapeMesh()

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

◆ polyMeshUnMergeCyclics()

polyMeshUnMergeCyclics ( pShapeMesh  )

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

◆ mTable

kivaFile mTable

Definition at line 68 of file readKivaGrid.H.

◆ pFaces

Info<< "Finished reading KIVA file" << endl;cellShapeList cellShapes(nPoints);labelList cellZoning(nPoints, -1);const cellModel& hex = *(cellModeller::lookup("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] = cellShape(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]; } label minLabel = min(start, end); pointMap[start] = pointMap[end] = minLabel; } } 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};const 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, &mergedCyclicPolyPatch::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<SLList<face> > pFaces[nBCs]

◆ nPatches

◆ defaultFacesName

word defaultFacesName = "defaultFaces"

Definition at line 454 of file readKivaGrid.H.

Referenced by Foam::preservePatchTypes().

◆ defaultFacesType

word defaultFacesType = emptyPolyPatch::typeName

Definition at line 455 of file readKivaGrid.H.

Referenced by Foam::preservePatchTypes().

◆ nAddedPatches

label nAddedPatches = 0

Definition at line 457 of file readKivaGrid.H.

◆ newPointi

◆ patchDicts

PtrList<dictionary> patchDicts

Definition at line 531 of file readKivaGrid.H.

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