results_render
Convert VTK/VTU simulation results into PNG screenshots. Customize coloring, geometry warping, camera angle, cropping, and image output for clear visualization.
Instructions
Render a VTK/VTU result file to a PNG screenshot, returned inline (requires the optional pyvista 'viz' extra). Colors the mesh by 'variable' (point or cell data; vector fields default to magnitude, or pick component 'x'/'y'/'z'), optionally warps the geometry by a vector field such as DISPLACEMENT scaled by warp_factor. Camera presets: xy, xz, yz, iso. crop_bounds clips to a region of interest before framing the camera -- [xmin,xmax,ymin,ymax] or [xmin,xmax,ymin,ymax,zmin,zmax] -- essential for e.g. a small body in a huge far-field CFD domain, otherwise invisible at full-domain zoom. The PNG is saved next to the input file unless image_path is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| camera | No | iso | |
| warp_by | No | ||
| variable | No | ||
| component | No | ||
| image_path | No | ||
| show_edges | No | ||
| crop_bounds | No | ||
| warp_factor | No | ||
| window_size | No |