checkMesh::checkGeometry: Updated for changes to polyMeshCheck

This commit is contained in:
Henry Weller
2023-10-18 12:13:53 +01:00
parent c857c4f641
commit 2fae9768ef

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -26,6 +26,7 @@ License
#include "PatchTools.H"
#include "checkGeometry.H"
#include "polyMesh.H"
#include "polyMeshCheck.H"
#include "cellSet.H"
#include "faceSet.H"
#include "pointSet.H"
@ -549,7 +550,13 @@ Foam::label Foam::checkGeometry
)
|| (
validDirs == solDirs
&& mesh.checkEdgeAlignment(true, validDirs, &nonAlignedPoints)
&& polyMeshCheck::checkEdgeAlignment
(
mesh,
true,
validDirs,
&nonAlignedPoints
)
)
)
{
@ -670,7 +677,7 @@ Foam::label Foam::checkGeometry
{
faceSet faces(mesh, "nonOrthoFaces", mesh.nFaces()/100+1);
if (mesh.checkFaceOrthogonality(true, &faces))
if (polyMeshCheck::checkFaceOrthogonality(mesh, true, &faces))
{
noFailedChecks++;
}
@ -715,7 +722,7 @@ Foam::label Foam::checkGeometry
{
faceSet faces(mesh, "skewFaces", mesh.nFaces()/100+1);
if (mesh.checkFaceSkewness(true, &faces))
if (polyMeshCheck::checkFaceSkewness(mesh, true, &faces))
{
noFailedChecks++;
@ -890,7 +897,7 @@ Foam::label Foam::checkGeometry
if (allGeometry)
{
cellSet cells(mesh, "underdeterminedCells", mesh.nCells()/100);
if (mesh.checkCellDeterminant(true, &cells))
if (polyMeshCheck::checkCellDeterminant(mesh, true, &cells))
{
noFailedChecks++;
@ -930,7 +937,7 @@ Foam::label Foam::checkGeometry
if (allGeometry)
{
faceSet faces(mesh, "lowWeightFaces", mesh.nFaces()/100);
if (mesh.checkFaceWeight(true, 0.05, &faces))
if (polyMeshCheck::checkFaceWeight(mesh, true, 0.05, &faces))
{
noFailedChecks++;
@ -951,7 +958,7 @@ Foam::label Foam::checkGeometry
if (allGeometry)
{
faceSet faces(mesh, "lowVolRatioFaces", mesh.nFaces()/100);
if (mesh.checkVolRatio(true, 0.01, &faces))
if (polyMeshCheck::checkVolRatio(mesh, true, 0.01, &faces))
{
noFailedChecks++;