#include "applications/utilities/mesh/conversion/kivaToFoam/checkPatch.H"
Include dependency graph for readKivaGrid.H:Go to the source code of this file.
Enumerations | |
| enum | patchTypeNames { PISTON, VALVE, LINER, CYLINDERHEAD, AXIS, WEDGE, INFLOW, OUTFLOW, PRESIN, PRESOUT, SYMMETRYPLANE, CYCLIC } |
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) |
| cellZoning | setSize (activeCells) |
| forAll (cellShapes, celli) | |
| 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) |
| wordList | patchPhysicalTypes (nPatches) |
| labelList | pointLabels (nPoints,-1) |
| forAll (pointLabels, pointi) | |
| points | setSize (newPointi) |
| forAll (boundary, patchi) | |
| preservePatchTypes (runTime, runTime.constant(), polyMesh::defaultRegion, patchNames, patchTypes, defaultFacesName, defaultFacesType, patchPhysicalTypes) | |
| polyMesh | pShapeMesh (IOobject(polyMesh::defaultRegion, runTime.constant(), runTime), xferMove(points), cellShapes, boundary, patchNames, patchTypes, defaultFacesName, defaultFacesType, patchPhysicalTypes) |
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 |
| label | bcIDs [11] = {-1, 0, 2, 4, -1, 5, -1, 6, 7, 8, 9} |
| const label | nBCs = 12 |
| const word * | kivaPatchTypes [nBCs] |
| const char * | kivaPatchNames [nBCs] |
| List< SLList< face > > | pFaces [nBCs] |
| label | nPatches = 0 |
| word | defaultFacesName = "defaultFaces" |
| word | defaultFacesType = emptyPolyPatch::typeName |
| label | nAddedPatches = 0 |
| label | newPointi = 0 |
| enum patchTypeNames |
| PISTON | |
| VALVE | |
| LINER | |
| CYLINDERHEAD | |
| AXIS | |
| WEDGE | |
| INFLOW | |
| OUTFLOW | |
| PRESIN | |
| PRESOUT | |
| SYMMETRYPLANE | |
| CYCLIC |
Definition at line 202 of file readKivaGrid.H.
| ifstream kivaFile | ( | kivaFileName. | c_str() ) |
Referenced by for().
| if | ( | !kivaFile. | good() ) |
Definition at line 3 of file readKivaGrid.H.
References args, argList::executable(), Foam::exit(), Foam::FatalError, and FatalErrorIn.
| pointField points | ( | nPoints | ) |
| for | ( | ) |
Definition at line 23 of file readKivaGrid.H.
References fv(), idface(), kivaFile(), and points.
Referenced by Foam::operator<<().
| labelList i1tab | ( | nPoints | ) |
| labelList i3tab | ( | nPoints | ) |
| labelList i8tab | ( | nPoints | ) |
| labelList idreg | ( | nPoints | ) |
| labelList f | ( | nPoints | ) |
Referenced by multivariateSurfaceInterpolationScheme< Type >::fieldTable::add(), booleanSurface::booleanSurface(), cellMatcher::calcEdgeAddressing(), coupledPolyPatch::calcFaceTol(), cellMatcher::calcLocalFaces(), cellMatcher::calcPointFaceIndex(), primitiveMesh::calcPointOrder(), nutSpalartAllmarasWallFunctionFvPatchScalarField::calcUTau(), mutSpalartAllmarasWallFunctionFvPatchScalarField::calcUTau(), cellMatcher::cellMatcher(), primitiveMesh::cellPoints(), repatchPolyTopoChanger::changeAnchorPoint(), primitiveMesh::checkCellsZipUp(), primitiveMesh::checkEdgeAlignment(), primitiveMesh::checkEdgeLength(), primitiveMesh::checkFaceAngles(), primitiveMesh::checkFaceFlatness(), primitiveMesh::checkFacePyramids(), MeshedSurface< Face >::checkFaces(), primitiveMesh::checkFaceSkewness(), primitiveMesh::checkFaceVertices(), hexRef8::checkMesh(), primitiveMesh::checkMeshMotion(), PatchTools::checkOrientation(), triSurface::checkTriangles(), cellShape::collapsedFaces(), Foam::component(), processorLduInterface::compressedReceive(), inversePointDistanceDiffusivity::correct(), CentredFitScheme< Type, Polynomial, Stencil >::correction(), quadraticFitSnGrad< Type >::correction(), removePoints::countPointUsage(), dynamicRefineFvMesh::dynamicRefineFvMesh(), PatchTools::edgeOwner(), directionInfo::edgeToFaceIndex(), ensightPartFaces::ensightPartFaces(), directionInfo::enterDomain(), nuSgsWallFunctionFvPatchScalarField::evaluate(), muSgsWallFunctionFvPatchScalarField::evaluate(), cellModel::faces(), treeDataTriSurface::findNearest(), sampledSet::findNearFace(), faceMesh::flip(), forAll(), pairPotentialList::force(), pairPotential::force(), surfaceSets::getHangingCells(), boundaryMesh::getNearest(), boundaryMesh::getNTris(), cellDistFuncs::getPointNeighbours(), octreeDataTriSurface::getSampleType(), if(), FreeStream< CloudType >::inflow(), processorPolyPatch::initUpdateMesh(), Foam::interpolatePointToCell(), meshRefinement::intersectedPoints(), face::intersection(), octreeDataTriSurface::intersects(), treeDataTriSurface::intersects(), IOField< Type >::IOField(), noiseFFT::Ldelta(), Field< Type >::map(), noiseFFT::meanPf(), meshRefinement::mergeEdges(), polyMeshAdder::mergePoints(), polyTopoChange::modifyFace(), molecule::move(), primitiveMesh::movePoints(), face::nearestPoint(), octreeDataTriSurface::octreeDataTriSurface(), FieldMapper::operator()(), Foam::operator<<(), Foam::operator>>(), cyclicPolyPatch::order(), octreeDataTriSurface::overlaps(), treeDataTriSurface::overlaps(), Pair< word >::Pair(), noiseFFT::Pdelta(), primitiveMesh::pointInCell(), primitiveMesh::pointInCellBB(), porousZone::porousZone(), Foam::pow(), face::ray(), STARCDsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), OBJsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), boundaryMesh::read(), STARCD::readCells(), DimensionedField< Type, GeoMesh >::readField(), interactionLists::realCellsInRangeOfSegment(), interactionLists::referredCellsInRangeOfSegment(), SLListBase::removeHead(), DLListBase::removeHead(), face::reverseFace(), Field< Type >::rmap(), noiseFFT::RMSmeanPf(), removePoints::setRefinement(), removeFaces::setRefinement(), removeCells::setRefinement(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), ThermoCloud< ParcelType >::sigmap(), PatchTools::sortedEdgeFaces(), MeshedSurface< Face >::stitchFaces(), PatchTools::subsetMap(), UnsortedMeshedSurface< Face >::subsetMesh(), MeshedSurface< Face >::subsetMesh(), SVD::SVD(), swapec(), syncTools::syncEdgeMap(), Tensor< scalar >::T(), Foam::transformFieldMask(), MeshedSurface< Face >::triangulate(), boundaryMesh::triangulate(), boundaryMesh::triangulateLocal(), triFace::triFaceFace(), sampledTriSurfaceMesh::update(), directionInfo::updateCell(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), outletMappedUniformInletFvPatchField< Type >::updateCoeffs(), processorPolyPatch::updateMesh(), removePoints::updateMesh(), wallLayerCells::wallLayerCells(), face::which(), X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), partialWrite::write(), fieldAverage::writeFieldList(), coupledPolyPatch::writeOBJ(), Foam::meshTools::writeOBJ(), STARCD::writeSurface(), and kappatJayatillekeWallFunctionFvPatchScalarField::yPlusTherm().
| labelList bcl | ( | nPoints | ) |
| labelList bcf | ( | nPoints | ) |
| labelList bcb | ( | nPoints | ) |
| if | ( | mTable | = = 0
) |
Definition at line 77 of file readKivaGrid.H.
References args, argList::executable(), Foam::exit(), Foam::FatalError, and FatalErrorIn.
| labelList imtab | ( | nPoints | ) |
| labelList jmtab | ( | nPoints | ) |
| labelList kmtab | ( | nPoints | ) |
| cellZoning setSize | ( | activeCells | ) |
Referenced by polyTopoChanger::addTopologyModifiers(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::append(), List< T >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Field< Type >::autoMap(), uniformFixedValueFvPatchField< Type >::autoMap(), basicSourceList::basicSourceList(), tetherPotentialList::buildPotentials(), pairPotentialList::buildPotentials(), face::collapse(), faceTriangulation::faceTriangulation(), Field< Type >::Field(), IOMap< T >::IOMap(), List< T >::List(), List< T >::newElmt(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::operator()(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::operator()(), PtrList< T >::operator=(), PtrList< T >::read(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::resize(), UPtrList< T >::resize(), PtrList< T >::resize(), List< T >::resize(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::resize(), CompactListList< T >::resize(), CompactListList_dev< T, Container >::resize(), sampledSet::setSamples(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::setSize(), List< T >::setSize(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setSize(), and ParSortableList< Type >::sort().
| forAll | ( | cellShapes | , |
| celli | |||
| ) |
Definition at line 170 of file readKivaGrid.H.
References forAll.
| face quadFace | ( | 4 | ) |
Referenced by if().
| face triFace | ( | 3 | ) |
Referenced by tetCell::face(), if(), TRIsurfaceFormat< Face >::read(), STLsurfaceFormat< Face >::read(), OFFsurfaceFormat< Face >::read(), OBJsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), GTSsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), triFace::reverseFace(), MeshedSurface< Face >::transcribe(), and MeshedSurface< 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 CYLINDERHEAD, Foam::endl(), forAll, Foam::Info, LINER, Foam::min(), and points.
| if | ( | pFaces. | size()&&pFaces.size()[WEDGE][WEDGE][0] ) |
Definition at line 431 of file readKivaGrid.H.
References CYCLIC, d, Foam::mathematicalConstant::pi(), points, Foam::tan(), and WEDGE.
| faceListList boundary | ( | nPatches | ) |
| wordList patchNames | ( | nPatches | ) |
Referenced by fvMeshSubset::setLargeCellSubset().
| wordList patchTypes | ( | nPatches | ) |
| wordList patchPhysicalTypes | ( | nPatches | ) |
| labelList pointLabels | ( | nPoints | , |
| - | 1 | ||
| ) |
Referenced by polyTopoChange::addMesh(), forAll(), and cell::points().
| forAll | ( | pointLabels | , |
| pointi | |||
| ) |
Definition at line 523 of file readKivaGrid.H.
References newPointi, pointLabels(), and points.
| points setSize | ( | newPointi | ) |
| forAll | ( | boundary | , |
| patchi | |||
| ) |
Definition at line 545 of file readKivaGrid.H.
References boundary(), f(), forAll, and pointLabels().
| preservePatchTypes | ( | runTime | , |
| runTime. | constant(), | ||
| polyMesh::defaultRegion | , | ||
| patchNames | , | ||
| patchTypes | , | ||
| defaultFacesName | , | ||
| defaultFacesType | , | ||
| patchPhysicalTypes | |||
| ) |
| polyMesh pShapeMesh | ( | IOobject(polyMesh::defaultRegion, runTime.constant(), runTime) | , |
| xferMove(points) | , | ||
| cellShapes | , | ||
| boundary | , | ||
| patchNames | , | ||
| patchTypes | , | ||
| defaultFacesName | , | ||
| defaultFacesType | , | ||
| patchPhysicalTypes | |||
| ) |
| 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.
| label nBfaces = 0 |
Definition at line 45 of file readKivaGrid.H.
| kivaFile mTable |
Definition at line 74 of file readKivaGrid.H.
| label bcIDs[11] = {-1, 0, 2, 4, -1, 5, -1, 6, 7, 8, 9} |
Definition at line 182 of file readKivaGrid.H.
Referenced by if().
| const label nBCs = 12 |
Definition at line 184 of file readKivaGrid.H.
| 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,
&cyclicPolyPatch::typeName
}
Definition at line 186 of file readKivaGrid.H.
| const char* kivaPatchNames[nBCs] |
{
"piston",
"valve",
"liner",
"cylinderHead",
"axis",
"wedge",
"inflow",
"outflow",
"presin",
"presout",
"symmetryPlane",
"cyclic"
}
Definition at line 218 of file readKivaGrid.H.
Definition at line 235 of file readKivaGrid.H.
Referenced by Foam::meshTools::calcBoxPointNormals(), cellClassification::fillRegionPoints(), localPointRegion::findDuplicateFaces(), cellLooper::getVertFacesNonEdge(), treeDataFace::getVolumeType(), if(), cyclicPolyPatch::order(), boundaryMesh::patchify(), primitiveMesh::pointCells(), Foam::polyMeshZipUpCells(), removePoints::setRefinement(), perfectInterface::setRefinement(), hexRef8::setUnrefinement(), meshRefinement::splitMesh(), triSurfaceTools::trackToEdge(), and dynamicRefineFvMesh::unrefine().
| label nPatches = 0 |
Definition at line 417 of file readKivaGrid.H.
Referenced by STARCD::readBoundary(), and polyTopoChange::setNumPatches().
| word defaultFacesName = "defaultFaces" |
Definition at line 480 of file readKivaGrid.H.
| word defaultFacesType = emptyPolyPatch::typeName |
Definition at line 481 of file readKivaGrid.H.
| label nAddedPatches = 0 |
Definition at line 484 of file readKivaGrid.H.
| label newPointi = 0 |
Definition at line 522 of file readKivaGrid.H.
Referenced by forAll().