From 5768a52bdf72c55c3b9baea69cfa1875a5ff739b Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 27 Nov 2013 22:01:06 +0000 Subject: [PATCH] pressureInletOutletVelocityFvPatchVectorField: Corrected limiting of the scaling factor --- .../pressureInletOutletVelocityFvPatchVectorField.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C index 6b12a664ce..fda087d8b5 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C @@ -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_;