Skip to content
Snippets Groups Projects
Commit 5768a52b authored by Henry's avatar Henry
Browse files

pressureInletOutletVelocityFvPatchVectorField: Corrected limiting of the scaling factor

parent 7429f593
No related merge requests found
......@@ -220,7 +220,7 @@ void Foam::pressureInletOutletVelocityFvPatchVectorField::updateCoeffs()
// scalarField magSqrUt(magSqr(tangentialVelocity_));
// scalarField scale
// (
// max(sqrt((magSqrUt - magSqr(refValue()))/magSqrUt), scalar(0))
// sqrt(max(magSqrUt - magSqr(refValue()), scalar(0))/magSqrUt)
// );
// refValue() += scale*tangentialVelocity_;
refValue() += tangentialVelocity_;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment