mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Particle interaction lists - do not include partially open wall faces. See #957
This commit is contained in:
@ -324,10 +324,15 @@ void Foam::InteractionLists<ParticleType>::buildInteractionLists()
|
|||||||
|
|
||||||
if (isA<wallPolyPatch>(patch))
|
if (isA<wallPolyPatch>(patch))
|
||||||
{
|
{
|
||||||
localWallFaces.append
|
const scalarField areaFraction(patch.areaFraction());
|
||||||
(
|
|
||||||
identity(patch.size(), patch.start())
|
forAll(areaFraction, facei)
|
||||||
);
|
{
|
||||||
|
if (areaFraction[facei] > 0.5)
|
||||||
|
{
|
||||||
|
localWallFaces.append(facei + patch.start());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,10 +340,12 @@ void Foam::InteractionLists<ParticleType>::buildInteractionLists()
|
|||||||
|
|
||||||
forAll(wallFaceBbs, i)
|
forAll(wallFaceBbs, i)
|
||||||
{
|
{
|
||||||
wallFaceBbs[i] = treeBoundBox
|
wallFaceBbs[i] =
|
||||||
(
|
treeBoundBox
|
||||||
mesh_.faces()[localWallFaces[i]].points(mesh_.points())
|
(
|
||||||
);
|
mesh_.points(),
|
||||||
|
mesh_.faces()[localWallFaces[i]]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// IAndT: index and transform
|
// IAndT: index and transform
|
||||||
|
|||||||
Reference in New Issue
Block a user