mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamyHexMesh: do not point motion to cross surfaces
This commit is contained in:
@ -1613,6 +1613,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
|
||||
// Do not allow infinite recursion
|
||||
if (callCount > 7)
|
||||
{
|
||||
displacement = vector::zero;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1661,6 +1662,7 @@ void Foam::conformalVoronoiMesh::limitDisplacement
|
||||
if (magSqr(pt - surfHit.hitPoint()) <= searchDistanceSqr)
|
||||
{
|
||||
// Cannot limit displacement, point closer than tolerance
|
||||
displacement = vector::zero;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user