From c3251bc40081a5a2c1974abf0785ce17c470ba04 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 26 Sep 2018 14:50:38 +0100 Subject: [PATCH] Reset gamma and sGamma patch values for IB patches --- .../immersedBoundary/include/updateIbMasks.H | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/immersedBoundary/immersedBoundary/include/updateIbMasks.H b/src/immersedBoundary/immersedBoundary/include/updateIbMasks.H index e9091dab4..35b09f31d 100644 --- a/src/immersedBoundary/immersedBoundary/include/updateIbMasks.H +++ b/src/immersedBoundary/immersedBoundary/include/updateIbMasks.H @@ -31,6 +31,14 @@ gamma.boundaryField()[patchI] = sGamma.boundaryField()[patchI]; } + else + { + sGamma.boundaryField()[patchI] = + scalarField(mesh.boundary()[patchI].size(), 1); + + gamma.boundaryField()[patchI] = + scalarField(mesh.boundary()[patchI].size(), 1); + } } // Adjust the mask in dead faces and dead cells