Page 1 of 1

compute rms field

Posted: Thu May 17, 2018 1:02 pm
by ddante
Hi everyone,

I am setting an unsteady case in code_saturne (v5) using URANS modelling, and
I would like to compute the mean and the RMS fields (of the velocity and the temperature).

I can see that it is possible to compute the mean field already in the GUI, but I don't know how to compute
the RMS; probably by using some cs_user function.

Is there any example available to compute the RMS field?

Thanks in advance.
Kind regards,

Dante

Re: compute rms field

Posted: Sun May 20, 2018 4:07 am
by Yvan Fournier
Hello,

I am not sure this is exactly what you are looking for, but you can compute a field's variance in cs_user_time_moments.c. Check the time moment parameters in https://www.code-saturne.org/cms/sites/ ... eters.html.

It is also possible using the GUI to compute variances of scalar fields,, in the turbulence sense (in the additional species), but I am not sure about the equivalent for velocity.

Regards,

Yvan