lagrangian::Analytical: improved analytical integration for the U-equation

Patch contributed by Timo Niemi
In response to bug-report http://bugs.openfoam.org/view.php?id=2199
This commit is contained in:
Henry Weller
2016-08-23 22:03:24 +01:00
parent a778622dfa
commit 962910bd43

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -76,11 +76,10 @@ Foam::Analytical<Type>::integrate
}
else
{
retValue.average() = phi;
retValue.value() = phi;
retValue.value() = phi + alphaBeta*dt;
retValue.average() = 0.5*(phi + retValue.value());
}
return retValue;
}