|
[Sponsors] |
March 21, 2011, 08:31 |
solver tolerance in fvSolution
|
#1 |
Member
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16 |
Hello,
i found a lot of posts in the forum where some solver tolerances within openFOAM are suggested as accurate. For example in the fvSolution file for solving the p-equation is "tolerance 1e-6", "1e-4" or "1e-8". I wanted to figure out how this tolerance number is calculated to estimate a number for my simulations, but i can't get it out of the code. Is there any explanation what this residual number / norm means or which norm is taken from the residual vector!? A little example would be very nice (for example in relative error if i would have only one cell ... or something else) Thanks a lot. rupert |
|
March 22, 2011, 09:22 |
|
#2 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Well,
the relTol is the relative tolerance between the initial and the final residual. Both are reported by the solver: GAMG: Solving for p, Initial residual = 0.0334352, Final residual = 0.000941545, No Iterations 17 if you specify a relTol of 0.1 the solver will stop iterating if the final residual falls below 0.1*0.0334352=0.00334352. The absolute tolerance you refer to with "tolerance" in fvSolution is the value the Final residual need to fall below. Regards Bastian |
|
March 22, 2011, 09:43 |
|
#3 |
Member
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16 |
Thanks for the reply Bastian,
but the question is still how the (total) residuum is calculated or what it means.. Do you know that? |
|
March 22, 2011, 14:43 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
March 23, 2011, 02:35 |
|
#5 |
Member
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16 |
thank you alberto
|
|
August 15, 2016, 04:28 |
tolerance relTol question
|
#6 | |
Member
amin jalalian
Join Date: Mar 2014
Posts: 34
Rep Power: 12 |
Quote:
Thanks about this post, But I have 2 question. 1- O.F uses relTol or tolerance for stop iteration? 2- What is difference between tolerance in for example "U" and "UFinal"? Thanks. |
||
February 4, 2019, 07:21 |
|
#7 | |
New Member
Clément Vasseur
Join Date: Feb 2019
Posts: 1
Rep Power: 0 |
Quote:
(as read in this article). |
||
July 28, 2020, 12:57 |
tolerance relTol question
|
#8 |
New Member
|
Hi amin_jalalian, I'm a bit late, but a new user might appreciate the answer. About your second question, I believe UFinal is used for transient algorithms for the final iteration of each inner loop (inside the same timestep). Not 100% sure, though.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating New Solver: For particle-laden compressible jets | sankarv | OpenFOAM Running, Solving & CFD | 17 | December 3, 2014 20:41 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
Creating New Solver: For particle-laden compressible jets | sankarv | OpenFOAM | 0 | April 4, 2010 19:06 |
HELP!!! (ReactingFoam) | vianne | OpenFOAM | 3 | March 14, 2010 20:17 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |