Page 1 of 1

variable output on a slice

Posted: Sun Jan 08, 2023 11:01 am
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

Re: variable output on a slice

Posted: Mon Jan 09, 2023 12:07 am
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