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... | |
virtual bool | checkUpperTriangular (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face ordering. More... | |
virtual bool | checkCellsZipUp (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check cell zip-up. More... | |
virtual bool | checkFaceVertices (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check uniqueness of face vertices. More... | |
virtual bool | checkPoints (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for unused points. More... | |
virtual bool | checkFaceFaces (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face-face connectivity. More... | |
virtual bool | checkClosedBoundary (const bool report=false) const |
Check boundary for closedness. More... | |
virtual 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... | |
virtual bool | checkFaceAreas (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative face areas. More... | |
virtual bool | checkCellVolumes (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for negative cell volumes. More... | |
virtual bool | checkFaceOrthogonality (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for non-orthogonality. More... | |
virtual bool | checkFacePyramids (const bool report=false, const scalar minPyrVol=-small, labelHashSet *setPtr=nullptr) const |
Check face pyramid volume. More... | |
virtual bool | checkFaceSkewness (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check face skewness. More... | |
virtual bool | checkFaceAngles (const bool report=false, const scalar maxSin=10, labelHashSet *setPtr=nullptr) const |
Check face angles. More... | |
virtual bool | checkFaceFlatness (const bool report, const scalar warnFlatness, labelHashSet *setPtr) const |
Check face warpage: decompose face and check ratio between. More... | |
virtual bool | checkPointNearness (const bool report, const scalar reportDistSqr, labelHashSet *setPtr=nullptr) const |
Check for point-point-nearness,. More... | |
virtual bool | checkEdgeLength (const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr) const |
Check edge length. More... | |
virtual bool | checkConcaveCells (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check for concave cells by the planes of faces. More... | |
virtual bool | checkTopology (const bool report=false) const |
Check mesh topology for correctness. More... | |
virtual bool | checkGeometry (const bool report=false) const |
Check mesh geometry (& implicitly topology) for correctness. More... | |
virtual bool | checkMesh (const bool report=false) const |
Check mesh for correctness. Returns false for no error. 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... | |
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 | checkClosedBoundary (const vectorField &, const bool, const PackedBoolList &) const |
Check boundary for closedness. More... | |
bool | checkClosedCells (const vectorField &faceAreas, const scalarField &cellVolumes, const bool report, labelHashSet *setPtr, labelHashSet *aspectSetPtr, const Vector< label > &meshD) const |
Check cells for closedness. More... | |
bool | checkFaceAreas (const vectorField &faceAreas, const bool report, const bool detailedReport, labelHashSet *setPtr) const |
Check for negative face areas. More... | |
bool | checkCellVolumes (const scalarField &vols, const bool report, const bool detailedReport, labelHashSet *setPtr) const |
Check for negative cell volumes. More... | |
bool | checkFaceOrthogonality (const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const |
Check for non-orthogonality. More... | |
bool | checkFacePyramids (const pointField &points, const vectorField &ctrs, const bool report, const bool detailedReport, const scalar minPyrVol, labelHashSet *setPtr) const |
Check face pyramid volume. More... | |
bool | checkFaceSkewness (const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const |
Check face skewness. More... | |
bool | checkFaceAngles (const pointField &points, const vectorField &faceAreas, const bool report, const scalar maxDeg, labelHashSet *setPtr) const |
Check face angles. More... | |
bool | checkFaceFlatness (const pointField &points, const vectorField &faceCentres, const vectorField &faceAreas, const bool report, const scalar warnFlatness, labelHashSet *setPtr) const |
Check face warpage. More... | |
bool | checkConcaveCells (const vectorField &fAreas, const pointField &fCentres, const bool report, labelHashSet *setPtr) const |
Check for concave cells by the planes of faces. 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.
|
protected |
Check if all points on face are shared with another face.
Definition at line 1371 of file primitiveMeshCheck.C.
References forAllConstIter, HashSet< Key, Hash >::insert(), and List< T >::size().
|
protected |
Check that shared points are in consecutive order.
Definition at line 1412 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().
|
protected |
Check boundary for closedness.
Definition at line 45 of file primitiveMeshCheck.C.
References Foam::primitiveMeshCheck::closedThreshold, Foam::cmptMag(), Foam::cmptMax(), Foam::endl(), Foam::Info, InfoInFunction, Foam::mag(), primitiveMesh::nInternalFaces(), Foam::reduce(), PackedList< nBits >::size(), List< T >::size(), and Foam::Zero.
|
protected |
Check cells for closedness.
Definition at line 102 of file primitiveMeshCheck.C.
References Foam::primitiveMeshCheck::aspectThreshold, Foam::constant::universal::c, primitiveMeshTools::cellClosedness(), cells, Foam::primitiveMeshCheck::closedThreshold, Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::nl, and Foam::reduce().
|
protected |
Check for negative face areas.
Definition at line 234 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
|
protected |
Check for negative cell volumes.
Definition at line 312 of file primitiveMeshCheck.C.
References Foam::endl(), forAll, Foam::gSum(), Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
|
protected |
Check for non-orthogonality.
Definition at line 382 of file primitiveMeshCheck.C.
References Foam::acos(), Foam::cos(), Foam::degToRad(), Foam::endl(), primitiveMeshTools::faceOrthogonality(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::min(), Foam::primitiveMeshCheck::nonOrthThreshold, Foam::radToDeg(), Foam::reduce(), List< T >::size(), and Foam::sum().
|
protected |
Check face pyramid volume.
Definition at line 492 of file primitiveMeshCheck.C.
References cells, Foam::endl(), f(), primitiveMeshTools::facePyramidVolume(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::nl, points, Foam::Pout, and Foam::reduce().
|
protected |
Check face skewness.
Definition at line 594 of file primitiveMeshCheck.C.
References Foam::endl(), primitiveMeshTools::faceSkewness(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), points, Foam::reduce(), and Foam::primitiveMeshCheck::skewThreshold.
|
protected |
Check face angles.
Allows a slight non-convexity. E.g. maxDeg = 10 allows for angles < 190 (or 10 degrees concavity) (if truly concave and points not visible from face centre the face-pyramid check in checkMesh will fail)
Definition at line 667 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().
|
protected |
Check face warpage.
Definition at line 747 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().
|
protected |
Check for concave cells by the planes of faces.
Definition at line 852 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::primitiveMeshCheck::planarCosAngle, and Foam::reduce().
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::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), faceZone::checkParallelSync(), Foam::polyMeshCheck::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::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), motionSmootherAlgo::checkMesh(), faceZone::checkParallelSync(), Foam::polyMeshCheck::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::polyMeshCheck::checkCellDeterminant(), Foam::polyMeshCheck::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(), 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::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), Foam::polyMeshCheck::checkNonOrtho(), faceZone::checkParallelSync(), Foam::polyMeshCheck::checkVolRatio(), outletStabilised< Type >::correction(), decompositionMethod::decompose(), Foam::meshTools::faceOnCell(), primitiveMeshTools::facePyramidVolume(), Foam::polyMeshCheck::getAffectedCells(), Foam::meshTools::getSharedFace(), meshTriangulation::meshTriangulation(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), particle::onBoundaryFace(), particle::onInternalFace(), Foam::meshTools::otherCell(), perfectInterface::setRefinement(), fvMatrix< Type >::setValue(), and outletStabilised< Type >::weights().
|
virtual |
Check face ordering.
Definition at line 965 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().
|
virtual |
Check cell zip-up.
Definition at line 1128 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().
|
virtual |
Check uniqueness of face vertices.
Definition at line 1226 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().
|
virtual |
Check for unused points.
Definition at line 1299 of file primitiveMeshCheck.C.
References UList< T >::empty(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), and Foam::reduce().
|
virtual |
Check face-face connectivity.
Definition at line 1573 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().
|
virtual |
Check boundary for closedness.
Definition at line 1685 of file primitiveMeshCheck.C.
|
virtual |
Check cells for closedness.
Definition at line 1691 of file primitiveMeshCheck.C.
|
virtual |
Check for negative face areas.
Definition at line 1711 of file primitiveMeshCheck.C.
|
virtual |
Check for negative cell volumes.
Definition at line 1727 of file primitiveMeshCheck.C.
|
virtual |
Check for non-orthogonality.
Reimplemented in polyMesh.
Definition at line 1743 of file primitiveMeshCheck.C.
|
virtual |
Check face pyramid volume.
Definition at line 1759 of file primitiveMeshCheck.C.
References Foam::polyMeshCheck::checkFacePyramids(), and points.
|
virtual |
Check face skewness.
Reimplemented in polyMesh.
Definition at line 1778 of file primitiveMeshCheck.C.
References Foam::polyMeshCheck::checkFaceSkewness(), and points.
|
virtual |
Check face angles.
Definition at line 1796 of file primitiveMeshCheck.C.
References Foam::polyMeshCheck::checkFaceAngles(), and points.
|
virtual |
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 1814 of file primitiveMeshCheck.C.
References Foam::polyMeshCheck::checkFaceFlatness(), and points.
|
virtual |
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().
|
virtual |
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().
|
virtual |
Check for concave cells by the planes of faces.
Definition at line 1833 of file primitiveMeshCheck.C.
|
virtual |
Check mesh topology for correctness.
Returns false for no error.
Definition at line 1849 of file primitiveMeshCheck.C.
References Foam::endl(), and Foam::Info.
|
virtual |
Check mesh geometry (& implicitly topology) for correctness.
Returns false for no error.
Definition at line 1881 of file primitiveMeshCheck.C.
References Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::endl(), and Foam::Info.
|
virtual |
Check mesh for correctness. Returns false for no error.
Definition at line 1914 of file primitiveMeshCheck.C.
References Foam::checkGeometry(), Foam::checkTopology(), Foam::endl(), Foam::Info, and InfoInFunction.
Referenced by polyMesh::polyMesh().
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 385 of file primitiveMesh.H.
|
static |
Estimated number of cells per point.
Definition at line 388 of file primitiveMesh.H.
|
static |
Estimated number of faces per cell.
Definition at line 391 of file primitiveMesh.H.
|
static |
Estimated number of faces per edge.
Definition at line 394 of file primitiveMesh.H.
|
static |
Estimated number of faces per point.
Definition at line 397 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 400 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 403 of file primitiveMesh.H.
|
static |
Estimated number of edges per point.
Definition at line 406 of file primitiveMesh.H.
|
static |
Estimated number of points per cell.
Definition at line 409 of file primitiveMesh.H.
|
static |
Estimated number of points per face.
Definition at line 412 of file primitiveMesh.H.