Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1f59360e
Commit
1f59360e
authored
Jul 27, 2017
by
Will Bainbridge
Committed by
Andrew Heather
Jul 27, 2017
Browse files
fvOptions: limitVelocity: Fixed the correction factor
Resolves bug report
https://bugs.openfoam.org/view.php?id=2634
parent
3b852844
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fvOptions/corrections/limitVelocity/limitVelocity.C
View file @
1f59360e
...
...
@@ -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
)
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment