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_));