mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Adding area weighted average to U mean calculation for uniformJump option in fan BC
This commit is contained in:
@ -46,7 +46,8 @@ void Foam::fanFvPatchField<Foam::scalar>::calcFanJump()
|
|||||||
scalarField Un(max(phip/patch().magSf(), scalar(0)));
|
scalarField Un(max(phip/patch().magSf(), scalar(0)));
|
||||||
if (uniformJump_)
|
if (uniformJump_)
|
||||||
{
|
{
|
||||||
Un = gAverage(Un);
|
scalar area = gSum(patch().magSf());
|
||||||
|
Un = gSum(Un*patch().magSf())/area;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
|
if (phi.dimensions() == dimDensity*dimVelocity*dimArea)
|
||||||
|
|||||||
Reference in New Issue
Block a user