From 3880c8037a5b181a91fdc1dceebd0ac61e819602 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Tue, 2 Jul 2013 12:30:19 +0100 Subject: [PATCH] ENH: motionSmoother: allow overriding constraint patches --- src/dynamicMesh/motionSmoother/motionSmoother.C | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/dynamicMesh/motionSmoother/motionSmoother.C b/src/dynamicMesh/motionSmoother/motionSmoother.C index dad3ea59774..3e87fbd7d51 100644 --- a/src/dynamicMesh/motionSmoother/motionSmoother.C +++ b/src/dynamicMesh/motionSmoother/motionSmoother.C @@ -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); -- GitLab