diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C index 3a357601f33b459de86fb3afae4826db24e66d9a..2f1da5c6a0ccd1bc4f864f64229cde450cb8d9e0 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C @@ -71,7 +71,7 @@ void Foam::MRFZone::relativeRhoFlux phi.boundaryField()[patchi][patchFacei] -= rho.boundaryField()[patchi][patchFacei] - *(Omega ^ (Cf.boundaryField()[patchi][patchFacei] - origin)) + * (Omega ^ (Cf.boundaryField()[patchi][patchFacei] - origin)) & Sf.boundaryField()[patchi][patchFacei]; } } @@ -95,7 +95,7 @@ void Foam::MRFZone::absoluteRhoFlux forAll(internalFaces_, i) { label facei = internalFaces_[i]; - phi[facei] += (Omega ^ (Cf[facei] - origin)) & Sf[facei]; + phi[facei] += rho[facei]*(Omega ^ (Cf[facei] - origin)) & Sf[facei]; } // Included patches @@ -106,7 +106,8 @@ void Foam::MRFZone::absoluteRhoFlux label patchFacei = includedFaces_[patchi][i]; phi.boundaryField()[patchi][patchFacei] += - (Omega ^ (Cf.boundaryField()[patchi][patchFacei] - origin)) + rho.boundaryField()[patchi][patchFacei] + * (Omega ^ (Cf.boundaryField()[patchi][patchFacei] - origin)) & Sf.boundaryField()[patchi][patchFacei]; } } @@ -119,7 +120,8 @@ void Foam::MRFZone::absoluteRhoFlux label patchFacei = excludedFaces_[patchi][i]; phi.boundaryField()[patchi][patchFacei] += - (Omega ^ (Cf.boundaryField()[patchi][patchFacei] - origin)) + rho.boundaryField()[patchi][patchFacei] + * (Omega ^ (Cf.boundaryField()[patchi][patchFacei] - origin)) & Sf.boundaryField()[patchi][patchFacei]; } }