CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

What values of under-relaxation factors to use?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By Bloerb
  • 2 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2022, 02:01
Default What values of under-relaxation factors to use?
  #1
New Member
 
Join Date: Sep 2021
Posts: 10
Rep Power: 4
newOpenfoamUser is on a distinguished road
Hi,

I wonder whether there is a general guideline on how to set the under-relaxation factors and how to decrease it step-by-step? I saw in some tutorials that in simpleFoam, it is advisable to set the under-relaxation factors for U and p to be 0.7 and 0.3 respectively. However, when that fails, how would you decrease them step-by-step? Is it advisable to reduce them together? Is there a way to check which one is causing the solver to diverge so that we can just reduce the under-relaxation factor for that particular quantity alone. Also, is there a lower bound where you should not decrease the under-relaxation factors beyond that?

Thanks!
newOpenfoamUser is offline   Reply With Quote

Old   April 5, 2022, 14:29
Default
  #2
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
The relaxation factors of 0.7 and 0.3 are typical values for simple algorithms. simplec algorithms (consistent true; inside fvOptions) can use 0.9 or 0.95. Temperature and pressure for compressible or heat transfer solvers are the only ones i'd suggest tweaking.

And yes you can slightly accelerate your solution by increasing those from 0.3 to 0.5 for example. And you can add stability by lowering them. BUT:



If your solver crashes changing the relaxation won't help you. Atleast 95% of the time. It is much more likely that your boundary conditions or mesh are the culprit. These standard values are a result of the algorithm. These 0.3 and 0.7 values are stable for nearly all problems. Compressible solvers are a bit more tricky though.


You can lower them as you'd like though. Going down to 0.2 and 0.5 is what I'd do, but again this is not usually what you do. The discritization of the convective term div(phi,U), mesh quality and boundary conditions are far far more important to get right.
saidc. and newOpenfoamUser like this.
Bloerb is offline   Reply With Quote

Old   April 5, 2022, 16:24
Default
  #3
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
A side note: at the time of writing, programmable under-relaxation factors with openfoam.com is also possible.
oskar and newOpenfoamUser like this.
HPE is offline   Reply With Quote

Old   April 6, 2022, 06:22
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Under relaxation means that you apply only a part of the calculated changes. It is used for damping (non physical) oscillations of the calculated values.

You may use over relaxation too. If the precess is very stable you can reach steady state faster.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are Relaxation factors applicable to rhoCentralFoam? immortality OpenFOAM Running, Solving & CFD 3 May 24, 2018 09:17
Convergence with reduced under relaxation and time scale factors saisanthoshm88 FLUENT 0 March 19, 2013 10:08
XiFoam relaxation factors tavasoly OpenFOAM Running, Solving & CFD 0 July 1, 2008 02:54
about changing under relaxation factors Suleimani FLUENT 1 January 15, 2008 17:40
Relaxation factors Vidya Raja FLUENT 7 September 26, 2006 20:00


All times are GMT -4. The time now is 11:57.