Skip to content
Snippets Groups Projects
Commit 7024c0e4 authored by william's avatar william
Browse files

BUG: Explicitly set keep particle flag in Colliding and MPPIC clouds

This stops all the particles on a given processor being deleted if the
last particle considered in the previous step was not being kept.
parent 4d7ab99f
Branches
Tags
No related merge requests found
......@@ -80,6 +80,8 @@ bool Foam::CollidingParcel<ParcelType>::move
p.angularMomentum() += 0.5*trackTime*p.torque();
td.keepParticle = true;
break;
}
......
......@@ -76,6 +76,8 @@ bool Foam::MPPICParcel<ParcelType>::move
p.UCorrect() =
td.cloud().dampingModel().velocityCorrection(p, trackTime);
td.keepParticle = true;
break;
}
case TrackData::tpPackingNoTrack:
......@@ -83,6 +85,8 @@ bool Foam::MPPICParcel<ParcelType>::move
p.UCorrect() =
td.cloud().packingModel().velocityCorrection(p, trackTime);
td.keepParticle = true;
break;
}
case TrackData::tpCorrectTrack:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment