mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamyHexMesh: change inside/outside test to check for nearest intersection
This commit is contained in:
@ -683,14 +683,18 @@ Foam::Field<bool> Foam::conformationSurfaces::wellInOutSide
|
|||||||
vector hitDir = info[0].rawPoint() - samplePts[i];
|
vector hitDir = info[0].rawPoint() - samplePts[i];
|
||||||
hitDir /= mag(hitDir) + SMALL;
|
hitDir /= mag(hitDir) + SMALL;
|
||||||
|
|
||||||
if
|
pointIndexHit surfHit;
|
||||||
(
|
label hitSurface;
|
||||||
findSurfaceAnyIntersection
|
|
||||||
|
findSurfaceNearestIntersection
|
||||||
(
|
(
|
||||||
samplePts[i],
|
samplePts[i],
|
||||||
info[0].rawPoint() - 1e-3*mag(hitDir)*(hitDir)
|
info[0].rawPoint(),
|
||||||
)
|
surfHit,
|
||||||
)
|
hitSurface
|
||||||
|
);
|
||||||
|
|
||||||
|
if (surfHit.hit() && hitSurface != surfaces_[s])
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user