BUG: contactAngleForce: avoid suppresing the film entering the domain (fixes #2651)

This commit is contained in:
Kutalmis Bercin
2022-12-06 15:52:13 +00:00
committed by Andrew Heather
parent 6f2c609a14
commit 993b7af513

View File

@ -167,6 +167,21 @@ tmp<faVectorMatrix> contactAngleForce::correct(areaVectorField& U)
}
}
for (const faPatchScalarField& sigmaBf : sigma.boundaryField())
{
const faPatch& p = sigmaBf.patch();
if (!p.coupled())
{
const labelUList& faces = p.edgeFaces();
forAll(sigmaBf, edgei)
{
const label face0 = faces[edgei];
force[face0] = Zero;
}
}
}
if (film().regionMesh().time().writeTime())
{