diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C index 3ae970e909c74fec8a45d549544080f76793d7eb..ff056fb3b352862b579509ffe070f1f7261dfc7e 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()); }