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
commit 8eb01d5424
3 changed files with 23 additions and 1 deletions

View file

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

View file

@ -284,6 +284,14 @@ public:
trackingData& td 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 //- Overridable function to handle the particle hitting a
//- processorPatch //- processorPatch
void hitProcessorPatch void hitProcessorPatch