From 7f71a9bcf6ddc7b1951537c12fba2795f16d5c41 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs@hunt.opencfd.co.uk> Date: Fri, 27 Feb 2009 15:40:44 +0000 Subject: [PATCH] coupled faces included --- .../cfdTools/general/MRF/MRFZone.C | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C index ab9709e9938..6250de7e24b 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZone.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZone.C @@ -32,8 +32,6 @@ License #include "PackedList.H" #include "syncTools.H" -#include "faceSet.H" - // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::MRFZone::MRFZone(const fvMesh& mesh, Istream& is) @@ -106,6 +104,23 @@ Foam::MRFZone::MRFZone(const fvMesh& mesh, Istream& is) zoneFacesSet[faceI] = 1u; } } + forAll(patches, patchI) + { + const polyPatch& pp = patches[patchI]; + + if (pp.coupled()) + { + forAll(pp, i) + { + label faceI = pp.start()+i; + + if (zoneCell.get(own[faceI]) == 1u) + { + zoneFacesSet[faceI] = 1u; + } + } + } + } syncTools::syncFaceList(mesh_, zoneFacesSet, orEqOp<unsigned int>()); -- GitLab