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... | |
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().
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().
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().
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 | ||
) |
Check face non-orthogonality.
Definition at line 195 of file polyMeshCheck.C.
References Foam::acos(), polyMesh::boundaryMesh(), checkFacePyramids(), checkNonOrtho(), Foam::cos(), Foam::degToRad(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), UList< T >::first(), forAll, Foam::Info, primitiveMesh::isInternalFace(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), patches, patchi, Foam::radToDeg(), Foam::reduce(), SeriousErrorInFunction, syncTools::swapBoundaryFacePositions(), and polyBoundaryMesh::whichPatch().
Referenced by motionSmootherAlgo::checkMesh(), and getAffectedCells().
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 | ||
) |
Check face pyramid volumes.
Definition at line 377 of file polyMeshCheck.C.
References primitiveMesh::cells(), checkFaceTets(), Foam::endl(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), UList< T >::first(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::Pout, Foam::reduce(), and SeriousErrorInFunction.
Referenced by checkFaceDotProduct(), and motionSmootherAlgo::checkMesh().
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 | ||
) |
Check face tetrahedra volumes.
Definition at line 558 of file polyMeshCheck.C.
References polyMesh::boundaryMesh(), checkFaceSkewness(), checkFaceTet(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMeshTetDecomposition::findBasePoint(), polyMeshTetDecomposition::findSharedBasePoint(), UList< T >::first(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), patches, patchi, Foam::reduce(), SeriousErrorInFunction, syncTools::swapBoundaryFacePositions(), and polyBoundaryMesh::whichPatch().
Referenced by checkFacePyramids(), and motionSmootherAlgo::checkMesh().
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.
Definition at line 787 of file polyMeshCheck.C.
References primitiveMeshTools::boundaryFaceSkewness(), polyMesh::boundaryMesh(), checkFaceWeights(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), primitiveMeshTools::faceSkewness(), UList< T >::first(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::max(), primitiveMesh::nInternalFaces(), Foam::nl, patches, Foam::Pout, Foam::reduce(), syncTools::swapBoundaryCellPositions(), WarningInFunction, and polyBoundaryMesh::whichPatch().
Referenced by checkFaceTets(), and motionSmootherAlgo::checkMesh().
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)
Definition at line 1000 of file polyMeshCheck.C.
References polyMesh::boundaryMesh(), checkVolRatio(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), UList< T >::first(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), Foam::min(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, patchi, Foam::Pout, Foam::reduce(), syncTools::swapBoundaryFacePositions(), WarningInFunction, and polyBoundaryMesh::whichPatch().
Referenced by checkFaceSkewness(), and motionSmootherAlgo::checkMesh().
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)
Definition at line 1155 of file polyMeshCheck.C.
References polyMesh::boundaryMesh(), checkFaceAngles(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), UList< T >::first(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), Foam::max(), Foam::min(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, patchi, Foam::Pout, Foam::reduce(), syncTools::swapBoundaryFaceList(), WarningInFunction, and polyBoundaryMesh::whichPatch().
Referenced by checkFaceWeights(), and motionSmootherAlgo::checkMesh().
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.
Definition at line 1293 of file polyMeshCheck.C.
References Foam::abort(), Foam::asin(), checkFaceTwist(), Foam::degToRad(), Foam::endl(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, UList< T >::fcIndex(), UList< T >::first(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), UList< T >::last(), Foam::mag(), Foam::max(), Foam::min(), Foam::radToDeg(), Foam::reduce(), Foam::sin(), and WarningInFunction.
Referenced by motionSmootherAlgo::checkMesh(), and checkVolRatio().
bool checkFaceTwist | ( | const bool | report, |
const scalar | minTwist, | ||
const polyMesh & | mesh, | ||
const vectorField & | cellCentres, | ||
const vectorField & | faceAreas, | ||
const vectorField & | faceCentres, | ||
const pointField & | p, | ||
const labelList & | checkFaces, | ||
labelHashSet * | setPtr | ||
) |
Definition at line 1424 of file polyMeshCheck.C.
References Foam::abort(), polyMesh::boundaryMesh(), checkTriangleTwist(), Foam::endl(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, HashSet< Key, Hash >::insert(), primitiveMesh::isInternalFace(), Foam::mag(), face::nextLabel(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, Foam::reduce(), List< T >::size(), syncTools::swapBoundaryFacePositions(), WarningInFunction, polyBoundaryMesh::whichPatch(), Foam::Zero, and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
Referenced by checkFaceAngles(), and motionSmootherAlgo::checkMesh().
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().
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().
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().
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().