particle: Made wallData purely geometric on moving meshes

This removes a possible inconsistency in the motion at walls, preventing
certain types of infinite loop being entered.
This commit is contained in:
Will Bainbridge
2018-07-11 19:22:06 +01:00
parent 35dd88e553
commit b47ed15d5e

View File

@ -712,12 +712,12 @@ void Foam::KinematicCloud<CloudType>::patchData
// component; the lid velocity in a lid-driven cavity case, for example. We
// want the particle to interact with this velocity, so we look it up in the
// velocity field and use it to set the wall-tangential component.
if (isA<wallPolyPatch>(pp))
if (!mesh_.moving() && isA<wallPolyPatch>(pp))
{
const label patchi = pp.index();
const label patchFacei = pp.whichFace(p.face());
// We only want to use the boundary condition value onlyif it is set
// We only want to use the boundary condition value only if it is set
// by the boundary condition. If the boundary values are extrapolated
// (e.g., slip conditions) then they represent the motion of the fluid
// just inside the domain rather than that of the wall itself.