From bc21e2585acf9a7f2b04749d3fee23fb25b8a62c Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 25 Aug 2010 15:32:46 +0100 Subject: [PATCH] BUG: cyclicPolyPatch : uniform separation. --- .../polyPatches/constraint/cyclic/cyclicPolyPatch.C | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C index 8f540d82ba..330b912fb9 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C @@ -624,7 +624,18 @@ void Foam::cyclicPolyPatch::transformPosition(pointField& l) const } else if (separated()) { - l -= separation(); + const vectorField& s = separation(); + if (s.size() == 1) + { + forAll(l, i) + { + l[i] -= s[0]; + } + } + else + { + l -= s; + } } }