compute rms field

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
ddante
Posts: 1
Joined: Wed May 16, 2018 9:19 am

compute rms field

Post 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
Yvan Fournier
Posts: 4209
Joined: Mon Feb 20, 2012 3:25 pm

Re: compute rms field

Post 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
Post Reply