16 DACheckMesh::DACheckMesh(
27 fvMesh& meshNew =
const_cast<fvMesh&
>(mesh);
28 maxNonOrth_ = daOption_.
getSubDictOption<scalar>(
"checkMeshThreshold",
"maxNonOrth");
29 maxSkewness_ = daOption_.
getSubDictOption<scalar>(
"checkMeshThreshold",
"maxSkewness");
30 maxAspectRatio_ = daOption_.
getSubDictOption<scalar>(
"checkMeshThreshold",
"maxAspectRatio");
31 maxIncorrectlyOrientedFaces_ =
32 daOption_.
getSubDictOption<label>(
"checkMeshThreshold",
"maxIncorrectlyOrientedFaces");
33 meshNew.setNonOrthThreshold(maxNonOrth_);
34 meshNew.setSkewThreshold(maxSkewness_);
35 meshNew.setAspectThreshold(maxAspectRatio_);
37 Info <<
"DACheckMesh Thresholds: " << endl;
38 Info <<
"maxNonOrth: " << maxNonOrth_ << endl;
39 Info <<
"maxSkewness: " << maxSkewness_ << endl;
40 Info <<
"maxAspectRatio: " << maxAspectRatio_ << endl;
41 Info <<
"maxIncorrectlyOrientedFaces: " << maxIncorrectlyOrientedFaces_ << endl;
43 word surfaceFormat =
"vtk";
44 surfWriter.reset(surfaceWriter::New(surfaceFormat));
45 setWriter.reset(writer<scalar>::New(vtkSetWriter<scalar>::typeName));
64 Info <<
"Checking mesh quality for time = " << runTime.timeName() << endl;
66 label nFailedChecks =
checkGeometry(mesh, surfWriter, setWriter, maxIncorrectlyOrientedFaces_);
70 Info <<
"\nFailed " << nFailedChecks <<
" mesh checks.\n"
76 Info <<
"\nMesh OK.\n"