From dba34498a436f6bc3fa03875d0d01c1c95ed53f2 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 21 Aug 2013 14:28:48 +0100 Subject: [PATCH] MRFZone: Improved function organisation --- .../cfdTools/general/MRF/MRFZoneTemplates.C | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C index 3ae970e909..ff056fb3b3 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C @@ -54,30 +54,7 @@ void Foam::MRFZone::makeRelativeRhoFlux phii[facei] -= rho[facei]*(Omega ^ (Cfi[facei] - origin_)) & Sfi[facei]; } - // Included patches - forAll(includedFaces_, patchi) - { - forAll(includedFaces_[patchi], i) - { - label patchFacei = includedFaces_[patchi][i]; - - phi.boundaryField()[patchi][patchFacei] = 0.0; - } - } - - // Excluded patches - forAll(excludedFaces_, patchi) - { - forAll(excludedFaces_[patchi], i) - { - label patchFacei = excludedFaces_[patchi][i]; - - phi.boundaryField()[patchi][patchFacei] -= - rho.boundaryField()[patchi][patchFacei] - * (Omega ^ (Cf.boundaryField()[patchi][patchFacei] - origin_)) - & Sf.boundaryField()[patchi][patchFacei]; - } - } + makeRelativeRhoFlux(rho.boundaryField(), phi.boundaryField()); }