Foam::polyMeshCheck Namespace Reference

Functions

bool checkTopology (const polyMesh &mesh, const bool report=false)
 Check mesh topology for correctness. More...
 
bool checkGeometry (const polyMesh &mesh, const bool report=false)
 Check mesh geometry (& implicitly topology) for correctness. More...
 
bool checkMesh (const polyMesh &mesh, const bool report=false)
 Check mesh for correctness. Returns false for no error. More...
 

Variables

scalar closedThreshold = 1.0e-6
 Data to control mesh checking. More...
 
scalar aspectThreshold = 1000
 Aspect ratio warning threshold. More...
 
scalar nonOrthThreshold = 70
 Non-orthogonality warning threshold in deg. More...
 
scalar skewThreshold = 4
 Skewness warning threshold. More...
 
scalar planarCosAngle = 1.0e-6
 Threshold where faces are considered coplanar. More...
 

Detailed Description

Function Documentation

◆ checkTopology()

bool checkTopology ( const polyMesh mesh,
const bool  report = false 
)

Check mesh topology for correctness.

Returns false for no error.

Definition at line 648 of file polyMeshCheck.C.

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

Here is the call graph for this function:

◆ checkGeometry()

bool checkGeometry ( const polyMesh mesh,
const bool  report = false 
)

Check mesh geometry (& implicitly topology) for correctness.

Returns false for no error.

Definition at line 680 of file polyMeshCheck.C.

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

Here is the call graph for this function:

◆ checkMesh()

bool checkMesh ( const polyMesh mesh,
const bool  report = false 
)

Check mesh for correctness. Returns false for no error.

Definition at line 714 of file polyMeshCheck.C.

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

Referenced by attachPolyTopoChanger::attach(), motionSmootherAlgo::checkMesh(), checkMesh::execute(), motionSmootherAlgo::scaleMesh(), hexRef8::setRefinement(), and hexRef8::setUnrefinement().

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

Variable Documentation

◆ closedThreshold

Foam::scalar closedThreshold = 1.0e-6
extern

Data to control mesh checking.

Cell closedness warning threshold

set as the fraction of un-closed area to closed area

Definition at line 33 of file polyMeshCheck.C.

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

◆ aspectThreshold

Foam::scalar aspectThreshold = 1000
extern

Aspect ratio warning threshold.

Definition at line 34 of file polyMeshCheck.C.

Referenced by primitiveMesh::checkClosedCells().

◆ nonOrthThreshold

Foam::scalar nonOrthThreshold = 70
extern

Non-orthogonality warning threshold in deg.

Definition at line 35 of file polyMeshCheck.C.

Referenced by polyMesh::checkFaceOrthogonality().

◆ skewThreshold

Foam::scalar skewThreshold = 4
extern

Skewness warning threshold.

Definition at line 36 of file polyMeshCheck.C.

Referenced by polyMesh::checkFaceSkewness().

◆ planarCosAngle

Foam::scalar planarCosAngle = 1.0e-6
extern

Threshold where faces are considered coplanar.

Definition at line 37 of file polyMeshCheck.C.

Referenced by primitiveMesh::checkConcaveCells().