sign change due to OpenFOAM patch normal convention
This commit is contained in:
parent
88e6fbff82
commit
7281d28845
1 changed files with 2 additions and 2 deletions
|
|
@ -172,9 +172,9 @@ void Foam::flowRateTiltedInletVelocityFvPatchVectorField::updateCoeffs()
|
||||||
const scalar t = db().time().timeOutputValue();
|
const scalar t = db().time().timeOutputValue();
|
||||||
|
|
||||||
// a simpler way of doing this would be nice
|
// a simpler way of doing this would be nice
|
||||||
const scalar avgU = -flowRate_->value(t)/gSum(patch().magSf());
|
const scalar avgU = flowRate_->value(t)/gSum(patch().magSf());
|
||||||
|
|
||||||
vectorField n(patch().nf());
|
vectorField n(-patch().nf());
|
||||||
|
|
||||||
scalarField B(Foam::asin(n & axis_));
|
scalarField B(Foam::asin(n & axis_));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue