|
[Sponsors] |
January 13, 2013, 04:47 |
OpenFOAM Residuals - LES Convergence
|
#1 |
Senior Member
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 17 |
Hi all,
I am doing an LES of channel flow on a very coarse grid ( with perturbU utility) , and I am plotting Residuals using the gnuplot script provided in one of the threads in the forum earlier. I am not sure how exactly to monitor convergence in an LES, when the flow is transiently trying to develop into a fully turbulent flow. My understanding is Residual = Change in solution from one time step to the next, on a given point (cell). Since the nature of turbulence is the flow parameters rapidly changing, Is the residual a good indicator? what should I ideally monitor in OpenFOAM to see if a fully developed Turbulence ( or even close enough) has been achieved? I'v read that fully developed turbulence can be statistically stationary.... And hence I guess this definition of Residual can be erroneous. Is it so? Currently, in my simulation the residuals X,Y,Z velocities are below 10^-3, but steadily climbing. Please see image - I do not know why this happening, is it a case setup error or just that its not a good indicator of the turbulence in the flow. Any help would be appreciated! Thanks. Last edited by atmcfd; January 13, 2013 at 04:50. Reason: Added picture |
|
January 13, 2013, 16:55 |
|
#2 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23 |
Hi atmcfd
The (initial) residuals are not a good indicator for the convergence for LES simulations because of the unsteadiness of the flow. Instead, you should monitor a certain parameter which characterizes your flow situation etc. drag coefficient, total kinetic energy, mean frictional velocity etc... Kind regards, L |
|
March 18, 2013, 22:19 |
|
#3 |
Senior Member
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 17 |
Thanks Lieven ! I discovered that most LES give flat or oscillating - flat residuals if done right...So its not a very good parameter to observe.
|
|
March 19, 2013, 03:21 |
|
#4 | |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23 |
Isn't that exactly what I said in my previous post
Quote:
Cheers, Lieven |
||
March 19, 2013, 03:30 |
|
#5 |
Senior Member
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 17 |
Lol Lieven, yes. I was just stating that I observed what you said - I am a newcomer to LES .
|
|
May 15, 2014, 12:33 |
|
#6 | |
New Member
Rhys Hunter
Join Date: Jul 2012
Posts: 13
Rep Power: 14 |
Quote:
I cannot understand what you meant by "field (= sum(U & U))". Would you please help me with the implementation. Should it be added as a fieldaverage in controlDict? If so how? If not what should a gnuplot script contain for monitoring TKE. Thanks |
||
May 22, 2014, 08:28 |
|
#7 | |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14 |
Dear prezza, Dear Lieven,
why is in the formula for computation of kinetic energy factor 1/2 missing??? Quote:
I can't use sum() with foamCalc. Is there another option in OF beside foamCalc and paraview where I can directly use functions like sum() ? Aylalisa |
||
May 22, 2014, 08:35 |
|
#8 | |
New Member
Rhys Hunter
Join Date: Jul 2012
Posts: 13
Rep Power: 14 |
Quote:
Because it is only meant to be used as a convergence monitor, so a constant factor won't change the behaviour. Whenever I don't include something as a funcitonobject, I do calculations in Paraview. Can't you use foamCalc and perform averaging on k? Instead of averaged velocity field? |
||
May 22, 2014, 08:41 |
|
#9 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23 |
Hi aylalisa,
I didn't add the factor 1/2 simply because it doesn't matter for the purpose you use it here. Ek is simply computed to check if it already converged to a constant value or not. Whether this value is Ek or 2*Ek does not change anything. So feel free to add it if you like... Regarding the field operations, you have plenty of options if you ask me. I don't really know why you would not like to use foamCalc or paraview (both valid options if you ask me) but nothing stops you from writing your own tool for it, add it as a coded function object in the controlDict, use Python (i.e. pyFoam) for it, ... Cheers, Lieven |
|
May 22, 2014, 11:00 |
|
#10 |
Senior Member
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14 |
Hi Lieven and prezza,
thank you very much for fast and informative reply! foamCalc offers these operations: addSubtract components div interpolate mag magGrad magSqr randomise I used foamCalc magSqr U to compute k=. But if I would like to add a factor like 0.5 or if I would like to use sum() I think I can't do that with foamCalc. In paraview I can compute K=0.5*(mag(U)^2) but sum() neither. Therefore I thought I have to either create a function object or, in case computation has already finished, I must create a utility (then I could use functions like sum()). Is that right? Is there (beside PyFoam) any other option? Aylalisa Last edited by aylalisa; May 23, 2014 at 12:10. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 09:15 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
Convergence of CFX field in FSI analysis | nasdak | CFX | 2 | June 29, 2009 02:17 |