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

solver tolerance in fvSolution

Register Blogs Community New Posts Updated Threads Search

Like Tree32Likes
  • 3 Post By fisch
  • 25 Post By bastil
  • 4 Post By alberto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2011, 07:31
Default solver tolerance in fvSolution
  #1
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
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
Li Li, Hughtong and samik108 like this.
fisch is offline   Reply With Quote

Old   March 22, 2011, 08:22
Default
  #2
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
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
bastil is offline   Reply With Quote

Old   March 22, 2011, 08:43
Default
  #3
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
Thanks for the reply Bastian,

but the question is still how the (total) residuum is calculated or what it means..
Do you know that?
fisch is offline   Reply With Quote

Old   March 22, 2011, 13:43
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Please check here: http://www.cfd-online.com/Forums/ope...d-solvers.html

Google knows ;-)
fumiya, Pirlu, Ramzy1990 and 1 others like this.
__________________
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.
alberto is offline   Reply With Quote

Old   March 23, 2011, 01:35
Default
  #5
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
thank you alberto
fisch is offline   Reply With Quote

Old   August 15, 2016, 03:28
Cool tolerance relTol question
  #6
Member
 
amin jalalian
Join Date: Mar 2014
Posts: 34
Rep Power: 12
amin_jalalian is on a distinguished road
Quote:
Originally Posted by bastil View Post
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

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.
amin_jalalian is offline   Reply With Quote

Old   February 4, 2019, 06:21
Default
  #7
New Member
 
Clément Vasseur
Join Date: Feb 2019
Posts: 1
Rep Power: 0
c.vasseur is on a distinguished road
Quote:
1- O.F uses relTol or tolerance for stop iteration?
I think both of them are used. Both conditions have to be respected.
(as read in this article).
c.vasseur is offline   Reply With Quote

Old   July 28, 2020, 11:57
Default tolerance relTol question
  #8
New Member
 
Sócrates Fernández
Join Date: Mar 2020
Location: Cádiz, Spain
Posts: 10
Rep Power: 6
sfernaferna is on a distinguished road
Send a message via Skype™ to sfernaferna
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.
sfernaferna 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
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM Running, Solving & CFD 17 December 3, 2014 19:41
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM 0 April 4, 2010 18:06
HELP!!! (ReactingFoam) vianne OpenFOAM 3 March 14, 2010 19:17
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 23:24.