Commit a4b62e65 authored by sergio's avatar sergio
Browse files

Adding area weighted average to U mean calculation for uniformJump option in fan BC

parent 6ffdce83
......@@ -46,7 +46,8 @@ void Foam::fanFvPatchField<Foam::scalar>::calcFanJump()
scalarField Un(max(phip/patch().magSf(), scalar(0)));
if (uniformJump_)
Un = gAverage(Un);
scalar area = gSum(patch().magSf());
Un = gSum(Un*patch().magSf())/area;
if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
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