processing 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

processing on a slice

Post by xiaoxue123 »

Dear expert team,

I am trying to extract a slice and export pressure on it. In cs_user_process, the slice (x=0.01) is defined for postprocessing. But pressure is not exported although there is a geometry file "xxx.geo" generated in the postprocessing folder. Could you have a look at it? GUI file and run_solver.log are attached as well.

Thanks,
Xiaoxue
Attachments
setup_T.xml
(15.6 KiB) Downloaded 45 times
run_solver.log
(73.61 KiB) Downloaded 42 times
cs_user_postprocess.c
(8.61 KiB) Downloaded 47 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: processing on a slice

Post by Yvan Fournier »

Hello,

In any case, your user-defined function is coded dangerously : you try to call the output for all postprocessing meshes, including ones not limited to interior faces, which can cause a crash. You should at least have a test for the mesh id or category (as in the user examples) to make sure it matches.

Regards,

Yvan
Post Reply