variable output on a slice

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
xiaoxue123
Posts: 29
Joined: Fri Mar 02, 2018 11:50 am

variable output on a slice

Post by xiaoxue123 »

Hi,

I want to save some variables on a slice at a specific frequency. Attached is the cs_user_postprocess.c and the xml file. The mesh is defined in cs_user_postprocess_meshes, the variable output is defined in cs_user_postprocess_values. In the postprocess folder, geo file is generated but the variable pressure is not saved. Can you have a look at cs_user_postprocess to see if anything is wrong in it?

Best regards,
Xiaoxue
Attachments
cs_user_postprocess.c
(7.53 KiB) Downloaded 48 times
setup_T.xml
(15.16 KiB) Downloaded 51 times
Yvan Fournier
Posts: 4081
Joined: Mon Feb 20, 2012 3:25 pm

Re: variable output on a slice

Post by Yvan Fournier »

Hello,

Yes, your code in cs_user_postprocess_values is much too simplistic, and will probably lead to a crash for a postprocessing mesh not based on a selection of all cells.

There is an example specific to pressure on a surface mesh in the provided examples, so you should start with that example.

Regards,

Yvan
Post Reply