Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c7560ad8
Commit
c7560ad8
authored
Dec 13, 2010
by
mattijs
Browse files
ENH: cyclicPolyPatch : disallow non-uniform rotational cyclic
parent
bb81cc9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
View file @
c7560ad8
...
...
@@ -273,6 +273,28 @@ void Foam::cyclicPolyPatch::calcTransforms
half1Normals
,
half0Tols
);
if
(
transform_
==
ROTATIONAL
&&
!
parallel
()
&&
forwardT
().
size
()
>
1
)
{
const_cast
<
tensorField
&>
(
forwardT
()).
setSize
(
1
);
const_cast
<
tensorField
&>
(
reverseT
()).
setSize
(
1
);
const_cast
<
boolList
&>
(
collocated
()).
setSize
(
1
);
WarningIn
(
"cyclicPolyPatch::calcTransforms
\n
"
" (
\n
"
" const primitivePatch&,
\n
"
" const UList<point>&,
\n
"
" const UList<point>&,
\n
"
" const UList<point>&,
\n
"
" const UList<point>&
\n
"
" )"
)
<<
"For transform "
<<
transformTypeNames
[
transform_
]
<<
" found non-uniform transform."
<<
" Setting the transformation to be a uniform rotation."
<<
endl
;
}
}
}
...
...
@@ -851,22 +873,6 @@ const Foam::edgeList& Foam::cyclicPolyPatch::coupledPoints() const
str
<<
"l "
<<
vertI
-
1
<<
' '
<<
vertI
<<
nl
;
}
}
// Remove any addressing calculated for the coupled edges calculation
const_cast
<
primitivePatch
&>
(
static_cast
<
const
primitivePatch
&>
(
*
this
)
).
clearOut
();
const_cast
<
primitivePatch
&>
(
static_cast
<
const
primitivePatch
&>
(
neighbPatch
()
)
).
clearOut
();
}
return
*
coupledPointsPtr_
;
}
...
...
@@ -1006,22 +1012,6 @@ const Foam::edgeList& Foam::cyclicPolyPatch::coupledEdges() const
str
<<
"l "
<<
vertI
-
1
<<
' '
<<
vertI
<<
nl
;
}
}
// Remove any addressing calculated for the coupled edges calculation
const_cast
<
primitivePatch
&>
(
static_cast
<
const
primitivePatch
&>
(
*
this
)
).
clearOut
();
const_cast
<
primitivePatch
&>
(
static_cast
<
const
primitivePatch
&>
(
neighbPatch
)
).
clearOut
();
}
return
*
coupledEdgesPtr_
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment