Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev

This commit is contained in:
Henry Weller
2017-05-05 18:31:21 +01:00
3 changed files with 23 additions and 1 deletions

View File

@ -420,10 +420,12 @@ void Foam::particle::hitCyclicAMIPatch
facei_ = tetFacei_ = receiveFacei + receiveCpp.start();
// Locate the particle on the recieving side
vector directionT = direction;
cpp.reverseTransformDirection(directionT, sendFacei);
locate
(
pos,
&direction,
&directionT,
mesh_.faceOwner()[facei_],
false,
"Particle crossed between " + cyclicAMIPolyPatch::typeName +

View File

@ -209,6 +209,18 @@ void Foam::trackedParticle::hitCyclicPatch
}
void Foam::trackedParticle::hitCyclicAMIPatch
(
const cyclicAMIPolyPatch&,
trackingData& td,
const vector&
)
{
// Remove particle
td.keepParticle = false;
}
void Foam::trackedParticle::hitProcessorPatch
(
const processorPolyPatch&,

View File

@ -284,6 +284,14 @@ public:
trackingData& td
);
//- Overridable function to handle the particle hitting a cyclicAMI
void hitCyclicAMIPatch
(
const cyclicAMIPolyPatch&,
trackingData& td,
const vector&
);
//- Overridable function to handle the particle hitting a
//- processorPatch
void hitProcessorPatch