Page 1 of 1

Monitoring user field at a point with time

Posted: Sat Nov 26, 2022 8:04 pm
by sofenkumarjena
Hi users, I have created a field for enstrophy in code saturne by this command

cs_field_create("enstrophy", field_type, CS_MESH_LOCATION_CELLS, 1, has_previous);

cs_field_set_key_int_bits(cs_field_by_name("enstrophy"), cs_field_key_id("post_vis"), CS_POST_ON_LOCATION);

I want to monitor the dime dynamics of the same at some points in the flow domain. When I creates the points to save information, it is saving default variables like velocity, pressure etc at monitor folder but do not save the user field variable.

Time dynamics of enstrophy is useful for me.

With Thanks and Regards

Sofen

Re: Monitoring user field at a point with time

Posted: Sat Nov 26, 2022 9:36 pm
by Yvan Fournier
Hello,

You simply need to use CS_POST_MONITOR instead of or in addition to CS_POST_ON_LOCATION.

Best regards,

Yvan