sign change due to OpenFOAM patch normal convention

This commit is contained in:
ignis 2018-09-06 17:59:20 +09:00
parent 88e6fbff82
commit 7281d28845

View file

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