Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
primitiveMesh Class Referenceabstract

Cell-face mesh analysis engine. More...

Inheritance diagram for primitiveMesh:
Inheritance graph
[legend]

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 reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, const Xfer< cellList > &cells)
 Reset this primitiveMesh given the primitive array sizes and cells. 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 pointFieldpoints () const =0
 Return mesh points. More...
 
virtual const faceListfaces () const =0
 Return faces. More...
 
virtual const labelListfaceOwner () const =0
 Face face-owner addresing. More...
 
virtual const labelListfaceNeighbour () const =0
 Face face-neighbour addressing. More...
 
virtual const pointFieldoldPoints () const =0
 Return old points for mesh motion. More...
 
const cellShapeListcellShapes () const
 Return cell shapes. More...
 
const edgeListedges () const
 Return mesh edges. Uses calcEdges. More...
 
const labelListListcellCells () const
 
const labelListListedgeCells () const
 
const labelListListpointCells () const
 
const cellListcells () const
 
const labelListListedgeFaces () const
 
const labelListListpointFaces () const
 
const labelListListcellEdges () const
 
const labelListListfaceEdges () const
 
const labelListListpointEdges () const
 
const labelListListpointPoints () const
 
const labelListListcellPoints () const
 
const vectorFieldcellCentres () const
 
const vectorFieldfaceCentres () const
 
const scalarFieldcellVolumes () const
 
const vectorFieldfaceAreas () const
 
tmp< scalarFieldmovePoints (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 labelListcellCells (const label celli, DynamicList< label > &) const
 cellCells using cells. More...
 
const labelListcellCells (const label celli) const
 
const labelListcellPoints (const label celli, DynamicList< label > &) const
 cellPoints using cells More...
 
const labelListcellPoints (const label celli) const
 
const labelListpointCells (const label pointi, DynamicList< label > &) const
 pointCells using pointFaces More...
 
const labelListpointCells (const label pointi) const
 
const labelListpointPoints (const label pointi, DynamicList< label > &) const
 pointPoints using edges, pointEdges More...
 
const labelListpointPoints (const label pointi) const
 
const labelListfaceEdges (const label facei, DynamicList< label > &) const
 faceEdges using pointFaces, edges, pointEdges More...
 
const labelListfaceEdges (const label facei) const
 
const labelListedgeFaces (const label edgeI, DynamicList< label > &) const
 edgeFaces using pointFaces, edges, pointEdges More...
 
const labelListedgeFaces (const label edgeI) const
 
const labelListedgeCells (const label edgeI, DynamicList< label > &) const
 edgeCells using pointFaces, edges, pointEdges More...
 
const labelListedgeCells (const label edgeI) const
 
const labelListcellEdges (const label celli, DynamicList< label > &) const
 cellEdges using cells, pointFaces, edges, pointEdges More...
 
const labelListcellEdges (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...
 

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 makeFaceCentresAndAreas (const pointField &p, vectorField &fCtrs, vectorField &fAreas) 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...
 

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...
 

Detailed Description

Cell-face mesh analysis engine.

Source files

Definition at line 74 of file primitiveMesh.H.

Constructor & Destructor Documentation

◆ primitiveMesh() [1/2]

primitiveMesh ( )
protected

Construct null.

Definition at line 39 of file primitiveMesh.C.

◆ primitiveMesh() [2/2]

primitiveMesh ( const label  nPoints,
const label  nInternalFaces,
const label  nFaces,
const label  nCells 
)

Construct from components.

Definition at line 77 of file primitiveMesh.C.

◆ ~primitiveMesh()

~primitiveMesh ( )
virtual

Destructor.

Definition at line 118 of file primitiveMesh.C.

References primitiveMesh::calcPointOrder(), and primitiveMesh::clearOut().

Here is the call graph for this function:

Member Function Documentation

◆ calcFaceCentresAndAreas()

void calcFaceCentresAndAreas ( ) const
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.

Referenced by primitiveMesh::faceAreas(), and primitiveMesh::faceCentres().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeFaceCentresAndAreas()

void makeFaceCentresAndAreas ( const pointField p,
vectorField fCtrs,
vectorField fAreas 
) const
protected

Definition at line 74 of file primitiveMeshFaceCentresAndAreas.C.

References Foam::constant::universal::c, f(), primitiveMesh::faces(), forAll, Foam::mag(), n, primitiveMesh::nPoints(), Foam::constant::mathematical::pi(), List< T >::size(), and Foam::Zero.

Referenced by primitiveMesh::calcFaceCentresAndAreas(), and polyMesh::checkMeshMotion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcCellCentresAndVols()

void calcCellCentresAndVols ( ) const
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.

Referenced by primitiveMesh::cellCentres(), and primitiveMesh::cellVolumes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeCellCentresAndVols()

void makeCellCentresAndVols ( const vectorField fCtrs,
const vectorField fAreas,
vectorField cellCtrs,
scalarField cellVols 
) const
protected

Definition at line 73 of file primitiveMeshCellCentresAndVols.C.

References primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, Foam::mag(), primitiveMesh::nCells(), and Foam::Zero.

Referenced by primitiveMesh::calcCellCentresAndVols(), and polyMesh::checkMeshMotion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcEdgeVectors()

void calcEdgeVectors ( ) const
protected

Calculate edge vectors.

◆ checkDuplicateFaces()

bool checkDuplicateFaces ( const label  facei,
const Map< label > &  nCommonPoints,
label nBaffleFaces,
labelHashSet setPtr 
) const
protected

Check if all points on face are shared with another face.

Definition at line 1372 of file primitiveMeshCheck.C.

References primitiveMesh::checkCommonOrder(), forAllConstIter(), HashSet< Key, Hash >::insert(), and List< T >::size().

Referenced by primitiveMesh::checkPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkCommonOrder()

bool checkCommonOrder ( const label  facei,
const Map< label > &  nCommonPoints,
labelHashSet setPtr 
) const
protected

Check that shared points are in consecutive order.

Definition at line 1413 of file primitiveMeshCheck.C.

References primitiveMesh::checkFaceFaces(), UList< T >::fcIndex(), Foam::findIndex(), forAll, forAllConstIter(), HashSet< Key, Hash >::insert(), Foam::labelMax, UList< T >::rcIndex(), and List< T >::size().

Referenced by primitiveMesh::checkDuplicateFaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkClosedBoundary() [1/2]

bool checkClosedBoundary ( const vectorField areas,
const bool  report,
const PackedBoolList internalOrCoupledFaces 
) const
protected

Check boundary for closedness.

Definition at line 46 of file primitiveMeshCheck.C.

References primitiveMesh::checkClosedCells(), Foam::cmptMag(), Foam::cmptMax(), Foam::endl(), Foam::Info, InfoInFunction, Foam::mag(), Foam::reduce(), List< T >::size(), PackedList< nBits >::size(), and Foam::Zero.

Referenced by primitiveMesh::checkClosedBoundary(), and primitiveMesh::checkGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkClosedCells() [1/2]

bool checkClosedCells ( const vectorField faceAreas,
const scalarField cellVolumes,
const bool  report,
labelHashSet setPtr,
labelHashSet aspectSetPtr,
const Vector< label > &  meshD 
) const
protected

Check cells for closedness.

Definition at line 103 of file primitiveMeshCheck.C.

References Foam::constant::universal::c, cells, primitiveMesh::checkFaceAreas(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::nl, and Foam::reduce().

Referenced by primitiveMesh::checkClosedBoundary(), primitiveMesh::checkClosedCells(), and primitiveMesh::checkGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceAreas() [1/2]

bool checkFaceAreas ( const vectorField faceAreas,
const bool  report,
const bool  detailedReport,
labelHashSet setPtr 
) const
protected

Check for negative face areas.

Definition at line 235 of file primitiveMeshCheck.C.

References primitiveMesh::checkCellVolumes(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().

Referenced by primitiveMesh::checkClosedCells(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkGeometry(), and polyMesh::checkMeshMotion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkCellVolumes() [1/2]

bool checkCellVolumes ( const scalarField vols,
const bool  report,
const bool  detailedReport,
labelHashSet setPtr 
) const
protected

Check for negative cell volumes.

Definition at line 313 of file primitiveMeshCheck.C.

References primitiveMesh::checkFaceOrthogonality(), Foam::endl(), forAll, Foam::gSum(), Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::Pout, and Foam::reduce().

Referenced by primitiveMesh::checkCellVolumes(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkGeometry(), and polyMesh::checkMeshMotion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceOrthogonality() [1/2]

bool checkFaceOrthogonality ( const vectorField fAreas,
const vectorField cellCtrs,
const bool  report,
labelHashSet setPtr 
) const
protected

◆ checkFacePyramids() [1/2]

bool checkFacePyramids ( const pointField points,
const vectorField ctrs,
const bool  report,
const bool  detailedReport,
const scalar  minPyrVol,
labelHashSet setPtr 
) const
protected

Check face pyramid volume.

Definition at line 493 of file primitiveMeshCheck.C.

References cells, primitiveMesh::checkFaceSkewness(), Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::nl, Foam::Pout, and Foam::reduce().

Referenced by primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), primitiveMesh::checkGeometry(), and polyMesh::checkMeshMotion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceSkewness() [1/2]

bool checkFaceSkewness ( const pointField points,
const vectorField fCtrs,
const vectorField fAreas,
const vectorField cellCtrs,
const bool  report,
labelHashSet setPtr 
) const
protected

Check face skewness.

Definition at line 595 of file primitiveMeshCheck.C.

References primitiveMesh::checkFaceAngles(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), and Foam::reduce().

Referenced by primitiveMesh::checkFacePyramids(), primitiveMesh::checkFaceSkewness(), and primitiveMesh::checkGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceAngles() [1/2]

bool checkFaceAngles ( const pointField points,
const vectorField faceAreas,
const bool  report,
const scalar  maxDeg,
labelHashSet setPtr 
) const
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 668 of file primitiveMeshCheck.C.

References Foam::asin(), primitiveMesh::checkFaceFlatness(), Foam::degToRad(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), Foam::radToDeg(), Foam::reduce(), and Foam::sin().

Referenced by primitiveMesh::checkFaceAngles(), and primitiveMesh::checkFaceSkewness().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceFlatness() [1/2]

bool checkFaceFlatness ( const pointField points,
const vectorField faceCentres,
const vectorField faceAreas,
const bool  report,
const scalar  warnFlatness,
labelHashSet setPtr 
) const
protected

Check face warpage.

Definition at line 748 of file primitiveMeshCheck.C.

References primitiveMesh::checkConcaveCells(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), and Foam::reduce().

Referenced by primitiveMesh::checkFaceAngles(), and primitiveMesh::checkFaceFlatness().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkConcaveCells() [1/2]

bool checkConcaveCells ( const vectorField fAreas,
const pointField fCentres,
const bool  report,
labelHashSet setPtr 
) const
protected

Check for concave cells by the planes of faces.

Definition at line 853 of file primitiveMeshCheck.C.

References Foam::constant::universal::c, cells, primitiveMesh::checkUpperTriangular(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::max(), and Foam::reduce().

Referenced by primitiveMesh::checkConcaveCells(), and primitiveMesh::checkFaceFlatness().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClassName()

ClassName ( "primitiveMesh"  )

◆ reset() [1/3]

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 206 of file primitiveMesh.C.

References primitiveMesh::calcPointOrder(), primitiveMesh::clearOut(), Foam::endl(), primitiveMesh::faces(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), primitiveMesh::nInternalPoints(), primitiveMesh::nPoints(), and Foam::Pout.

Referenced by primitiveMesh::calcPointOrder(), and primitiveMesh::reset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset() [2/3]

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 262 of file primitiveMesh.C.

References primitiveMesh::reset().

Here is the call graph for this function:

◆ reset() [3/3]

void reset ( const label  nPoints,
const label  nInternalFaces,
const label  nFaces,
const label  nCells,
const Xfer< cellList > &  cells 
)

Reset this primitiveMesh given the primitive array sizes and cells.

Definition at line 283 of file primitiveMesh.C.

References primitiveMesh::movePoints(), and primitiveMesh::reset().

Here is the call graph for this function:

◆ nPoints()

label nPoints ( ) const
inline

Definition at line 41 of file primitiveMeshI.H.

Referenced by singleProcessorFaceSetsConstraint::add(), polyMeshAdder::add(), polyTopoChange::addMesh(), singleProcessorFaceSetsConstraint::apply(), motionSmootherAlgo::avg(), polyTopoChange::changeMesh(), pointZone::checkParallelSync(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), edgeCollapser::consistentCollapse(), polyMeshFilter::copyMesh(), displacementInterpolationMotionSolver::curPoints(), fvMeshDistribute::distribute(), snappySnapDriver::doSnap(), edgeVertex::edgeToEVert(), cellClassification::fillHangingCells(), polyMeshFilter::filterEdges(), isoSurface::generateFaceTriPoints(), edgeVertex::getEdge(), surfaceSets::getHangingCells(), syncTools::getMasterPoints(), globalIndexAndTransform::globalIndexAndTransform(), cellClassification::growSurface(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), isoSurfaceCell::interpolate(), isoSurface::interpolate(), edgeVertex::isEdge(), cellFeatures::isFeatureVertex(), localPointRegion::localPointRegion(), primitiveMesh::makeFaceCentresAndAreas(), polyTopoChange::makeMesh(), pointSet::maxSize(), pointZoneSet::maxSize(), globalMeshData::mergePoints(), meshTriangulation::meshTriangulation(), primitiveMesh::movePoints(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), vtkMesh::nFieldPoints(), minEqOpFace::operator()(), sampledSurface::pointAverage(), primitiveMesh::pointFaces(), points0MotionSolver::points0MotionSolver(), pointSet::pointSet(), pointZoneSet::pointZoneSet(), polyMesh::polyMesh(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), processorMeshes::reconstructPoints(), primitiveMesh::reset(), polyMesh::resetPrimitives(), edgeCollapser::setRefinement(), pointMesh::size(), solidBodyMotionSolver::solidBodyMotionSolver(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), meshRefinement::splitMesh(), pointSet::sync(), hexRef8Data::sync(), syncTools::syncPointList(), meshRefinement::testSyncPointList(), cellClassification::trimCutCells(), globalMeshData::updateMesh(), and edgeVertex::vertToEVert().

◆ nEdges()

label nEdges ( ) const
inline

◆ nInternalFaces()

label nInternalFaces ( ) const
inline

Definition at line 82 of file primitiveMeshI.H.

Referenced by snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), meshRefinement::baffleAndSplitMesh(), decompositionMethod::calcCellCells(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), CentredFitSnGradData< Polynomial >::calcFit(), primitiveMesh::calcPointOrder(), primitiveMesh::cellCells(), CentredFitData< Polynomial >::CentredFitData(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkDefinition(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), inverseFaceDistanceDiffusivity::correct(), inversePointDistanceDiffusivity::correct(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), dynamicRefineFvMesh::dynamicRefineFvMesh(), faceCoupleInfo::faceCoupleInfo(), fvMeshSubset::faceFlipMap(), cellQuality::faceNonOrthogonality(), primitiveMeshTools::faceOrthogonality(), polyMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), polyMeshTools::faceSkewness(), primitiveMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), localPointRegion::findDuplicateFacePairs(), localPointRegion::findDuplicateFaces(), polyMeshTetDecomposition::findFaceBasePts(), volPointInterpolation::flatBoundaryField(), isoSurface::generateFaceTriPoints(), boundaryMesh::getNearest(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), fvMeshSubset::interpolate(), primitiveMesh::isInternalFace(), fvMeshAdder::MapVolFields(), meshRefinement::mergeBaffles(), MeshedSurface< Foam::face >::MeshedSurface(), Cloud< streamLineParticle >::move(), fvMesh::movePoints(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), boundaryMesh::patchify(), primitiveMesh::pointCells(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), SloanRenumber::renumber(), primitiveMesh::reset(), mappedPatchBase::sampleSize(), fvMeshSubset::setLargeCellSubset(), tetDecomposer::setRefinement(), surfaceMesh::size(), fvSurfaceMapper::size(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::swapFaceList(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncFacePositions(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), rawTopoChangerFvMesh::update(), UpwindFitData< Polynomial >::UpwindFitData(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), polyMeshTools::volRatio(), extendedUpwindCellToFaceStencil::weightedSum(), extendedCellToFaceStencil::weightedSum(), polyBoundaryMesh::whichPatch(), and meshRefinement::zonify().

◆ nFaces()

label nFaces ( ) const
inline

Definition at line 88 of file primitiveMeshI.H.

Referenced by preserveBafflesConstraint::add(), preserveFaceZonesConstraint::add(), preservePatchesConstraint::add(), singleProcessorFaceSetsConstraint::add(), polyMeshAdder::add(), refinementHistory::add(), snappyLayerDriver::addLayers(), fvMeshTools::addPatch(), meshRefinement::addPatch(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), meshRefinement::baffleAndSplitMesh(), decompositionMethod::calcCellCells(), primitiveMesh::calcFaceCentresAndAreas(), cellToFaceStencil::calcFaceStencil(), polyDualMesh::calcFeatures(), CentredFitSnGradData< Polynomial >::calcFit(), CentredFitData< Polynomial >::CentredFitData(), polyTopoChange::changeMesh(), edgeCollapser::checkBadFaces(), meshRefinement::checkCoupledFaceZones(), polyMeshGeometry::checkFaceDotProduct(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), motionSmootherAlgo::checkMesh(), polyMesh::checkMeshMotion(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), edgeCollapser::consistentCollapse(), polyMeshFilter::copyMesh(), meshRefinement::createBaffles(), meshRefinement::createZoneBaffles(), structuredDecomp::decompose(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), snappyLayerDriver::doLayers(), snappySnapDriver::doSnap(), dynamicRefineFvMesh::dynamicRefineFvMesh(), primitiveMeshTools::faceConcavity(), primitiveMeshTools::faceFlatness(), faceMapper::faceMapper(), cellQuality::faceNonOrthogonality(), polyMeshTools::faceOrthogonality(), primitiveMeshTools::facePyramidVolume(), faceSet::faceSet(), polyMeshTools::faceSkewness(), primitiveMeshTools::faceSkewness(), cellQuality::faceSkewness(), polyMeshTools::faceWeights(), faceZoneSet::faceZoneSet(), polyMeshFilter::filter(), localPointRegion::findDuplicateFacePairs(), polyMeshTetDecomposition::findFaceBasePts(), volPointInterpolation::flatBoundaryField(), fvFieldReconstructor::fvFieldReconstructor(), isoSurface::generateFaceTriPoints(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), boundaryMesh::getNearest(), cellFeatures::isFeatureVertex(), Foam::MULES::limit(), Foam::MULES::limitCorr(), polyTopoChange::makeMesh(), fvMesh::mapFields(), mappedPatchFieldBase< Type >::mappedField(), faceSet::maxSize(), faceZoneSet::maxSize(), meshRefinement::mergeBaffles(), snappyLayerDriver::mergePatchFacesUndo(), MeshedSurface< Foam::face >::MeshedSurface(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), boundaryMesh::patchify(), polyMesh::polyMesh(), snappySnapDriver::preSmoothPatch(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), boundaryMesh::read(), SloanRenumber::renumber(), structuredRenumber::renumber(), snappySnapDriver::repatchToSurface(), primitiveMesh::reset(), mappedPatchBase::sampleSize(), snappySnapDriver::scaleMesh(), decompositionMethod::setConstraints(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), faceMapper::size(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), Foam::fvc::spread(), 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(), rawTopoChangerFvMesh::update(), globalMeshData::updateMesh(), UpwindFitData< Polynomial >::UpwindFitData(), polyMeshTools::volRatio(), polyBoundaryMesh::whichPatch(), and meshRefinement::zonify().

◆ nCells()

label nCells ( ) const
inline

Definition at line 94 of file primitiveMeshI.H.

Referenced by polyMeshAdder::add(), snappyLayerDriver::addLayers(), polyTopoChange::addMesh(), primitiveMesh::calcCellCentresAndVols(), primitiveMesh::calcCells(), curvatureSeparation::calcCosAngle(), primitiveMeshTools::cellClosedness(), cellCuts::cellCuts(), primitiveMeshTools::cellDeterminant(), cellMapper::cellMapper(), primitiveMesh::cellPoints(), cellSet::cellSet(), cellZoneSet::cellZoneSet(), polyTopoChange::changeMesh(), polyMesh::checkMeshMotion(), drippingInjection::correct(), structuredDecomp::decompose(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), refinementHistory::distribute(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), dynamicRefineFvMesh::dynamicRefineFvMesh(), polyMesh::findCell(), primitiveMesh::findCell(), refinementParameters::findCells(), fvFieldReconstructor::fvFieldReconstructor(), isoSurface::generateFaceTriPoints(), get_edge_list(), get_geom_list(), get_num_edges_list(), get_number_of_vertices(), get_vertex_list(), surfaceSets::getHangingCells(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), isoSurfaceCell::interpolate(), isoSurface::interpolate(), Kmesh::Kmesh(), primitiveMesh::makeCellCentresAndVols(), polyTopoChange::makeMesh(), fvMesh::mapFields(), mappedPatchFieldBase< Type >::mappedField(), meshToMesh::mapSrcToTgt(), fvMeshAdder::MapSurfaceFields(), meshToMesh::mapTgtToSrc(), cellSet::maxSize(), cellZoneSet::maxSize(), momentOfInertia::meshInertia(), cellQuality::nonOrthogonality(), minEqOpFace::operator()(), cellTable::operator=(), sampledSurface::pointAverage(), polyMesh::polyMesh(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), ensightParts::recalculate(), refinementHistory::refinementHistory(), CuthillMcKeeRenumber::renumber(), zoltanRenumber::renumber(), SloanRenumber::renumber(), springRenumber::renumber(), renumberMethod::renumber(), structuredRenumber::renumber(), primitiveMesh::reset(), polyMesh::resetPrimitives(), mappedPatchBase::sampleSize(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), volMesh::size(), cellQuality::skewness(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), Foam::fvc::spread(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), Foam::fvc::sweep(), hexRef8Data::sync(), dynamicRefineFvMesh::update(), globalMeshData::updateMesh(), meshToMeshMethod::writeConnectivity(), meshRefinement::zonify(), and leastSquaresVectors::~leastSquaresVectors().

◆ nInternalPoints()

label nInternalPoints ( ) const
inline

Points not on boundary.

Definition at line 35 of file primitiveMeshI.H.

Referenced by primitiveMesh::calcPointOrder(), and primitiveMesh::reset().

Here is the caller graph for this function:

◆ nInternal0Edges()

label nInternal0Edges ( ) const
inline

Internal edges (i.e. not on boundary face) using.

no boundary point

Definition at line 47 of file primitiveMeshI.H.

References primitiveMesh::nEdges().

Here is the call graph for this function:

◆ nInternal1Edges()

label nInternal1Edges ( ) const
inline

Internal edges using 0 or 1 boundary point.

Definition at line 55 of file primitiveMeshI.H.

References primitiveMesh::nEdges().

Here is the call graph for this function:

◆ nInternalEdges()

label nInternalEdges ( ) const
inline

Internal edges using 0,1 or 2 boundary points.

Definition at line 63 of file primitiveMeshI.H.

References primitiveMesh::nEdges().

Here is the call graph for this function:

◆ points()

virtual const pointField& points ( ) const
pure virtual

◆ faces()

virtual const faceList& faces ( ) const
pure virtual

◆ faceOwner()

virtual const labelList& faceOwner ( ) const
pure virtual

◆ faceNeighbour()

virtual const labelList& faceNeighbour ( ) const
pure virtual

◆ oldPoints()

virtual const pointField& oldPoints ( ) const
pure virtual

Return old points for mesh motion.

Implemented in polyMesh.

◆ cellShapes()

const Foam::cellShapeList & cellShapes ( ) const

Return cell shapes.

Definition at line 335 of file primitiveMesh.C.

Referenced by ensightPartCells::~ensightPartCells().

Here is the caller graph for this function:

◆ edges()

const Foam::edgeList & edges ( ) const

◆ calcCells()

void calcCells ( cellList cellFaceAddr,
const labelUList own,
const labelUList nei,
const label  nCells = -1 
)
static

Helper function to calculate cell-face addressing from.

face-cell addressing. If nCells is not provided it will scan for the maximum.

Definition at line 31 of file primitiveMeshCells.C.

References Foam::abort(), Foam::endl(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::max(), primitiveMesh::nCells(), Foam::Pout, List< T >::setSize(), and List< T >::size().

Here is the call graph for this function:

◆ calcPointOrder()

bool calcPointOrder ( label nInternalPoints,
labelList pointMap,
const faceList faces,
const label  nInternalFaces,
const label  nPoints 
)
static

Helper function to calculate point ordering. Returns true.

if points already ordered, false and fills pointMap (old to new). Map splits points into those not used by any boundary face and those that are.

Definition at line 127 of file primitiveMesh.C.

References f(), forAll, primitiveMesh::nInternalFaces(), primitiveMesh::nInternalPoints(), primitiveMesh::reset(), List< T >::setSize(), and List< T >::size().

Referenced by primitiveMesh::reset(), and primitiveMesh::~primitiveMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellCells() [1/3]

const Foam::labelListList & cellCells ( ) const

Definition at line 100 of file primitiveMeshCellCells.C.

Referenced by meshToMeshMethod::appendNbrCells(), primitiveMesh::cellCells(), and NamedEnum< directionType, 3 >::names().

Here is the caller graph for this function:

◆ edgeCells() [1/3]

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 primitiveMesh::edgeCells(), and Foam::meshTools::edgeOnCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointCells() [1/3]

const Foam::labelListList & pointCells ( ) const

◆ cells()

const Foam::cellList & cells ( ) const

Definition at line 136 of file primitiveMeshCells.C.

Referenced by pointMVCWeight::calcWeights(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), primitiveMesh::cellCells(), primitiveMeshTools::cellDeterminant(), primitiveMesh::cellEdges(), primitiveMesh::cellPoints(), polyMeshTetDecomposition::cellTetIndices(), layerAdditionRemoval::changeTopology(), primitiveMeshGeometry::checkCellDeterminant(), polyMeshGeometry::checkCellDeterminant(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), edgeCollapser::consistentCollapse(), inversePointDistanceDiffusivity::correct(), particle< Type >::correctAfterInteractionListReferral(), outletStabilised< Type >::correction(), meshRefinement::createBaffles(), geomCellLooper::cut(), topoCellLooper::cut(), dynamicRefineFvMesh::dynamicRefineFvMesh(), probes::findElements(), sampledSet::findNearFace(), polyMeshTetDecomposition::findTet(), get_edge_list(), get_num_edges_list(), surfaceSets::getHangingCells(), Foam::meshTools::getSharedFace(), Foam::interpolatePointToCell(), hexMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), meshToMesh::mapAndOpTgtToSrc(), degenerateMatcher::match(), wedgeMatcher::matches(), hexMatcher::matches(), pyrMatcher::matches(), tetMatcher::matches(), tetWedgeMatcher::matches(), prismMatcher::matches(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), minEqOpFace::operator()(), treeDataCell::findIntersectOp::operator()(), polyMesh::pointInCell(), primitiveMesh::pointInCell(), polyMesh::polyMesh(), Foam::polyMeshZipUpCells(), polyMesh::readUpdate(), fvMeshSubset::setCellSubset(), fvMeshSubset::setLargeCellSubset(), tetDecomposer::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), fvMatrix< Type >::setValuesFromList(), snappyRefineDriver::snappyRefineDriver(), solidBodyMotionSolver::solidBodyMotionSolver(), meshRefinement::splitMesh(), outletStabilised< Type >::weights(), meshToMeshMethod::writeConnectivity(), and ensightPartCells::~ensightPartCells().

◆ edgeFaces() [1/3]

const Foam::labelListList & edgeFaces ( ) const

◆ pointFaces()

const Foam::labelListList & pointFaces ( ) const

◆ cellEdges() [1/3]

const Foam::labelListList & cellEdges ( ) const

◆ faceEdges() [1/3]

const Foam::labelListList & faceEdges ( ) const

◆ pointEdges()

const Foam::labelListList & pointEdges ( ) const

◆ pointPoints() [1/3]

const Foam::labelListList & pointPoints ( ) const

Definition at line 91 of file primitiveMeshPointPoints.C.

Referenced by primitiveMesh::pointPoints().

Here is the caller graph for this function:

◆ cellPoints() [1/3]

const Foam::labelListList & cellPoints ( ) const

◆ cellCentres()

const Foam::vectorField & cellCentres ( ) const

Definition at line 160 of file primitiveMeshCellCentresAndVols.C.

References primitiveMesh::calcCellCentresAndVols().

Referenced by polyTopoChange::addMesh(), snappySnapDriver::avgCellCentres(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), polyMesh::checkFaceOrthogonality(), primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), polyMesh::checkFaceSkewness(), primitiveMesh::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMesh::checkFaceWeight(), motionSmootherAlgo::checkMesh(), fvPatch::Cn(), polyMeshGeometry::correct(), cellDistFuncs::correctBoundaryFaceCells(), cellDistFuncs::correctBoundaryPointCells(), meshRefinement::createZoneBaffles(), structuredDecomp::decompose(), decompositionMethod::decompose(), polyPatch::faceCellCentres(), cellQuality::faceNonOrthogonality(), mappedPatchBase::facePoint(), cellQuality::faceSkewness(), polyMeshTetDecomposition::findBasePoint(), probes::findElements(), polyMeshTetDecomposition::findFaceBasePts(), mapNearestMethod::findNearestCell(), primitiveMesh::findNearestCell(), mappedPatchBase::findSamples(), polyMeshTetDecomposition::findSharedBasePoint(), get_geom_list(), Foam::levelSetFraction(), meshRefinement::mergeBaffles(), surfaceInterpolation::movePoints(), NamedEnum< directionType, 3 >::names(), cellQuality::nonOrthogonality(), treeDataCell::findNearestOp::operator()(), InflationInjection< CloudType >::parcelsToInject(), sampledSet::pushIn(), patchInjectionBase::setPositionAndCell(), tetDecomposer::setRefinement(), cellQuality::skewness(), tetIndices::tet(), sweepData::updateCell(), wallPoint::updateCell(), refinementDistanceData::updateCell(), cylindrical::updateCells(), reactingOneDim::updateqr(), meshToMeshMethod::writeConnectivity(), cellSet::writeDebug(), and meshRefinement::zonify().

Here is the call graph for this function:

◆ faceCentres()

const Foam::vectorField & faceCentres ( ) const

Definition at line 140 of file primitiveMeshFaceCentresAndAreas.C.

References primitiveMesh::calcFaceCentresAndAreas().

Referenced by preserveBafflesConstraint::add(), primitiveMesh::calcCellCentresAndVols(), sampledSet::calcSign(), primitiveMesh::checkConcaveCells(), primitiveMesh::checkFaceFlatness(), polyMesh::checkFaceSkewness(), primitiveMesh::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMesh::checkFaceWeight(), motionSmootherAlgo::checkMesh(), polyMeshGeometry::correct(), meshRefinement::createBaffles(), decompositionMethod::decompose(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), mappedPatchBase::facePoint(), cellQuality::faceSkewness(), probes::findElements(), patchProbes::findElements(), FitData< CentredFitSnGradData< Polynomial >, extendedCentredCellToFaceStencil, Polynomial >::findFaceDirs(), mappedPatchBase::findSamples(), boundaryMesh::getNearest(), meshRefinement::mergeBaffles(), meshTriangulation::meshTriangulation(), surfaceInterpolation::movePoints(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), treeDataFace::findIntersectOp::operator()(), polyMesh::pointInCell(), primitiveMesh::pointInCell(), fvMeshDistribute::printCoupleInfo(), sampledSet::pushIn(), snappySnapDriver::repatchToSurface(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), cellQuality::skewness(), meshRefinement::splitMesh(), Foam::fvc::sweep(), triSurfaceTools::triangulateFaceCentre(), wallPointYPlus::updateFace(), wallPointData< scalar >::updateFace(), sweepData::updateFace(), wallPoint::updateFace(), refinementDistanceData::updateFace(), and faceSet::writeDebug().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellVolumes()

const Foam::scalarField & cellVolumes ( ) const

◆ faceAreas()

const Foam::vectorField & faceAreas ( ) const

◆ movePoints()

Foam::tmp< Foam::scalarField > movePoints ( const pointField p,
const pointField oldP 
)

Move points, returns volumes swept by faces in motion.

Definition at line 304 of file primitiveMesh.C.

References Foam::abort(), primitiveMesh::clearGeom(), f(), primitiveMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, primitiveMesh::nPoints(), tmp< T >::ref(), and List< T >::size().

Referenced by polyMesh::movePoints(), and primitiveMesh::reset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInternalFace()

bool isInternalFace ( const label  faceIndex) const
inline

Return true if given face label is internal to the mesh.

Definition at line 100 of file primitiveMeshI.H.

References primitiveMesh::nInternalFaces().

Referenced by polyMeshGeometry::affectedCells(), preserveBafflesConstraint::apply(), preserveFaceZonesConstraint::apply(), singleProcessorFaceSetsConstraint::apply(), addPatchCellLayer::calcSidePatch(), edgeFaceCirculator::cellLabel(), repatchPolyTopoChanger::changePatchID(), primitiveMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceDotProduct(), primitiveMeshGeometry::checkFacePyramids(), polyMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), primitiveMeshGeometry::checkFaceWeights(), polyMeshGeometry::checkFaceWeights(), faceZone::checkParallelSync(), polyMeshGeometry::checkVolRatio(), outletStabilised< Type >::correction(), decompositionMethod::decompose(), primitiveMesh::edgeCells(), Foam::meshTools::faceOnCell(), primitiveMeshTools::facePyramidVolume(), get_edge_list(), get_num_edges_list(), Foam::meshTools::getSharedFace(), meshRefinement::mergeBaffles(), meshTriangulation::meshTriangulation(), particle< Type >::onBoundaryFace(), particle< Type >::onInternalFace(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), edgeFaceCirculator::operator++(), Foam::meshTools::otherCell(), edgeFaceCirculator::setCanonical(), fvMeshSubset::setCellSubset(), fvMeshSubset::setLargeCellSubset(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), boundaryCutter::setRefinement(), edgeCollapser::setRefinement(), fvMatrix< Type >::setValuesFromList(), meshRefinement::splitMesh(), outletStabilised< Type >::weights(), and meshRefinement::zonify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkUpperTriangular()

bool checkUpperTriangular ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check face ordering.

Definition at line 966 of file primitiveMeshCheck.C.

References Foam::constant::universal::c, cells, primitiveMesh::checkCellsZipUp(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::labelMax, Foam::reduce(), and List< T >::size().

Referenced by primitiveMesh::checkConcaveCells(), and primitiveMesh::checkTopology().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkCellsZipUp()

bool checkCellsZipUp ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check cell zip-up.

Definition at line 1129 of file primitiveMeshCheck.C.

References Foam::constant::universal::c, cells, primitiveMesh::checkFaceVertices(), Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::reduce(), and List< T >::size().

Referenced by primitiveMesh::checkTopology(), and primitiveMesh::checkUpperTriangular().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceVertices()

bool checkFaceVertices ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check uniqueness of face vertices.

Definition at line 1227 of file primitiveMeshCheck.C.

References primitiveMesh::checkPoints(), Foam::endl(), f(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), Foam::max(), Foam::min(), nPoints, Foam::reduce(), and List< T >::size().

Referenced by primitiveMesh::checkCellsZipUp(), and primitiveMesh::checkTopology().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkPoints()

bool checkPoints ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check for unused points.

Definition at line 1300 of file primitiveMeshCheck.C.

References primitiveMesh::checkDuplicateFaces(), UList< T >::empty(), Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), and Foam::reduce().

Referenced by primitiveMesh::checkFaceVertices(), and primitiveMesh::checkTopology().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFaceFaces()

bool checkFaceFaces ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check face-face connectivity.

Definition at line 1574 of file primitiveMeshCheck.C.

References HashTable< T, Key, Hash >::clear(), HashTableCore::end(), Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, Foam::Info, InfoInFunction, HashTable< T, Key, Hash >::insert(), and Foam::reduce().

Referenced by primitiveMesh::checkCommonOrder(), and primitiveMesh::checkTopology().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkClosedBoundary() [2/2]

bool checkClosedBoundary ( const bool  report = false) const
virtual

Check boundary for closedness.

Definition at line 1685 of file primitiveMeshCheck.C.

References primitiveMesh::checkClosedBoundary(), primitiveMesh::checkClosedCells(), and primitiveMesh::faceAreas().

Here is the call graph for this function:

◆ checkClosedCells() [2/2]

bool checkClosedCells ( const bool  report = false,
labelHashSet setPtr = nullptr,
labelHashSet highAspectSetPtr = nullptr,
const Vector< label > &  solutionD = Vector<label>::one 
) const
virtual

Check cells for closedness.

Definition at line 1692 of file primitiveMeshCheck.C.

References primitiveMesh::cellVolumes(), primitiveMesh::checkClosedCells(), primitiveMesh::checkFaceAreas(), and primitiveMesh::faceAreas().

Here is the call graph for this function:

◆ checkFaceAreas() [2/2]

bool checkFaceAreas ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check for negative face areas.

Definition at line 1712 of file primitiveMeshCheck.C.

References primitiveMesh::checkCellVolumes(), primitiveMesh::checkFaceAreas(), and primitiveMesh::faceAreas().

Here is the call graph for this function:

◆ checkCellVolumes() [2/2]

bool checkCellVolumes ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check for negative cell volumes.

Definition at line 1728 of file primitiveMeshCheck.C.

References primitiveMesh::cellVolumes(), primitiveMesh::checkCellVolumes(), and primitiveMesh::checkFaceOrthogonality().

Here is the call graph for this function:

◆ checkFaceOrthogonality() [2/2]

bool checkFaceOrthogonality ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check for non-orthogonality.

Reimplemented in polyMesh.

Definition at line 1744 of file primitiveMeshCheck.C.

References primitiveMesh::cellCentres(), primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), and primitiveMesh::faceAreas().

Here is the call graph for this function:

◆ checkFacePyramids() [2/2]

bool checkFacePyramids ( const bool  report = false,
const scalar  minPyrVol = -SMALL,
labelHashSet setPtr = nullptr 
) const
virtual

Check face pyramid volume.

Definition at line 1760 of file primitiveMeshCheck.C.

References primitiveMesh::cellCentres(), primitiveMesh::checkFacePyramids(), primitiveMesh::checkFaceSkewness(), and primitiveMesh::points().

Here is the call graph for this function:

◆ checkFaceSkewness() [2/2]

bool checkFaceSkewness ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check face skewness.

Reimplemented in polyMesh.

Definition at line 1779 of file primitiveMeshCheck.C.

References primitiveMesh::cellCentres(), primitiveMesh::checkFaceAngles(), primitiveMesh::checkFaceSkewness(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), and primitiveMesh::points().

Here is the call graph for this function:

◆ checkFaceAngles() [2/2]

bool checkFaceAngles ( const bool  report = false,
const scalar  maxSin = 10,
labelHashSet setPtr = nullptr 
) const
virtual

Check face angles.

Definition at line 1797 of file primitiveMeshCheck.C.

References primitiveMesh::checkFaceAngles(), primitiveMesh::checkFaceFlatness(), primitiveMesh::faceAreas(), and primitiveMesh::points().

Here is the call graph for this function:

◆ checkFaceFlatness() [2/2]

bool checkFaceFlatness ( const bool  report,
const scalar  warnFlatness,
labelHashSet setPtr 
) const
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 1815 of file primitiveMeshCheck.C.

References primitiveMesh::checkConcaveCells(), primitiveMesh::checkFaceFlatness(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), and primitiveMesh::points().

Here is the call graph for this function:

◆ checkPointNearness()

bool checkPointNearness ( const bool  report,
const scalar  reportDistSqr,
labelHashSet setPtr = nullptr 
) const
virtual

Check for point-point-nearness,.

e.g. colocated points which may be part of baffles.

Definition at line 32 of file primitiveMeshCheckPointNearness.C.

References Foam::endl(), SortableList< T >::indices(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::magSqr(), points, Foam::reduce(), List< T >::size(), and Foam::sqrt().

Here is the call graph for this function:

◆ checkEdgeLength()

bool checkEdgeLength ( const bool  report,
const scalar  minLenSqr,
labelHashSet setPtr = nullptr 
) const
virtual

◆ checkConcaveCells() [2/2]

bool checkConcaveCells ( const bool  report = false,
labelHashSet setPtr = nullptr 
) const
virtual

Check for concave cells by the planes of faces.

Definition at line 1834 of file primitiveMeshCheck.C.

References primitiveMesh::checkConcaveCells(), primitiveMesh::faceAreas(), and primitiveMesh::faceCentres().

Here is the call graph for this function:

◆ checkTopology()

bool checkTopology ( const bool  report = false) const
virtual

Check mesh topology for correctness.

Returns false for no error.

Definition at line 1849 of file primitiveMeshCheck.C.

References primitiveMesh::checkCellsZipUp(), primitiveMesh::checkFaceFaces(), primitiveMesh::checkFaceVertices(), primitiveMesh::checkPoints(), primitiveMesh::checkUpperTriangular(), Foam::endl(), and Foam::Info.

Referenced by primitiveMesh::checkMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkGeometry()

bool checkGeometry ( const bool  report = false) const
virtual

Check mesh geometry (& implicitly topology) for correctness.

Returns false for no error.

Definition at line 1881 of file primitiveMeshCheck.C.

References primitiveMesh::checkCellVolumes(), primitiveMesh::checkClosedBoundary(), primitiveMesh::checkClosedCells(), primitiveMesh::checkFaceAreas(), primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), primitiveMesh::checkFaceSkewness(), Foam::endl(), and Foam::Info.

Referenced by primitiveMesh::checkMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkMesh()

bool checkMesh ( const bool  report = false) const
virtual

Check mesh for correctness. Returns false for no error.

Definition at line 1914 of file primitiveMeshCheck.C.

References primitiveMesh::checkGeometry(), primitiveMesh::checkTopology(), Foam::endl(), Foam::Info, and InfoInFunction.

Referenced by attachPolyTopoChanger::attach(), and polyMesh::polyMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setClosedThreshold()

Foam::scalar setClosedThreshold ( const scalar  val)
static

Set the closedness ratio warning threshold.

Definition at line 1945 of file primitiveMeshCheck.C.

References primitiveMesh::closedThreshold_.

◆ setAspectThreshold()

Foam::scalar setAspectThreshold ( const scalar  val)
static

Set the aspect ratio warning threshold.

Definition at line 1954 of file primitiveMeshCheck.C.

References primitiveMesh::aspectThreshold_.

◆ setNonOrthThreshold()

Foam::scalar setNonOrthThreshold ( const scalar  val)
static

Set the non-orthogonality warning threshold in degrees.

Definition at line 1963 of file primitiveMeshCheck.C.

References primitiveMesh::nonOrthThreshold_.

◆ setSkewThreshold()

Foam::scalar setSkewThreshold ( const scalar  val)
static

Set the skewness warning threshold as percentage.

of the face area vector

Definition at line 1972 of file primitiveMeshCheck.C.

References primitiveMesh::skewThreshold_.

◆ pointInCellBB()

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 33 of file primitiveMeshFindCell.C.

References cells, boundBox::contains(), Foam::mag(), VectorSpace< Form, Cmpt, Ncmpts >::max, points, and boundBox::span().

Here is the call graph for this function:

◆ pointInCell()

bool pointInCell ( const point p,
label  celli 
) const

Return true if the point is in the cell.

Definition at line 59 of file primitiveMeshFindCell.C.

References primitiveMesh::cells(), f(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), primitiveMesh::faceOwner(), and forAll.

Referenced by primitiveMesh::findCell(), and polyMesh::pointInCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findNearestCell()

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 primitiveMesh::cellCentres(), Foam::magSqr(), and List< T >::size().

Referenced by polyMesh::findCell(), and primitiveMesh::findCell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findCell()

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 primitiveMesh::findNearestCell(), n, primitiveMesh::nCells(), and primitiveMesh::pointInCell().

Here is the call graph for this function:

◆ printAllocated()

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.

Here is the call graph for this function:

◆ hasCellShapes()

bool hasCellShapes ( ) const
inline

Definition at line 106 of file primitiveMeshI.H.

◆ hasEdges()

bool hasEdges ( ) const
inline

Definition at line 112 of file primitiveMeshI.H.

◆ hasCellCells()

bool hasCellCells ( ) const
inline

Definition at line 118 of file primitiveMeshI.H.

Referenced by primitiveMesh::cellCells().

Here is the caller graph for this function:

◆ hasEdgeCells()

bool hasEdgeCells ( ) const
inline

Definition at line 124 of file primitiveMeshI.H.

Referenced by primitiveMesh::edgeCells().

Here is the caller graph for this function:

◆ hasPointCells()

bool hasPointCells ( ) const
inline

Definition at line 130 of file primitiveMeshI.H.

Referenced by primitiveMesh::pointCells().

Here is the caller graph for this function:

◆ hasCells()

bool hasCells ( ) const
inline

Definition at line 136 of file primitiveMeshI.H.

◆ hasEdgeFaces()

bool hasEdgeFaces ( ) const
inline

Definition at line 142 of file primitiveMeshI.H.

Referenced by primitiveMesh::edgeFaces().

Here is the caller graph for this function:

◆ hasPointFaces()

bool hasPointFaces ( ) const
inline

Definition at line 148 of file primitiveMeshI.H.

◆ hasCellEdges()

bool hasCellEdges ( ) const
inline

Definition at line 154 of file primitiveMeshI.H.

Referenced by primitiveMesh::cellEdges().

Here is the caller graph for this function:

◆ hasFaceEdges()

bool hasFaceEdges ( ) const
inline

Definition at line 160 of file primitiveMeshI.H.

Referenced by primitiveMesh::faceEdges().

Here is the caller graph for this function:

◆ hasPointEdges()

bool hasPointEdges ( ) const
inline

Definition at line 166 of file primitiveMeshI.H.

◆ hasPointPoints()

bool hasPointPoints ( ) const
inline

Definition at line 172 of file primitiveMeshI.H.

Referenced by primitiveMesh::pointPoints().

Here is the caller graph for this function:

◆ hasCellPoints()

bool hasCellPoints ( ) const
inline

Definition at line 178 of file primitiveMeshI.H.

Referenced by primitiveMesh::cellPoints().

Here is the caller graph for this function:

◆ hasCellCentres()

bool hasCellCentres ( ) const
inline

Definition at line 184 of file primitiveMeshI.H.

◆ hasFaceCentres()

bool hasFaceCentres ( ) const
inline

Definition at line 190 of file primitiveMeshI.H.

◆ hasCellVolumes()

bool hasCellVolumes ( ) const
inline

Definition at line 196 of file primitiveMeshI.H.

◆ hasFaceAreas()

bool hasFaceAreas ( ) const
inline

Definition at line 202 of file primitiveMeshI.H.

◆ cellCells() [2/3]

const Foam::labelList & cellCells ( const label  celli,
DynamicList< label > &  storage 
) const

◆ cellCells() [3/3]

const Foam::labelList & cellCells ( const label  celli) const

Definition at line 151 of file primitiveMeshCellCells.C.

References primitiveMesh::cellCells().

Here is the call graph for this function:

◆ cellPoints() [2/3]

const Foam::labelList & cellPoints ( const label  celli,
DynamicList< label > &  storage 
) const

◆ cellPoints() [3/3]

const Foam::labelList & cellPoints ( const label  celli) const

Definition at line 101 of file primitiveMeshCellPoints.C.

References primitiveMesh::cellPoints().

Here is the call graph for this function:

◆ pointCells() [2/3]

const Foam::labelList & pointCells ( const label  pointi,
DynamicList< label > &  storage 
) const

◆ pointCells() [3/3]

const Foam::labelList & pointCells ( const label  pointi) const

Definition at line 174 of file primitiveMeshPointCells.C.

References primitiveMesh::pointCells().

Here is the call graph for this function:

◆ pointPoints() [2/3]

const Foam::labelList & pointPoints ( const label  pointi,
DynamicList< label > &  storage 
) const

◆ pointPoints() [3/3]

const Foam::labelList & pointPoints ( const label  pointi) const

Definition at line 135 of file primitiveMeshPointPoints.C.

References primitiveMesh::pointPoints().

Here is the call graph for this function:

◆ faceEdges() [2/3]

const Foam::labelList & faceEdges ( const label  facei,
DynamicList< label > &  storage 
) const

◆ faceEdges() [3/3]

const Foam::labelList & faceEdges ( const label  facei) const

Definition at line 624 of file primitiveMeshEdges.C.

References primitiveMesh::cellEdges(), and primitiveMesh::faceEdges().

Here is the call graph for this function:

◆ edgeFaces() [2/3]

const Foam::labelList & edgeFaces ( const label  edgeI,
DynamicList< label > &  storage 
) const

◆ edgeFaces() [3/3]

const Foam::labelList & edgeFaces ( const label  edgeI) const

Definition at line 103 of file primitiveMeshEdgeFaces.C.

References primitiveMesh::edgeFaces().

Here is the call graph for this function:

◆ edgeCells() [2/3]

const Foam::labelList & edgeCells ( const label  edgeI,
DynamicList< label > &  storage 
) const

◆ edgeCells() [3/3]

const Foam::labelList & edgeCells ( const label  edgeI) const

Definition at line 127 of file primitiveMeshEdgeCells.C.

References primitiveMesh::edgeCells().

Here is the call graph for this function:

◆ cellEdges() [2/3]

const Foam::labelList & cellEdges ( const label  celli,
DynamicList< label > &  storage 
) const

◆ cellEdges() [3/3]

const Foam::labelList & cellEdges ( const label  celli) const

Definition at line 673 of file primitiveMeshEdges.C.

References primitiveMesh::cellEdges().

Here is the call graph for this function:

◆ clearGeom()

void clearGeom ( )

Clear geometry.

Definition at line 125 of file primitiveMeshClear.C.

References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.

Referenced by polyMesh::clearGeom(), primitiveMesh::clearOut(), primitiveMesh::movePoints(), and cyclicACMIPolyPatch::resetAMI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearAddressing()

void clearAddressing ( )

Clear topological data.

Definition at line 141 of file primitiveMeshClear.C.

References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Pout.

Referenced by polyMesh::cellZones(), polyMesh::clearAddressing(), polyMesh::clearOut(), primitiveMesh::clearOut(), polyMesh::resetPrimitives(), and fvMesh::updateMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearOut()

void clearOut ( )

Clear all geometry and addressing unnecessary for CFD.

Definition at line 170 of file primitiveMeshClear.C.

References primitiveMesh::clearAddressing(), and primitiveMesh::clearGeom().

Referenced by primitiveMesh::reset(), and primitiveMesh::~primitiveMesh().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ closedThreshold_

Foam::scalar closedThreshold_ = 1.0e-6
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 234 of file primitiveMesh.H.

Referenced by primitiveMesh::setClosedThreshold().

◆ aspectThreshold_

Foam::scalar aspectThreshold_ = 1000
staticprotected

Aspect ratio warning threshold.

Definition at line 237 of file primitiveMesh.H.

Referenced by primitiveMesh::setAspectThreshold().

◆ nonOrthThreshold_

Foam::scalar nonOrthThreshold_ = 70
staticprotected

Non-orthogonality warning threshold in deg.

Definition at line 240 of file primitiveMesh.H.

Referenced by primitiveMesh::setNonOrthThreshold().

◆ skewThreshold_

Foam::scalar skewThreshold_ = 4
staticprotected

Skewness warning threshold.

Definition at line 243 of file primitiveMesh.H.

Referenced by primitiveMesh::setSkewThreshold().

◆ planarCosAngle_

Foam::scalar planarCosAngle_ = 1.0e-6
staticprotected

Threshold where faces are considered coplanar.

Definition at line 246 of file primitiveMesh.H.

◆ cellsPerEdge_

const unsigned cellsPerEdge_ = 4
static

Estimated number of cells per edge.

Definition at line 407 of file primitiveMesh.H.

◆ cellsPerPoint_

const unsigned cellsPerPoint_ = 8
static

Estimated number of cells per point.

Definition at line 410 of file primitiveMesh.H.

◆ facesPerCell_

const unsigned facesPerCell_ = 6
static

Estimated number of faces per cell.

Definition at line 413 of file primitiveMesh.H.

◆ facesPerEdge_

const unsigned facesPerEdge_ = 4
static

Estimated number of faces per edge.

Definition at line 416 of file primitiveMesh.H.

◆ facesPerPoint_

const unsigned facesPerPoint_ = 12
static

Estimated number of faces per point.

Definition at line 419 of file primitiveMesh.H.

◆ edgesPerCell_

const unsigned edgesPerCell_ = 12
static

Estimated number of edges per cell.

Definition at line 422 of file primitiveMesh.H.

◆ edgesPerFace_

const unsigned edgesPerFace_ = 4
static

Estimated number of edges per cell.

Definition at line 425 of file primitiveMesh.H.

◆ edgesPerPoint_

const unsigned edgesPerPoint_ = 6
static

Estimated number of edges per point.

Definition at line 428 of file primitiveMesh.H.

◆ pointsPerCell_

const unsigned pointsPerCell_ = 8
static

Estimated number of points per cell.

Definition at line 431 of file primitiveMesh.H.

◆ pointsPerFace_

const unsigned pointsPerFace_ = 4
static

Estimated number of points per face.

Definition at line 434 of file primitiveMesh.H.


The documentation for this class was generated from the following files: