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... | |
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 | resetGeometry (pointField &&faceCentres, pointField &&faceAreas, pointField &&cellCentres, scalarField &&cellVolumes) |
Reset the local geometry. More... | |
virtual bool | init (const bool doInit) |
Initialise all non-demand-driven data. More... | |
label | nPoints () const noexcept |
Number of mesh points. More... | |
label | nEdges () const |
Number of mesh edges. More... | |
label | nFaces () const noexcept |
Number of mesh faces. More... | |
label | nCells () const noexcept |
Number of mesh cells. More... | |
label | nInternalFaces () const noexcept |
Number of internal faces. More... | |
label | nBoundaryFaces () const noexcept |
Number of boundary faces (== nFaces - nInternalFaces) More... | |
label | nInternalPoints () const noexcept |
Points not on boundary. More... | |
label | nInternal0Edges () const |
Internal edges (i.e. not on boundary face) using no boundary point. 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... | |
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 |
void | movePoints (const pointField &p, const pointField &oldP) |
Move points. More... | |
bool | isInternalFace (const label faceIndex) const noexcept |
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... | |
boundBox | cellBb (const label celli) const |
The bounding box for given cell index. 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 noexcept |
bool | hasEdges () const noexcept |
bool | hasCellCells () const noexcept |
bool | hasEdgeCells () const noexcept |
bool | hasPointCells () const noexcept |
bool | hasCells () const noexcept |
bool | hasEdgeFaces () const noexcept |
bool | hasPointFaces () const noexcept |
bool | hasCellEdges () const noexcept |
bool | hasFaceEdges () const noexcept |
bool | hasPointEdges () const noexcept |
bool | hasPointPoints () const noexcept |
bool | hasCellPoints () const noexcept |
bool | hasCellCentres () const noexcept |
bool | hasCellVolumes () const noexcept |
bool | hasFaceCentres () const noexcept |
bool | hasFaceAreas () const noexcept |
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, labelHashSet &, 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, labelHashSet &, DynamicList< label > &) const |
cellEdges using cells, pointFaces, edges, pointEdges More... | |
const labelList & | cellEdges (const label celli) const |
virtual void | updateGeom () |
Update all geometric data. More... | |
void | clearGeom () |
Clear geometry. More... | |
void | clearCellGeom () |
Clear cell-based geometry only. More... | |
void | clearAddressing () |
Clear topological data. More... | |
void | clearOut () |
Clear all geometry and addressing unnecessary for CFD. 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 scalar | setClosedThreshold (const scalar) |
Set the closedness ratio warning threshold. More... | |
static scalar | setAspectThreshold (const scalar) |
Set the aspect ratio warning threshold. More... | |
static scalar | setNonOrthThreshold (const scalar) |
Set the non-orthogonality warning threshold in degrees. More... | |
static scalar | setSkewThreshold (const scalar) |
Set the skewness warning threshold as percentage. 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 | calcCellCentresAndVols () const |
Calculate cell centres and volumes. More... | |
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 &areas, const bool report, const bitSet &internalOrCoupledFaces) 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... | |
Static Protected Attributes | |
static scalar | closedThreshold_ = 1.0e-6 |
Static data to control mesh checking. More... | |
static scalar | aspectThreshold_ = 1000 |
Aspect ratio warning threshold. More... | |
static scalar | nonOrthThreshold_ = 70 |
Non-orthogonality warning threshold in deg. More... | |
static scalar | skewThreshold_ = 4 |
Skewness warning threshold. More... | |
static scalar | planarCosAngle_ = 1.0e-6 |
Threshold where faces are considered coplanar. More... | |
Cell-face mesh analysis engine.
Definition at line 75 of file primitiveMesh.H.
|
protected |
Construct null.
Definition at line 34 of file primitiveMesh.C.
primitiveMesh | ( | const label | nPoints, |
const label | nInternalFaces, | ||
const label | nFaces, | ||
const label | nCells | ||
) |
Construct from components.
Definition at line 72 of file primitiveMesh.C.
|
virtual |
Destructor.
Definition at line 113 of file primitiveMesh.C.
|
protected |
Calculate face centres and areas.
Definition at line 35 of file primitiveMeshFaceCentresAndAreas.C.
References Foam::abort(), Foam::ensightOutput::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, primitiveMeshTools::makeFaceCentresAndAreas(), primitiveMesh::nFaces(), primitiveMesh::points(), and Foam::Pout.
|
protected |
Calculate cell centres and volumes.
Definition at line 32 of file primitiveMeshCellCentresAndVols.C.
References Foam::abort(), cellVols, Foam::ensightOutput::debug, Foam::endl(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorInFunction, primitiveMeshTools::makeCellCentresAndVols(), primitiveMesh::nCells(), Foam::Pout, and Foam::Zero.
|
protected |
Calculate edge vectors.
|
protected |
Check if all points on face are shared with another face.
Definition at line 1294 of file primitiveMeshCheck.C.
References forAllConstIters(), HashSet< Key, Hash >::insert(), and UList< T >::size().
|
protected |
Check that shared points are in consecutive order.
Definition at line 1335 of file primitiveMeshCheck.C.
References UList< T >::fcIndex(), face::find(), forAll, forAllConstIters(), HashSet< Key, Hash >::insert(), Foam::labelMax, UList< T >::rcIndex(), and UList< T >::size().
|
protected |
Check boundary for closedness.
Definition at line 42 of file primitiveMeshCheck.C.
References Foam::cmptMag(), Foam::cmptMax(), Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), Foam::Info, Foam::mag(), Foam::reduce(), UList< T >::size(), PackedList< Width >::size(), and Foam::Zero.
Referenced by primitiveMesh::checkClosedBoundary().
|
protected |
Check cells for closedness.
Definition at line 93 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::nl, and Foam::reduce().
|
protected |
Check for negative face areas.
Definition at line 221 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
|
protected |
Check for negative cell volumes.
Definition at line 294 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), forAll, Foam::gSum(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().
|
protected |
Check for non-orthogonality.
Definition at line 359 of file primitiveMeshCheck.C.
References Foam::acos(), Foam::cos(), Foam::ensightOutput::debug, DebugInFunction, Foam::degToRad(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::min(), Foam::radToDeg(), Foam::reduce(), returnReduce(), UList< T >::size(), and Foam::sum().
|
protected |
Check face pyramid volume.
Definition at line 462 of file primitiveMeshCheck.C.
References cells, Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::nl, points, Foam::Pout, and Foam::reduce().
|
protected |
Check face skewness.
Definition at line 559 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), points, and Foam::reduce().
|
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 627 of file primitiveMeshCheck.C.
References Foam::asin(), Foam::ensightOutput::debug, DebugInFunction, Foam::degToRad(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), points, Foam::radToDeg(), Foam::reduce(), and Foam::sin().
|
protected |
Check face warpage.
Definition at line 702 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, 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 802 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), 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 197 of file primitiveMesh.C.
References Foam::ensightOutput::debug, Foam::endl(), nPoints, and Foam::Pout.
Referenced by adjointBoundaryCondition< Type >::setBoundaryContributionPtr(), mappedPatchBase::updateMeshTime(), and mappedPatchBase::updateSampleMeshTime().
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 253 of file primitiveMesh.C.
References nPoints.
void resetGeometry | ( | pointField && | faceCentres, |
pointField && | faceAreas, | ||
pointField && | cellCentres, | ||
scalarField && | cellVolumes | ||
) |
Reset the local geometry.
Definition at line 274 of file primitiveMesh.C.
References Foam::abort(), Foam::ensightOutput::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, and Foam::Pout.
Referenced by stabilisedFvGeometryScheme::movePoints(), highAspectRatioFvGeometryScheme::movePoints(), solidBodyFvGeometryScheme::movePoints(), and averageNeighbourFvGeometryScheme::movePoints().
|
inlinevirtual |
Initialise all non-demand-driven data.
Reimplemented in polyMesh, interfaceTrackingFvMesh, fvMesh, dynamicRefineFvMesh, dynamicFvMesh, movingConeTopoFvMesh, dynamicMotionSolverFvMeshAMI, dynamicMotionSolverFvMesh, dynamicMotionSolverTopoFvMesh, dynamicMultiMotionSolverFvMesh, and dynamicMotionSolverListFvMesh.
Definition at line 617 of file primitiveMesh.H.
Referenced by polyMesh::init().
|
inlinenoexcept |
Number of mesh points.
Definition at line 30 of file primitiveMeshI.H.
Referenced by fvMeshAdder::add(), polyMeshAdder::add(), motionSmootherAlgo::avg(), polyTopoChange::changeMesh(), motionSmootherAlgo::checkMesh(), pointZone::checkParallelSync(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), distanceSurface::createGeometry(), Foam::createReconstructMap(), displacementInterpolationMotionSolver::curPoints(), edgeVertex::edgeToEVert(), polyMeshFilter::filterEdges(), edgeVertex::getEdge(), Foam::getMeshPointRef(), globalIndexAndTransform::globalIndexAndTransform(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), dynamicMultiMotionSolverFvMesh::init(), edgeVertex::isEdge(), localPointRegion::localPointRegion(), polyTopoChange::makeMesh(), pointBitSet::maxSize(), pointSet::maxSize(), pointZoneSet::maxSize(), primitiveMesh::pointFaces(), points0MotionSolver::points0MotionSolver(), pointSet::pointSet(), parseDriver::pointSize(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), fvMeshDistribute::printMeshInfo(), pointSet::readContents(), isoAlpha::reconstruct(), processorMeshes::reconstructPoints(), motionSmootherAlgo::setDisplacement(), Foam::simpleGeometricFilter(), pointMesh::size(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), hexRef8Data::sync(), pointSet::sync(), syncTools::syncPointList(), weightedPosition::syncPoints(), meshRefinement::testSyncPointList(), trackingInverseDistance::update(), inverseDistance::update(), and edgeVertex::vertToEVert().
|
inline |
Number of mesh edges.
Definition at line 60 of file primitiveMeshI.H.
Referenced by Foam::createReconstructMap(), primitiveMesh::edgeCells(), primitiveMesh::edgeFaces(), edgeVertex::edgeToEVert(), directionInfo::edgeToFaceIndex(), syncTools::getMasterEdges(), addPatchCellLayer::globalEdgeFaces(), edgeVertex::isEdge(), syncTools::syncEdgeList(), and faBoundaryMesh::whichPatch().
|
inlinenoexcept |
Number of mesh faces.
Definition at line 83 of file primitiveMeshI.H.
Referenced by fvMeshAdder::add(), polyMeshAdder::add(), snappyLayerDriver::addLayers(), meshRefinement::addPatch(), treeDataFace::boxes(), holeToFace::calcClosure(), primitiveMesh::calcFaceCentresAndAreas(), waveMethod::calculate(), polyTopoChange::changeMesh(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkVolRatio(), wallDistAddressing::correct(), Foam::createReconstructMap(), structuredDecomp::decompose(), decompositionMethod::decompose(), snappyLayerDriver::doLayers(), snappySnapDriver::doSnap(), treeDataFace::empty(), faceSet::faceSet(), faceZoneSet::faceZoneSet(), fvFieldReconstructor::fvFieldReconstructor(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), marchingCells::initialise(), polyTopoChange::makeMesh(), mappedPatchFieldBase< scalar >::mappedField(), faceBitSet::maxSize(), faceBoolSet::maxSize(), faceSet::maxSize(), faceZoneSet::maxSize(), snappyLayerDriver::mergePatchFacesUndo(), stabilisedFvGeometryScheme::movePoints(), snappySnapDriver::preSmoothPatch(), fvMeshDistribute::printMeshInfo(), faceSet::readContents(), regionSplit::regionSplit(), snappySnapDriver::repatchToSurface(), snappySnapDriver::scaleMesh(), decompositionMethod::setConstraints(), treeDataFace::size(), meshRefinement::subsetBaffles(), faceSet::sync(), faceZoneSet::sync(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), wallBoundedStreamLine::track(), and polyBoundaryMesh::whichPatchFace().
|
inlinenoexcept |
Number of mesh cells.
Definition at line 89 of file primitiveMeshI.H.
Referenced by fvMeshAdder::add(), polyMeshAdder::add(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), topODesignVariables::applyFixedValues(), treeDataCell::boxes(), nearWallFields::calcAddressing(), primitiveMesh::calcCellCentresAndVols(), holeToFace::calcClosure(), waveMethod::calculate(), cellCuts::cellCuts(), cellSet::cellSet(), cellZoneSet::cellZoneSet(), polyTopoChange::changeMesh(), ensightCells::classify(), drippingInjection::correct(), wallDistAddressing::correct(), Foam::createReconstructMap(), structuredDecomp::decompose(), noDecomp::decompose(), randomDecomp::decompose(), metisLikeDecomp::decompose(), ptscotchDecomp::decompose(), decompositionMethod::decompose(), refinementHistory::distribute(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), treeDataCell::empty(), meshRefinement::findRegions(), fvFieldReconstructor::fvFieldReconstructor(), topOSource::getSource(), cellCellStencil::globalCellCells(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), isoSurfaceTopo::isoSurfaceTopo(), polyTopoChange::makeMesh(), mappedPatchFieldBase< scalar >::mappedField(), meshToMesh::mapSrcToTgt(), meshToMesh::mapTgtToSrc(), trackingInverseDistance::markDonors(), inverseDistance::markDonors(), meshToMeshMethod::maskCells(), cellBitSet::maxSize(), cellZoneSet::maxSize(), cellSet::maxSize(), stabilisedFvGeometryScheme::movePoints(), cellTable::operator=(), cuttingPlane::performCut(), polyMesh::polyMesh(), fvMeshDistribute::printMeshInfo(), cellSet::readContents(), isoAlpha::reconstruct(), Foam::reconstructLagrangian(), refinementHistory::refinementHistory(), manualRenumber::renumber(), SloanRenumber::renumber(), zoltanRenumber::renumber(), randomRenumber::renumber(), noRenumber::renumber(), cellBitSet::select(), levelSetDesignVariables::setActiveDesignVariables(), Foam::simpleGeometricFilter(), treeDataCell::size(), parseDriver::size(), Foam::sumNeighbours(), reconstructionSchemes::surface(), syncTools::swapBoundaryCellList(), hexRef8Data::sync(), cellVolumeWeight::update(), oversetFvMeshBase::updateAddressing(), Sampled< Type >::value(), meshToMeshMethod::writeConnectivity(), adjointkOmegaSST::zeroFirstCell(), and cellCellStencil::zoneID().
|
inlinenoexcept |
Number of internal faces.
Definition at line 71 of file primitiveMeshI.H.
Referenced by polyMeshAdder::add(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), volPointInterpolationAdjoint::calcBoundaryAddressing(), Foam::calcCellCellsImpl(), polyDualMesh::calcFeatures(), deltaBoundary::cellCenters_d(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkDefinition(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), decompositionMethod::decompose(), snappyLayerDriver::doLayers(), faceCoupleInfo::faceCoupleInfo(), localPointRegion::findDuplicateFacePairs(), localPointRegion::findDuplicateFaces(), boundaryMesh::getNearest(), cellCellStencil::globalCellCells(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), volPointInterpolationAdjoint::interpolateSensitivitiesField(), isoSurfaceTopo::isoSurfaceTopo(), volPointInterpolationAdjoint::makeBoundaryWeights(), fvMeshAdder::MapSurfaceField(), fvMeshTools::newMesh(), polyMeshAdder::patchFacePairs(), boundaryMesh::patchify(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), uniformBin::processField(), SloanRenumber::renumber(), fvMeshSubset::reset(), fvSurfaceMapper::size(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), and polyBoundaryMesh::whichPatchFace().
|
inlinenoexcept |
Number of boundary faces (== nFaces - nInternalFaces)
Definition at line 77 of file primitiveMeshI.H.
Referenced by polyDualMesh::calcFeatures(), meshRefinement::checkCoupledFaceZones(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), wallDistAddressing::correct(), localPointRegion::findDuplicateFacePairs(), boundaryMesh::getNearest(), volPointInterpolationAdjoint::interpolateSensitivitiesField(), boundaryMesh::patchify(), boundaryMesh::read(), SloanRenumber::renumber(), mappedPatchBase::sampleSize(), syncTools::swapBoundaryCellList(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), triSurfaceTools::triangulate(), and triSurfaceTools::triangulateFaceCentre().
|
inlinenoexcept |
Points not on boundary.
Definition at line 24 of file primitiveMeshI.H.
|
inline |
Internal edges (i.e. not on boundary face) using no boundary point.
Definition at line 36 of file primitiveMeshI.H.
|
inline |
Internal edges using 0 or 1 boundary point.
Definition at line 44 of file primitiveMeshI.H.
|
inline |
Internal edges using 0,1 or 2 boundary points.
Definition at line 52 of file primitiveMeshI.H.
Referenced by faBoundaryMesh::checkDefinition(), and leastSquaresEdgeInterpolation< Type >::interpolate().
|
pure virtual |
Return mesh points.
Implemented in polyMesh.
Referenced by primitiveMesh::calcFaceCentresAndAreas(), primitiveMesh::cellBb(), boundaryMesh::getNearest(), and treeDataFace::findIntersectOp::operator()().
|
pure virtual |
Return faces.
Implemented in polyMesh.
Referenced by primitiveMesh::cellBb(), boundaryMesh::getNearest(), treeDataFace::findIntersectOp::operator()(), treeDataFace::operator[](), and primitiveMesh::pointFaces().
|
pure virtual |
Face face-owner addressing.
Implemented in polyMesh.
|
pure virtual |
Face face-neighbour addressing.
Implemented in polyMesh.
|
pure virtual |
Return old points for mesh motion.
Implemented in polyMesh.
const Foam::cellShapeList & cellShapes | ( | ) | const |
Return cell shapes.
Definition at line 325 of file primitiveMesh.C.
const Foam::edgeList & edges | ( | ) | const |
Return mesh edges. Uses calcEdges.
Definition at line 510 of file primitiveMeshEdges.C.
Referenced by motionSmootherAlgo::avg(), addPatchCellLayer::calcExtrudeInfo(), polyDualMesh::calcFeatures(), geomCellLooper::cut(), topoCellLooper::cut(), directionInfo::edgeToFaceIndex(), searchableExtrudedCircle::findParametricNearest(), searchableExtrudedCircle::getNormal(), addPatchCellLayer::globalEdgeFaces(), leastSquaresEdgeInterpolation< Type >::interpolate(), boundaryMesh::setFeatureEdges(), meshCutAndRemove::setRefinement(), meshCutter::setRefinement(), syncTools::syncEdgeList(), directionInfo::updateCell(), externalPointEdgePoint::updateEdge(), and pointEdgePoint::updateEdge().
|
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 26 of file primitiveMeshCells.C.
References forAll, Foam::max(), List< T >::setSize(), UList< T >::size(), and Foam::Zero.
|
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 122 of file primitiveMesh.C.
References f(), forAll, nPoints, List< T >::resize_nocopy(), and UList< T >::size().
const Foam::labelListList & cellCells | ( | ) | const |
Definition at line 94 of file primitiveMeshCellCells.C.
Referenced by meshToMeshMethod::appendNbrCells().
const Foam::labelListList & edgeCells | ( | ) | const |
Definition at line 27 of file primitiveMeshEdgeCells.C.
References Foam::abort(), primitiveMesh::cellEdges(), Foam::ensightOutput::debug, Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
const Foam::labelListList & pointCells | ( | ) | const |
Definition at line 185 of file primitiveMeshPointCells.C.
Referenced by deltaBoundary::cellCenters_d(), cellDistFuncs::correctBoundaryPointCells(), and volPointInterpolation::interpolateDimensionedInternalField().
const Foam::cellList & cells | ( | ) | const |
Definition at line 131 of file primitiveMeshCells.C.
Referenced by treeDataCell::bounds(), Foam::boxesImpl(), waveMethod::calculate(), primitiveMesh::cellBb(), deltaBoundary::cellCenters_d(), manifoldCellsMeshObject::cells(), layerAdditionRemoval::changeTopology(), primitiveMeshGeometry::checkCellDeterminant(), polyMeshGeometry::checkCellDeterminant(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), inversePointDistanceDiffusivity::correct(), outletStabilised< Type >::correction(), wallBoundedParticle::crossEdgeConnectedFace(), geomCellLooper::cut(), topoCellLooper::cut(), probes::findElements(), sampledSet::findNearFace(), cellCellStencil::globalCellCells(), dynamicMultiMotionSolverFvMesh::init(), wedgeMatcher::isA(), prismMatcher::isA(), tetWedgeMatcher::isA(), waWallFunctionFvPatchScalarField::manipulateMatrix(), Foam::markGrowFaceCellFace(), degenerateMatcher::match(), wedgeMatcher::matches(), tetWedgeMatcher::matches(), prismMatcher::matches(), tetMatcher::matches(), hexMatcher::matches(), pyrMatcher::matches(), treeDataCell::findIntersectOp::operator()(), polyMesh::readUpdate(), fvMeshSubset::reset(), cyclicACMIPolyPatch::scalePatchFaceAreas(), meshCutter::setRefinement(), hexMatcher::test(), tetMatcher::test(), pyrMatcher::test(), streamLine::track(), outletStabilised< Type >::weights(), and meshToMeshMethod::writeConnectivity().
const Foam::labelListList & edgeFaces | ( | ) | const |
Definition at line 27 of file primitiveMeshEdgeFaces.C.
References Foam::abort(), Foam::ensightOutput::debug, Foam::endl(), primitiveMesh::faceEdges(), Foam::FatalError, FatalErrorInFunction, Foam::invertManyToMany(), primitiveMesh::nEdges(), and Foam::Pout.
Referenced by addPatchCellLayer::calcExtrudeInfo(), boundaryMesh::setFeatureEdges(), meshCutAndRemove::setRefinement(), and meshCutter::setRefinement().
const Foam::labelListList & pointFaces | ( | ) | const |
Definition at line 26 of file primitiveMeshPointFaces.C.
References Foam::ensightOutput::debug, Foam::endl(), primitiveMesh::faces(), Foam::invertManyToMany(), primitiveMesh::nPoints(), and Foam::Pout.
Referenced by deltaBoundary::cellCenters_d(), motionSmootherAlgo::checkMesh(), decompositionMethod::decompose(), leastSquaresEdgeInterpolation< Type >::interpolate(), and perfectInterface::setRefinement().
const Foam::labelListList & cellEdges | ( | ) | const |
Definition at line 114 of file primitiveMeshCellEdges.C.
Referenced by polyDualMesh::calcFeatures(), geomCellLooper::cut(), primitiveMesh::edgeCells(), and meshCutter::setRefinement().
const Foam::labelListList & faceEdges | ( | ) | const |
Definition at line 533 of file primitiveMeshEdges.C.
References Foam::ensightOutput::debug, Foam::endl(), f(), UList< T >::fcIndex(), forAll, Foam::Pout, List< T >::setSize(), and UList< T >::size().
Referenced by primitiveMesh::edgeFaces(), faMatrix< Type >::setValuesFromList(), and directionInfo::updateCell().
const Foam::labelListList & pointEdges | ( | ) | const |
Definition at line 521 of file primitiveMeshEdges.C.
Referenced by addPatchCellLayer::calcExtrudeInfo(), searchableExtrudedCircle::findParametricNearest(), and addPatchCellLayer::globalEdgeFaces().
const Foam::labelListList & pointPoints | ( | ) | const |
Definition at line 87 of file primitiveMeshPointPoints.C.
const Foam::labelListList & cellPoints | ( | ) | const |
Definition at line 104 of file primitiveMeshCellPoints.C.
Referenced by treeDataCell::bounds(), Foam::boxesImpl(), primitiveMesh::cellBb(), tetOverlapVolume::overlappingCells(), meshCutAndRemove::setRefinement(), and Foam::simpleGeometricFilter().
const Foam::vectorField & cellCentres | ( | ) | const |
Definition at line 78 of file primitiveMeshCellCentresAndVols.C.
References primitiveMesh::updateGeom().
Referenced by snappySnapDriver::avgCellCentres(), tetIndices::barycentricToPoint(), DarcyForchheimer::calcTransformModelData(), waveMethod::calculate(), treeDataCell::centre(), cellDistFuncs::correctBoundaryFaceCells(), cellDistFuncs::correctBoundaryPointCells(), structuredDecomp::decompose(), decompositionMethod::decompose(), mappedPatchBase::facePoint(), probes::findElements(), mappedPatchBase::findLocalSamples(), mapNearestMethod::findNearestCell(), Foam::getMeshPointRef(), cellCellStencil::globalCellCells(), volPointInterpolation::interpolateDimensionedInternalField(), trackingInverseDistance::markDonors(), inverseDistance::markDonors(), highAspectRatioFvGeometryScheme::movePoints(), averageNeighbourFvGeometryScheme::movePoints(), sampledSet::pushIn(), cyclicACMIPolyPatch::scalePatchFaceAreas(), patchInjectionBase::setPositionAndCell(), tetIndices::tet(), meshToMeshData::updateCell(), wallPoint::updateCell(), sweepData::updateCell(), refinementDistanceData::updateCell(), wallPoints::updateCell(), polyMesh::updateMesh(), reactingOneDim::updateqr(), meshToMeshMethod::writeConnectivity(), cellBitSet::writeDebug(), and cellSet::writeDebug().
const Foam::vectorField & faceCentres | ( | ) | const |
Definition at line 71 of file primitiveMeshFaceCentresAndAreas.C.
References primitiveMesh::updateGeom().
Referenced by primitiveMesh::calcCellCentresAndVols(), sampledSet::calcSign(), treeDataFace::centre(), decompositionMethod::decompose(), snappySnapDriver::doSnap(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), mappedPatchBase::facePoint(), localPointRegion::findDuplicateFacePairs(), probes::findElements(), mappedPatchBase::findLocalSamples(), boundaryMesh::getNearest(), marchingCells::initialise(), volPointInterpolationAdjoint::makeBoundaryWeights(), highAspectRatioFvGeometryScheme::movePoints(), averageNeighbourFvGeometryScheme::movePoints(), treeDataFace::findIntersectOp::operator()(), fvMeshDistribute::printCoupleInfo(), sampledSet::pushIn(), snappySnapDriver::repatchToSurface(), cyclicACMIPolyPatch::scalePatchFaceAreas(), fvMeshDistribute::testField(), triSurfaceTools::triangulateFaceCentre(), directionalWallPointData< Type >::updateFace(), transportData::updateFace(), wallPointAddressing::updateFace(), wallPoint::updateFace(), sweepData::updateFace(), refinementDistanceData::updateFace(), wallPoints::updateFace(), faceBitSet::writeDebug(), faceBoolSet::writeDebug(), and faceSet::writeDebug().
const Foam::scalarField & cellVolumes | ( | ) | const |
Definition at line 90 of file primitiveMeshCellCentresAndVols.C.
References primitiveMesh::updateGeom().
Referenced by polyTopoChange::changeMesh(), layerAdditionRemoval::changeTopology(), polyTopoChange::makeMesh(), highAspectRatioFvGeometryScheme::movePoints(), averageNeighbourFvGeometryScheme::movePoints(), and cyclicACMIPolyPatch::scalePatchFaceAreas().
const Foam::vectorField & faceAreas | ( | ) | const |
Definition at line 83 of file primitiveMeshFaceCentresAndAreas.C.
References primitiveMesh::updateGeom().
Referenced by Foam::calcCellCellsImpl(), primitiveMesh::calcCellCentresAndVols(), layerAdditionRemoval::changeTopology(), primitiveMesh::checkClosedBoundary(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), boundaryMesh::getNearest(), fvMesh::makeSf(), highAspectRatioFvGeometryScheme::movePoints(), averageNeighbourFvGeometryScheme::movePoints(), and cyclicACMIPolyPatch::scalePatchFaceAreas().
void movePoints | ( | const pointField & | p, |
const pointField & | oldP | ||
) |
Move points.
Definition at line 312 of file primitiveMesh.C.
Referenced by polyMesh::movePoints().
|
inlinenoexcept |
Return true if given face label is internal to the mesh.
Definition at line 96 of file primitiveMeshI.H.
Referenced by polyMeshGeometry::affectedCells(), addPatchCellLayer::calcExtrudeInfo(), primitiveMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceDotProduct(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), primitiveMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), outletStabilised< Type >::correction(), decompositionMethod::decompose(), heatExchangerModel::initialise(), waWallFunctionFvPatchScalarField::manipulateMatrix(), Foam::markGrowFaceCellFace(), fvMeshSubset::reset(), perfectInterface::setRefinement(), and outletStabilised< Type >::weights().
|
virtual |
Check face ordering.
Definition at line 908 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::labelMax, Foam::reduce(), and UList< T >::size().
|
virtual |
Check cell zip-up.
Definition at line 1066 of file primitiveMeshCheck.C.
References Foam::constant::universal::c, cells, Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::reduce(), UList< T >::size(), and Foam::Zero.
|
virtual |
Check uniqueness of face vertices.
Definition at line 1159 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), nPoints, Foam::reduce(), and UList< T >::size().
|
virtual |
Check for unused points.
Definition at line 1227 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, DebugInFunction, UList< T >::empty(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), and Foam::reduce().
|
virtual |
Check face-face connectivity.
Definition at line 1496 of file primitiveMeshCheck.C.
References HashTable< T, Key, Hash >::clear(), Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), forAll, Foam::Info, and Foam::reduce().
|
virtual |
Check boundary for closedness.
Definition at line 1591 of file primitiveMeshCheck.C.
References primitiveMesh::checkClosedBoundary(), and primitiveMesh::faceAreas().
|
virtual |
Check cells for closedness.
Definition at line 1598 of file primitiveMeshCheck.C.
|
virtual |
Check for negative face areas.
Definition at line 1618 of file primitiveMeshCheck.C.
|
virtual |
Check for negative cell volumes.
Definition at line 1634 of file primitiveMeshCheck.C.
|
virtual |
Check for non-orthogonality.
Reimplemented in polyMesh.
Definition at line 1650 of file primitiveMeshCheck.C.
|
virtual |
|
virtual |
Check face skewness.
Reimplemented in polyMesh.
Definition at line 1685 of file primitiveMeshCheck.C.
References points.
|
virtual |
|
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 1721 of file primitiveMeshCheck.C.
References points.
|
virtual |
Check for point-point-nearness,.
e.g. colocated points which may be part of baffles.
Definition at line 28 of file primitiveMeshCheckPointNearness.C.
References Foam::endl(), SortableList< T >::indices(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), points, Foam::reduce(), UList< T >::size(), and Foam::sqrt().
|
virtual |
Check edge length.
Definition at line 27 of file primitiveMeshCheckEdgeLength.C.
References Foam::endl(), f(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), Foam::max(), Foam::min(), nPoints, points, Foam::reduce(), returnReduce(), 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 1740 of file primitiveMeshCheck.C.
|
virtual |
Check mesh topology for correctness.
Returns false for no error.
Definition at line 1755 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, Foam::endl(), and Foam::Info.
|
virtual |
Check mesh geometry (& implicitly topology) for correctness.
Returns false for no error.
Definition at line 1785 of file primitiveMeshCheck.C.
References Foam::ensightOutput::debug, Foam::endl(), and Foam::Info.
|
virtual |
Check mesh for correctness. Returns false for no error.
Definition at line 1817 of file primitiveMeshCheck.C.
References Foam::checkGeometry(), Foam::checkTopology(), Foam::ensightOutput::debug, DebugInFunction, Foam::endl(), and Foam::Info.
Referenced by attachPolyTopoChanger::attach().
|
static |
Set the closedness ratio warning threshold.
Definition at line 1843 of file primitiveMeshCheck.C.
|
static |
Set the aspect ratio warning threshold.
Definition at line 1852 of file primitiveMeshCheck.C.
|
static |
Set the non-orthogonality warning threshold in degrees.
Definition at line 1861 of file primitiveMeshCheck.C.
|
static |
Set the skewness warning threshold as percentage.
of the face area vector
Definition at line 1870 of file primitiveMeshCheck.C.
Foam::boundBox cellBb | ( | const label | celli | ) | const |
The bounding box for given cell index.
Definition at line 28 of file primitiveMeshFindCell.C.
References primitiveMesh::cellPoints(), primitiveMesh::cells(), primitiveMesh::faces(), primitiveMesh::hasCellPoints(), and primitiveMesh::points().
Referenced by meshToMeshMethod::maskCells(), and Foam::simpleGeometricFilter().
bool pointInCellBB | ( | const point & | p, |
label | celli, | ||
scalar | inflationFraction = 0 |
||
) | const |
Return true if the point in the cell bounding box.
The bounding box may be isotropically inflated by the fraction inflationFraction
Definition at line 41 of file primitiveMeshFindCell.C.
References boundBox::contains(), boundBox::inflate(), and p.
bool pointInCell | ( | const point & | p, |
label | celli | ||
) | const |
Return true if the point is in the cell.
Definition at line 58 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 85 of file primitiveMeshFindCell.C.
References Foam::magSqr(), and UList< T >::size().
Foam::label findCell | ( | const point & | location | ) | const |
Find cell enclosing this location (-1 if not in mesh)
Definition at line 112 of file primitiveMeshFindCell.C.
References n.
void printAllocated | ( | ) | const |
Print a list of all the currently allocated mesh data.
Definition at line 26 of file primitiveMeshClear.C.
References Foam::endl(), and Foam::Pout.
|
inlinenoexcept |
Definition at line 104 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 110 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 116 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 122 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 128 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 134 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 140 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 146 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 152 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 158 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 164 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 170 of file primitiveMeshI.H.
|
inlinenoexcept |
Definition at line 176 of file primitiveMeshI.H.
Referenced by treeDataCell::bounds(), Foam::boxesImpl(), and primitiveMesh::cellBb().
|
inlinenoexcept |
Definition at line 182 of file primitiveMeshI.H.
Referenced by stabilisedFvGeometryScheme::movePoints(), and highAspectRatioFvGeometryScheme::movePoints().
|
inlinenoexcept |
Definition at line 188 of file primitiveMeshI.H.
Referenced by stabilisedFvGeometryScheme::movePoints(), and highAspectRatioFvGeometryScheme::movePoints().
|
inlinenoexcept |
Definition at line 194 of file primitiveMeshI.H.
Referenced by stabilisedFvGeometryScheme::movePoints(), and highAspectRatioFvGeometryScheme::movePoints().
|
inlinenoexcept |
Definition at line 200 of file primitiveMeshI.H.
Referenced by stabilisedFvGeometryScheme::movePoints(), highAspectRatioFvGeometryScheme::movePoints(), and cyclicACMIPolyPatch::resetAMI().
const Foam::labelList & cellCells | ( | const label | celli, |
DynamicList< label > & | storage | ||
) | const |
cellCells using cells.
Definition at line 106 of file primitiveMeshCellCells.C.
References cells, DynamicList< T, SizeMin >::clear(), and DynamicList< T, SizeMin >::push_back().
const Foam::labelList & cellCells | ( | const label | celli | ) | const |
Definition at line 143 of file primitiveMeshCellCells.C.
const Foam::labelList & cellPoints | ( | const label | celli, |
labelHashSet & | set, | ||
DynamicList< label > & | storage | ||
) | const |
cellPoints using cells
Definition at line 116 of file primitiveMeshCellPoints.C.
References DynamicList< T, SizeMin >::capacity(), cells, List< T >::clear(), DynamicList< T, SizeMin >::clear(), DynamicList< T, SizeMin >::push_back(), and DynamicList< T, SizeMin >::setCapacity().
const Foam::labelList & cellPoints | ( | const label | celli | ) | const |
Definition at line 152 of file primitiveMeshCellPoints.C.
const Foam::labelList & pointCells | ( | const label | pointi, |
DynamicList< label > & | storage | ||
) | const |
pointCells using pointFaces
Definition at line 197 of file primitiveMeshPointCells.C.
References UList< T >::begin(), DynamicList< T, SizeMin >::clear(), UList< T >::end(), pFaces, DynamicList< T, SizeMin >::push_back(), DynamicList< T, SizeMin >::resize(), UList< T >::size(), and Foam::sort().
const Foam::labelList & pointCells | ( | const label | pointi | ) | const |
Definition at line 239 of file primitiveMeshPointCells.C.
const Foam::labelList & pointPoints | ( | const label | pointi, |
DynamicList< label > & | storage | ||
) | const |
pointPoints using edges, pointEdges
Definition at line 99 of file primitiveMeshPointPoints.C.
References DynamicList< T, SizeMin >::capacity(), DynamicList< T, SizeMin >::clear(), DynamicList< T, SizeMin >::push_back(), DynamicList< T, SizeMin >::setCapacity(), and UList< T >::size().
const Foam::labelList & pointPoints | ( | const label | pointi | ) | const |
Definition at line 131 of file primitiveMeshPointPoints.C.
const Foam::labelList & faceEdges | ( | const label | facei, |
DynamicList< label > & | storage | ||
) | const |
faceEdges using pointFaces, edges, pointEdges
Definition at line 595 of file primitiveMeshEdges.C.
References DynamicList< T, SizeMin >::capacity(), DynamicList< T, SizeMin >::clear(), f(), Foam::findFirstCommonElementFromSortedLists(), forAll, DynamicList< T, SizeMin >::push_back(), DynamicList< T, SizeMin >::setCapacity(), and UList< T >::size().
const Foam::labelList & faceEdges | ( | const label | facei | ) | const |
Definition at line 630 of file primitiveMeshEdges.C.
const Foam::labelList & edgeFaces | ( | const label | edgeI, |
DynamicList< label > & | storage | ||
) | const |
edgeFaces using pointFaces, edges, pointEdges
Definition at line 54 of file primitiveMeshEdgeFaces.C.
References DynamicList< T, SizeMin >::append(), DynamicList< T, SizeMin >::clear(), Foam::constant::electromagnetic::e, f(), UList< T >::fcIndex(), UList< T >::find(), UList< T >::rcIndex(), and UList< T >::size().
const Foam::labelList & edgeFaces | ( | const label | edgeI | ) | const |
Definition at line 119 of file primitiveMeshEdgeFaces.C.
const Foam::labelList & edgeCells | ( | const label | edgeI, |
DynamicList< label > & | storage | ||
) | const |
edgeCells using pointFaces, edges, pointEdges
Definition at line 53 of file primitiveMeshEdgeCells.C.
References DynamicList< T, SizeMin >::clear(), UList< T >::contains(), and DynamicList< T, SizeMin >::push_back().
const Foam::labelList & edgeCells | ( | const label | edgeI | ) | const |
Definition at line 99 of file primitiveMeshEdgeCells.C.
const Foam::labelList & cellEdges | ( | const label | celli, |
labelHashSet & | set, | ||
DynamicList< label > & | storage | ||
) | const |
cellEdges using cells, pointFaces, edges, pointEdges
Definition at line 637 of file primitiveMeshEdges.C.
References DynamicList< T, SizeMin >::capacity(), cells, List< T >::clear(), DynamicList< T, SizeMin >::clear(), DynamicList< T, SizeMin >::push_back(), and DynamicList< T, SizeMin >::setCapacity().
const Foam::labelList & cellEdges | ( | const label | celli | ) | const |
Definition at line 672 of file primitiveMeshEdges.C.
|
virtual |
Update all geometric data.
Reimplemented in fvMesh.
Definition at line 336 of file primitiveMesh.C.
Referenced by primitiveMesh::cellCentres(), primitiveMesh::cellVolumes(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), basicFvGeometryScheme::movePoints(), highAspectRatioFvGeometryScheme::movePoints(), and solidBodyFvGeometryScheme::movePoints().
void clearGeom | ( | ) |
Clear geometry.
Definition at line 119 of file primitiveMeshClear.C.
References Foam::ensightOutput::debug, Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearGeom(), solidBodyFvGeometryScheme::movePoints(), fvGeometryScheme::movePoints(), and polyMesh::updateGeomPoints().
void clearCellGeom | ( | ) |
Clear cell-based geometry only.
Use with care! currently used by cyclicACMI
Definition at line 135 of file primitiveMeshClear.C.
References Foam::ensightOutput::debug, Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
void clearAddressing | ( | ) |
Clear topological data.
Definition at line 149 of file primitiveMeshClear.C.
References Foam::ensightOutput::debug, Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.
Referenced by polyMesh::clearAddressing().
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
Definition at line 178 of file primitiveMeshClear.C.
Referenced by fvMesh::clearOut(), polyMesh::readUpdate(), and polyMesh::removeBoundary().
|
staticprotected |
Static data to control mesh checking.
Cell closedness warning threshold
set as the fraction of un-closed area to closed area
Definition at line 307 of file primitiveMesh.H.
|
staticprotected |
Aspect ratio warning threshold.
Definition at line 312 of file primitiveMesh.H.
|
staticprotected |
Non-orthogonality warning threshold in deg.
Definition at line 317 of file primitiveMesh.H.
|
staticprotected |
Skewness warning threshold.
Definition at line 322 of file primitiveMesh.H.
|
staticprotected |
Threshold where faces are considered coplanar.
Definition at line 327 of file primitiveMesh.H.
|
static |
Estimated number of cells per edge.
Definition at line 510 of file primitiveMesh.H.
|
static |
Estimated number of cells per point.
Definition at line 515 of file primitiveMesh.H.
|
static |
Estimated number of faces per cell.
Definition at line 520 of file primitiveMesh.H.
|
static |
Estimated number of faces per edge.
Definition at line 525 of file primitiveMesh.H.
|
static |
Estimated number of faces per point.
Definition at line 530 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 535 of file primitiveMesh.H.
|
static |
Estimated number of edges per cell.
Definition at line 540 of file primitiveMesh.H.
|
static |
Estimated number of edges per point.
Definition at line 545 of file primitiveMesh.H.
|
static |
Estimated number of points per cell.
Definition at line 550 of file primitiveMesh.H.
|
static |
Estimated number of points per face.
Definition at line 555 of file primitiveMesh.H.