polyMeshCheck.H File Reference
Include dependency graph for polyMeshCheck.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam::meshCheck
 Collection of functions checking primitiveMesh.
 
 Foam
 Namespace for OpenFOAM.
 

Functions

tmp< scalarFieldfaceOrthogonality (const polyMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs)
 Generate orthogonality field. (1 for fully orthogonal, < 1 for. More...
 
tmp< scalarFieldfaceSkewness (const polyMesh &mesh, const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
 Generate skewness field. More...
 
tmp< scalarFieldfaceWeights (const polyMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
 Generate interpolation factors field. More...
 
tmp< scalarFieldvolRatio (const polyMesh &mesh, const scalarField &vol)
 Generate volume ratio field. More...
 
bool checkFaceOrthogonality (const polyMesh &mesh, const scalar nonOrthThreshold, const bool report=false, labelHashSet *setPtr=nullptr)
 Check face orthogonality. More...
 
bool checkFaceSkewness (const polyMesh &mesh, const scalar skewThreshold, const bool report=false, labelHashSet *setPtr=nullptr)
 Check face skewness. More...
 
bool checkEdgeAlignment (const polyMesh &mesh, const bool report, const Vector< label > &directions, labelHashSet *setPtr)
 Check edge alignment for 1D/2D cases. More...
 
bool checkCellDeterminant (const polyMesh &mesh, const bool report, labelHashSet *setPtr)
 
bool checkFaceWeight (const polyMesh &mesh, const bool report, const scalar minWeight=0.05, labelHashSet *setPtr=nullptr)
 Check for face weights. More...
 
bool checkVolRatio (const polyMesh &mesh, const bool report, const scalar minRatio=0.01, labelHashSet *setPtr=nullptr)
 Check for neighbouring cell volumes. More...
 
bool checkFaceOrthogonality (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 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 maxConcave, 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)
 Check the difference between normals of individual face-triangles (from. More...
 
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...
 

Detailed Description

Original source file polyMeshCheck.H

Definition in file polyMeshCheck.H.