Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
3880c803
Commit
3880c803
authored
Jul 02, 2013
by
mattijs
Browse files
ENH: motionSmoother: allow overriding constraint patches
parent
e983d404
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamicMesh/motionSmoother/motionSmoother.C
View file @
3880c803
...
...
@@ -1056,6 +1056,16 @@ bool Foam::motionSmoother::scaleMesh
pointField
newPoints
;
{
// Create overall displacement with same b.c.s as displacement_
wordList
actualPatchTypes
;
{
const
pointBoundaryMesh
&
pbm
=
displacement_
.
mesh
().
boundary
();
actualPatchTypes
.
setSize
(
pbm
.
size
());
forAll
(
pbm
,
patchI
)
{
actualPatchTypes
[
patchI
]
=
pbm
[
patchI
].
type
();
}
}
pointVectorField
totalDisplacement
(
IOobject
...
...
@@ -1068,7 +1078,8 @@ bool Foam::motionSmoother::scaleMesh
false
),
scale_
*
displacement_
,
displacement_
.
boundaryField
().
types
()
displacement_
.
boundaryField
().
types
(),
actualPatchTypes
);
correctBoundaryConditions
(
totalDisplacement
);
...
...
Write
Preview
Supports
Markdown
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