CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Very small residual (http://www.cfd-online.com/Forums/main/91675-very-small-residual.html)

orxan.shibli August 18, 2011 15:18

Very small residual
 
Hi everyone!

For common residual definition which is,

r = b - A*y

I get a very small value even at the beginning (about e-5). So I'm not sure how I can set a criterion of convergence.

Waiting your precious answers.

ertan August 18, 2011 16:07

One option could be using normalized value for setting convergence criterion;

Rn_i=R_i/R_1 < tolerance

where,

Rn_i= normalized residual from the ith iteration
R_i = residual from the ith iteration
R_1= residual from the 1st iteration (generally max residual)

orxan.shibli August 18, 2011 16:37

Mr. Ertan

Thank you. But in this case what should be the proper tolerance? How can I be sure that, chosen tolerance is enough for accurate results?

sail August 18, 2011 17:03

Quote:

Originally Posted by orxan.shibli (Post 320687)
Mr. Ertan

Thank you. But in this case what should be the proper tolerance? How can I be sure that, chosen tolerance is enough for accurate results?

you would need to check at the history of some physical quantities of the flow plotted vs the number of iteration. for example lift, drag, heat transfer, etc...

ertan August 19, 2011 11:40

That depends on how much accuracy you need. For unsteady flows, it should be safe to can pick a tolerance (convergence criterion) of 0.001 or less for the normalized residuals. For steady flows, I would suggest setting the convergence criterion to a very low value, such as 10^-10. This way you could minimize the iteration error in your calculations. (If you plot residuals, you should be able to see them level off (flatten) after a while).

HTH


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