Commit 8f5f41ef authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: Lagrangian - corrected particle LocalInteraction behaviour on coupled...

BUG: Lagrangian - corrected particle LocalInteraction behaviour on coupled patches.  See reactingParcelFoam/filter tutorial example
parent d480d8d4
......@@ -402,16 +402,16 @@ bool Foam::KinematicParcel<ParcelType>::hitPatch
td.keepParticle
);
// Invoke surface film model
if (td.cloud().surfaceFilm().transferParcel(p, pp, td.keepParticle))
if (isA<processorPolyPatch>(pp))
{
// All interactions done
return true;
// Skip processor patches
return false;
}
else if (pp.coupled())
else if (td.cloud().surfaceFilm().transferParcel(p, pp, td.keepParticle))
{
// Don't apply the patchInteraction models to coupled boundaries
return false;
// Surface film model consumes the interaction, i.e. all
// interactions done
return true;
}
else
{
......
......@@ -26,7 +26,6 @@ License
#include "patchInteractionDataList.H"
#include "stringListOps.H"
#include "emptyPolyPatch.H"
#include "cyclicAMIPolyPatch.H"
// * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
......
Supports Markdown
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