Commit a8e9c35c authored by sergio's avatar sergio
Browse files

BUG: Fixing valueDiff calculation

parent 2ac7b2f5
...@@ -280,7 +280,7 @@ void Foam::activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs() ...@@ -280,7 +280,7 @@ void Foam::activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs()
if (!fBased_) //pressure based then weighted by area if (!fBased_) //pressure based then weighted by area
{ {
valueDiff =/ patch().magSf(); valueDiff = valueDiff/gSum(patch().magSf());
} }
reduce(valueDiff, sumOp<scalar>()); reduce(valueDiff, sumOp<scalar>());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment