particle: Corrected the direction of tracking when passing through an

AMI. Applied the transformation.
This commit is contained in:
Will Bainbridge
2017-05-04 18:25:41 +01:00
parent 53d3d6fb6f
commit 6ff7de9c49

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 +