From 7b2354079c5c20beeac73d8956fcb2ce372390a3 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Fri, 12 Jul 2019 16:38:04 +0200 Subject: [PATCH] BUG: distanceSurface has gaps in mesh (#1374) - need to be more generous when prefiltering the cell selection --- src/sampling/surface/distanceSurface/distanceSurface.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sampling/surface/distanceSurface/distanceSurface.C b/src/sampling/surface/distanceSurface/distanceSurface.C index aa065238b2..e066f62293 100644 --- a/src/sampling/surface/distanceSurface/distanceSurface.C +++ b/src/sampling/surface/distanceSurface/distanceSurface.C @@ -207,6 +207,9 @@ void Foam::distanceSurface::createGeometry() cellBb.clear(); cellBb.add(fvm.points(), fvm.cellPoints(i)); + // Expand slightly to catch corners + cellBb.inflate(0.1); + if (!cellBb.contains(nearest[i].hitPoint())) { ignoreCells.set(i); -- GitLab