BUG: Fixing valueDiff calculation

This commit is contained in:
sergio
2016-06-06 10:15:04 +01:00
parent 2ac7b2f592
commit a8e9c35cb5

View File

@ -280,7 +280,7 @@ void Foam::activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs()
if (!fBased_) //pressure based then weighted by area
{
valueDiff =/ patch().magSf();
valueDiff = valueDiff/gSum(patch().magSf());
}
reduce(valueDiff, sumOp<scalar>());