processing on a slice

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
setup_T.xml (15.6 KB)
run_solver.log (73.6 KB)
cs_user_postprocess.c (8.61 KB)

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