Skip to content
Snippets Groups Projects
Commit bd4fcd16 authored by Will Bainbridge's avatar Will Bainbridge Committed by Andrew Heather
Browse files

fvOptions: limitVelocity: Fixed the correction factor

Resolves bug report https://bugs.openfoam.org/view.php?id=2634
parent 2e9fbcca
Branches
Tags
1 merge request!144Integration openfoam.org
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment