Skip to content

Commit

Permalink
fvOptions: limitVelocity: Fixed the correction factor
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Bainbridge committed Jul 27, 2017
1 parent 384f9a5 commit 16b559c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fvOptions/corrections/limitVelocity/limitVelocity.C
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -94,7 +94,7 @@ void Foam::fv::limitVelocity::correct(volVectorField& U)

if (magSqrUi > maxSqrU)
{
Uif[celli] *= maxSqrU/magSqrUi;
Uif[celli] *= sqrt(maxSqrU/magSqrUi);
}
}

Expand All @@ -115,7 +115,7 @@ void Foam::fv::limitVelocity::correct(volVectorField& U)

if (magSqrUi > maxSqrU)
{
Up[facei] *= maxSqrU/magSqrUi;
Up[facei] *= sqrt(maxSqrU/magSqrUi);
}
}
}
Expand Down

0 comments on commit 16b559c

Please sign in to comment.