Monitoring user field at a point with time

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
sofenkumarjena
Posts: 35
Joined: Thu May 19, 2022 4:37 pm

Monitoring user field at a point with time

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

Re: Monitoring user field at a point with time

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