From 75d5b4a2895c0748b3c58bbc104e73dd5a1e85eb Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Fri, 21 Dec 2018 19:26:11 +0100 Subject: [PATCH] Bugfix in pointPatchInterpolate Regarding boundary condition update for non coupled boundaries of point fields, take 2 (my mistake: Vuko Vukcevic) Author: Dario Zivkovic. --- .../pointPatchInterpolate.C | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/finiteVolume/interpolation/volPointInterpolation/pointPatchInterpolation/pointPatchInterpolate.C b/src/finiteVolume/interpolation/volPointInterpolation/pointPatchInterpolation/pointPatchInterpolate.C index 1155c95d1..9d7c9ab4f 100644 --- a/src/finiteVolume/interpolation/volPointInterpolation/pointPatchInterpolation/pointPatchInterpolate.C +++ b/src/finiteVolume/interpolation/volPointInterpolation/pointPatchInterpolation/pointPatchInterpolate.C @@ -169,12 +169,6 @@ void pointPatchInterpolation::interpolate { pf.boundaryField()[patchi].initAddField(); } - else - { - // Bugfix: Need to update ordinary boundary conditions. - // Dario Zivkovic, 8/Dec/2018. - pf.boundaryField()[patchi].initEvaluate(); - } } forAll(pf.boundaryField(), patchi) @@ -186,15 +180,11 @@ void pointPatchInterpolation::interpolate pf.internalField() ); } - else - { - // Bugfix: Need to update ordinary boundary conditions. - // Dario Zivkovic, 8/Dec/2018. - pf.boundaryField()[patchi].evaluate(); - } } - // All boundaries already updated. Nothing to do. VV, 4/Dec/2017. + // Bugfix: Must update boundary conditions for e.g. fixedValue that changes + // within e.g. fvMotion solver. Dario Zivkovic, 21/Dec/2018. + pf.correctBoundaryConditions(); if (debug) {