render
Generate a flow or mesh image from an OpenFOAM case using headless ParaView, returning the image and metadata.
Instructions
Render a picture of the flow or mesh with ParaView (headless) and return it as an image plus metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | Yes | Case name in the workspace (e.g. 'pitzDaily') or an absolute path inside an allowed root. | |
| mode | No | auto: whole domain for 2-D cases, mid-plane slice for 3-D. patches: colour boundary patches (e.g. pressure on a body). contour: iso-surface of contour_field at iso_value. streamlines: of vector `field`. | auto |
| time | No | 'latest', 'first' or a time value. | latest |
| view | No | Camera: 'auto', 'iso', '+x', '-x', '+y', '-y', '+z', '-z' (camera on that side, looking back). | auto |
| zoom | No | Zoom factor >1 to magnify (centre of domain). | |
| edges | No | Draw mesh edges. | |
| field | No | Field to colour by (e.g. 'U', 'p'). Omit with mode='mesh'. | |
| focus | No | Patch or group to frame (e.g. 'motorBikeGroup', 'wall'); slices pass through it by default. | |
| range | No | [min, max] colour range. | |
| width | No | ||
| height | No | ||
| patches | No | Patch/group names for mode='patches'. | |
| colormap | No | coolwarm, viridis, jet, turbo, inferno, plasma, rainbow, blue-red, grayscale. | coolwarm |
| component | No | Vector component (default Magnitude). | |
| iso_value | No | ||
| background | No | light | |
| seed_point1 | No | ||
| seed_point2 | No | ||
| slice_normal | No | Slice normal, e.g. 'y' or [0,1,0]. | |
| slice_origin | No | Slice origin (default: domain centre). | |
| contour_field | No |