Foam::polyMeshCheck Namespace Reference

Functions

scalar checkNonOrtho (const polyMesh &mesh, const bool report, const scalar severeNonorthogonalityThreshold, const label facei, const vector &s, const vector &d, label &severeNonOrth, label &errorNonOrth, labelHashSet *setPtr)
 
bool checkFaceTet (const polyMesh &mesh, const bool report, const scalar minTetQuality, const pointField &p, const label facei, const point &fc, const point &cc, labelHashSet *setPtr)
 
labelList getAffectedCells (const polyMesh &mesh, const labelList &changedFaces)
 
bool checkFaceDotProduct (const bool report, const scalar orthWarn, const polyMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
 Check face non-orthogonality. More...
 
bool checkFacePyramids (const bool report, const scalar minPyrVol, const polyMesh &, const vectorField &cellCentres, const pointField &p, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *)
 Check face pyramid volumes. More...
 
bool checkFaceTets (const bool report, const scalar minPyrVol, const polyMesh &, const vectorField &cellCentres, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *)
 Check face tetrahedra volumes. More...
 
bool checkFaceSkewness (const bool report, const scalar internalSkew, const scalar boundarySkew, const polyMesh &mesh, const pointField &points, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
 Check face skewness. More...
 
bool checkFaceWeights (const bool report, const scalar warnWeight, const polyMesh &mesh, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
 Check interpolation weights (0.5 for regular mesh) More...
 
bool checkVolRatio (const bool report, const scalar warnRatio, const polyMesh &mesh, const scalarField &cellVolumes, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet *setPtr)
 Cell volume ratio of neighbouring cells (1 for regular mesh) More...
 
bool checkFaceAngles (const bool report, const scalar maxDeg, const polyMesh &mesh, const vectorField &faceAreas, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
 Check convexity of angles in a face. See primitiveMesh for explanation. More...
 
bool checkFaceTwist (const bool report, const scalar minTwist, const polyMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
 
bool checkTriangleTwist (const bool report, const scalar minTwist, const polyMesh &, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
 Check consecutive face-triangle (from face-centre decomposition) normals. More...
 
bool checkFaceFlatness (const bool report, const scalar minFlatness, const polyMesh &, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
 Check for face areas v.s. sum of face-triangle (from face-centre. More...
 
bool checkFaceArea (const bool report, const scalar minArea, const polyMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
 Check for small faces. More...
 
bool checkCellDeterminant (const bool report, const scalar minDet, const polyMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
 Check the area of internal faces v.s. boundary faces. More...
 

Function Documentation

◆ checkNonOrtho()

scalar Foam::polyMeshCheck::checkNonOrtho ( const polyMesh mesh,
const bool  report,
const scalar  severeNonorthogonalityThreshold,
const label  facei,
const vector s,
const vector d,
label severeNonOrth,
label errorNonOrth,
labelHashSet setPtr 
)

Definition at line 44 of file polyMeshCheck.C.

References Foam::acos(), checkFaceTet(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), Foam::Pout, Foam::radToDeg(), s(), and WarningInFunction.

Referenced by checkFaceDotProduct().

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

◆ checkFaceTet()

bool Foam::polyMeshCheck::checkFaceTet ( const polyMesh mesh,
const bool  report,
const scalar  minTetQuality,
const pointField p,
const label  facei,
const point fc,
const point cc,
labelHashSet setPtr 
)

Definition at line 111 of file polyMeshCheck.C.

References Foam::endl(), f(), polyMesh::faces(), forAll, getAffectedCells(), HashSet< Key, Hash >::insert(), face::nextLabel(), and Foam::Pout.

Referenced by checkFaceTets(), and checkNonOrtho().

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

◆ getAffectedCells()

labelList Foam::polyMeshCheck::getAffectedCells ( const polyMesh mesh,
const labelList changedFaces 
)

Definition at line 163 of file polyMeshCheck.C.

References checkFaceDotProduct(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), forAll, primitiveMesh::isInternalFace(), and List< T >::size().

Referenced by checkCellDeterminant(), and checkFaceTet().

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

◆ checkFaceDotProduct()

bool checkFaceDotProduct ( const bool  report,
const scalar  orthWarn,
const polyMesh mesh,
const vectorField cellCentres,
const vectorField faceAreas,
const labelList checkFaces,
const List< labelPair > &  baffles,
labelHashSet setPtr 
)

◆ checkFacePyramids()

bool checkFacePyramids ( const bool  report,
const scalar  minPyrVol,
const polyMesh mesh,
const vectorField cellCentres,
const pointField p,
const labelList checkFaces,
const List< labelPair > &  baffles,
labelHashSet setPtr 
)

◆ checkFaceTets()

bool checkFaceTets ( const bool  report,
const scalar  minPyrVol,
const polyMesh mesh,
const vectorField cellCentres,
const vectorField faceCentres,
const pointField p,
const labelList checkFaces,
const List< labelPair > &  baffles,
labelHashSet setPtr 
)

◆ checkFaceSkewness()

bool checkFaceSkewness ( const bool  report,
const scalar  internalSkew,
const scalar  boundarySkew,
const polyMesh mesh,
const pointField points,
const vectorField cellCentres,
const vectorField faceCentres,
const vectorField faceAreas,
const labelList checkFaces,
const List< labelPair > &  baffles,
labelHashSet setPtr 
)

◆ checkFaceWeights()

bool checkFaceWeights ( const bool  report,
const scalar  warnWeight,
const polyMesh mesh,
const vectorField cellCentres,
const vectorField faceCentres,
const vectorField faceAreas,
const labelList checkFaces,
const List< labelPair > &  baffles,
labelHashSet setPtr 
)

◆ checkVolRatio()

bool checkVolRatio ( const bool  report,
const scalar  warnRatio,
const polyMesh mesh,
const scalarField cellVolumes,
const labelList checkFaces,
const List< labelPair > &  baffles,
labelHashSet setPtr 
)

◆ checkFaceAngles()

bool checkFaceAngles ( const bool  report,
const scalar  maxDeg,
const polyMesh mesh,
const vectorField faceAreas,
const pointField p,
const labelList checkFaces,
labelHashSet setPtr 
)

◆ checkFaceTwist()

◆ checkTriangleTwist()

bool checkTriangleTwist ( const bool  report,
const scalar  minTwist,
const polyMesh mesh,
const vectorField faceAreas,
const vectorField faceCentres,
const pointField p,
const labelList checkFaces,
labelHashSet setPtr 
)

Check consecutive face-triangle (from face-centre decomposition) normals.

Definition at line 1608 of file polyMeshCheck.C.

References Foam::abort(), checkFaceFlatness(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, UList< T >::fcIndex(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), face::nextLabel(), Foam::nl, Foam::reduce(), List< T >::size(), and WarningInFunction.

Referenced by checkFaceTwist(), and motionSmootherAlgo::checkMesh().

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

◆ checkFaceFlatness()

bool checkFaceFlatness ( const bool  report,
const scalar  minFlatness,
const polyMesh mesh,
const vectorField faceAreas,
const vectorField faceCentres,
const pointField p,
const labelList checkFaces,
labelHashSet setPtr 
)

Check for face areas v.s. sum of face-triangle (from face-centre.

decomposition) areas

Definition at line 1758 of file polyMeshCheck.C.

References Foam::abort(), checkFaceArea(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), face::nextLabel(), Foam::nl, Foam::reduce(), List< T >::size(), and WarningInFunction.

Referenced by motionSmootherAlgo::checkMesh(), and checkTriangleTwist().

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

◆ checkFaceArea()

bool checkFaceArea ( const bool  report,
const scalar  minArea,
const polyMesh mesh,
const vectorField faceAreas,
const labelList checkFaces,
labelHashSet setPtr 
)

Check for small faces.

Definition at line 1856 of file polyMeshCheck.C.

References checkCellDeterminant(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::nl, Foam::reduce(), and WarningInFunction.

Referenced by checkFaceFlatness(), and motionSmootherAlgo::checkMesh().

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

◆ checkCellDeterminant()

bool checkCellDeterminant ( const bool  report,
const scalar  minDet,
const polyMesh mesh,
const vectorField faceAreas,
const labelList checkFaces,
labelHashSet setPtr 
)

Check the area of internal faces v.s. boundary faces.

Definition at line 1917 of file polyMeshCheck.C.

References cells, primitiveMesh::cells(), Foam::det(), Foam::endl(), forAll, getAffectedCells(), Foam::Info, HashSet< Key, Hash >::insert(), Foam::mag(), Foam::min(), Foam::nl, Foam::reduce(), WarningInFunction, and Foam::Zero.

Referenced by checkFaceArea(), and motionSmootherAlgo::checkMesh().

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