Cell-face mesh analysis engine. More...
#include <OpenFOAM/primitiveMesh.H>
Cell-face mesh analysis engine.
Definition at line 79 of file primitiveMesh.H.
Public Member Functions | |
ClassName ("primitiveMesh") | |
primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells) | |
Construct from components.
| |
virtual | ~primitiveMesh () |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells) |
Reset this primitiveMesh given the primitive array sizes.
| |
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.
| |
void | reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, const Xfer< cellList > &cells) |
Reset this primitiveMesh given the primitive array sizes and cells.
| |
label | nPoints () const |
label | nEdges () const |
label | nInternalFaces () const |
label | nFaces () const |
label | nCells () const |
label | nInternalPoints () const |
Points not on boundary.
| |
label | nInternal0Edges () const |
Internal edges (i.e. not on boundary face) using.
| |
label | nInternal1Edges () const |
Internal edges using 0 or 1 boundary point.
| |
label | nInternalEdges () const |
Internal edges using 0,1 or 2 boundary points.
| |
virtual const pointField & | points () const =0 |
Return mesh points.
| |
virtual const faceList & | faces () const =0 |
Return faces.
| |
virtual const labelList & | faceOwner () const =0 |
Face face-owner addresing.
| |
virtual const labelList & | faceNeighbour () const =0 |
Face face-neighbour addressing.
| |
virtual const pointField & | oldPoints () const =0 |
Return old points for mesh motion.
| |
const cellShapeList & | cellShapes () const |
Return cell shapes.
| |
const edgeList & | edges () const |
Return mesh edges. Uses calcEdges.
| |
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 |
tmp< scalarField > | movePoints (const pointField &p, const pointField &oldP) |
Move points, returns volumes swept by faces in motion.
| |
bool | isInternalFace (const label faceIndex) const |
Return true if given face label is internal to the mesh.
| |
bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=NULL) const |
Check cell zip-up.
| |
bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=NULL) const |
Check uniqueness of face vertices.
| |
bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face-face connectivity.
| |
bool | checkUpperTriangular (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face ordering.
| |
bool | checkClosedBoundary (const bool report=false) const |
Check boundary for closedness.
| |
bool | checkClosedCells (const bool report=false, labelHashSet *setPtr=NULL, labelHashSet *highAspectSetPtr=NULL, const Vector< label > &solutionD=Vector< label >::one) const |
Check cells for closedness.
| |
bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for negative face areas.
| |
bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for negative cell volumes.
| |
bool | checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for non-orthogonality.
| |
bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-SMALL, labelHashSet *setPtr=NULL) const |
Check face pyramid volume.
| |
bool | checkFaceSkewness (const bool report=false, labelHashSet *setPtr=NULL) const |
Check face skewness.
| |
bool | checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=NULL) const |
Check face angles.
| |
bool | checkFaceFlatness (const bool report, const scalar warnFlatness, labelHashSet *setPtr) const |
Check face warpage: decompose face and check ratio between.
| |
bool | checkEdgeAlignment (const bool report, const Vector< label > &directions, labelHashSet *setPtr=NULL) const |
Check edge alignment for 1D/2D cases.
| |
bool | checkPoints (const bool report=false, labelHashSet *setPtr=NULL) const |
Check for unused points.
| |
bool | checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=NULL) const |
Check for point-point-nearness,.
| |
bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=NULL) const |
Check edge length.
| |
bool | checkCellDeterminant (const bool report=false, labelHashSet *setPtr=NULL, const Vector< label > &solutionD=Vector< label >::one) const |
Check cell determinant.
| |
bool | checkTopology (const bool report=false) const |
Check mesh topology for correctness.
| |
bool | checkGeometry (const bool report=false) const |
Check mesh geometry (& implicitly topology) for correctness.
| |
bool | checkMesh (const bool report=false) const |
Check mesh for correctness. Returns false for no error.
| |
bool | checkMeshMotion (const pointField &newPoints, const bool report=false) const |
Check mesh motion for correctness given motion points.
| |
bool | pointInCellBB (const point &p, label celli) const |
Is the point in the cell bounding box.
| |
bool | pointInCell (const point &p, label celli) const |
Is the point in the cell.
| |
label | findNearestCell (const point &location) const |
Find the cell with the nearest cell centre to location.
| |
label | findCell (const point &location) const |
Find cell enclosing this location (-1 if not in mesh)
| |
void | printAllocated () const |
Print a list of all the currently allocated mesh data.
| |
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.
| |
const labelList & | cellCells (const label cellI) const |
const labelList & | cellPoints (const label cellI, DynamicList< label > &) const |
cellPoints using cells
| |
const labelList & | cellPoints (const label cellI) const |
const labelList & | pointCells (const label pointI, DynamicList< label > &) const |
pointCells using pointFaces
| |
const labelList & | pointCells (const label pointI) const |
const labelList & | pointPoints (const label pointI, DynamicList< label > &) const |
pointPoints using edges, pointEdges
| |
const labelList & | pointPoints (const label pointI) const |
const labelList & | faceEdges (const label faceI, DynamicList< label > &) const |
faceEdges using pointFaces, edges, pointEdges
| |
const labelList & | faceEdges (const label faceI) const |
const labelList & | edgeFaces (const label edgeI, DynamicList< label > &) const |
edgeFaces using pointFaces, edges, pointEdges
| |
const labelList & | edgeFaces (const label edgeI) const |
const labelList & | edgeCells (const label edgeI, DynamicList< label > &) const |
edgeCells using pointFaces, edges, pointEdges
| |
const labelList & | edgeCells (const label edgeI) const |
const labelList & | cellEdges (const label cellI, DynamicList< label > &) const |
cellEdges using cells, pointFaces, edges, pointEdges
| |
const labelList & | cellEdges (const label cellI) const |
void | clearGeom () |
Clear geometry.
| |
void | clearAddressing () |
Clear topological data.
| |
void | clearOut () |
Clear all geometry and addressing unnecessary for CFD.
| |
Static Public Member Functions | |
static void | calcCells (cellList &, const unallocLabelList &own, const unallocLabelList &nei, const label nCells=-1) |
Helper function to calculate cell-face addressing from.
| |
static bool | calcPointOrder (label &nInternalPoints, labelList &pointMap, const faceList &, const label nInternalFaces, const label nPoints) |
Helper function to calculate point ordering. Returns true.
| |
static scalar | setClosedThreshold (const scalar) |
Set the closedness ratio warning threshold.
| |
static scalar | setAspectThreshold (const scalar) |
Set the aspect ratio warning threshold.
| |
static scalar | setNonOrthThreshold (const scalar) |
Set the non-orthogonality warning threshold in degrees.
| |
static scalar | setSkewThreshold (const scalar) |
Set the skewness warning threshold as percentage.
| |
Static Public Attributes | |
static const unsigned | cellsPerEdge_ = 4 |
Estimated number of cells per edge.
| |
static const unsigned | cellsPerPoint_ = 8 |
Estimated number of cells per point.
| |
static const unsigned | facesPerCell_ = 6 |
Estimated number of faces per cell.
| |
static const unsigned | facesPerEdge_ = 4 |
Estimated number of faces per edge.
| |
static const unsigned | facesPerPoint_ = 12 |
Estimated number of faces per point.
| |
static const unsigned | edgesPerCell_ = 12 |
Estimated number of edges per cell.
| |
static const unsigned | edgesPerFace_ = 4 |
Estimated number of edges per cell.
| |
static const unsigned | edgesPerPoint_ = 6 |
Estimated number of edges per point.
| |
static const unsigned | pointsPerCell_ = 8 |
Estimated number of points per cell.
| |
static const unsigned | pointsPerFace_ = 4 |
Estimated number of points per face.
| |
Protected Member Functions | |
primitiveMesh () | |
Construct null.
|
primitiveMesh | ( | ) | [protected]
|
Construct null.
Definition at line 38 of file primitiveMesh.C.
primitiveMesh | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Construct from components.
Definition at line 78 of file primitiveMesh.C.
~primitiveMesh | ( | ) | [virtual]
|
Definition at line 119 of file primitiveMesh.C.
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.
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.
void reset | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells, | ||
const Xfer< cellList > & | cells | ||
) |
Reset this primitiveMesh given the primitive array sizes and cells.
Definition at line 284 of file primitiveMesh.C.
label nPoints | ( | ) | const [inline]
|
Definition at line 41 of file primitiveMeshI.H.
Referenced by polyMeshAdder::add(), polyTopoChange::addMesh(), dynamicRefineFvMesh::cellToPoint(), polyTopoChange::changeMesh(), inversePointDistanceDiffusivity::correct(), displacementInterpolationFvMotionSolver::curPoints(), displacementFvMotionSolver::displacementFvMotionSolver(), fvMeshDistribute::distribute(), edgeVertex::edgeToEVert(), edgeVertex::getEdge(), surfaceSets::getHangingCells(), syncTools::getMasterPoints(), hexRef8::hexRef8(), edgeVertex::isEdge(), localPointRegion::localPointRegion(), polyTopoChange::makeMesh(), pointZoneSet::maxSize(), pointSet::maxSize(), meshTriangulation::meshTriangulation(), dynamicRefineFvMesh::minCellField(), vtkMesh::nFieldPoints(), primitiveMesh::pointFaces(), pointSet::pointSet(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), fvMeshDistribute::printMeshInfo(), pointMesh::size(), pointSet::sync(), syncTools::syncPointList(), and edgeVertex::vertToEVert().
label nEdges | ( | ) | const [inline]
|
Definition at line 71 of file primitiveMeshI.H.
References primitiveMesh::edges(), and List< T >::size().
Referenced by inversePointDistanceDiffusivity::correct(), primitiveMesh::edgeCells(), primitiveMesh::edgeFaces(), edgeVertex::edgeToEVert(), directionInfo::edgeToFaceIndex(), syncTools::getMasterEdges(), edgeVertex::isEdge(), primitiveMesh::nInternal0Edges(), primitiveMesh::nInternal1Edges(), primitiveMesh::nInternalEdges(), and syncTools::syncEdgeList().
label nInternalFaces | ( | ) | const [inline]
|
Definition at line 82 of file primitiveMeshI.H.
Referenced by polyMeshAdder::add(), polyTopoChange::addMesh(), scotchDecomp::calcCSR(), polyDualMesh::calcFeatures(), parMetisDecomp::calcMetisDistributedCSR(), primitiveMesh::checkClosedBoundary(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkDefinition(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), inversePointDistanceDiffusivity::correct(), inverseFaceDistanceDiffusivity::correct(), fvMeshDistribute::distribute(), dynamicRefineFvMesh::dynamicRefineFvMesh(), dynamicRefineFvMesh::extendMarkedCells(), faceCoupleInfo::faceCoupleInfo(), localPointRegion::findDuplicateFaces(), boundaryMesh::getNearest(), cellToFaceStencil::insertFaceCells(), cellToCellStencil::insertFaceCells(), fvMeshSubset::interpolate(), primitiveMesh::isInternalFace(), MeshedSurface< Face >::MeshedSurface(), octreeDataFace::octreeDataFace(), boundaryMesh::patchify(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), quadraticFitSnGradData::quadraticFitSnGradData(), boundaryMesh::read(), surfaceMesh::size(), fvSurfaceMapper::size(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::validBoundaryFaces(), extendedUpwindCellToFaceStencil::weightedSum(), extendedCellToFaceStencil::weightedSum(), and polyBoundaryMesh::whichPatch().
label nFaces | ( | ) | const [inline]
|
Definition at line 88 of file primitiveMeshI.H.
Referenced by polyMeshAdder::add(), meshRefinement::addPatch(), polyDualMesh::calcFeatures(), parMetisDecomp::calcMetisDistributedCSR(), polyTopoChange::changeMesh(), meshRefinement::checkCoupledFaceZones(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), motionSmoother::checkMesh(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), autoSnapDriver::createZoneBaffles(), fvMeshDistribute::distribute(), autoLayerDriver::doLayers(), autoSnapDriver::doSnap(), dynamicRefineFvMesh::dynamicRefineFvMesh(), evaluateError::evaluateError(), Foam::MULES::explicitSolve(), dynamicRefineFvMesh::extendMarkedCells(), faceMapper::faceMapper(), faceSet::faceSet(), faceZoneSet::faceZoneSet(), syncTools::getMasterFaces(), boundaryMesh::getNearest(), Foam::MULES::implicitSolve(), polyTopoChange::makeMesh(), faceZoneSet::maxSize(), faceSet::maxSize(), MeshedSurface< Face >::MeshedSurface(), octreeDataFace::octreeDataFace(), boundaryMesh::patchify(), autoSnapDriver::preSmoothPatch(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), autoSnapDriver::repatchToSurface(), autoSnapDriver::scaleMesh(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), directMappedFixedValueFvPatchField< Type >::updateCoeffs(), and polyBoundaryMesh::whichPatch().
label nCells | ( | ) | const [inline]
|
Definition at line 94 of file primitiveMeshI.H.
Referenced by polyMeshAdder::add(), autoLayerDriver::addLayers(), polyTopoChange::addMesh(), decompositionMethod::calcCellCells(), scotchDecomp::calcCSR(), parMetisDecomp::calcMetisDistributedCSR(), cellCuts::cellCuts(), cellMapper::cellMapper(), primitiveMesh::cellPoints(), cellSet::cellSet(), cellZoneSet::cellZoneSet(), polyTopoChange::changeMesh(), refinementHistory::distribute(), fvMeshDistribute::distribute(), autoLayerDriver::doLayers(), autoRefineDriver::doRefine(), evaluateError::evaluateError(), spray::evaporationSource(), refinementParameters::findCells(), surfaceSets::getHangingCells(), hexRef8::hexRef8(), Kmesh::Kmesh(), polyTopoChange::makeMesh(), dynamicRefineFvMesh::maxPointField(), cellZoneSet::maxSize(), cellSet::maxSize(), ODEChemistryModel< CompType, ThermoType >::ODEChemistryModel(), cellTable::operator=(), polyMesh::polyMesh(), fvMeshDistribute::printMeshInfo(), ensightParts::recalculate(), errorDrivenRefinement::setRefinement(), volMesh::size(), and dynamicRefineFvMesh::update().
label nInternalPoints | ( | ) | const [inline]
|
Points not on boundary.
Definition at line 35 of file primitiveMeshI.H.
label nInternal0Edges | ( | ) | const [inline]
|
Internal edges (i.e. not on boundary face) using.
no boundary point
Definition at line 47 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
label nInternal1Edges | ( | ) | const [inline]
|
Internal edges using 0 or 1 boundary point.
Definition at line 55 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
label nInternalEdges | ( | ) | const [inline]
|
Internal edges using 0,1 or 2 boundary points.
Definition at line 63 of file primitiveMeshI.H.
References primitiveMesh::nEdges().
virtual const pointField& points | ( | ) | const [pure virtual]
|
Return mesh points.
Implemented in polyMesh.
Referenced by edgeVertex::coord(), localPointRegion::findDuplicateFaces(), boundaryMesh::getNearest(), Foam::meshTools::normEdgeVec(), primitiveMesh::pointInCellBB(), cuttingPlane::reCut(), and pointSet::writeDebug().
virtual const faceList& faces | ( | ) | const [pure virtual]
|
Return faces.
Implemented in polyMesh.
Referenced by primitiveMeshGeometry::checkFaceAngles(), primitiveMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceTwist(), directionInfo::edgeToFaceIndex(), localPointRegion::findDuplicateFaces(), surfaceSets::getHangingCells(), boundaryMesh::getNearest(), Foam::interpolatePointToCell(), wedgeMatcher::isA(), tetWedgeMatcher::isA(), tetMatcher::isA(), pyrMatcher::isA(), prismMatcher::isA(), hexMatcher::isA(), degenerateMatcher::match(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), tetMatcher::matches(), pyrMatcher::matches(), prismMatcher::matches(), hexMatcher::matches(), primitiveMesh::pointFaces(), and primitiveMesh::pointInCellBB().
virtual const labelList& faceOwner | ( | ) | const [pure virtual]
|
Face face-owner addresing.
Implemented in polyMesh.
Referenced by primitiveMeshGeometry::checkFaceDotProduct(), primitiveMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceSkewness(), primitiveMeshGeometry::checkFaceWeights(), Foam::meshTools::faceOnCell(), Foam::meshTools::getSharedFace(), wedgeMatcher::isA(), tetWedgeMatcher::isA(), tetMatcher::isA(), pyrMatcher::isA(), prismMatcher::isA(), hexMatcher::isA(), degenerateMatcher::match(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), tetMatcher::matches(), pyrMatcher::matches(), prismMatcher::matches(), hexMatcher::matches(), and Foam::meshTools::otherCell().
virtual const labelList& faceNeighbour | ( | ) | const [pure virtual]
|
Face face-neighbour addressing.
Implemented in polyMesh.
Referenced by primitiveMeshGeometry::checkFaceDotProduct(), primitiveMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceSkewness(), primitiveMeshGeometry::checkFaceWeights(), Foam::meshTools::faceOnCell(), Foam::meshTools::getSharedFace(), and Foam::meshTools::otherCell().
virtual const pointField& oldPoints | ( | ) | const [pure virtual]
|
Return old points for mesh motion.
Implemented in polyMesh.
const Foam::cellShapeList & cellShapes | ( | ) | const |
Return cell shapes.
Definition at line 339 of file primitiveMesh.C.
const Foam::edgeList & edges | ( | ) | const |
Return mesh edges. Uses calcEdges.
Definition at line 499 of file primitiveMeshEdges.C.
Referenced by autoLayerDriver::addLayers(), polyDualMesh::calcFeatures(), addPatchCellLayer::calcMeshEdges(), edgeVertex::coord(), twoDPointCorrector::correctPoints(), topoCellLooper::cut(), geomCellLooper::cut(), Foam::meshTools::edgeToCutDir(), directionInfo::edgeToFaceIndex(), Foam::meshTools::findEdge(), Foam::meshTools::getEdgeFaces(), cellLooper::getFirstVertEdge(), Foam::meshTools::getParallelEdges(), primitiveMesh::nEdges(), Foam::meshTools::normEdgeVec(), Foam::meshTools::otherEdge(), boundaryMesh::setFeatureEdges(), meshCutter::setRefinement(), meshCutAndRemove::setRefinement(), directionInfo::updateCell(), pointEdgePoint::updateEdge(), pointData::updateEdge(), Foam::meshTools::walkFace(), and edgeVertex::writeCut().
void calcCells | ( | cellList & | cellFaceAddr, |
const unallocLabelList & | own, | ||
const unallocLabelList & | nei, | ||
const label | nCells = -1
|
||
) | [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 31 of file primitiveMeshCells.C.
References forAll, Foam::max(), List< T >::setSize(), and List< T >::size().
bool calcPointOrder | ( | label & | nInternalPoints, |
labelList & | pointMap, | ||
const faceList & | faces, | ||
const label | nInternalFaces, | ||
const label | nPoints | ||
) | [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, List< T >::setSize(), and List< T >::size().
const Foam::labelListList & cellCells | ( | ) | const |
Definition at line 100 of file primitiveMeshCellCells.C.
const Foam::labelListList & edgeCells | ( | ) | const |
Definition at line 32 of file primitiveMeshEdgeCells.C.
References Foam::abort(), primitiveMesh::cellEdges(), Foam::endl(), Foam::FatalError, FatalErrorIn, 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(), dynamicRefineFvMesh::cellToPoint(), cellDistFuncs::correctBoundaryPointCells(), dynamicRefineFvMesh::maxPointField(), and dynamicRefineFvMesh::minCellField().
const Foam::cellList & cells | ( | ) | const |
Definition at line 136 of file primitiveMeshCells.C.
Referenced by scotchDecomp::calcCSR(), primitiveMeshGeometry::checkCellDeterminant(), polyMeshGeometry::checkCellDeterminant(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), inversePointDistanceDiffusivity::correct(), outletStabilised< Type >::correction(), topoCellLooper::cut(), geomCellLooper::cut(), dynamicRefineFvMesh::extendMarkedCells(), Particle< ParticleType >::findFaces(), sampledSet::findNearFace(), cellPointWeight::findTetrahedron(), surfaceSets::getHangingCells(), Foam::meshTools::getSharedFace(), Foam::interpolatePointToCell(), wedgeMatcher::isA(), tetWedgeMatcher::isA(), tetMatcher::isA(), pyrMatcher::isA(), prismMatcher::isA(), hexMatcher::isA(), degenerateMatcher::match(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), tetMatcher::matches(), pyrMatcher::matches(), prismMatcher::matches(), hexMatcher::matches(), primitiveMesh::pointInCellBB(), Foam::polyMeshZipUpCells(), meshCutter::setRefinement(), fvMatrix< Type >::setValues(), ExactParticle< ParticleType >::trackToFace(), 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, FatalErrorIn, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by Foam::meshTools::getEdgeFaces(), boundaryMesh::setFeatureEdges(), meshCutter::setRefinement(), and meshCutAndRemove::setRefinement().
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 cellLooper::getVertFacesNonEdge(), Foam::polyMeshZipUpCells(), and perfectInterface::setRefinement().
const Foam::labelListList & cellEdges | ( | ) | const |
Definition at line 118 of file primitiveMeshCellEdges.C.
Referenced by polyDualMesh::calcFeatures(), geomCellLooper::cut(), Foam::meshTools::cutDirToEdge(), primitiveMesh::edgeCells(), and cellLooper::getMisAlignedEdge().
const Foam::labelListList & faceEdges | ( | ) | const |
Definition at line 522 of file primitiveMeshEdges.C.
References Foam::endl(), UList< T >::fcIndex(), forAll, Foam::Pout, List< T >::setSize(), and List< T >::size().
Referenced by primitiveMesh::edgeFaces(), Foam::meshTools::edgeOnFace(), cellLooper::getFirstVertEdge(), Foam::meshTools::getSharedEdge(), cellLooper::getVertEdgesNonFace(), directionInfo::updateCell(), and Foam::meshTools::walkFace().
const Foam::labelListList & pointEdges | ( | ) | const |
Definition at line 510 of file primitiveMeshEdges.C.
Referenced by autoLayerDriver::addLayers(), addPatchCellLayer::calcMeshEdges(), Foam::meshTools::findEdge(), and cellLooper::getVertEdgesNonFace().
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, FatalErrorIn, Foam::invertManyToMany(), primitiveMesh::nCells(), primitiveMesh::pointCells(), and Foam::Pout.
Referenced by dynamicRefineFvMesh::dynamicRefineFvMesh(), and meshCutAndRemove::setRefinement().
const Foam::vectorField & cellCentres | ( | ) | const |
Definition at line 149 of file primitiveMeshCellCentresAndVols.C.
Referenced by polyTopoChange::addMesh(), motionSmoother::checkMesh(), fvPatch::Cn(), cellDistFuncs::correctBoundaryFaceCells(), cellDistFuncs::correctBoundaryPointCells(), Particle< ParticleType >::findFaces(), cellPointWeight::findTetrahedron(), Particle< ParticleType >::lambda(), primitiveMesh::pointInCellBB(), sampledSet::pushIn(), Particle< ParticleType >::trackToFace(), ExactParticle< ParticleType >::trackToFace(), wallPoint::updateCell(), refinementDistanceData::updateCell(), and cellSet::writeDebug().
const Foam::vectorField & faceCentres | ( | ) | const |
Definition at line 130 of file primitiveMeshFaceCentresAndAreas.C.
Referenced by FitData< FitDataType, ExtendedStencil, Polynomial >::calcFit(), sampledSet::calcSign(), motionSmoother::checkMesh(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), patchProbes::findElements(), boundaryMesh::getNearest(), Particle< ParticleType >::lambda(), meshTriangulation::meshTriangulation(), fvMeshDistribute::printCoupleInfo(), autoSnapDriver::repatchToSurface(), ExactParticle< ParticleType >::trackToFace(), triSurfaceTools::triangulateFaceCentre(), wallPoint::updateFace(), wallPointData< Type >::updateFace(), wallPointYPlus::updateFace(), refinementDistanceData::updateFace(), reflectParcel::wallTreatment(), and faceSet::writeDebug().
const Foam::scalarField & cellVolumes | ( | ) | const |
Definition at line 160 of file primitiveMeshCellCentresAndVols.C.
Referenced by motionSmoother::checkMesh(), cellPointWeight::findTetrahedron(), KinematicParcel< ParcelType >::massCell(), and fvMesh::V().
const Foam::vectorField & faceAreas | ( | ) | const |
Definition at line 141 of file primitiveMeshFaceCentresAndAreas.C.
Referenced by sampledSet::calcSign(), primitiveMesh::checkClosedBoundary(), motionSmoother::checkMesh(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), cellPointWeight::findTriangle(), boundaryMesh::getNearest(), and Particle< ParticleType >::lambda().
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, FatalErrorIn, forAll, nPoints, and List< T >::size().
Referenced by polyMesh::movePoints().
bool isInternalFace | ( | const label | faceIndex ) | const [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 polyMeshGeometry::affectedCells(), scotchDecomp::calcCSR(), primitiveMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceDotProduct(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTwist(), primitiveMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), outletStabilised< Type >::correction(), Foam::meshTools::faceOnCell(), Foam::meshTools::getSharedFace(), Cloud< BasicReactingParcel< ThermoType > >::internalFace(), meshTriangulation::meshTriangulation(), Foam::meshTools::otherCell(), errorDrivenRefinement::setRefinement(), perfectInterface::setRefinement(), fvMatrix< Type >::setValues(), and outletStabilised< Type >::weights().
bool checkCellsZipUp | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check cell zip-up.
Definition at line 1402 of file primitiveMeshCheck.C.
References cells, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::reduce(), and List< T >::size().
bool checkFaceVertices | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check uniqueness of face vertices.
Definition at line 1503 of file primitiveMeshCheck.C.
References Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), nPoints, Foam::reduce(), and List< T >::size().
bool checkFaceFaces | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check face-face connectivity.
Definition at line 1784 of file primitiveMeshCheck.C.
References HashTable< T, Key, Hash >::clear(), HashTable< T, Key, Hash >::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, Foam::Info, HashTable< T, Key, Hash >::insert(), and Foam::reduce().
bool checkUpperTriangular | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check face ordering.
Definition at line 1237 of file primitiveMeshCheck.C.
References cells, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::reduce(), and List< T >::size().
bool checkClosedBoundary | ( | const bool | report = false
) |
const |
Check boundary for closedness.
Definition at line 43 of file primitiveMeshCheck.C.
References Foam::cmptMag(), Foam::cmptMax(), Foam::endl(), primitiveMesh::faceAreas(), Foam::Info, Foam::mag(), primitiveMesh::nInternalFaces(), Foam::reduce(), List< T >::size(), and Vector< Cmpt >::zero.
bool checkClosedCells | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL ,
|
||
labelHashSet * | highAspectSetPtr = NULL ,
|
||
const Vector< label > & | solutionD = Vector<label>::one
|
||
) | const |
Check cells for closedness.
Definition at line 96 of file primitiveMeshCheck.C.
References cells, Foam::cmptMag(), Foam::cmptSum(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), VectorSpace< Vector< Cmpt >, Cmpt, 3 >::nComponents, Foam::nl, Foam::pow(), Foam::reduce(), and Vector< Cmpt >::zero.
bool checkFaceAreas | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check for negative face areas.
Definition at line 291 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), and Foam::reduce().
bool checkCellVolumes | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check for negative cell volumes.
Definition at line 350 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::gSum(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), and Foam::reduce().
bool checkFaceOrthogonality | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check for non-orthogonality.
Definition at line 417 of file primitiveMeshCheck.C.
References Foam::acos(), Foam::cos(), d, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::mathematicalConstant::pi(), Foam::reduce(), and List< T >::size().
bool checkFacePyramids | ( | const bool | report = false ,
|
const scalar | minPyrVol = -SMALL ,
|
||
labelHashSet * | setPtr = NULL
|
||
) | const |
Check face pyramid volume.
Definition at line 537 of file primitiveMeshCheck.C.
References Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), p, points, and Foam::reduce().
bool checkFaceSkewness | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check face skewness.
Definition at line 621 of file primitiveMeshCheck.C.
References d, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), p, Foam::mathematicalConstant::pi(), points, and Foam::reduce().
bool checkFaceAngles | ( | const bool | report = false ,
|
const scalar | maxSin = 10 ,
|
||
labelHashSet * | setPtr = NULL
|
||
) | const |
Check face angles.
Definition at line 844 of file primitiveMeshCheck.C.
References Foam::asin(), Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, UList< T >::fcIndex(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), p, Foam::mathematicalConstant::pi(), points, Foam::reduce(), Foam::sin(), and List< T >::size().
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 972 of file primitiveMeshCheck.C.
References Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), p, points, Foam::reduce(), and List< T >::size().
bool checkEdgeAlignment | ( | const bool | report, |
const Vector< label > & | directions, | ||
labelHashSet * | setPtr = NULL
|
||
) | const |
Check edge alignment for 1D/2D cases.
Definition at line 1102 of file primitiveMeshCheck.C.
References d, e, Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, forAll, forAllConstIter, Foam::Info, HashSet< Key, Hash >::insert(), HashTable< T, edge, Hash< edge > >::insert(), Foam::mag(), VectorSpace< Vector< Cmpt >, Cmpt, 3 >::nComponents, face::nextLabel(), p, points, HashTable< T, Key, Hash >::resize(), Foam::returnReduce(), and HashTable< T, edge, Hash< edge > >::size().
bool checkPoints | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL
|
||
) | const |
Check for unused points.
Definition at line 766 of file primitiveMeshCheck.C.
References UList< T >::empty(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), pc, and Foam::reduce().
bool checkPointNearness | ( | const bool | report, |
const scalar | reportDistSqr, | ||
labelHashSet * | setPtr = NULL
|
||
) | const |
Check for point-point-nearness,.
e.g. colocated points which may be part of baffles.
Definition at line 32 of file primitiveMeshCheckPointNearness.C.
References Foam::endl(), SortableList< T >::indices(), Foam::Info, HashSet< Key, Hash >::insert(), magSqr(), points, reduce(), List< T >::size(), and Foam::sqrt().
bool checkEdgeLength | ( | const bool | report, |
const scalar | minLenSqr, | ||
labelHashSet * | setPtr = NULL
|
||
) | const |
Check edge length.
Definition at line 31 of file primitiveMeshCheckEdgeLength.C.
References Foam::endl(), f(), UList< T >::fcIndex(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), magSqr(), Foam::max(), Foam::min(), nPoints, points, reduce(), HashTable< T, Key, Hash >::size(), sqr(), Foam::sqrt(), and HashTable< T, Key, Hash >::transfer().
bool checkCellDeterminant | ( | const bool | report = false ,
|
labelHashSet * | setPtr = NULL ,
|
||
const Vector< label > & | solutionD = Vector<label>::one
|
||
) | const |
Check cell determinant.
Definition at line 1894 of file primitiveMeshCheck.C.
References cells, Foam::det(), e, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), VectorSpace< Vector< Cmpt >, Cmpt, 3 >::nComponents, Foam::reduce(), List< T >::size(), Foam::sqr(), SymmTensor< Cmpt >::xx(), SymmTensor< Cmpt >::yy(), SymmTensor< Cmpt >::zero, and SymmTensor< Cmpt >::zz().
bool checkTopology | ( | const bool | report = false
) |
const |
Check mesh topology for correctness.
Returns false for no error.
Definition at line 2059 of file primitiveMeshCheck.C.
References Foam::endl(), and Foam::Info.
bool checkGeometry | ( | const bool | report = false
) |
const |
Check mesh geometry (& implicitly topology) for correctness.
Returns false for no error.
Definition at line 2092 of file primitiveMeshCheck.C.
References Foam::endl(), and Foam::Info.
bool checkMesh | ( | const bool | report = false
) |
const |
Check mesh for correctness. Returns false for no error.
Definition at line 2125 of file primitiveMeshCheck.C.
References Foam::checkGeometry(), Foam::checkTopology(), Foam::endl(), and Foam::Info.
Referenced by attachPolyTopoChanger::attach().
bool checkMeshMotion | ( | const pointField & | newPoints, |
const bool | report = false
|
||
) | const |
Check mesh motion for correctness given motion points.
Definition at line 41 of file primitiveMeshCheckMotion.C.
References Foam::acos(), cells, cellVols, d, Foam::endl(), f(), forAll, Foam::mag(), Foam::min(), Foam::nl, Foam::mathematicalConstant::pi(), Foam::Pout, Foam::sum(), and WarningIn.
Referenced by polyMesh::movePoints().
Foam::scalar setClosedThreshold | ( | const scalar | val ) | [static]
|
Set the closedness ratio warning threshold.
Definition at line 2157 of file primitiveMeshCheck.C.
Foam::scalar setAspectThreshold | ( | const scalar | val ) | [static]
|
Set the aspect ratio warning threshold.
Definition at line 2166 of file primitiveMeshCheck.C.
Foam::scalar setNonOrthThreshold | ( | const scalar | val ) | [static]
|
Set the non-orthogonality warning threshold in degrees.
Definition at line 2175 of file primitiveMeshCheck.C.
Foam::scalar setSkewThreshold | ( | const scalar | val ) | [static]
|
Set the skewness warning threshold as percentage.
of the face area vector
Definition at line 2184 of file primitiveMeshCheck.C.
bool pointInCellBB | ( | const point & | p, |
label | celli | ||
) | const |
Is the point in the cell bounding box.
Definition at line 33 of file primitiveMeshFindCell.C.
References primitiveMesh::cellCentres(), primitiveMesh::cells(), Foam::distance(), f(), primitiveMesh::faces(), forAll, Foam::mag(), Foam::max(), Foam::min(), Vector< Cmpt >::one, and primitiveMesh::points().
bool pointInCell | ( | const point & | p, |
label | celli | ||
) | const |
Is the point in the cell.
Definition at line 65 of file primitiveMeshFindCell.C.
Foam::label findNearestCell | ( | const point & | location ) | const |
Find the cell with the nearest cell centre to location.
Definition at line 91 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 114 of file primitiveMeshFindCell.C.
Referenced by refinementParameters::findCells(), probes::findElements(), sampledSet::getTrackingPoint(), spray::inject(), and explicitSource::setSelectedCellsFromPoints().
void printAllocated | ( | ) | const |
Print a list of all the currently allocated mesh data.
Definition at line 32 of file primitiveMeshClear.C.
References Foam::endl(), and Foam::Pout.
bool hasCellShapes | ( | ) | const [inline]
|
Definition at line 106 of file primitiveMeshI.H.
bool hasEdges | ( | ) | const [inline]
|
Definition at line 112 of file primitiveMeshI.H.
bool hasCellCells | ( | ) | const [inline]
|
Definition at line 118 of file primitiveMeshI.H.
bool hasEdgeCells | ( | ) | const [inline]
|
Definition at line 124 of file primitiveMeshI.H.
bool hasPointCells | ( | ) | const [inline]
|
Definition at line 130 of file primitiveMeshI.H.
bool hasCells | ( | ) | const [inline]
|
Definition at line 136 of file primitiveMeshI.H.
bool hasEdgeFaces | ( | ) | const [inline]
|
Definition at line 142 of file primitiveMeshI.H.
bool hasPointFaces | ( | ) | const [inline]
|
Definition at line 148 of file primitiveMeshI.H.
bool hasCellEdges | ( | ) | const [inline]
|
Definition at line 154 of file primitiveMeshI.H.
bool hasFaceEdges | ( | ) | const [inline]
|
Definition at line 160 of file primitiveMeshI.H.
bool hasPointEdges | ( | ) | const [inline]
|
Definition at line 166 of file primitiveMeshI.H.
bool hasPointPoints | ( | ) | const [inline]
|
Definition at line 172 of file primitiveMeshI.H.
bool hasCellPoints | ( | ) | const [inline]
|
Definition at line 178 of file primitiveMeshI.H.
bool hasCellCentres | ( | ) | const [inline]
|
Definition at line 184 of file primitiveMeshI.H.
bool hasFaceCentres | ( | ) | const [inline]
|
Definition at line 190 of file primitiveMeshI.H.
bool hasCellVolumes | ( | ) | const [inline]
|
Definition at line 196 of file primitiveMeshI.H.
bool hasFaceAreas | ( | ) | const [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 112 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 59 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 120 of file primitiveMeshPointCells.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), forAll, 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 103 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 135 of file primitiveMeshPointPoints.C.
const Foam::labelList & faceEdges | ( | const label | faceI, |
DynamicList< label > & | storage | ||
) | const |
faceEdges using pointFaces, edges, pointEdges
Definition at line 584 of file primitiveMeshEdges.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::capacity(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), forAll, face::nextLabel(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::setCapacity(), and List< T >::size().
const Foam::labelList & faceEdges | ( | const label | faceI ) | const |
Definition at line 621 of file primitiveMeshEdges.C.
const Foam::labelList & edgeFaces | ( | const label | edgeI, |
DynamicList< label > & | storage | ||
) | const |
edgeFaces using pointFaces, edges, pointEdges
Definition at line 58 of file primitiveMeshEdgeFaces.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), 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 58 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 628 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 670 of file primitiveMeshEdges.C.
void clearGeom | ( | ) |
Clear geometry.
Reimplemented in polyMesh.
Definition at line 126 of file primitiveMeshClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearGeom().
void clearAddressing | ( | ) |
Clear topological data.
Reimplemented in polyMesh.
Definition at line 142 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.
Reimplemented in fvMesh, and polyMesh.
Definition at line 171 of file primitiveMeshClear.C.
const unsigned cellsPerEdge_ = 4 [static]
|
Estimated number of cells per edge.
Definition at line 308 of file primitiveMesh.H.
const unsigned cellsPerPoint_ = 8 [static]
|
Estimated number of cells per point.
Definition at line 311 of file primitiveMesh.H.
const unsigned facesPerCell_ = 6 [static]
|
Estimated number of faces per cell.
Definition at line 314 of file primitiveMesh.H.
const unsigned facesPerEdge_ = 4 [static]
|
Estimated number of faces per edge.
Definition at line 317 of file primitiveMesh.H.
const unsigned facesPerPoint_ = 12 [static]
|
Estimated number of faces per point.
Definition at line 320 of file primitiveMesh.H.
const unsigned edgesPerCell_ = 12 [static]
|
Estimated number of edges per cell.
Definition at line 323 of file primitiveMesh.H.
const unsigned edgesPerFace_ = 4 [static]
|
Estimated number of edges per cell.
Definition at line 326 of file primitiveMesh.H.
const unsigned edgesPerPoint_ = 6 [static]
|
Estimated number of edges per point.
Definition at line 329 of file primitiveMesh.H.
const unsigned pointsPerCell_ = 8 [static]
|
Estimated number of points per cell.
Definition at line 332 of file primitiveMesh.H.
const unsigned pointsPerFace_ = 4 [static]
|
Estimated number of points per face.
Definition at line 335 of file primitiveMesh.H.