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
committed by Andrew Heather
parent 655741b804
commit 04c11064b3

View File

@ -444,10 +444,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 +