From 7281d28845eec1467c3d97fdcc23bb3e8446cddd Mon Sep 17 00:00:00 2001 From: ignis Date: Thu, 6 Sep 2018 17:59:20 +0900 Subject: [PATCH] sign change due to OpenFOAM patch normal convention --- flowRateTiltedInletVelocityFvPatchVectorField.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flowRateTiltedInletVelocityFvPatchVectorField.C b/flowRateTiltedInletVelocityFvPatchVectorField.C index 5da5374..1ea94af 100644 --- a/flowRateTiltedInletVelocityFvPatchVectorField.C +++ b/flowRateTiltedInletVelocityFvPatchVectorField.C @@ -172,9 +172,9 @@ void Foam::flowRateTiltedInletVelocityFvPatchVectorField::updateCoeffs() const scalar t = db().time().timeOutputValue(); // 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_));