From f5adbc85cf43093bb81e8b8a12a7cdf0914de9b8 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Wed, 24 Sep 2014 14:52:42 +0100 Subject: [PATCH] ENH: motionSmootherAlgo: guarantee coupled point consistency --- src/dynamicMesh/motionSmoother/motionSmootherAlgo.C | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/dynamicMesh/motionSmoother/motionSmootherAlgo.C b/src/dynamicMesh/motionSmoother/motionSmootherAlgo.C index b817777a3e3..d546ff86bb7 100644 --- a/src/dynamicMesh/motionSmoother/motionSmootherAlgo.C +++ b/src/dynamicMesh/motionSmoother/motionSmootherAlgo.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -528,6 +528,16 @@ void Foam::motionSmootherAlgo::setDisplacement } + // Combine any coupled points + syncTools::syncPointList + ( + mesh, + displacement, + maxMagEqOp(), // combine op + vector::zero // null value + ); + + // Adapt the fixedValue bc's (i.e. copy internal point data to // boundaryField for all affected patches) setDisplacementPatchFields(patchIDs, displacement); -- GitLab