BUG: Lagrangian - corrected particle LocalInteraction behaviour on coupled patches. See reactingParcelFoam/filter tutorial example

This commit is contained in:
Andrew Heather
2017-05-17 20:48:00 +01:00
parent f68896605e
commit 8ff163713d
2 changed files with 8 additions and 9 deletions

View File

@ -402,17 +402,17 @@ 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;
}
else if (pp.coupled())
{
// Don't apply the patchInteraction models to coupled boundaries
// Skip processor patches
return false;
}
else if (td.cloud().surfaceFilm().transferParcel(p, pp, td.keepParticle))
{
// Surface film model consumes the interaction, i.e. all
// interactions done
return true;
}
else
{
// Invoke patch interaction model

View File

@ -26,7 +26,6 @@ License
#include "patchInteractionDataList.H"
#include "stringListOps.H"
#include "emptyPolyPatch.H"
#include "cyclicAMIPolyPatch.H"
// * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //