Cell-face mesh analysis engine. More...
Public Member Functions | |
ClassName ("primitiveMesh") | |
primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells) | |
Construct from components. More... | |
primitiveMesh (primitiveMesh &&)=default | |
Move constructor. More... | |
primitiveMesh (const primitiveMesh &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~primitiveMesh () |
Destructor. More... | |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells) |
Reset this primitiveMesh given the primitive array sizes. More... | |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &cells) |
Reset this primitiveMesh given the primitive array sizes and cells. More... | |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &&cells) |
Reset this primitiveMesh given the primitive array sizes and cells. More... | |
label | nPoints () const |
label | nEdges () const |
label | nInternalFaces () const |
label | nFaces () const |
label | nCells () const |
label | nInternalPoints () const |
Points not on boundary. More... | |
label | nInternal0Edges () const |
Internal edges (i.e. not on boundary face) using. More... | |
label | nInternal1Edges () const |
Internal edges using 0 or 1 boundary point. More... | |
label | nInternalEdges () const |
Internal edges using 0,1 or 2 boundary points. More... | |
virtual const pointField & | points () const =0 |
Return mesh points. More... | |
virtual const faceList & | faces () const =0 |
Return faces. More... | |
virtual const labelList & | faceOwner () const =0 |
Face face-owner addressing. More... | |
virtual const labelList & | faceNeighbour () const =0 |
Face face-neighbour addressing. More... | |
virtual const pointField & | oldPoints () const =0 |
Return old points for mesh motion. More... | |
virtual const pointField & | oldCellCentres () const =0 |
Return old cell centres for mesh motion. More... | |
const cellShapeList & | cellShapes () const |
Return cell shapes. More... | |
const edgeList & | edges () const |
Return mesh edges. Uses calcEdges. More... | |
const labelListList & | cellCells () const |
const labelListList & | edgeCells () const |
const labelListList & | pointCells () const |
const cellList & | cells () const |
const labelListList & | edgeFaces () const |
const labelListList & | pointFaces () const |
const labelListList & | cellEdges () const |
const labelListList & | faceEdges () const |
const labelListList & | pointEdges () const |
const labelListList & | pointPoints () const |
const labelListList & | cellPoints () const |
const vectorField & | cellCentres () const |
const vectorField & | faceCentres () const |
const scalarField & | cellVolumes () const |
const vectorField & | faceAreas () const |
const scalarField & | magFaceAreas () const |
tmp< scalarField > | movePoints (const pointField &p, const pointField &oldP) |
Move points, returns volumes swept by faces in motion. More... | |
bool | isInternalFace (const label faceIndex) const |
Return true if given face label is internal to the mesh. More... | |
bool | checkUpperTriangular (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face ordering. More... | |
bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check cell zip-up. More... | |
bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check uniqueness of face vertices. More... | |
bool | checkPoints (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for unused points. More... | |
bool | checkDuplicateFaces (const label, const Map< label > &, label &nBaffleFaces, labelHashSet *) const |
Check if all points on face are shared with another face. More... | |
bool | checkCommonOrder (const label, const Map< label > &, labelHashSet *) const |
Check that shared points are in consecutive order. More... | |
bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face-face connectivity. More... | |
bool | checkClosedBoundary (const bool report=false) const |
Check boundary for closedness. More... | |
bool | checkClosedCells (const bool report=false, labelHashSet *setPtr=nullptr, labelHashSet *highAspectSetPtr=nullptr, const Vector< label > &solutionD=Vector< label >::one) const |
Check cells for closedness. More... | |
bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative face areas. More... | |
bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative cell volumes. More... | |
bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-small, labelHashSet *setPtr=nullptr) const |
Check face pyramid volume. More... | |
bool | checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=nullptr) const |
Check face angles. More... | |
bool | checkFaceFlatness (const bool report, const scalar warnFlatness, labelHashSet *setPtr) const |
Check face warpage: decompose face and check ratio between. More... | |
bool | checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=nullptr) const |
Check for point-point-nearness,. More... | |
bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr) const |
Check edge length. More... | |
bool | checkConcaveCells (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for concave cells by the planes of faces. More... | |
bool | pointInCellBB (const point &p, label celli, scalar inflationFraction=0) const |
Return true if the point in the cell bounding box. More... | |
bool | pointInCell (const point &p, label celli) const |
Return true if the point is in the cell. More... | |
label | findNearestCell (const point &location) const |
Find the cell with the nearest cell centre to location. More... | |
label | findCell (const point &location) const |
Find cell enclosing this location (-1 if not in mesh) More... | |
void | printAllocated () const |
Print a list of all the currently allocated mesh data. More... | |
bool | hasCellShapes () const |
bool | hasEdges () const |
bool | hasCellCells () const |
bool | hasEdgeCells () const |
bool | hasPointCells () const |
bool | hasCells () const |
bool | hasEdgeFaces () const |
bool | hasPointFaces () const |
bool | hasCellEdges () const |
bool | hasFaceEdges () const |
bool | hasPointEdges () const |
bool | hasPointPoints () const |
bool | hasCellPoints () const |
bool | hasCellCentres () const |
bool | hasFaceCentres () const |
bool | hasCellVolumes () const |
bool | hasFaceAreas () const |
const labelList & | cellCells (const label celli, DynamicList< label > &) const |
cellCells using cells. More... | |
const labelList & | cellCells (const label celli) const |
const labelList & | cellPoints (const label celli, DynamicList< label > &) const |
cellPoints using cells More... | |
const labelList & | cellPoints (const label celli) const |
const labelList & | pointCells (const label pointi, DynamicList< label > &) const |
pointCells using pointFaces More... | |
const labelList & | pointCells (const label pointi) const |
const labelList & | pointPoints (const label pointi, DynamicList< label > &) const |
pointPoints using edges, pointEdges More... | |
const labelList & | pointPoints (const label pointi) const |
const labelList & | faceEdges (const label facei, DynamicList< label > &) const |
faceEdges using pointFaces, edges, pointEdges More... | |
const labelList & | faceEdges (const label facei) const |
const labelList & | edgeFaces (const label edgeI, DynamicList< label > &) const |
edgeFaces using pointFaces, edges, pointEdges More... | |
const labelList & | edgeFaces (const label edgeI) const |
const labelList & | edgeCells (const label edgeI, DynamicList< label > &) const |
edgeCells using pointFaces, edges, pointEdges More... | |
const labelList & | edgeCells (const label edgeI) const |
const labelList & | cellEdges (const label celli, DynamicList< label > &) const |
cellEdges using cells, pointFaces, edges, pointEdges More... | |
const labelList & | cellEdges (const label celli) const |
void | clearGeom () |
Clear geometry. More... | |
void | clearAddressing () |
Clear topological data. More... | |
void | clearOut () |
Clear all geometry and addressing unnecessary for CFD. More... | |
void | operator= (const primitiveMesh &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
static void | calcCells (cellList &, const labelUList &own, const labelUList &nei, const label nCells=-1) |
Helper function to calculate cell-face addressing from. More... | |
static bool | calcPointOrder (label &nInternalPoints, labelList &pointMap, const faceList &, const label nInternalFaces, const label nPoints) |
Helper function to calculate point ordering. Returns true. More... | |
Static Public Attributes | |
static const unsigned | cellsPerEdge_ = 4 |
Estimated number of cells per edge. More... | |
static const unsigned | cellsPerPoint_ = 8 |
Estimated number of cells per point. More... | |
static const unsigned | facesPerCell_ = 6 |
Estimated number of faces per cell. More... | |
static const unsigned | facesPerEdge_ = 4 |
Estimated number of faces per edge. More... | |
static const unsigned | facesPerPoint_ = 12 |
Estimated number of faces per point. More... | |
static const unsigned | edgesPerCell_ = 12 |
Estimated number of edges per cell. More... | |
static const unsigned | edgesPerFace_ = 4 |
Estimated number of edges per cell. More... | |
static const unsigned | edgesPerPoint_ = 6 |
Estimated number of edges per point. More... | |
static const unsigned | pointsPerCell_ = 8 |
Estimated number of points per cell. More... | |
static const unsigned | pointsPerFace_ = 4 |
Estimated number of points per face. More... | |
Protected Member Functions | |
void | calcFaceCentresAndAreas () const |
Calculate face centres and areas. More... | |
void | makeFaceCentresAndAreas (const pointField &p, vectorField &fCtrs, vectorField &fAreas, scalarField &magfAreas) const |
void | calcCellCentresAndVols () const |
Calculate cell centres and volumes. More... | |
void | makeCellCentresAndVols (const vectorField &fCtrs, const vectorField &fAreas, vectorField &cellCtrs, scalarField &cellVols) const |
void | calcEdgeVectors () const |
Calculate edge vectors. More... | |
primitiveMesh () | |
Construct null. More... | |
Cell-face mesh analysis engine.
Definition at line 74 of file primitiveMesh.H.
|
protected |
Construct null.
Definition at line 39 of file primitiveMesh.C.
primitiveMesh | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Construct from components.
Definition at line 77 of file primitiveMesh.C.
|
default |
Move constructor.
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 120 of file primitiveMesh.C.
|
protected |
Calculate face centres and areas.
Definition at line 38 of file primitiveMeshFaceCentresAndAreas.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, primitiveMesh::makeFaceCentresAndAreas(), primitiveMesh::nFaces(), primitiveMesh::points(), and Foam::Pout.
|
protected |
Definition at line 76 of file primitiveMeshFaceCentresAndAreas.C.
References Foam::constant::universal::c, f(), UList< T >::fcIndex(), forAll, Foam::mag(), Foam::max(), Foam::normalised(), nPoints, p, Foam::constant::mathematical::pi(), List< T >::size(), and Foam::Zero.
Referenced by primitiveMesh::calcFaceCentresAndAreas().
|
protected |
Calculate cell centres and volumes.
Definition at line 34 of file primitiveMeshCellCentresAndVols.C.
References Foam::abort(), cellVols, Foam::endl(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorInFunction, primitiveMesh::makeCellCentresAndVols(), primitiveMesh::nCells(), and Foam::Pout.
|
protected |
Definition at line 72 of file primitiveMeshCellCentresAndVols.C.
References cellVols, forAll, Foam::mag(), and Foam::Zero.
Referenced by primitiveMesh::calcCellCentresAndVols().
|
protected |
Calculate edge vectors.
ClassName | ( | "primitiveMesh" | ) |
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Reset this primitiveMesh given the primitive array sizes.
Definition at line 207 of file primitiveMesh.C.
References Foam::endl(), nPoints, and Foam::Pout.
Referenced by LocalInteraction< CloudType >::massEscape(), LocalInteraction< CloudType >::massStick(), ParticleErosion< CloudType >::preEvolve(), and VoidFraction< CloudType >::preEvolve().
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells, | ||
cellList & | cells | ||
) |
Reset this primitiveMesh given the primitive array sizes and cells.
Definition at line 263 of file primitiveMesh.C.
References nPoints.
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells, | ||
cellList && | cells | ||
) |
Reset this primitiveMesh given the primitive array sizes and cells.
Definition at line 284 of file primitiveMesh.C.
References nPoints.
|
inline |
Definition at line 41 of file primitiveMeshI.H.
Referenced by singleProcessorFaceSetsConstraint::add(), polyMeshAdder::add(), polyTopoChange::addMesh(), singleProcessorFaceSetsConstraint::apply(), motionSmootherAlgo::avg(), polyTopoChange::changeMesh(), primitiveMesh::checkEdgeLength(), pointZone::checkParallelSync(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), fvMeshDistribute::distribute(), cellsToCells::distributeMesh(), snappySnapDriver::doSnap(), edgeVertex::edgeToEVert(), polyMeshFilter::filterEdges(), edgeVertex::getEdge(), surfaceSets::getHangingCells(), syncTools::getMasterPoints(), globalIndexAndTransform::globalIndexAndTransform(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), edgeVertex::isEdge(), localPointRegion::localPointRegion(), polyTopoChange::makeMesh(), pointSet::maxSize(), pointZoneSet::maxSize(), meshTriangulation::meshTriangulation(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), vtkMesh::nFieldPoints(), mappedExtrudedPatchBase::patchLocalPoints(), PointEdgeWave< Type, TrackingData >::PointEdgeWave(), primitiveMesh::pointFaces(), points0MotionSolver::points0MotionSolver(), pointSet::pointSet(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), fvMeshDistribute::printMeshInfo(), pointMesh::size(), solidBodyMotionSolver::solidBodyMotionSolver(), hexRef8Data::sync(), pointSet::sync(), syncTools::syncPointList(), meshRefinement::testSyncPointList(), and edgeVertex::vertToEVert().
|
inline |
Definition at line 71 of file primitiveMeshI.H.
References primitiveMesh::edges(), and List< T >::size().
Referenced by primitiveMesh::edgeCells(), primitiveMesh::edgeFaces(), edgeVertex::edgeToEVert(), directionInfo::edgeToFaceIndex(), syncTools::getMasterEdges(), addPatchCellLayer::globalEdgeFaces(), edgeVertex::isEdge(), primitiveMesh::nInternal0Edges(), primitiveMesh::nInternal1Edges(), primitiveMesh::nInternalEdges(), mappedExtrudedPatchBase::patchLocalPoints(), PointEdgeWave< Type, TrackingData >::PointEdgeWave(), and syncTools::syncEdgeList().
|
inline |
Definition at line 82 of file primitiveMeshI.H.
Referenced by Flux< CloudType, Derived >::accumulate(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), decompositionMethod::calcCellCells(), CentredFitSnGradData< Polynomial >::calcFit(), primitiveMesh::checkClosedBoundary(), meshRefinement::checkCoupledFaceZones(), Foam::dynamicMeshCheck::checkFaceDotProduct(), Foam::dynamicMeshCheck::checkFaceSkewness(), Foam::dynamicMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::dynamicMeshCheck::checkFaceTwist(), Foam::dynamicMeshCheck::checkFaceWeights(), faceZone::checkParallelSync(), Foam::dynamicMeshCheck::checkVolRatio(), decompositionMethod::decompose(), Foam::determineCoupledFaces(), fvMeshDistribute::distribute(), faceCoupleInfo::faceCoupleInfo(), polyMeshTools::faceOrthogonality(), primitiveMeshTools::faceOrthogonality(), FacePostProcessing< CloudType >::FacePostProcessing(), primitiveMeshTools::facePyramidVolume(), polyMeshTools::faceSkewness(), primitiveMeshTools::faceSkewness(), polyMeshTools::faceWeights(), localPointRegion::findDuplicateFacePairs(), localPointRegion::findDuplicateFaces(), polyMeshTetDecomposition::findFaceBasePts(), FvFaceCellWave< Type, TrackingData >::FvFaceCellWave(), repatchMesh::getNearest(), fvMeshSubset::interpolate(), primitiveMesh::isInternalFace(), meshRefinement::mergePatchFacesUndo(), MeshedSurface< Face >::MeshedSurface(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), mappedExtrudedPatchBase::patchFaceAreas(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), repatchMesh::read(), refiner::refiner(), SloanRenumber::renumber(), triSurfaceMesh::sampleField(), fvMatrix< Type >::setValue(), surfaceMesh::size(), Foam::fvc::smooth(), Foam::fvc::spread(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::swapFaceList(), Foam::fvc::sweep(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncFacePositions(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), cellsToCells::trimLocalTgt(), cellsToCellsStabilisation::update(), polyMeshTools::volRatio(), extendedCellToFaceStencil::weightedSum(), and extendedUpwindCellToFaceStencil::weightedSum().
|
inline |
Definition at line 88 of file primitiveMeshI.H.
Referenced by refinementHistory::add(), preserveBafflesConstraint::add(), preserveFaceZonesConstraint::add(), preservePatchesConstraint::add(), singleProcessorFaceSetsConstraint::add(), polyMeshAdder::add(), snappyLayerDriver::addLayers(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), decompositionMethod::calcCellCells(), primitiveMesh::calcFaceCentresAndAreas(), CentredFitSnGradData< Polynomial >::calcFit(), polyTopoChange::changeMesh(), edgeCollapser::checkBadFaces(), meshRefinement::checkCoupledFaceZones(), Foam::dynamicMeshCheck::checkFaceDotProduct(), Foam::dynamicMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::dynamicMeshCheck::checkFaceTwist(), Foam::dynamicMeshCheck::checkFaceWeights(), motionSmootherAlgo::checkMesh(), faceZone::checkParallelSync(), Foam::dynamicMeshCheck::checkVolRatio(), structuredDecomp::decompose(), decompositionMethod::decompose(), Foam::determineCoupledFaces(), fvMeshDistribute::distribute(), cellsToCells::distributeMesh(), snappyLayerDriver::doLayers(), snappySnapDriver::doSnap(), FaceCellWave< Type, TrackingData >::FaceCellWave(), primitiveMeshTools::faceConcavity(), primitiveMeshTools::faceFlatness(), faceMapper::faceMapper(), polyMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), faceSet::faceSet(), polyMeshTools::faceSkewness(), primitiveMeshTools::faceSkewness(), polyMeshTools::faceWeights(), faceZoneSet::faceZoneSet(), localPointRegion::findDuplicateFacePairs(), polyMeshTetDecomposition::findFaceBasePts(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), repatchMesh::getNearest(), polyTopoChange::makeMesh(), faceSet::maxSize(), faceZoneSet::maxSize(), snappyLayerDriver::mergePatchFacesUndo(), meshRefinement::mergePatchFacesUndo(), MeshedSurface< Face >::MeshedSurface(), meshRefinement::meshRefinement(), mappedExtrudedPatchBase::patchFaceAreas(), polyMesh::polyMesh(), Foam::polyMeshUnMergeCyclics(), snappySnapDriver::preSmoothPatch(), fvMeshDistribute::printMeshInfo(), repatchMesh::read(), refiner::refiner(), structuredRenumber::renumber(), SloanRenumber::renumber(), snappySnapDriver::repatchToSurface(), triSurfaceMesh::sampleField(), snappySnapDriver::scaleMesh(), decompositionMethod::setConstraints(), Foam::fvc::smooth(), Foam::fvc::spread(), MPLIC::surfaceAlpha(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::swapFaceList(), Foam::fvc::sweep(), faceSet::sync(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncFacePositions(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), cellsToCells::trimLocalTgt(), cellsToCellsStabilisation::update(), polyMeshTools::volRatio(), and wallLayerCells::wallLayerCells().
|
inline |
Definition at line 94 of file primitiveMeshI.H.
Referenced by refinementHistoryConstraint::add(), polyMeshAdder::add(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), refinementHistoryConstraint::apply(), nearWallFields::calcAddressing(), primitiveMesh::calcCellCentresAndVols(), primitiveMesh::calcCells(), intersection::calculate(), matching::calculate(), nearest::calculate(), cellClassification::cellClassification(), primitiveMeshTools::cellClosedness(), cellCuts::cellCuts(), primitiveMeshTools::cellDeterminant(), cellMapper::cellMapper(), primitiveMesh::cellPoints(), cellSet::cellSet(), cellZoneSet::cellZoneSet(), polyTopoChange::changeMesh(), structuredDecomp::decompose(), zoltanDecomp::decompose(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), refinementHistory::distribute(), cellEdgeAddressingList::distribute(), cellsToCells::distributeMesh(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), FaceCellWave< Type, TrackingData >::FaceCellWave(), refinementParameters::findCells(), meshRefinement::findRegions(), FvFaceCellWave< Type, TrackingData >::FvFaceCellWave(), get_geom_list(), get_number_of_vertices(), get_vertex_list(), surfaceSets::getHangingCells(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), cellsToCells::initialise(), twoPhaseMixture::interfaceFraction(), interRegionExplicitPorositySource::interRegionExplicitPorositySource(), Kmesh::Kmesh(), Foam::levelSetFraction(), polyTopoChange::makeMesh(), cellEdgeAddressingList::mapMesh(), cellsToCells::maskCells(), cellSet::maxSize(), cellZoneSet::maxSize(), momentOfInertia::meshInertia(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), cellTable::operator=(), mappedExtrudedPatchBase::patchFaceAreas(), polyMesh::polyMesh(), fvMeshDistribute::printMeshInfo(), ensightParts::recalculate(), refinementHistory::refinementHistory(), refiner::refiner(), renumberMethod::renumber(), CuthillMcKeeRenumber::renumber(), springRenumber::renumber(), structuredRenumber::renumber(), SloanRenumber::renumber(), zoltanRenumber::renumber(), volMesh::size(), Foam::fvc::smooth(), solidBodyMotionSolver::solidBodyMotionSolver(), Foam::fvc::spread(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), Foam::fvc::sweep(), hexRef8Data::sync(), cellsToCells::tgtMeshSendCells(), cellEdgeAddressingList::topoChange(), distributor::update(), loadBalancer::update(), cellsToCellsStabilisation::update(), cellsToCells::update(), and wallLayerCells::wallLayerCells().
|
inline |
Points not on boundary.
Definition at line 35 of file primitiveMeshI.H.
|
inline |
Internal edges (i.e. not on boundary face) using.
no boundary point
Definition at line 47 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
|
inline |
Internal edges using 0 or 1 boundary point.
Definition at line 55 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
|
inline |
Internal edges using 0,1 or 2 boundary points.
Definition at line 63 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
|
pure virtual |
Return mesh points.
Implemented in polyMesh.
Referenced by primitiveMesh::calcFaceCentresAndAreas(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), tetOverlapVolume::cellVolumeMinDecomp(), primitiveMesh::checkEdgeLength(), primitiveMesh::checkPointNearness(), edgeVertex::coord(), localPointRegion::findDuplicateFaces(), repatchMesh::getNearest(), treeDataFace::getVolumeType(), Foam::meshTools::normEdgeVec(), treeDataFace::findIntersectOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataFace::overlaps(), primitiveMesh::pointInCellBB(), and pointSet::writeDebug().
|
pure virtual |
Return faces.
Implemented in polyMesh.
Referenced by primitiveMeshTools::boundaryFaceSkewness(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), tetOverlapVolume::cellVolumeMinDecomp(), primitiveMesh::checkEdgeLength(), directionInfo::edgeToFaceIndex(), primitiveMeshTools::faceConcavity(), primitiveMeshTools::faceFlatness(), primitiveMeshTools::facePyramidVolume(), primitiveMeshTools::faceSkewness(), localPointRegion::findDuplicateFaces(), surfaceSets::getHangingCells(), repatchMesh::getNearest(), treeDataFace::getVolumeType(), Foam::interpolatePointToCell(), hexMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), degenerateMatcher::match(), hexMatcher::matches(), prismMatcher::matches(), pyrMatcher::matches(), tetMatcher::matches(), tetWedgeMatcher::matches(), wedgeMatcher::matches(), treeDataFace::findIntersectOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataFace::overlaps(), primitiveMesh::pointFaces(), and primitiveMesh::pointInCellBB().
|
pure virtual |
Face face-owner addressing.
Implemented in polyMesh.
Referenced by tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), primitiveMeshTools::cellClosedness(), tetOverlapVolume::cellVolumeMinDecomp(), Foam::meshTools::faceOnCell(), primitiveMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), primitiveMeshTools::faceSkewness(), Foam::meshTools::getSharedFace(), hexMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), degenerateMatcher::match(), hexMatcher::matches(), prismMatcher::matches(), pyrMatcher::matches(), tetMatcher::matches(), tetWedgeMatcher::matches(), wedgeMatcher::matches(), and Foam::meshTools::otherCell().
|
pure virtual |
Face face-neighbour addressing.
Implemented in polyMesh.
Referenced by primitiveMeshTools::cellClosedness(), Foam::meshTools::faceOnCell(), primitiveMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), primitiveMeshTools::faceSkewness(), Foam::meshTools::getSharedFace(), and Foam::meshTools::otherCell().
|
pure virtual |
Return old points for mesh motion.
Implemented in polyMesh.
|
pure virtual |
Return old cell centres for mesh motion.
Implemented in polyMesh.
const Foam::cellShapeList & cellShapes | ( | ) | const |
Return cell shapes.
Definition at line 337 of file primitiveMesh.C.
const Foam::edgeList & edges | ( | ) | const |
Return mesh edges. Uses calcEdges.
Definition at line 502 of file primitiveMeshEdges.C.
Referenced by snappyLayerDriver::addLayers(), motionSmootherAlgo::avg(), addPatchCellLayer::calcSidePatch(), edgeVertex::coord(), Foam::meshTools::edgeToCutDir(), directionInfo::edgeToFaceIndex(), Foam::meshTools::findEdge(), Foam::meshTools::getEdgeFaces(), Foam::meshTools::getParallelEdges(), treeDataFace::getVolumeType(), addPatchCellLayer::globalEdgeFaces(), primitiveMesh::nEdges(), Foam::meshTools::normEdgeVec(), Foam::meshTools::otherEdge(), directionInfo::updateCell(), externalPointEdgePoint::updateEdge(), pointEdgePoint::updateEdge(), and Foam::meshTools::walkFace().
|
static |
Helper function to calculate cell-face addressing from.
face-cell addressing. If nCells is not provided it will scan for the maximum.
Definition at line 30 of file primitiveMeshCells.C.
References forAll, Foam::max(), primitiveMesh::nCells(), List< T >::setSize(), and List< T >::size().
|
static |
Helper function to calculate point ordering. Returns true.
if points already ordered, false and fills pointMap (old to new). Map splits points into those not used by any boundary face and those that are.
Definition at line 128 of file primitiveMesh.C.
References f(), forAll, nPoints, List< T >::setSize(), and List< T >::size().
const Foam::labelListList & cellCells | ( | ) | const |
Definition at line 100 of file primitiveMeshCellCells.C.
Referenced by cellsToCells::appendNbrCells().
const Foam::labelListList & edgeCells | ( | ) | const |
Definition at line 32 of file primitiveMeshEdgeCells.C.
References Foam::abort(), primitiveMesh::cellEdges(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by Foam::meshTools::edgeOnCell().
const Foam::labelListList & pointCells | ( | ) | const |
Definition at line 108 of file primitiveMeshPointCells.C.
Referenced by primitiveMesh::cellPoints(), volPointInterpolation::interpolateUnconstrained(), and refiner::refiner().
const Foam::cellList & cells | ( | ) | const |
Definition at line 136 of file primitiveMeshCells.C.
Referenced by pointMVCWeight::calcWeights(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), primitiveMeshTools::cellDeterminant(), polyMeshTetDecomposition::cellTetIndices(), tetOverlapVolume::cellVolumeMinDecomp(), layerAdditionRemoval::changeTopology(), Foam::dynamicMeshCheck::checkCellDeterminant(), Foam::dynamicMeshCheck::checkFacePyramids(), particle::correctAfterInteractionListReferral(), outletStabilised< Type >::correction(), cutPolyIsoSurface::cutPolyIsoSurface(), probes::findElements(), polyMeshTetDecomposition::findTet(), surfaceSets::getHangingCells(), Foam::meshTools::getSharedFace(), Foam::interpolatePointToCell(), hexMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), cellsToCells::maskCells(), degenerateMatcher::match(), hexMatcher::matches(), prismMatcher::matches(), pyrMatcher::matches(), tetMatcher::matches(), tetWedgeMatcher::matches(), wedgeMatcher::matches(), meshRefinement::mergePatchFacesUndo(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), treeDataCell::findIntersectOp::operator()(), treeDataCell::overlaps(), primitiveMesh::pointInCellBB(), polyMesh::polyMesh(), Foam::polyMeshZipUpCells(), refiner::refiner(), MPLIC::setCellAlphaf(), fvMatrix< Type >::setValue(), solidBodyMotionSolver::solidBodyMotionSolver(), MPLIC::surfaceAlpha(), cellsToCells::tgtMeshSendCells(), layerInfo::updateFace(), and outletStabilised< Type >::weights().
const Foam::labelListList & edgeFaces | ( | ) | const |
Definition at line 31 of file primitiveMeshEdgeFaces.C.
References Foam::abort(), Foam::endl(), primitiveMesh::faceEdges(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by addPatchCellLayer::calcSidePatch(), Foam::meshTools::getEdgeFaces(), and treeDataFace::getVolumeType().
const Foam::labelListList & pointFaces | ( | ) | const |
Definition at line 32 of file primitiveMeshPointFaces.C.
References Foam::endl(), primitiveMesh::faces(), Foam::invertManyToMany(), primitiveMesh::nPoints(), and Foam::Pout.
Referenced by singleProcessorFaceSetsConstraint::add(), singleProcessorFaceSetsConstraint::apply(), decompositionMethod::decompose(), treeDataFace::getVolumeType(), Foam::polyMeshZipUpCells(), and perfectInterface::setRefinement().
const Foam::labelListList & cellEdges | ( | ) | const |
Definition at line 118 of file primitiveMeshCellEdges.C.
Referenced by cellFeatures::cellFeatures(), Foam::meshTools::cutDirToEdge(), and primitiveMesh::edgeCells().
const Foam::labelListList & faceEdges | ( | ) | const |
Definition at line 525 of file primitiveMeshEdges.C.
References Foam::endl(), f(), UList< T >::fcIndex(), forAll, Foam::Pout, List< T >::setSize(), and List< T >::size().
Referenced by primitiveMesh::edgeFaces(), Foam::meshTools::edgeOnFace(), Foam::meshTools::getSharedEdge(), treeDataFace::getVolumeType(), directionInfo::updateCell(), and Foam::meshTools::walkFace().
const Foam::labelListList & pointEdges | ( | ) | const |
Definition at line 513 of file primitiveMeshEdges.C.
Referenced by snappyLayerDriver::addLayers(), addPatchCellLayer::calcSidePatch(), Foam::meshTools::findEdge(), and addPatchCellLayer::globalEdgeFaces().
const Foam::labelListList & pointPoints | ( | ) | const |
Definition at line 91 of file primitiveMeshPointPoints.C.
const Foam::labelListList & cellPoints | ( | ) | const |
Definition at line 31 of file primitiveMeshCellPoints.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nCells(), primitiveMesh::pointCells(), and Foam::Pout.
Referenced by tetOverlapVolume::overlappingCells(), and pointMVCWeight::pointMVCWeight().
const Foam::vectorField & cellCentres | ( | ) | const |
Definition at line 160 of file primitiveMeshCellCentresAndVols.C.
Referenced by polyTopoChange::addMesh(), waveAlphaFvPatchScalarField::alphan(), snappySnapDriver::avgCellCentres(), mappedInternalPatchBase::calcMapping(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), tetOverlapVolume::cellVolumeMinDecomp(), polyMesh::checkFaceOrthogonality(), polyMeshTetDecomposition::checkFaceTets(), motionSmootherAlgo::checkMesh(), structuredDecomp::decompose(), decompositionMethod::decompose(), polyMeshTetDecomposition::findBasePoint(), probes::findElements(), polyMeshTetDecomposition::findFaceBasePts(), polyMeshTetDecomposition::findSharedBasePoint(), get_geom_list(), Foam::levelSetFraction(), treeDataCell::findNearestOp::operator()(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), mappedInternalPatchBase::samplePoints(), treeDataCell::shapePoints(), tetIndices::tet(), polyMesh::topoChange(), waveVelocityFvPatchVectorField::Un(), cellsToCellsStabilisation::update(), refinementDistanceData::updateCell(), WallInfo< WallLocation >::updateCell(), and cellSet::writeDebug().
const Foam::vectorField & faceCentres | ( | ) | const |
Definition at line 162 of file primitiveMeshFaceCentresAndAreas.C.
Referenced by preserveBafflesConstraint::add(), primitiveMesh::calcCellCentresAndVols(), FitData< FitDataType, ExtendedStencil, Polynomial >::calcFit(), polyMeshTetDecomposition::checkFaceTets(), motionSmootherAlgo::checkMesh(), decompositionMethod::decompose(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), patchProbes::findElements(), probes::findElements(), repatchMesh::getNearest(), treeDataFace::getVolumeType(), meshTriangulation::meshTriangulation(), treeDataFace::findIntersectOp::operator()(), treeDataFace::overlaps(), mappedExtrudedPatchBase::patchFaceAreas(), fvMeshDistribute::printCoupleInfo(), snappySnapDriver::repatchToSurface(), treeDataFace::shapePoints(), triSurfaceTools::triangulateFaceCentre(), cellsToCellsStabilisation::update(), refinementDistanceData::updateFace(), WallInfo< WallLocation >::updateFace(), and faceSet::writeDebug().
const Foam::scalarField & cellVolumes | ( | ) | const |
Definition at line 171 of file primitiveMeshCellCentresAndVols.C.
Referenced by polyTopoChange::changeMesh(), layerAdditionRemoval::changeTopology(), motionSmootherAlgo::checkMesh(), cellPointWeight::findTetrahedron(), polyTopoChange::makeMesh(), and MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration().
const Foam::vectorField & faceAreas | ( | ) | const |
Definition at line 173 of file primitiveMeshFaceCentresAndAreas.C.
Referenced by primitiveMesh::calcCellCentresAndVols(), layerAdditionRemoval::changeTopology(), edgeCollapser::checkBadFaces(), primitiveMesh::checkClosedBoundary(), polyMesh::checkFaceOrthogonality(), motionSmootherAlgo::checkMesh(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), FitData< FitDataType, ExtendedStencil, Polynomial >::findFaceDirs(), repatchMesh::getNearest(), treeDataFace::getVolumeType(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), and mappedExtrudedPatchBase::patchFaceAreas().
const Foam::scalarField & magFaceAreas | ( | ) | const |
Definition at line 184 of file primitiveMeshFaceCentresAndAreas.C.
Referenced by decompositionMethod::calcCellCells(), cellPointWeight::findTriangle(), and MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration().
Foam::tmp< Foam::scalarField > movePoints | ( | const pointField & | p, |
const pointField & | oldP | ||
) |
Move points, returns volumes swept by faces in motion.
Definition at line 305 of file primitiveMesh.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, forAll, nPoints, tmp< T >::ref(), and List< T >::size().
Referenced by polyMesh::movePoints().
|
inline |
Return true if given face label is internal to the mesh.
Definition at line 100 of file primitiveMeshI.H.
References primitiveMesh::nInternalFaces().
Referenced by preserveBafflesConstraint::apply(), preserveFaceZonesConstraint::apply(), singleProcessorFaceSetsConstraint::apply(), addPatchCellLayer::calcSidePatch(), Foam::dynamicMeshCheck::checkFaceDotProduct(), Foam::dynamicMeshCheck::checkFacePyramids(), Foam::dynamicMeshCheck::checkFaceSkewness(), Foam::dynamicMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::dynamicMeshCheck::checkFaceTwist(), Foam::dynamicMeshCheck::checkFaceWeights(), Foam::dynamicMeshCheck::checkNonOrtho(), faceZone::checkParallelSync(), Foam::dynamicMeshCheck::checkVolRatio(), outletStabilised< Type >::correction(), decompositionMethod::decompose(), Foam::meshTools::faceOnCell(), primitiveMeshTools::facePyramidVolume(), Foam::dynamicMeshCheck::getAffectedCells(), Foam::meshTools::getSharedFace(), meshTriangulation::meshTriangulation(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), particle::onBoundaryFace(), particle::onInternalFace(), Foam::meshTools::otherCell(), perfectInterface::setRefinement(), fvMatrix< Type >::setValue(), and outletStabilised< Type >::weights().
bool checkUpperTriangular | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check face ordering.
Definition at line 723 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::endl(), forAll, SortableList< T >::indices(), Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::labelMax, Foam::reduce(), List< T >::size(), and SortableList< T >::sort().
Referenced by Foam::polyMeshCheck::checkTopology().
bool checkCellsZipUp | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check cell zip-up.
Definition at line 886 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::reduce(), and List< T >::size().
Referenced by Foam::polyMeshCheck::checkTopology().
bool checkFaceVertices | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check uniqueness of face vertices.
Definition at line 984 of file primitiveMeshCheck.C.
References Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), nPoints, Foam::reduce(), and List< T >::size().
Referenced by Foam::polyMeshCheck::checkTopology().
bool checkPoints | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check for unused points.
Definition at line 1057 of file primitiveMeshCheck.C.
References UList< T >::empty(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), and Foam::reduce().
Referenced by Foam::polyMeshCheck::checkTopology().
bool checkDuplicateFaces | ( | const label | facei, |
const Map< label > & | nCommonPoints, | ||
label & | nBaffleFaces, | ||
labelHashSet * | setPtr | ||
) | const |
Check if all points on face are shared with another face.
Definition at line 1129 of file primitiveMeshCheck.C.
References forAllConstIter, HashSet< Key, Hash >::insert(), and List< T >::size().
bool checkCommonOrder | ( | const label | facei, |
const Map< label > & | nCommonPoints, | ||
labelHashSet * | setPtr | ||
) | const |
Check that shared points are in consecutive order.
Definition at line 1170 of file primitiveMeshCheck.C.
References UList< T >::fcIndex(), Foam::findIndex(), forAll, forAllConstIter, HashSet< Key, Hash >::insert(), Foam::labelMax, UList< T >::rcIndex(), and List< T >::size().
bool checkFaceFaces | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check face-face connectivity.
Definition at line 1331 of file primitiveMeshCheck.C.
References HashTable< T, Key, Hash >::clear(), HashTableCore::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, Foam::Info, InfoInFunction, HashTable< T, Key, Hash >::insert(), and Foam::reduce().
Referenced by Foam::polyMeshCheck::checkTopology().
bool checkClosedBoundary | ( | const bool | report = false | ) | const |
Check boundary for closedness.
Definition at line 36 of file primitiveMeshCheck.C.
References Foam::polyMeshCheck::closedThreshold, Foam::cmptMag(), Foam::cmptMax(), Foam::endl(), primitiveMesh::faceAreas(), Foam::Info, InfoInFunction, Foam::mag(), primitiveMesh::nInternalFaces(), Foam::reduce(), List< T >::size(), and Foam::Zero.
Referenced by Foam::polyMeshCheck::checkGeometry().
bool checkClosedCells | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr , |
||
labelHashSet * | highAspectSetPtr = nullptr , |
||
const Vector< label > & | solutionD = Vector<label>::one |
||
) | const |
Check cells for closedness.
Definition at line 90 of file primitiveMeshCheck.C.
References Foam::polyMeshCheck::aspectThreshold, Foam::constant::universal::c, primitiveMeshTools::cellClosedness(), cells, Foam::polyMeshCheck::closedThreshold, Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::nl, and Foam::reduce().
Referenced by Foam::polyMeshCheck::checkGeometry().
bool checkFaceAreas | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check for negative face areas.
Definition at line 223 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), and Foam::reduce().
Referenced by Foam::polyMeshCheck::checkGeometry().
bool checkCellVolumes | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check for negative cell volumes.
Definition at line 281 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::gSum(), Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), and Foam::reduce().
Referenced by Foam::polyMeshCheck::checkGeometry().
bool checkFacePyramids | ( | const bool | report = false , |
const scalar | minPyrVol = -small , |
||
labelHashSet * | setPtr = nullptr |
||
) | const |
Check face pyramid volume.
Definition at line 345 of file primitiveMeshCheck.C.
References Foam::endl(), primitiveMeshTools::facePyramidVolume(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), points, and Foam::reduce().
Referenced by Foam::polyMeshCheck::checkGeometry().
bool checkFaceAngles | ( | const bool | report = false , |
const scalar | maxSin = 10 , |
||
labelHashSet * | setPtr = nullptr |
||
) | const |
Check face angles.
Definition at line 425 of file primitiveMeshCheck.C.
References Foam::asin(), Foam::degToRad(), Foam::endl(), Foam::exit(), primitiveMeshTools::faceConcavity(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), points, Foam::radToDeg(), Foam::reduce(), and Foam::sin().
bool checkFaceFlatness | ( | const bool | report, |
const scalar | warnFlatness, | ||
labelHashSet * | setPtr | ||
) | const |
Check face warpage: decompose face and check ratio between.
magnitude of sum of triangle areas and sum of magnitude of triangle areas.
Definition at line 505 of file primitiveMeshCheck.C.
References Foam::endl(), Foam::exit(), primitiveMeshTools::faceFlatness(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), points, and Foam::reduce().
bool checkPointNearness | ( | const bool | report, |
const scalar | reportDistSqr, | ||
labelHashSet * | setPtr = nullptr |
||
) | const |
Check for point-point-nearness,.
e.g. colocated points which may be part of baffles.
Definition at line 31 of file primitiveMeshCheckPointNearness.C.
References Foam::endl(), SortableList< T >::indices(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), primitiveMesh::points(), Foam::reduce(), List< T >::size(), and Foam::sqrt().
bool checkEdgeLength | ( | const bool | report, |
const scalar | minLenSqr, | ||
labelHashSet * | setPtr = nullptr |
||
) | const |
Check edge length.
Definition at line 30 of file primitiveMeshCheckEdgeLength.C.
References Foam::endl(), f(), primitiveMesh::faces(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), Foam::max(), Foam::min(), primitiveMesh::nPoints(), primitiveMesh::points(), Foam::reduce(), HashTable< T, Key, Hash >::size(), Foam::sqr(), Foam::sqrt(), and HashTable< T, Key, Hash >::transfer().
bool checkConcaveCells | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check for concave cells by the planes of faces.
Definition at line 610 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::polyMeshCheck::planarCosAngle, and Foam::reduce().
Return true if the point in the cell bounding box.
The bounding box may be isotropically inflated by the fraction inflationFraction
Definition at line 32 of file primitiveMeshFindCell.C.
References primitiveMesh::cells(), boundBox::contains(), primitiveMesh::faces(), Foam::mag(), boundBox::max(), boundBox::min(), VectorSpace< Form, Cmpt, Ncmpts >::one, p, primitiveMesh::points(), and boundBox::span().
Return true if the point is in the cell.
Definition at line 59 of file primitiveMeshFindCell.C.
References cells, f(), forAll, and p.
Referenced by polyMesh::pointInCell().
Foam::label findNearestCell | ( | const point & | location | ) | const |
Find the cell with the nearest cell centre to location.
Definition at line 86 of file primitiveMeshFindCell.C.
References Foam::magSqr(), and List< T >::size().
Foam::label findCell | ( | const point & | location | ) | const |
Find cell enclosing this location (-1 if not in mesh)
Definition at line 108 of file primitiveMeshFindCell.C.
References n.
void printAllocated | ( | ) | const |
Print a list of all the currently allocated mesh data.
Definition at line 31 of file primitiveMeshClear.C.
References Foam::endl(), and Foam::Pout.
|
inline |
Definition at line 106 of file primitiveMeshI.H.
|
inline |
Definition at line 112 of file primitiveMeshI.H.
|
inline |
Definition at line 118 of file primitiveMeshI.H.
|
inline |
Definition at line 124 of file primitiveMeshI.H.
|
inline |
Definition at line 130 of file primitiveMeshI.H.
|
inline |
Definition at line 136 of file primitiveMeshI.H.
|
inline |
Definition at line 142 of file primitiveMeshI.H.
|
inline |
Definition at line 148 of file primitiveMeshI.H.
|
inline |
Definition at line 154 of file primitiveMeshI.H.
|
inline |
Definition at line 160 of file primitiveMeshI.H.
|
inline |
Definition at line 166 of file primitiveMeshI.H.
|
inline |
Definition at line 172 of file primitiveMeshI.H.
|
inline |
Definition at line 178 of file primitiveMeshI.H.
|
inline |
Definition at line 184 of file primitiveMeshI.H.
|
inline |
Definition at line 190 of file primitiveMeshI.H.
|
inline |
Definition at line 196 of file primitiveMeshI.H.
|
inline |
Definition at line 202 of file primitiveMeshI.H.
const Foam::labelList & cellCells | ( | const label | celli, |
DynamicList< label > & | storage | ||
) | const |
cellCells using cells.
Definition at line 111 of file primitiveMeshCellCells.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), cells, DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), and forAll.
const Foam::labelList & cellCells | ( | const label | celli | ) | const |
Definition at line 151 of file primitiveMeshCellCells.C.
const Foam::labelList & cellPoints | ( | const label | celli, |
DynamicList< label > & | storage | ||
) | const |
cellPoints using cells
Definition at line 58 of file primitiveMeshCellPoints.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), cells, DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), List< T >::clear(), f(), forAll, forAllConstIter, and DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity().
const Foam::labelList & cellPoints | ( | const label | celli | ) | const |
Definition at line 101 of file primitiveMeshCellPoints.C.
const Foam::labelList & pointCells | ( | const label | pointi, |
DynamicList< label > & | storage | ||
) | const |
pointCells using pointFaces
Definition at line 119 of file primitiveMeshPointCells.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), forAll, n, pFaces, DynamicList< T, SizeInc, SizeMult, SizeDiv >::setSize(), List< T >::size(), and Foam::sort().
const Foam::labelList & pointCells | ( | const label | pointi | ) | const |
Definition at line 174 of file primitiveMeshPointCells.C.
const Foam::labelList & pointPoints | ( | const label | pointi, |
DynamicList< label > & | storage | ||
) | const |
pointPoints using edges, pointEdges
Definition at line 102 of file primitiveMeshPointPoints.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), forAll, DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), and List< T >::size().
const Foam::labelList & pointPoints | ( | const label | pointi | ) | const |
Definition at line 134 of file primitiveMeshPointPoints.C.
const Foam::labelList & faceEdges | ( | const label | facei, |
DynamicList< label > & | storage | ||
) | const |
faceEdges using pointFaces, edges, pointEdges
Definition at line 586 of file primitiveMeshEdges.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), f(), forAll, DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), and List< T >::size().
const Foam::labelList & faceEdges | ( | const label | facei | ) | const |
Definition at line 624 of file primitiveMeshEdges.C.
const Foam::labelList & edgeFaces | ( | const label | edgeI, |
DynamicList< label > & | storage | ||
) | const |
edgeFaces using pointFaces, edges, pointEdges
Definition at line 57 of file primitiveMeshEdgeFaces.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), Foam::e, and List< T >::size().
const Foam::labelList & edgeFaces | ( | const label | edgeI | ) | const |
Definition at line 103 of file primitiveMeshEdgeFaces.C.
const Foam::labelList & edgeCells | ( | const label | edgeI, |
DynamicList< label > & | storage | ||
) | const |
edgeCells using pointFaces, edges, pointEdges
Definition at line 57 of file primitiveMeshEdgeCells.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), and forAll.
const Foam::labelList & edgeCells | ( | const label | edgeI | ) | const |
Definition at line 127 of file primitiveMeshEdgeCells.C.
const Foam::labelList & cellEdges | ( | const label | celli, |
DynamicList< label > & | storage | ||
) | const |
cellEdges using cells, pointFaces, edges, pointEdges
Definition at line 630 of file primitiveMeshEdges.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), cells, DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), List< T >::clear(), forAll, forAllConstIter, and DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity().
const Foam::labelList & cellEdges | ( | const label | celli | ) | const |
Definition at line 673 of file primitiveMeshEdges.C.
void clearGeom | ( | ) |
Clear geometry.
Definition at line 129 of file primitiveMeshClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearGeom(), and polyMesh::setPoints().
void clearAddressing | ( | ) |
Clear topological data.
Definition at line 146 of file primitiveMeshClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearAddressing().
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
Definition at line 175 of file primitiveMeshClear.C.
|
delete |
Disallow default bitwise assignment.
|
static |
Estimated number of cells per edge.
Definition at line 263 of file primitiveMesh.H.
|
static |
Estimated number of cells per point.
Definition at line 266 of file primitiveMesh.H.
|
static |
Estimated number of faces per cell.
Definition at line 269 of file primitiveMesh.H.
|
static |
Estimated number of faces per edge.
Definition at line 272 of file primitiveMesh.H.
|
static |
Estimated number of faces per point.
Definition at line 275 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 278 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 281 of file primitiveMesh.H.
|
static |
Estimated number of edges per point.
Definition at line 284 of file primitiveMesh.H.
|
static |
Estimated number of points per cell.
Definition at line 287 of file primitiveMesh.H.
|
static |
Estimated number of points per face.
Definition at line 290 of file primitiveMesh.H.