mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user