pressureInletOutletVelocityFvPatchVectorField: Corrected limiting of the scaling factor

This commit is contained in:
Henry
2013-11-27 22:01:06 +00:00
parent 7429f59358
commit 5768a52bdf

View File

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