
[Sponsors] 
March 20, 2012, 10:16 
underrelaxation factors > level of residuals

#1 
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 7 
Hi,
I have a question regarding the underrelaxation factors. If I use the default values I can’t get convergence so I started to decrease the underrelaxation values (to about 1/3 of default), as the user’s guide recommends this. So then I do not get divergence and my simulation is running. It seems, that it would take quite a while to get good convergence. I then started to increase the underrelaxation factors, which results in a rise of residuals. The residuals begin to drop again, but they do not reach the level as before! After a couple of iterations the residuals start to oscillate around a level, but with lower underrelaxation factors I can reach a lower level of residuals (difference is half a level of magnitude). So I wondered, if I should use the lower underrelaxation factors and iterate until the residuals do not change any more. This would mean, I have more iterations (at all) but the level of residuals would be less. So what do you think? Thanks in advance! 

March 21, 2012, 14:39 

#2 
Senior Member
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 1,563
Rep Power: 22 
No magic here, that's what's supposed to happen. Unless your solution is diverging, do not bother with the underrelaxation factors. If it is diverging, do as you did, lower the factors until you can a stable solution, and then raise them again if possible. If not, then it is a hint that there is an inherent stability issues in the problem you are trying to solve or perhaps one of your modeling parameters is incorrect.
All your observations are correct. Lowering the underrelaxation factors will limit the change in the solution per iteration, which will make the residuals appear to change less per iteration. Be careful, as this can give a false sense of "oh, my solution is now converged". That is why residuals are not a good measure of solution convergence, they are really only useful for determining if the solution is diverging. Underrelaxation factors does not change the way the solution evolves in the long run, you still arrive at the same solution more or less (unless the solution diverges) it just takes you longer to get there. As a test (do this as a mental exercise to not waste compute hours), setting all your underrelaxation factors to 0 will make the residuals constant because the solution does not change between iterations. It is possible to obtain very very very small residuals by setting the underrelaxation factors to very small fractions. Again, this does not mean that the solution is converged. So in general, and this was obvious from the start, you want the highest underrelaxation factors. In fact, overrelaxation (underrelaxation factor greater than 1.0) would be ideal in the sense that you would arrive at the converged solution in the least number of iterations. However, because of the numerical schemes involved there are stability problems, and conservative values for the underrelaxation are necessary to prevent the solution from diverging. 

March 21, 2012, 14:57 

#3  
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 7 
Hi LuckyTram,
thanks for this answer!!! Really good explanation. Quote:
But just hypothetically, if I iterate until residuals are not changing any more (maybe the start oscillating around a level) the results should be the same no matter how high/low the underrelaxation factors are??? Am I right with this? Exactly, but for my problem (impingement configuration of a rotating leading edge) I have to increase the underrelaxation factors very slowly (otherwise I get divergence). So I am not sure if I can reach the default values at all (I actually don’t think so). So how could I judge if my results are converged? Because the wall heat flux distribution is changing, when I start to increase the numbers of iterations. But the distribution is not moving in one direction, so I do not achieve convergence right now with the lowest underrelaxation factors ….. 

March 21, 2012, 15:07 

#4  
Senior Member
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 1,563
Rep Power: 22 
Quote:
On the same note, once the residuals reach constant, with small oscillations around a level then that is the limit of your simulation (most likely your solution has long been converged already). Iterating more will not improve anything. On the other hand, it is possible for a solution to be well converged (depending on how you define convergence) but residuals have not reached a constant level and are still decreasing. Both are acceptable! Quote:


March 21, 2012, 15:21 

#5  
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 7 
Quote:
I am just running some simulations (different under relaxation, everything else same) and I'll see the results tomorrow. So far, the residuals are not changing very much, but the heat flux distribution is changing (> no convergence at the moment). But the case with higher under relaxation shows a more excepted distribution and I am not sure if the case with lower under relaxation will ever get to this distribution...... 

March 21, 2012, 15:27 

#6  
Senior Member
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 1,563
Rep Power: 22 
Quote:
If you can afford to wait until the residuals become steady then sure. But for large problems, then definitely not! 

March 21, 2012, 15:30 

#7  
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 7 
Quote:
What I just wanted to say, if my residuals are at one level the distribution should not change any more, right. OItherwise I have some other problems (settings, mesh etc) .... 

March 29, 2012, 07:34 

#8 
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 7 
So I could manage to increase the under relaxation factors (not to the default values, but around 2/3 of them).
So now I am at the point where residuals do not decrease any more, they oscillate around a level. But when I calculate the Nusselt distribution (span wise averaged) the characteristic is almost constant but the level differs. So lets say I have a specific distribution after 20000 iterations and I do another 3000 iterations the level is different (18% derivation). If I do another 3000 iteration I get almost exactly the first distribution. And again 3000 iterations give me again almost exactly the second one. So I thought if my problem is not steady state, then steady state will give me an average of the transient one, but it seems the steady state solution is oscillating.... Any idea? edit: or is this behavior due to the implicit formulation for the pressure based solver? Last edited by Zigainer; March 29, 2012 at 08:39. Reason: add a comment 

March 31, 2012, 16:30 

#9  
Senior Member
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 1,563
Rep Power: 22 
Quote:
if the flow is inherently unsteady, then the steady solver tends to collapse into one of the preferentially stable modes and can sometimes switch back and forth, producing oscillatory solutions like you are describing. The steady solver does not give you the average of the transient simulation. A crude way of imagining it, is that the steady solver will give you 1 instantaneous solution of the unsteady flow. if this is the case, it may be necessary to run an unsteady simulation and collect statistics to get meaningful timeaveraged data. 

March 31, 2012, 22:05 

#10  
Member
yehanyu
Join Date: Mar 2012
Location: Beijing, China
Posts: 41
Rep Power: 6 
Quote:
1. Create some surface monitors. 2. Firstly, iterate with default underrelaxation factors. 3. If the solver divergence, then decrease the underrelaxation factors. 4. If the residual don't drop any more, then watch the convergence history of the surface monitors. If all monitors convergence, then you can stop calculation. 5. If the residual don't drop any more but the monitored value oscillate, then decrease the underrelaxation factors and continue to iterate. 6. Repeat step 4 and step 5 again and again. Some additional tips: Don't decrease all underrelaxation factors at the same time. It usually doesn't work. The correct method is try to decrease one kind of underrelaxation factors at a time(for example, decrease underrelaxation factors of all species), then iterate for a while, then ,if it doesn't work, return to the previous solution and try to decrease another kind of underrelaxation factors. 

April 2, 2012, 03:19 

#11  
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 7 
Hi,
Quote:
I only have this problem with the highest rotation number, for the other cases it's fine ... Quote:
But I have a question about point 5). Why should a decrease in underrelaxation factor bring my solution to convergence? As far as I know with lower under relaxation the change in solution is limited and therefore it would take longer to get a solution. But the problem LuckyTran (instantaneous solution of unsteady flow) would still exist, right? 

January 8, 2013, 14:08 

#12 
New Member
william moore
Join Date: Jan 2013
Posts: 8
Rep Power: 6 
In my experience it is often more productive to address the root cause of the convergence issue, which is typically poor mesh quality (high skewness), insufficient mesh resolution in the boundary layer or regions of high gradient, illposed boundary conditions or the wrong turbulence model. Once these issues are resolved then the default underrelaxation factors should be used at the start of the calculation. The model should be allowed to run for a reasonable number of iterations before attempting to change the URF's. Decreasing the URF's at the start of the calculation, impedes the speed of convergence by limiting the size of the step taken for each variable from one iteration to the next. This can produce misleading results unless convergence is verified by monitoring other variables such as mass and energy balance, temperature and pressure monitors, etc. The advice is don't just automatically reduce the URF's because it causes the residuals to immediately decrease, but allow the solver time to reach overall global convergence without impeding it with URF's.
Others users feedback and experience would be greatly appreciated. 

June 7, 2013, 15:24 
Automatic change of Under_Relaxation_Factors

#13 
New Member
Join Date: May 2012
Posts: 4
Rep Power: 6 
Godd afternoon everyone
I´m working in a laminar diffusive flame in fluent. In the firsts iterations is important to keep the URF very small to avoid blowup, but after some time is possible going to increase the URF slowly to acelerate the convergence,so, I was thinking on use some kind of automatic underrelaxation factors (in Fluent´s option or with an UDF). Please, anyone know how set up fluent to automatically change the underrelaxiation factors? Or it´s not posible to do that? Thank´s 

June 19, 2013, 13:29 

#14 
Senior Member
Tanjina Afrin
Join Date: May 2013
Location: South Carolina
Posts: 168
Rep Power: 5 
Hi All,
I am trying to model flow through the a circular pipe from rectangular reservoir. After some iteration, divergence in xmomentum message appeared. Then I reduce relaxation factor from 1 to 0.1, now its running, but residual upto 500 run, it was almost constant, but from 500800, its oscillating with increasing value. What does it mean. if anyone can suggest anything, that will be really very helpful. Thanks in advance. 

August 15, 2014, 11:27 
Under relaxation factor

#15 
New Member
Ramesh
Join Date: Aug 2014
Posts: 7
Rep Power: 4 
After reducing under relaxation factor I am getting convergence. My doubt is after getting the convergence whether I have to increase the under relaxation factor again and to run the iteration? Or whether I can take the result obtained as it is. Kindly help.


March 31, 2015, 03:57 

#16  
New Member
Agung
Join Date: Mar 2015
Posts: 12
Rep Power: 4 
Quote:
http://postimg.org/image/dgy6iygrr/ http://postimg.org/image/iivzck3xl/ 

April 14, 2015, 23:17 
Thank you bro...

#17 
New Member
Ramesh
Join Date: Aug 2014
Posts: 7
Rep Power: 4 
It helped me...


February 6, 2016, 01:12 
I am facing same problem in my analysis

#18 
New Member

I am doing air compressor analysis
inlet BC mass flow inlet (0.5 kg/s) outlet BC  pressure outlet (back pressure 3.5bar) compressor walls  wall BC with ambient temp the mesh is very complex as the screw inside the air compressor makes it complex and there are much more elements in my mesh When I run the solution with laminar model and energy eq ON it runs for few iterations I get reversed flow in pressure outlet also I get temperature limited to 1.0000e1 warnings during iteratins later it diverges because of the temperature Kindly anybody can help me to get solution would under relaxation factor help in this regard? 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Relaxation Factors for Transient solvers  philippose  OpenFOAM Running, Solving & CFD  19  March 20, 2014 05:39 
Adding layers goes wrong with SnappyHexMesh  Elise  OpenFOAM Native Meshers: snappyHexMesh and Others  1  April 22, 2013 02:32 
Boundary layer in a pipe  Clementhuon  OpenFOAM Native Meshers: snappyHexMesh and Others  6  March 12, 2012 13:41 
rESIDUALS and rElaxation factors  Mohsin  FLUENT  9  October 24, 2010 00:22 
Purpose of relaxation factors  Mohsin  FLUENT  5  April 30, 2010 11:57 