mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: cyclicPolyPatch: incorrect transformation if rotation
This commit is contained in:
@ -266,7 +266,7 @@ void Foam::cyclicPolyPatch::calcTransforms
|
|||||||
// Calculate using the given rotation axis and centre. Do not
|
// Calculate using the given rotation axis and centre. Do not
|
||||||
// use calculated normals.
|
// use calculated normals.
|
||||||
vector n0 = findFaceMaxRadius(half0Ctrs);
|
vector n0 = findFaceMaxRadius(half0Ctrs);
|
||||||
vector n1 = findFaceMaxRadius(half1Ctrs);
|
vector n1 = -findFaceMaxRadius(half1Ctrs);
|
||||||
n0 /= mag(n0) + VSMALL;
|
n0 /= mag(n0) + VSMALL;
|
||||||
n1 /= mag(n1) + VSMALL;
|
n1 /= mag(n1) + VSMALL;
|
||||||
|
|
||||||
@ -424,7 +424,7 @@ void Foam::cyclicPolyPatch::getCentresAndAnchors
|
|||||||
case ROTATIONAL:
|
case ROTATIONAL:
|
||||||
{
|
{
|
||||||
vector n0 = findFaceMaxRadius(half0Ctrs);
|
vector n0 = findFaceMaxRadius(half0Ctrs);
|
||||||
vector n1 = findFaceMaxRadius(half1Ctrs);
|
vector n1 = -findFaceMaxRadius(half1Ctrs);
|
||||||
n0 /= mag(n0) + VSMALL;
|
n0 /= mag(n0) + VSMALL;
|
||||||
n1 /= mag(n1) + VSMALL;
|
n1 /= mag(n1) + VSMALL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user