fvMeshStitcher: Prevent addition of small couplings from interfering with stabilisation
Resolves bug report https://bugs.openfoam.org/view.php?id=3965
This commit is contained in:
@ -359,6 +359,7 @@ void Foam::fvMeshStitcher::intersectNonConformalCyclic
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (!owner)
|
||||
{
|
||||
c.nbr = c;
|
||||
@ -367,15 +368,18 @@ void Foam::fvMeshStitcher::intersectNonConformalCyclic
|
||||
SfBf[patchi][patchFacei] = c.nbr.area;
|
||||
CfBf[patchi][patchFacei] = c.nbr.centre;
|
||||
|
||||
part origP
|
||||
(
|
||||
SfBf[origPp.index()][origFacei],
|
||||
CfBf[origPp.index()][origFacei]
|
||||
);
|
||||
origP -= c;
|
||||
if (i != -1)
|
||||
{
|
||||
part origP
|
||||
(
|
||||
SfBf[origPp.index()][origFacei],
|
||||
CfBf[origPp.index()][origFacei]
|
||||
);
|
||||
origP -= c;
|
||||
|
||||
SfBf[origPp.index()][origFacei] = origP.area;
|
||||
CfBf[origPp.index()][origFacei] = origP.centre;
|
||||
SfBf[origPp.index()][origFacei] = origP.area;
|
||||
CfBf[origPp.index()][origFacei] = origP.centre;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user