Page 1 of 1

Define a new field and output it with time

Posted: Sat Feb 17, 2024 1:08 pm
by yang
Hi team,

In Code_Saturne v7.0.2, I'd like to monitor the change of kinetic energy in whole field with time. Specifically, in each time step, Code_Saturne calculates kinetic energy in whole field, and output these values into a file. Then, I can plot its change with time. Could you share an example for this function? Thanks!

Best wishes,
Yang

Re: Define a new field and output it with time

Posted: Fri Feb 23, 2024 9:45 am
by yang
?

Re: Define a new field and output it with time

Posted: Fri Feb 23, 2024 4:51 pm
by Yvan Fournier
Hello,

It seems no one has an example ready for this.

But it should be quite simple to do this. You can even create the extra field with the GUI (in the post-processing section), and you then need to compute its values in a user-defined function, such as cs_user_extra_operations.c.

Best regards,

Yvan