Ketan tried to post the below... I'm attaching it here.
Hi Nicola,
Try using the attached example.usr to output 2D slices from a 3D calculation.
In this .usr file, the output mesh size is defined at the top using `nxp` and `nyp` which define equally spaced points in the domain where the solution is interpolated. The `planar_output` routine does the following:
1. A 2D grid of nxp x nyp points is constructed and saved in `xall`, `yall` and `zall` arrays. I currently set `zall` to 0, and you can modify this based on where you want the z-slice to be at.
2. The velocities (vx, vy, and vz) and temperature (t) is interpolated using
3. The interpolated values are stored in a 2D mesh format and output using the routine `outfld2d_xy`.
Right now I assume that the slice is in the xy-plane. Second, the z-velocity is output in the pressure field of the 2D file.
Please let me know if you have any questions.
Ketan