OpenFOAM: v1912 released! - For more information see https://www.openfoam.com/releases/openfoam-v1912

Commit fc3d515b authored by Mark Olesen's avatar Mark Olesen

BUG: distanceSurface has gaps in mesh (#1374)

- need to be more generous when prefiltering the cell selection
parent aab00788
...@@ -209,6 +209,9 @@ void Foam::distanceSurface::createGeometry() ...@@ -209,6 +209,9 @@ void Foam::distanceSurface::createGeometry()
cellBb.clear(); cellBb.clear();
cellBb.add(fvm.points(), fvm.cellPoints(i)); cellBb.add(fvm.points(), fvm.cellPoints(i));
// Expand slightly to catch corners
cellBb.inflate(0.1);
if (!cellBb.contains(nearest[i].hitPoint())) if (!cellBb.contains(nearest[i].hitPoint()))
{ {
ignoreCells.set(i); ignoreCells.set(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment