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:
parent
9354748814
commit
68f57d3126
1 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue