Skip to content
Permalink
Browse files

fvOptions: limitVelocity: Fixed the correction factor

  • Loading branch information...
Will Bainbridge
Will Bainbridge committed Jul 27, 2017
1 parent 384f9a5 commit 16b559c1093019a4a85aa8c810c9d837dfa8fa4c
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/fvOptions/corrections/limitVelocity/limitVelocity.C
@@ -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
@@ -94,7 +94,7 @@ void Foam::fv::limitVelocity::correct(volVectorField& U)

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

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

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

0 comments on commit 16b559c

Please sign in to comment.
You can’t perform that action at this time.