Page 1 of 1

Time-averaging/residuals

Posted: Fri Aug 24, 2018 9:38 am
by C0st4s
Hi,

Few questions concerning the time average and the normalised residuals shown by trackcvg in Code_Saturne v.5.0.8 when unsteady algorithm is switched on.
First, how does the time-moments are computed in cs_user_parameters-time_moments.c and how can I know what is the moment_c_id[] value?
Secondly, what does the value of the residuals correspond to in the unsteady algorithm? i.e does it show the residuals at the end of each iteration or each iteration within each time step ?

Thanks
Costas

Re: Time-averaging/residuals

Posted: Tue Aug 28, 2018 10:31 pm
by Yvan Fournier
Hello,

I don't remember the way the residuals are normalized, so you'd need to check the sources for this (unless someone more knowledgeable answers; there are other posts about this on this forum, so the search function might help, though I'm not sure in this case).

In cs_user_parameters-time_moments.c, moment_c_id[] is the user definition/choic of the component of a vector to select: -1 for all components, 0 for x, 1 for y, 2 for z, and indifferent for scalars.

Regards,

Yvan