From 1ca0932b9be1abda44278b04d1bc39d46d9cf8d3 Mon Sep 17 00:00:00 2001 From: graham Date: Thu, 7 Jan 2010 17:13:13 +0000 Subject: [PATCH] Stabilising use of detJ for negative or zero values. Moving removeUnusedPoints to calcDualMesh from createFacesOwnerNeighbourAndPatches to allow the latter to be used to build an intermediate mesh. Adding the use of motionSmoother::checkMesh (as per snappyHexMesh) to a new function: checkPolyMeshQuality. Will be the analysis component of a filtering back-tracking scheme. --- .../conformalVoronoiMesh.H | 5 +- .../conformalVoronoiMeshCalcDualMesh.C | 117 ++++++++++++++++-- 2 files changed, 108 insertions(+), 14 deletions(-) diff --git a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.H b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.H index 94823908b1..5ec0a1bc78 100644 --- a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.H +++ b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMesh.H @@ -513,13 +513,16 @@ private: scalar collapseSizeLimitCoeff ) const; + //- Create a polyMesh and check its quality, reports which + // elements damage the mesh quality, allowing backtracking. + label checkPolyMeshQuality(const pointField& pts) const; + //- Re-index all of the the Delaunay cells void reindexDualVertices(const Map