KinematicParcel: Do not execute face/patch functions when inactive

Resolves bug report https://bugs.openfoam.org/view.php?id=3084
This commit is contained in:
Will Bainbridge
2018-10-12 08:57:10 +01:00
parent 1bc13ff592
commit 166e3a7a1f

View File

@ -349,14 +349,14 @@ bool Foam::KinematicParcel<ParcelType>::move
p.age() += dt;
if (p.onFace())
if (p.active() && p.onFace())
{
cloud.functions().postFace(p, ttd.keepParticle);
}
cloud.functions().postMove(p, dt, start, ttd.keepParticle);
if (p.onFace() && ttd.keepParticle)
if (p.active() && p.onFace() && ttd.keepParticle)
{
p.hitFace(s, cloud, ttd);
}