KinematicParcel: Corrected sign of Eo for bubbles

Resolves bug report https://bugs.openfoam.org/view.php?id=3305
This commit is contained in:
Will Bainbridge
2019-07-15 09:00:03 +01:00
parent 6c7d08b262
commit aab3a22708

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -467,7 +467,7 @@ inline Foam::scalar Foam::KinematicParcel<ParcelType>::Eo
)
{
const vector dir = U/max(mag(U), rootVSmall);
return mag(g & dir)*(rho - rhoc)*sqr(d)/max(sigma, rootVSmall);
return mag(g & dir)*mag(rho - rhoc)*sqr(d)/max(sigma, rootVSmall);
}