mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added mag(normal) check to AMI face area intersect calc for robustness
This commit is contained in:
@ -781,7 +781,11 @@ Foam::scalar Foam::AMIInterpolation<SourcePatch, TargetPatch>::interArea
|
|||||||
// crude resultant norm
|
// crude resultant norm
|
||||||
const vector n = 0.5*(tgt.normal(tgtPoints) - src.normal(srcPoints));
|
const vector n = 0.5*(tgt.normal(tgtPoints) - src.normal(srcPoints));
|
||||||
|
|
||||||
scalar area = inter.calc(src, tgt, n, triMode_);
|
scalar area = 0;
|
||||||
|
if (mag(n) > ROOTVSMALL)
|
||||||
|
{
|
||||||
|
area = inter.calc(src, tgt, n, triMode_);
|
||||||
|
}
|
||||||
|
|
||||||
if ((debug > 1) && (area > 0))
|
if ((debug > 1) && (area > 0))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user