Equation convergence tolerance in Code Saturne

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
spal
Posts: 10
Joined: Sun Feb 19, 2017 2:55 am

Equation convergence tolerance in Code Saturne

Post by spal »

I read through the documentation and it appears that the residuals are based on sum of squares of cell residuals over the entire domain. With regards to ensuring that the user specified tolerance for each equation is met, how is the global residual value scaled before comparison to the user specified criteria ?

Which sub-routine in the code (and in which file) checks this ?
Luciano Garelli
Posts: 284
Joined: Fri Dec 04, 2015 1:42 pm

Re: Equation convergence tolerance in Code Saturne

Post by Luciano Garelli »

Hello,

I really don't know in detail where the convergence it is verified but you can check the the file /base/cs_equation_iterative_solve.c and the documentation in http://code-saturne.org/doxygen/src/cs_ ... ve_8c.html.
Also, in the theory guide there are information about residuals. I hope that this help you.

Regards,

Luciano
Post Reply