From 5dfb0347c79dc3f5a107b2c8dea56597a644b01e Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Tue, 20 Dec 2011 15:22:24 +0000
Subject: [PATCH] BUG: cyclicPolyPatch: incorrect transformation if rotation

---
 .../polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
index 3cab9fa50c5..84fd20affc8 100644
--- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
+++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
@@ -266,7 +266,7 @@ void Foam::cyclicPolyPatch::calcTransforms
             // Calculate using the given rotation axis and centre. Do not
             // use calculated normals.
             vector n0 = findFaceMaxRadius(half0Ctrs);
-            vector n1 = findFaceMaxRadius(half1Ctrs);
+            vector n1 = -findFaceMaxRadius(half1Ctrs);
             n0 /= mag(n0) + VSMALL;
             n1 /= mag(n1) + VSMALL;
 
@@ -424,7 +424,7 @@ void Foam::cyclicPolyPatch::getCentresAndAnchors
         case ROTATIONAL:
         {
             vector n0 = findFaceMaxRadius(half0Ctrs);
-            vector n1 = findFaceMaxRadius(half1Ctrs);
+            vector n1 = -findFaceMaxRadius(half1Ctrs);
             n0 /= mag(n0) + VSMALL;
             n1 /= mag(n1) + VSMALL;
 
-- 
GitLab