swirlFlowRateInletVelocityFvPatchVectorField: Avoid calculating origin and axis for patches with no faces
Resolves problem with reconstructPar
This commit is contained in:
parent
18d3aa150e
commit
af02f92b9e
1 changed files with 6 additions and 2 deletions
|
|
@ -65,7 +65,9 @@ swirlFlowRateInletVelocityFvPatchVectorField
|
||||||
dict.lookupOrDefault
|
dict.lookupOrDefault
|
||||||
(
|
(
|
||||||
"origin",
|
"origin",
|
||||||
gSum(patch().Cf()*patch().magSf())/gSum(patch().magSf())
|
patch().size()
|
||||||
|
? gSum(patch().Cf()*patch().magSf())/gSum(patch().magSf())
|
||||||
|
: Zero
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
axis_
|
axis_
|
||||||
|
|
@ -73,7 +75,9 @@ swirlFlowRateInletVelocityFvPatchVectorField
|
||||||
dict.lookupOrDefault
|
dict.lookupOrDefault
|
||||||
(
|
(
|
||||||
"axis",
|
"axis",
|
||||||
-gSum(patch().Sf())/gSum(patch().magSf())
|
patch().size()
|
||||||
|
? -gSum(patch().Sf())/gSum(patch().magSf())
|
||||||
|
: Zero
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
flowRate_(Function1<scalar>::New("flowRate", dict)),
|
flowRate_(Function1<scalar>::New("flowRate", dict)),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue