Render FEM Results
render_fem_resultsRenders completed FEM result surfaces with field-based viridis coloring, deformed-shape overlay, and min/max colorbar to visualize stress, displacement, or temperature solves as a PNG.
Instructions
Render a completed FEM result's surface, colored by a per-vertex field.
Pulls the result surface (boundary triangulation + per-node field values + displacement vectors) from the worker, then colors it with a viridis colormap (barycentrically interpolated), overlays the deformed shape, and draws a colorbar with the field min/max — the "agent eyes" for a stress / displacement / thermal solve.
field: 'vonmises' (default) | 'displacement' | 'temperature'. view: a preset ('iso'|'top'|'front'|…) or a custom '(azimuth,elevation)' camera passed as e.g. "45,35". deformation_scale: 'auto' scales the peak displacement to ~8% of the model diagonal; a number is used verbatim; '0' disables the deformed overlay.
Returns {png_base64, width, height, field, units, min, max, view, node_count, triangle_count}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"analysis": "<analysis>"
},
"name": "render_fem_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | iso | |
| edges | No | ||
| field | No | vonmises | |
| width | No | ||
| height | No | ||
| analysis | Yes | ||
| workspace | No | Run this call in this named workspace | |
| deformation_scale | No | auto |