Skip to content

Commit

Permalink
fvMeshStitcher: Prevent addition of small couplings from interfering …
Browse files Browse the repository at this point in the history
…with stabilisation

Resolves bug report https://bugs.openfoam.org/view.php?id=3965
  • Loading branch information
Will Bainbridge committed Mar 21, 2023
1 parent 00e25bd commit 182490e
Showing 1 changed file with 12 additions and 8 deletions.
Expand Up @@ -359,6 +359,7 @@ void Foam::fvMeshStitcher::intersectNonConformalCyclic
)
);
}

if (!owner)
{
c.nbr = c;
Expand All @@ -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;
}
}
}
}
Expand Down

0 comments on commit 182490e

Please sign in to comment.