primitiveMesh Class Referenceabstract

Cell-face mesh analysis engine. More...

Inheritance diagram for primitiveMesh:

Public Member Functions

 ClassName ("primitiveMesh")
 
 primitiveMesh (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
 Construct from components. More...
 
 primitiveMesh (const primitiveMesh &)
 Disallow default bitwise copy construction. More...
 
virtual ~primitiveMesh ()
 Destructor. More...
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells)
 Reset this primitiveMesh given the primitive array sizes. More...
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &cells)
 Reset this primitiveMesh given the primitive array sizes and cells. More...
 
void reset (const label nPoints, const label nInternalFaces, const label nFaces, const label nCells, cellList &&cells)
 Reset this primitiveMesh given the primitive array sizes and cells. More...
 
label nPoints () const
 
label nEdges () const
 
label nInternalFaces () const
 
label nFaces () const
 
label nCells () const
 
label nInternalPoints () const
 Points not on boundary. More...
 
label nInternal0Edges () const
 Internal edges (i.e. not on boundary face) using. More...
 
label nInternal1Edges () const
 Internal edges using 0 or 1 boundary point. More...
 
label nInternalEdges () const
 Internal edges using 0,1 or 2 boundary points. More...
 
virtual const pointFieldpoints () const =0
 Return mesh points. More...
 
virtual const faceListfaces () const =0
 Return faces. More...
 
virtual const labelListfaceOwner () const =0
 Face face-owner addressing. More...
 
virtual const labelListfaceNeighbour () const =0
 Face face-neighbour addressing. More...
 
virtual const pointFieldoldPoints () const =0
 Return old points for mesh motion. More...
 
virtual const pointFieldoldCellCentres () const =0
 Return old cell centres 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
 
const scalarFieldmagFaceAreas () 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...
 
void operator= (const primitiveMesh &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static void calcCells (cellList &, const labelUList &own, const labelUList &nei, const label nCells=-1)
 Helper function to calculate cell-face addressing from. More...
 
static bool calcPointOrder (label &nInternalPoints, labelList &pointMap, const faceList &, const label nInternalFaces, const label nPoints)
 Helper function to calculate point ordering. Returns true. More...
 
static 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, scalarField &magfAreas) const
 
void calcCellCentresAndVols () const
 Calculate cell centres and volumes. More...
 
void makeCellCentresAndVols (const vectorField &fCtrs, const vectorField &fAreas, vectorField &cellCtrs, scalarField &cellVols) const
 
void calcEdgeVectors () const
 Calculate edge vectors. More...
 
bool checkDuplicateFaces (const label, const Map< label > &, label &nBaffleFaces, labelHashSet *) const
 Check if all points on face are shared with another face. More...
 
bool checkCommonOrder (const label, const Map< label > &, labelHashSet *) const
 Check that shared points are in consecutive order. More...
 
bool checkClosedBoundary (const vectorField &, const bool, const PackedBoolList &) const
 Check boundary for closedness. More...
 
bool checkClosedCells (const vectorField &faceAreas, const scalarField &cellVolumes, const bool report, labelHashSet *setPtr, labelHashSet *aspectSetPtr, const Vector< label > &meshD) const
 Check cells for closedness. More...
 
bool checkFaceAreas (const vectorField &faceAreas, const bool report, const bool detailedReport, labelHashSet *setPtr) const
 Check for negative face areas. More...
 
bool checkCellVolumes (const scalarField &vols, const bool report, const bool detailedReport, labelHashSet *setPtr) const
 Check for negative cell volumes. More...
 
bool checkFaceOrthogonality (const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const
 Check for non-orthogonality. More...
 
bool checkFacePyramids (const pointField &points, const vectorField &ctrs, const bool report, const bool detailedReport, const scalar minPyrVol, labelHashSet *setPtr) const
 Check face pyramid volume. More...
 
bool checkFaceSkewness (const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs, const bool report, labelHashSet *setPtr) const
 Check face skewness. More...
 
bool checkFaceAngles (const pointField &points, const vectorField &faceAreas, const bool report, const scalar maxDeg, labelHashSet *setPtr) const
 Check face angles. More...
 
bool checkFaceFlatness (const pointField &points, const vectorField &faceCentres, const vectorField &faceAreas, const bool report, const scalar warnFlatness, labelHashSet *setPtr) const
 Check face warpage. More...
 
bool checkConcaveCells (const vectorField &fAreas, const pointField &fCentres, const bool report, labelHashSet *setPtr) const
 Check for concave cells by the planes of faces. More...
 
 primitiveMesh ()
 Construct null. More...
 

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

Constructor & Destructor Documentation

◆ primitiveMesh() [1/3]

primitiveMesh ( )
protected

Construct null.

Definition at line 39 of file primitiveMesh.C.

◆ primitiveMesh() [2/3]

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

Construct from components.

Definition at line 78 of file primitiveMesh.C.

◆ primitiveMesh() [3/3]

Disallow default bitwise copy construction.

◆ ~primitiveMesh()

~primitiveMesh ( )
virtual

Destructor.

Definition at line 120 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(), primitiveMesh::faceCentres(), and primitiveMesh::magFaceAreas().

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,
scalarField magfAreas 
) const
protected

◆ 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 208 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 264 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,
cellList &&  cells 
)

Reset this primitiveMesh given the primitive array sizes and cells.

Definition at line 285 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(), interpolationCellPointWallModified< Type >::calcPointField(), polyTopoChange::changeMesh(), pointZone::checkParallelSync(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), edgeCollapser::consistentCollapse(), polyMeshFilter::copyMesh(), fvMeshDistribute::distribute(), snappySnapDriver::doSnap(), edgeVertex::edgeToEVert(), cellClassification::fillHangingCells(), polyMeshFilter::filterEdges(), edgeVertex::getEdge(), surfaceSets::getHangingCells(), syncTools::getMasterPoints(), globalIndexAndTransform::globalIndexAndTransform(), cellClassification::growSurface(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), edgeVertex::isEdge(), cellFeatures::isFeatureVertex(), isoSurface::isoSurface(), 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(), primitiveMesh::reset(), polyMesh::resetPrimitives(), edgeCollapser::setRefinement(), pointMesh::size(), solidBodyMotionSolver::solidBodyMotionSolver(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), meshRefinement::splitMesh(), pointSet::sync(), hexRef8Data::sync(), syncTools::syncPointList(), meshRefinement::testSyncPointList(), globalMeshData::topoChange(), cellClassification::trimCutCells(), and edgeVertex::vertToEVert().

◆ nEdges()

◆ 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(), CentredFitSnGradData< Polynomial >::calcFit(), primitiveMesh::calcPointOrder(), primitiveMesh::cellCells(), CentredFitData< Polynomial >::CentredFitData(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkDefinition(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), faceZone::checkParallelSync(), Foam::polyMeshCheck::checkVolRatio(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), 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(), Foam::fvPatchDistWave::getInternalInfo(), repatchMesh::getNearest(), cellToCellStencil::insertFaceCells(), cellToFaceStencil::insertFaceCells(), fvMeshSubset::interpolate(), primitiveMesh::isInternalFace(), isoSurface::isoSurface(), fvMeshAdder::MapVolFields(), meshRefinement::mergeBaffles(), MeshedSurface< Foam::face >::MeshedSurface(), Foam::min(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), inversePointDistanceDiffusivity::operator()(), primitiveMesh::pointCells(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), repatchMesh::read(), refiner::refiner(), SloanRenumber::renumber(), primitiveMesh::reset(), mappedPatchBase::sampleSize(), fvMeshSubset::setLargeCellSubset(), tetDecomposer::setRefinement(), fvMatrix< Type >::setValue(), surfaceMesh::size(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), Foam::fvc::spread(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::swapFaceList(), Foam::fvc::sweep(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncFacePositions(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), raw::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(), polyMesh::addPatch(), preserveFaceZonesConstraint::apply(), preservePatchesConstraint::apply(), meshRefinement::baffleAndSplitMesh(), decompositionMethod::calcCellCells(), primitiveMesh::calcFaceCentresAndAreas(), cellToFaceStencil::calcFaceStencil(), CentredFitSnGradData< Polynomial >::calcFit(), CentredFitData< Polynomial >::CentredFitData(), polyTopoChange::changeMesh(), edgeCollapser::checkBadFaces(), meshRefinement::checkCoupledFaceZones(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), motionSmootherAlgo::checkMesh(), polyMesh::checkMeshMotion(), faceZone::checkParallelSync(), Foam::polyMeshCheck::checkVolRatio(), edgeCollapser::consistentCollapse(), polyMeshFilter::copyMesh(), meshRefinement::createBaffles(), meshRefinement::createZoneBaffles(), structuredDecomp::decompose(), decompositionMethod::decompose(), fvMeshDistribute::distribute(), snappyLayerDriver::doLayers(), snappySnapDriver::doSnap(), 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(), syncTools::getInternalOrCoupledFaces(), syncTools::getInternalOrMasterFaces(), syncTools::getMasterFaces(), repatchMesh::getNearest(), cellFeatures::isFeatureVertex(), isoSurface::isoSurface(), polyTopoChange::makeMesh(), mappedPatchFieldBase< Type >::mappedField(), faceSet::maxSize(), faceZoneSet::maxSize(), meshRefinement::mergeBaffles(), snappyLayerDriver::mergePatchFacesUndo(), MeshedSurface< Foam::face >::MeshedSurface(), NamedEnum< compressibleField, 8 >::names(), minEqOpFace::operator()(), listPlusEqOp< T >::operator()(), polyMesh::polyMesh(), Foam::polyMeshUnMergeCyclics(), snappySnapDriver::preSmoothPatch(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), repatchMesh::read(), refiner::refiner(), SloanRenumber::renumber(), structuredRenumber::renumber(), snappySnapDriver::repatchToSurface(), primitiveMesh::reset(), mappedPatchBase::sampleSize(), snappySnapDriver::scaleMesh(), decompositionMethod::setConstraints(), boundaryCutter::setRefinement(), tetDecomposer::setRefinement(), edgeCollapser::setRefinement(), Foam::fvc::smooth(), snappyRefineDriver::snappyRefineDriver(), meshRefinement::splitMesh(), Foam::fvc::spread(), MPLIC::surfaceAlpha(), syncTools::swapBoundaryCellList(), syncTools::swapBoundaryCellPositions(), syncTools::swapFaceList(), Foam::fvc::sweep(), faceSet::sync(), faceZoneSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncFacePositions(), globalMeshData::topoChange(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), raw::update(), UpwindFitData< Polynomial >::UpwindFitData(), polyMeshTools::volRatio(), wallLayerCells::wallLayerCells(), 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(), drippingEjection::correct(), structuredDecomp::decompose(), zoltanDecomp::decompose(), domainDecomposition::decompose(), decompositionMethod::decompose(), refinementHistory::distribute(), fvMeshDistribute::distribute(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), polyMesh::findCell(), primitiveMesh::findCell(), refinementParameters::findCells(), meshRefinement::findRegions(), interfaceProperties::fraction(), get_geom_list(), get_number_of_vertices(), get_vertex_list(), surfaceSets::getHangingCells(), Foam::fvPatchDistWave::getInternalInfo(), hexRef8::hexRef8(), hexRef8Data::hexRef8Data(), interRegionExplicitPorositySource::interRegionExplicitPorositySource(), isoSurface::isoSurface(), Kmesh::Kmesh(), Foam::levelSetFraction(), primitiveMesh::makeCellCentresAndVols(), polyTopoChange::makeMesh(), mappedPatchFieldBase< Type >::mappedField(), fvMeshAdder::MapPointFields(), meshToMesh::mapSrcToTgt(), meshToMesh::mapTgtToSrc(), cellSet::maxSize(), cellZoneSet::maxSize(), momentOfInertia::meshInertia(), Foam::min(), NamedEnum< compressibleField, 8 >::names(), cellQuality::nonOrthogonality(), minEqOpFace::operator()(), cellTable::operator=(), sampledSurface::pointAverage(), polyMesh::polyMesh(), fvMeshDistribute::printCoupleInfo(), fvMeshDistribute::printMeshInfo(), ensightParts::recalculate(), refinementHistory::refinementHistory(), refiner::refiner(), CuthillMcKeeRenumber::renumber(), SloanRenumber::renumber(), zoltanRenumber::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(), globalMeshData::topoChange(), loadBalancer::update(), distributor::update(), wallLayerCells::wallLayerCells(), 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()

◆ faces()

◆ faceOwner()

◆ faceNeighbour()

◆ oldPoints()

virtual const pointField& oldPoints ( ) const
pure virtual

Return old points for mesh motion.

Implemented in polyMesh.

◆ oldCellCentres()

virtual const pointField& oldCellCentres ( ) const
pure virtual

Return old cell centres for mesh motion.

Implemented in polyMesh.

◆ cellShapes()

const Foam::cellShapeList & cellShapes ( ) const

Return cell shapes.

Definition at line 337 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 129 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< compressibleField, 8 >::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]

◆ 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(), Foam::polyMeshCheck::checkCellDeterminant(), Foam::polyMeshCheck::checkFacePyramids(), edgeCollapser::consistentCollapse(), particle::correctAfterInteractionListReferral(), outletStabilised< Type >::correction(), meshRefinement::createBaffles(), geomCellLooper::cut(), topoCellLooper::cut(), domainDecomposition::decompose(), probes::findElements(), polyMeshTetDecomposition::findTet(), surfaceSets::getHangingCells(), Foam::meshTools::getSharedFace(), Foam::interpolatePointToCell(), hexMatcher::isA(), prismMatcher::isA(), pyrMatcher::isA(), tetMatcher::isA(), tetWedgeMatcher::isA(), wedgeMatcher::isA(), meshToMesh::mapAndOpTgtToSrc(), degenerateMatcher::match(), hexMatcher::matches(), prismMatcher::matches(), pyrMatcher::matches(), tetMatcher::matches(), tetWedgeMatcher::matches(), wedgeMatcher::matches(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), minEqOpFace::operator()(), inversePointDistanceDiffusivity::operator()(), treeDataCell::findIntersectOp::operator()(), polyMesh::pointInCell(), primitiveMesh::pointInCell(), polyMesh::polyMesh(), Foam::polyMeshZipUpCells(), polyMesh::readUpdate(), refiner::refiner(), MPLIC::setCellAlphaf(), fvMeshSubset::setCellSubset(), fvMeshSubset::setLargeCellSubset(), tetDecomposer::setRefinement(), meshCutter::setRefinement(), edgeCollapser::setRefinement(), fvMatrix< Type >::setValue(), snappyRefineDriver::snappyRefineDriver(), solidBodyMotionSolver::solidBodyMotionSolver(), meshRefinement::splitMesh(), MPLIC::surfaceAlpha(), layerInfo::updateFace(), outletStabilised< Type >::weights(), meshToMeshMethod::writeConnectivity(), and ensightPartCells::~ensightPartCells().

◆ edgeFaces() [1/3]

◆ pointFaces()

◆ cellEdges() [1/3]

◆ faceEdges() [1/3]

◆ pointEdges()

◆ 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]

◆ cellCentres()

const Foam::vectorField & cellCentres ( ) const

Definition at line 160 of file primitiveMeshCellCentresAndVols.C.

References primitiveMesh::calcCellCentresAndVols().

Referenced by polyTopoChange::addMesh(), waveAlphaFvPatchScalarField::alphan(), snappySnapDriver::avgCellCentres(), tetOverlapVolume::cellCellOverlapMinDecomp(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), polyMesh::checkFaceOrthogonality(), primitiveMesh::checkFaceOrthogonality(), primitiveMesh::checkFacePyramids(), polyMesh::checkFaceSkewness(), primitiveMesh::checkFaceSkewness(), polyMeshTetDecomposition::checkFaceTets(), polyMesh::checkFaceWeight(), motionSmootherAlgo::checkMesh(), fvPatch::Cn(), 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(), polyMesh::movePoints(), NamedEnum< compressibleField, 8 >::names(), cellQuality::nonOrthogonality(), polyMesh::oldCellCentres(), treeDataCell::findNearestOp::operator()(), InflationInjection< CloudType >::parcelsToInject(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), patchInjectionBase::setPositionAndCell(), tetDecomposer::setRefinement(), cellQuality::skewness(), tetIndices::tet(), polyMesh::topoChange(), waveVelocityFvPatchVectorField::Un(), WallPointBase< wallPoint >::updateCell(), WallFaceBase< wallFace >::updateCell(), refinementDistanceData::updateCell(), meshToMeshMethod::writeConnectivity(), cellSet::writeDebug(), and meshRefinement::zonify().

Here is the call graph for this function:

◆ faceCentres()

const Foam::vectorField & faceCentres ( ) const

Definition at line 162 of file primitiveMeshFaceCentresAndAreas.C.

References primitiveMesh::calcFaceCentresAndAreas().

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

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

◆ cellVolumes()

◆ faceAreas()

◆ magFaceAreas()

const Foam::scalarField & magFaceAreas ( ) const

Definition at line 184 of file primitiveMeshFaceCentresAndAreas.C.

References primitiveMesh::calcFaceCentresAndAreas().

Referenced by decompositionMethod::calcCellCells(), and cellPointWeight::findTriangle().

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

◆ movePoints()

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

Move points, returns volumes swept by faces in motion.

Definition at line 306 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 preserveBafflesConstraint::apply(), preserveFaceZonesConstraint::apply(), singleProcessorFaceSetsConstraint::apply(), addPatchCellLayer::calcSidePatch(), edgeFaceCirculator::cellLabel(), repatchPolyTopoChanger::changePatchID(), Foam::polyMeshCheck::checkFaceDotProduct(), Foam::polyMeshCheck::checkFacePyramids(), Foam::polyMeshCheck::checkFaceSkewness(), Foam::polyMeshCheck::checkFaceTets(), polyMeshTetDecomposition::checkFaceTets(), Foam::polyMeshCheck::checkFaceTwist(), Foam::polyMeshCheck::checkFaceWeights(), Foam::polyMeshCheck::checkNonOrtho(), faceZone::checkParallelSync(), Foam::polyMeshCheck::checkVolRatio(), outletStabilised< Type >::correction(), decompositionMethod::decompose(), primitiveMesh::edgeCells(), Foam::meshTools::faceOnCell(), primitiveMeshTools::facePyramidVolume(), Foam::polyMeshCheck::getAffectedCells(), Foam::meshTools::getSharedFace(), meshRefinement::mergeBaffles(), meshTriangulation::meshTriangulation(), particle::onBoundaryFace(), particle::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 >::setValue(), 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]

◆ 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]

◆ 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]

◆ 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]

◆ 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]

◆ 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]

◆ 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]

◆ 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 129 of file primitiveMeshClear.C.

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

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

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 146 of file primitiveMeshClear.C.

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

Referenced by polyMesh::addPatch(), polyMesh::cellZones(), polyMesh::clearAddressing(), polyMesh::clearOut(), primitiveMesh::clearOut(), polyMesh::reorderPatches(), polyMesh::reset(), and polyMesh::resetPrimitives().

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 175 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:

◆ operator=()

void operator= ( const primitiveMesh )
delete

Disallow default bitwise assignment.

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 228 of file primitiveMesh.H.

Referenced by primitiveMesh::setClosedThreshold().

◆ aspectThreshold_

Foam::scalar aspectThreshold_ = 1000
staticprotected

Aspect ratio warning threshold.

Definition at line 231 of file primitiveMesh.H.

Referenced by primitiveMesh::setAspectThreshold().

◆ nonOrthThreshold_

Foam::scalar nonOrthThreshold_ = 70
staticprotected

Non-orthogonality warning threshold in deg.

Definition at line 234 of file primitiveMesh.H.

Referenced by primitiveMesh::setNonOrthThreshold().

◆ skewThreshold_

Foam::scalar skewThreshold_ = 4
staticprotected

Skewness warning threshold.

Definition at line 237 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 240 of file primitiveMesh.H.

◆ cellsPerEdge_

const unsigned cellsPerEdge_ = 4
static

Estimated number of cells per edge.

Definition at line 404 of file primitiveMesh.H.

◆ cellsPerPoint_

const unsigned cellsPerPoint_ = 8
static

Estimated number of cells per point.

Definition at line 407 of file primitiveMesh.H.

◆ facesPerCell_

const unsigned facesPerCell_ = 6
static

Estimated number of faces per cell.

Definition at line 410 of file primitiveMesh.H.

◆ facesPerEdge_

const unsigned facesPerEdge_ = 4
static

Estimated number of faces per edge.

Definition at line 413 of file primitiveMesh.H.

◆ facesPerPoint_

const unsigned facesPerPoint_ = 12
static

Estimated number of faces per point.

Definition at line 416 of file primitiveMesh.H.

◆ edgesPerCell_

const unsigned edgesPerCell_ = 12
static

Estimated number of edges per cell.

Definition at line 419 of file primitiveMesh.H.

◆ edgesPerFace_

const unsigned edgesPerFace_ = 4
static

Estimated number of edges per cell.

Definition at line 422 of file primitiveMesh.H.

◆ edgesPerPoint_

const unsigned edgesPerPoint_ = 6
static

Estimated number of edges per point.

Definition at line 425 of file primitiveMesh.H.

◆ pointsPerCell_

const unsigned pointsPerCell_ = 8
static

Estimated number of points per cell.

Definition at line 428 of file primitiveMesh.H.

◆ pointsPerFace_

const unsigned pointsPerFace_ = 4
static

Estimated number of points per face.

Definition at line 431 of file primitiveMesh.H.


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