Writer using cs_user_postprocess.c

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
marciafof
Posts: 15
Joined: Thu Apr 18, 2019 2:45 pm

Writer using cs_user_postprocess.c

Post by marciafof »

Hello,

I am trying to use a personalized writer that selects the cells between x0, y0, z0, and x1, y1, z1 and can export the fields of interest to another mesh output. Basically I just want to keep the cells in the first vertical level.
It is similar to the example where cells are selected under the condition that the field is over certain value (Example: time-varying mesh)but in my case the mesh won't be time-varying.

I have tried to modify the script with no success. I have attached the cs_user_postprocess.c as well as the setup.xml (I have configured it only to test the writer so in reality the case will have more iterations and used with LES).

Thank you for any input!

Cheers,
Marcia
Attachments
setup.xml
(15.76 KiB) Downloaded 136 times
listing.txt
(41.1 KiB) Downloaded 152 times
cs_user_postprocess.c
(16.23 KiB) Downloaded 153 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Writer using cs_user_postprocess.c

Post by Yvan Fournier »

Hello,

In your example, I do not understand why you are accessing "epsilon" instead of the cell centers coordinates (cs_glob_mesh_quantities->cell_cen).

In any case, for a simple box, you do not need cs_user_postprocess.c You can simply select "box[x0, y0, z0, x1, y1, z1]" for an additional postprocessing mesh (or modify the default one) in the GUI.

Regards,

Yvan
marciafof
Posts: 15
Joined: Thu Apr 18, 2019 2:45 pm

Re: Writer using cs_user_postprocess.c

Post by marciafof »

Dear Yvan,

Thanks for your prompt reply. Box is exactly what I needed. :D

Marcia
Post Reply