|
[Sponsors] |
What values of under-relaxation factors to use? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 5, 2022, 03:01 |
What values of under-relaxation factors to use?
|
#1 |
New Member
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
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! |
|
April 5, 2022, 15:29 |
|
#2 |
Senior Member
Join Date: Sep 2013
Posts: 353
Rep Power: 21 |
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. |
|
April 5, 2022, 17:24 |
|
#3 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
A side note: at the time of writing, programmable under-relaxation factors with openfoam.com is also possible.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
April 6, 2022, 07:22 |
|
#4 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
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) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Are Relaxation factors applicable to rhoCentralFoam? | immortality | OpenFOAM Running, Solving & CFD | 3 | May 24, 2018 10:17 |
Convergence with reduced under relaxation and time scale factors | saisanthoshm88 | FLUENT | 0 | March 19, 2013 11:08 |
XiFoam relaxation factors | tavasoly | OpenFOAM Running, Solving & CFD | 0 | July 1, 2008 03:54 |
about changing under relaxation factors | Suleimani | FLUENT | 1 | January 15, 2008 18:40 |
Relaxation factors | Vidya Raja | FLUENT | 7 | September 26, 2006 21:00 |