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 | nBfaces = 0 |
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 |
ifstream kivaFile | ( | kivaFileName. | c_str() | ) |
if | ( | !kivaFile. | good() | ) |
Definition at line 3 of file readKivaGrid.H.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, kivaFile(), nPoints, and nRegs.
pointField points | ( | nPoints | ) |
labelList idface | ( | nPoints | ) |
labelList fv | ( | nPoints | ) |
Referenced by for(), if(), and NamedEnum< compressibleField, 8 >::names().
for | ( | ) |
labelList i1tab | ( | nPoints | ) |
labelList i3tab | ( | nPoints | ) |
labelList i8tab | ( | nPoints | ) |
labelList idreg | ( | nPoints | ) |
labelList f | ( | nPoints | ) |
Referenced by multivariateSurfaceInterpolationScheme< Type >::fieldTable::add(), singleProcessorFaceSetsConstraint::add(), regIOobject::addWatch(), fileOperation::addWatches(), masterUncollatedFileOperation::addWatches(), waveAlphaFvPatchScalarField::alphan(), singleProcessorFaceSetsConstraint::apply(), face::average(), booleanSurface::booleanSurface(), primitiveMeshTools::boundaryFaceSkewness(), searchableBox::boundingSpheres(), PatchTools::calcBounds(), BrownianMotionForce< CloudType >::calcCoupled(), cellMatcher::calcEdgeAddressing(), coupledPolyPatch::calcFaceTol(), faceZone::calcFaceZonePatch(), cellMatcher::calcLocalFaces(), cellMatcher::calcPointFaceIndex(), interpolationCellPointWallModified< Type >::calcPointField(), primitiveMesh::calcPointOrder(), createShellMesh::calcPointRegions(), rotorDiskSource::calculate(), nutUSpaldingWallFunctionFvPatchScalarField::calcUTau(), cellMatcher::cellMatcher(), primitiveMesh::cellPoints(), repatchPolyTopoChanger::changeAnchorPoint(), primitiveMesh::checkCellsZipUp(), primitiveMesh::checkEdgeLength(), Foam::polyMeshCheck::checkFaceAngles(), Foam::polyMeshCheck::checkFaceFlatness(), Foam::polyMeshCheck::checkFacePyramids(), primitiveMesh::checkFacePyramids(), MeshedSurface< Foam::face >::checkFaces(), Foam::polyMeshCheck::checkFaceTet(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), primitiveMesh::checkFaceVertices(), hexRef8::checkMesh(), edgeCollapser::checkMeshQuality(), PatchTools::checkOrientation(), searchableSurfaces::checkQuality(), triSurface::checkTriangles(), Foam::polyMeshCheck::checkTriangleTwist(), ensightPartFaces::classify(), equilibrium::clone(), isotropic::clone(), nonEquilibrium::clone(), Foam::cmptAv(), Foam::cmptMag(), Foam::cmptMax(), Foam::cmptMin(), cellShape::collapsedFaces(), ORourkeCollision< CloudType >::collideSorted(), Foam::component(), processorLduInterface::compressedReceive(), polyMeshFilter::copyMesh(), CentredFitScheme< Type, Polynomial, Stencil >::correction(), pointLinear< Type >::correction(), removePoints::countPointUsage(), decompositionMethod::decompose(), PatchTools::edgeOwner(), directionInfo::edgeToFaceIndex(), turbulenceFields::execute(), extrudePatchMesh::extrudePatchMesh(), primitiveMeshTools::faceConcavity(), primitiveMeshTools::faceFlatness(), hexRef8::faceLevel(), mappedPatchBase::facePoint(), primitiveMeshTools::facePyramidVolume(), cellModel::faces(), primitiveMeshTools::faceSkewness(), polyMeshTetDecomposition::faceTetIndices(), tetIndices::faceTriIs(), fvMeshStitcher::fieldRMapSum(), polyMeshTetDecomposition::findBasePoint(), localPointRegion::findDuplicateFaces(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), meshSearch::findNearestBoundaryFace(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshTetDecomposition::findTet(), Foam::first(), dummyISstream::flags(), dummyIstream::flags(), for(), forAll(), pairPotentialList::force(), pairPotential::force(), surfaceFieldValue::getFieldValues(), surfaceSets::getHangingCells(), repatchMesh::getNearest(), if(), FreeStream< CloudType >::inflow(), coupledPolyPatch::initOrder(), processorPolyPatch::initTopoChange(), linearInterpolationWeights::integrationWeights(), plane::interpolateField(), isoSurface::interpolateField(), thresholdCellFaces::interpolateField(), patch::interpolateField(), meshToMesh0::interpolateField(), Foam::interpolatePointToCell(), meshRefinement::intersectedPoints(), face::intersection(), functionDot::jcalc(), function::jcalc(), noiseFFT::Ldelta(), Foam::levelSetFraction(), Foam::mag(), Foam::magSqr(), primitiveMesh::makeFaceCentresAndAreas(), Field< PointType >::map(), noiseFFT::meanPf(), polyMeshTetDecomposition::minQuality(), polyTopoChange::modifyFace(), solidParticle::move(), findCellParticle::move(), sampledSetParticle::move(), trackedParticle::move(), DSMCParcel< ParcelType >::move(), MPPICParcel< ParcelType >::move(), molecule::move(), MomentumParcel< ParcelType >::move(), regionModel1D::moveMesh(), primitiveMesh::movePoints(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), NamedEnum< compressibleField, 8 >::names(), face::nearestPointClassify(), cellCuts::nonAnchorPoints(), ConstMatrixBlock< MatrixType >::operator Field< cmptType >(), MatrixBlock< MatrixType >::operator Field< cmptType >(), spatialTransform::transpose::operator spatialTensor(), spatialTransform::dual::operator spatialTensor(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), ifEqEqOp< value >::operator()(), findUniqueIntersectOp::operator()(), inversePointDistanceDiffusivity::operator()(), treeDataCell::findIntersectOp::operator()(), offsetOp< face >::operator()(), Foam::operator/(), Foam::operator<<(), FieldField< Foam::fvPatchField, scalar >::operator=(), Foam::operator>>(), Foam::operator^(), distributedTriSurfaceMesh::overlappingSurface(), Pair< word >::Pair(), CollisionRecordList< vector, vector >::pairAccessed(), CollisionRecordList< vector, vector >::pairData(), CollisionRecordList< vector, vector >::pairOrigIdOfOther(), CollisionRecordList< vector, vector >::pairOrigProcOfOther(), Foam::parseNASCoord(), MomentumCloud< Foam::DSMCCloud >::patchData(), noiseFFT::Pdelta(), polyMesh::pointInCell(), primitiveMesh::pointInCell(), PatchTools::pointNormals(), Foam::pow(), fvMeshDistribute::printCoupleInfo(), face::ray(), OBJsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), repatchMesh::read(), STARCD::readCells(), DimensionedField< Type, Foam::pointMesh >::readField(), CollidingParcel< ParcelType >::readFields(), refiner::refiner(), SLListBase::removeHead(), DLListBase::removeHead(), face::reverseFace(), Field< PointType >::rmap(), noiseFFT::RMSmeanPf(), sampledSurfaces::sampleType(), Random::scalarNormal(), IOstream::setBad(), hexRef8::setInstance(), duplicatePoints::setRefinement(), removeCells::setRefinement(), perfectInterface::setRefinement(), removePoints::setRefinement(), createShellMesh::setRefinement(), addPatchCellLayer::setRefinement(), ThermoCloud< Foam::DSMCCloud >::sigmap(), solidBodyMotionSolver::solidBodyMotionSolver(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), PatchTools::sortedEdgeFaces(), meshRefinement::splitFaces(), fileOperation::splitProcessorPath(), Foam::sqr(), AMIInterpolation::srcPointFace(), MeshedSurface< Foam::face >::stitchFaces(), PatchTools::subsetMap(), UnsortedMeshedSurface< Face >::subsetMesh(), MeshedSurface< Foam::face >::subsetMesh(), SVD::SVD(), swapec(), syncTools::syncEdgeMap(), tetOverlapVolume::tetOverlapVolume(), AMIInterpolation::tgtPointFace(), fileName::toAbsolute(), patchInjectionBase::topoChange(), processorPolyPatch::topoChange(), removePoints::topoChange(), particle::track(), particle::trackToAndHitFace(), particle::trackToCell(), particle::trackToFace(), directionInfo::transform(), Foam::transformFieldMask(), cyclicLduInterfaceField::transforms(), cyclicAMILduInterfaceField::transforms(), processorLduInterfaceField::transforms(), MeshedSurface< Foam::face >::triangulate(), triFace::triFaceFace(), triSurface::triSurfInstance(), thermo< Thermo, Type >::typeName(), waveVelocityFvPatchVectorField::Un(), MPPICParcel< ParcelType >::trackingData::updateAverages(), directionInfo::updateCell(), fWallFunctionFvPatchScalarField::updateCoeffs(), outletMappedUniformInletFvPatchField< Type >::updateCoeffs(), patchFaceOrientation::updateEdge(), patchEdgeFaceRegions::updateEdge(), patchFaceOrientation::updateFace(), patchEdgeFaceRegions::updateFace(), linearInterpolationWeights::valueWeights(), vtkUnstructuredReader::vtkUnstructuredReader(), CollisionRecordList< vector, vector >::wallAccessed(), CollisionRecordList< vector, vector >::wallData(), wallLayerCells::wallLayerCells(), CollisionRecordList< vector, vector >::wallPRel(), face::which(), X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), forces::writeBins(), ensightPartFaces::writeConnectivity(), Foam::writeEntry(), CollidingParcel< ParcelType >::writeFields(), fieldAverage::writeFieldType(), forces::writeFileHeader(), Foam::meshTools::writeOBJ(), coupledPolyPatch::writeOBJ(), ensightPartCells::~ensightPartCells(), ensightPartFaces::~ensightPartFaces(), fieldMapper::~fieldMapper(), MPLICface::~MPLICface(), ODESolver::~ODESolver(), and Stochastic< CloudType >::~Stochastic().
if | ( | mTable | = = 0 | ) |
Definition at line 77 of file readKivaGrid.H.
References cellShapes, Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, forAll(), Foam::hex(), i1tab(), i3tab(), i8tab(), idreg(), imtab(), Foam::Info, jmtab(), kivaFile(), kmtab(), lookup(), Foam::mag(), Foam::min(), nPoints, and points().
face quadFace | ( | 4 | ) |
face triFace | ( | 3 | ) |
Referenced by tetCell::face(), tetIndices::faceTriIs(), if(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), MPLICcell::MPLICcell(), NamedEnum< compressibleField, 8 >::names(), polygonTriangulate::randomPolygon(), OBJsurfaceFormat< Face >::read(), GTSsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), TRIsurfaceFormat< Face >::read(), STLsurfaceFormat< Face >::read(), patchInjectionBase::topoChange(), MeshedSurface< Foam::face >::transcribe(), and MeshedSurface< Foam::face >::triangulate().
if | ( | pFaces. | size() &&pFaces.size() &&pFaces.size() &&pFaces.size()[LINER][LINER][0][CYLINDERHEAD][CYLINDERHEAD][0] | ) |
Definition at line 321 of file readKivaGrid.H.
References Foam::endl(), forAll(), forAllConstIter, Foam::Info, Foam::min(), and points().
if | ( | pFaces. | size() &&pFaces.size()[WEDGE][WEDGE][0] | ) |
Definition at line 416 of file readKivaGrid.H.
References boundary(), Foam::degToRad(), forAllIter, patchNames(), patchTypes(), points(), and Foam::tan().
faceListList boundary | ( | nPatches | ) |
Referenced by fvMesh::addFvPatches(), semiPermeableBaffleMassFractionFvPatchScalarField::calcPhiYp(), fvMesh::clearOut(), Foam::correctContactAngle(), forAll(), if(), singleCellFvMesh::interpolate(), volPointInterpolation::interpolateUnconstrained(), steadyStateDdtScheme< Type >::meshPhi(), CoEulerDdtScheme< Type >::meshPhi(), SLTSDdtScheme< Type >::meshPhi(), localEulerDdtScheme< Type >::meshPhi(), Foam::min(), fvMesh::movePoints(), fvMesh::operator()(), patchMeanVelocityForce::patchMeanVelocityForce(), fvMesh::polyBFacePatches(), fvMesh::polyFacesBf(), domainDecomposition::procFaceAddressingBf(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), fvMesh::thisDb(), meshToMesh::update(), mappedFlowRateFvPatchVectorField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), and fvMesh::writeObject().
wordList patchNames | ( | nPatches | ) |
Referenced by polyBoundaryMesh::checkDefinition(), extrudePatchMesh::extrudePatchMesh(), forAll(), if(), polyBoundaryMesh::mesh(), patchEjection::patchEjection(), patchInternalField::print(), patch::print(), and fvMeshSubset::setLargeCellSubset().
wordList patchTypes | ( | nPatches | ) |
Referenced by interpolationCellPointWallModified< Type >::calcPointField(), age::execute(), extrudePatchMesh::extrudePatchMesh(), and if().
labelList pointLabels | ( | nPoints | , |
- | 1 | ||
) |
Referenced by polyTopoChange::addMesh(), edgeCollapser::checkMeshQuality(), cellModel::clone(), domainDecomposition::decompose(), cell::points(), globalMeshData::sharedPointGlobalLabels(), and globalMeshData::sharedPoints().
forAll | ( | cellShapes | , |
celli | |||
) |
Definition at line 492 of file readKivaGrid.H.
Referenced by forAll(), and if().
forAll | ( | pointLabels | , |
pointi | |||
) |
Definition at line 502 of file readKivaGrid.H.
References forAll(), newPointi, and points().
Referenced by PtrList< transferModel >::append(), DynamicList< Foam::triFace >::append(), DynamicField< Foam::Vector >::append(), List< Field< scalar > >::append(), CloudFunctionObjectList< MomentumCloud< CloudType > >::CloudFunctionObjectList(), CompactIOList< face, label >::CompactIOList(), ListCompactIO< face, label >::convertFromCompact(), DynamicList< Foam::triFace >::erase(), Field< PointType >::Field(), GlobalIOField< Foam::Vector >::GlobalIOField(), GlobalIOList< thermoParcelInjectionData >::GlobalIOList(), processorFvPatchField< Type >::initEvaluate(), InjectionModelList< Foam::MomentumCloud< CloudType > >::InjectionModelList(), IOList< labelList >::IOList(), IOMap< T >::IOMap(), Field< PointType >::map(), List< Field< scalar > >::newElmt(), DynamicField< Foam::Vector >::operator()(), DynamicList< Foam::triFace >::operator()(), PtrList< transferModel >::operator=(), ParticleForceList< MomentumCloud< CloudType > >::ParticleForceList(), profileModelList::profileModelList(), PtrListDictionary< fvModel >::PtrListDictionary(), ReactionList< Foam::sutherlandTransport >::ReactionList(), PtrList< transferModel >::read(), GeometricBoundaryField< vector, pointPatchField, pointMesh >::readField(), regionModelFunctionObjectList::regionModelFunctionObjectList(), DynamicList< Foam::triFace >::reserve(), DynamicField< Foam::Vector >::reserve(), GeometricBoundaryField< vector, pointPatchField, pointMesh >::reset(), UPtrList< Foam::diameterModels::sizeGroup >::resize(), PtrList< transferModel >::resize(), DynamicList< Foam::triFace >::resize(), DynamicField< Foam::Vector >::resize(), List< Field< scalar > >::resize(), DynamicList< Foam::triFace >::setCapacity(), DynamicField< Foam::Vector >::setCapacity(), SquareMatrix< Foam::Field *>::setSize(), DynamicList< Foam::triFace >::setSize(), DynamicField< Foam::Vector >::setSize(), List< Field< scalar > >::setSize(), DynamicList< Foam::triFace >::shrink(), DynamicField< Foam::Vector >::shrink(), and UnsortedMeshedSurface< Face >::size().
Definition at line 524 of file readKivaGrid.H.
References f(), forAll(), and patchi.
preservePatchTypes | ( | runTime | , |
runTime. | constant(), | ||
polyMesh::meshSubDir | , | ||
patchNames | , | ||
patchDicts | , | ||
defaultFacesName | , | ||
defaultFacesType | |||
) |
forAll | ( | patchNames | , |
patchi | |||
) |
Definition at line 549 of file readKivaGrid.H.
References boundary(), cellShapes, defaultFacesName, defaultFacesType, Foam::endl(), Foam::Info, patchDicts, patchi, patchNames(), points(), polyMeshUnMergeCyclics(), and pShapeMesh().
polyMesh pShapeMesh | ( | IOobject(polyMesh::defaultRegion, runTime.constant(), runTime) | , |
move(points) | , | ||
cellShapes | , | ||
boundary | , | ||
patchNames | , | ||
patchDicts | , | ||
defaultFacesName | , | ||
defaultFacesType | |||
) |
polyMeshUnMergeCyclics | ( | 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.
Referenced by if().
label i4 |
Definition at line 20 of file readKivaGrid.H.
label nBfaces = 0 |
Definition at line 45 of file readKivaGrid.H.
kivaFile mTable |
Definition at line 74 of file readKivaGrid.H.
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] |
Definition at line 235 of file readKivaGrid.H.
Referenced by singleProcessorFaceSetsConstraint::add(), singleProcessorFaceSetsConstraint::apply(), Foam::meshTools::calcBoxPointNormals(), polyMeshTetDecomposition::cellTetIndices(), decompositionMethod::decompose(), polyMeshTetDecomposition::faceTetIndices(), cellClassification::fillRegionPoints(), polyMeshTetDecomposition::findBasePoint(), localPointRegion::findDuplicateFaces(), polyMeshTetDecomposition::findSharedBasePoint(), polyMeshTetDecomposition::findTet(), cellLooper::getVertFacesNonEdge(), treeDataFace::getVolumeType(), if(), volPointInterpolation::interpolateUnconstrained(), NamedEnum< compressibleField, 8 >::names(), cellCuts::nonAnchorPoints(), listPlusEqOp< T >::operator()(), primitiveMesh::pointCells(), PatchTools::pointNormals(), Foam::polyMeshZipUpCells(), hexRef8::setInstance(), perfectInterface::setRefinement(), removePoints::setRefinement(), hexRef8::setUnrefinement(), meshRefinement::splitMesh(), triSurfaceTools::trackToEdge(), and triSurface::triSurfInstance().
label nPatches = 0 |
Definition at line 402 of file readKivaGrid.H.
Referenced by addPatchCellLayer::calcSidePatch(), PointEdgeWave< Type, TrackingData >::countPatchType(), domainDecomposition::decompose(), addPatchCellLayer::layerFaces(), Foam::parseNASCoord(), STARCD::readBoundary(), Foam::readUpto(), polyTopoChange::setNumPatches(), USERD_get_gold_part_build_info(), USERD_get_gold_variable_info(), USERD_get_nfaced_conn(), USERD_get_nfaced_nodes_per_face(), USERD_get_nsided_conn(), USERD_get_part_coords(), USERD_get_part_element_ids_by_type(), USERD_get_part_elements_by_type(), USERD_get_part_node_ids(), USERD_get_var_by_component(), USERD_set_filenames(), and USERD_set_time_set_and_step().
word defaultFacesName = "defaultFaces" |
Definition at line 460 of file readKivaGrid.H.
Referenced by forAll().
word defaultFacesType = emptyPolyPatch::typeName |
Definition at line 461 of file readKivaGrid.H.
Referenced by forAll().
label nAddedPatches = 0 |
Definition at line 463 of file readKivaGrid.H.
label newPointi = 0 |
Definition at line 501 of file readKivaGrid.H.
Referenced by extendedEdgeMesh::add(), polyTopoChange::changeMesh(), edgeCollapser::checkMeshQuality(), polyMeshFilter::copyMesh(), extendedEdgeMesh::flipNormals(), forAll(), triSurfaceTools::greenRefine(), fvMeshAdder::MapSurfaceFields(), NamedEnum< compressibleField, 8 >::names(), fvMeshDistribute::printCoupleInfo(), hexRef8::subset(), boundaryCutter::topoChange(), pointZoneSet::topoChange(), localPointRegion::topoChange(), addPatchCellLayer::topoChange(), hexRef8::topoChange(), and polyMesh::topoChange().
PtrList<dictionary> patchDicts |
Definition at line 537 of file readKivaGrid.H.
Referenced by forAll().