swirlFlowRateInletVelocityFvPatchVectorField: Added reduction to patch size
Resolves bug-report https://bugs.openfoam.org/view.php?id=3185
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user