swirlFlowRateInletVelocityFvPatchVectorField: Added reduction to patch size

Resolves bug-report https://bugs.openfoam.org/view.php?id=3185
This commit is contained in:
Henry Weller
2019-03-05 12:07:19 +00:00
parent b5e27b7a9d
commit 5e7c0aaac1

View File

@ -65,7 +65,7 @@ swirlFlowRateInletVelocityFvPatchVectorField
dict.lookupOrDefault
(
"origin",
patch().size()
returnReduce(patch().size(), sumOp<label>())
? gSum(patch().Cf()*patch().magSf())/gSum(patch().magSf())
: Zero
)
@ -75,7 +75,7 @@ swirlFlowRateInletVelocityFvPatchVectorField
dict.lookupOrDefault
(
"axis",
patch().size()
returnReduce(patch().size(), sumOp<label>())
? -gSum(patch().Sf())/gSum(patch().magSf())
: Zero
)