viznoir

v0.10.1
io.github.kimimgo/viznoir Checked 3 hours ago Published 6 months ago

Cinema-quality science visualization for AI agents — headless VTK via MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

inspect_data Inspect Data

Inspect a simulation file and return metadata. Returns bounds, point/cell arrays with ranges, timestep info, and multiblock structure. Use this first to understand what data is available before rendering or extracting.

ParameterTypeDescription
file_path *stringPath to the simulation file (e.g., /data/cavity.foam, /data/beam.vtu)

render Render

Render a field visualization and return a PNG screenshot.

ParameterTypeDescription
field_name *stringName of the field to visualize (e.g., "p", "U", "T")
file_path *stringPath to simulation file
associationstring"POINTS" or "CELLS"
blocksMultiblock region names to include
camerastringCamera preset — isometric, top, front, right, left, back
colormapstringColor map preset (e.g., "Cool to Warm", "Viridis", "Jet")
heightOverride height in pixels (must set both width and height, or neither)
output_filenamestringOutput PNG filename (e.g., "snapshot_press.png")
purposestringResolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p)
scalar_range[min, max] for color scale, None for auto
timestepSpecific timestep, "latest", or None for first
widthOverride width in pixels (must set both width and height, or neither)

slice Slice

Create a slice (cut plane) visualization.

ParameterTypeDescription
field_name *stringField to visualize on the slice
file_path *stringPath to simulation file
camerastringCamera preset
colormapstringColor map preset
heightOverride height in pixels (must set both width and height, or neither)
normalSlice plane normal [nx, ny, nz]
originSlice plane origin [x, y, z]
purposestringResolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p)
timestepTimestep selection
widthOverride width in pixels (must set both width and height, or neither)

contour Contour

Create an iso-surface (contour) visualization.

ParameterTypeDescription
field_name *stringField for iso-surface extraction
file_path *stringPath to simulation file
isovalues *arrayList of iso-values to extract
camerastringCamera preset
colormapstringColor map preset
heightOverride height in pixels (must set both width and height, or neither)
purposestringResolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p)
timestepTimestep selection
widthOverride width in pixels (must set both width and height, or neither)

clip Clip

Create a clipped visualization.

ParameterTypeDescription
field_name *stringField to visualize
file_path *stringPath to simulation file
camerastringCamera preset
colormapstringColor map preset
heightOverride height in pixels (must set both width and height, or neither)
invertbooleanIf True, keep the other side
normalClip plane normal [nx, ny, nz]
originClip plane origin [x, y, z]
purposestringResolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p)
timestepTimestep selection
widthOverride width in pixels (must set both width and height, or neither)

streamlines Streamlines

Create a streamline visualization for vector fields.

ParameterTypeDescription
file_path *stringPath to simulation file
vector_field *stringName of the vector field (e.g., "U")
camerastringCamera preset
colormapstringColor map preset
heightOverride height in pixels (must set both width and height, or neither)
max_lengthnumberMaximum streamline length
purposestringResolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p)
seed_point1Start of seed line [x, y, z]
seed_point2End of seed line [x, y, z]
seed_resolutionintegerNumber of seed points
timestepTimestep selection
widthOverride width in pixels (must set both width and height, or neither)

plot_over_line Plot Over Line

Sample field values along a line between two points. Returns coordinate arrays and field values for plotting.

ParameterTypeDescription
field_name *stringField to sample
file_path *stringPath to simulation file
point1 *arrayStart point [x, y, z]
point2 *arrayEnd point [x, y, z]
resolutionintegerNumber of sample points
timestepTimestep selection

extract_stats Extract Stats

Extract statistical summary (min/max/mean/std) for fields.

ParameterTypeDescription
fields *arrayList of field names to analyze
file_path *stringPath to simulation file
blocksMultiblock region names
timestepTimestep selection

integrate_surface Integrate Surface

Integrate a field over a surface to compute forces, areas, or fluxes.

ParameterTypeDescription
field_name *stringField to integrate (e.g., "p", "wallShearStress")
file_path *stringPath to simulation file
boundaryBoundary/block name to extract (e.g., "wall", "inlet")
timestepTimestep selection

animate Animate

Create an animation from time series data or camera orbit. Time mapping (timesteps mode): speed_factor=1.0: real-time (physics 1s = video 1s) speed_factor=5.0: 5x fast-forward speed_factor=0.2: 5x slow-motion (physics 1s = video 5s) For VTK file series (e.g., PartFluid_0000.vtk through PartFluid_0100.vtk), use 'files' with an explicit list or 'file_pattern' with a glob pattern.

ParameterTypeDescription
field_name *stringField to visualize
file_path *stringPath to simulation file (or first file in series)
camerastringCamera preset (used for initial view in orbit mode)
colormapstringColor map preset
file_patternGlob pattern for file series (e.g., "/data/PartFluid_*.vtk")
filesExplicit list of file paths for VTK time series
fpsintegerFrames per second (15-60)
heightintegerFrame height
modestring"timesteps" for time series, "orbit" for camera rotation
orbit_durationnumberOrbit video length in seconds (orbit mode only)
output_formatstringOutput format — "frames" (PNG only), "mp4", "webm", or "gif"
speed_factornumberPlayback speed multiplier (1.0=real-time)
text_overlayText to overlay on video frames (e.g., case name)
time_range[start, end] physics time range, None for all
video_qualityintegerVideo CRF quality (lower=better, 18-28 typical, default 23)
widthintegerFrame width

split_animate Split Animate

Create a split-pane synchronized animation with multiple views. Render 2-4 panes in a grid layout, combining 3D visualizations with time-series graphs. All panes are timestep-synchronized and output as a single GIF or PNG sequence.

ParameterTypeDescription
file_path *stringPath to simulation file (PVD, foam, etc.)
panes *arrayList of pane definitions (render or graph)
fpsintegerFrames per second (15-60)
gifbooleanGenerate animated GIF (True) or PNG sequence only (False)
layoutGrid layout {"rows": 2, "cols": 2, "gap": 4}
resolutionTotal output [width, height] in pixels
speed_factornumberPlayback speed (1.0=real-time, 5.0=5x fast-forward)
time_range[start, end] physics time range

pv_isosurface Pv Isosurface

Run DualSPHysics IsoSurface to generate VTK surface mesh files. Converts bi4 particle data into VTK surface meshes (iso-surfaces). The output files can then be used with animate() or render() via SourceDef(files=[...]) for visualization.

ParameterTypeDescription
bi4_dir *stringDirectory containing bi4 data files
output_dir *stringDirectory for output VTK surface mesh files
docker_imagestringDocker image with IsoSurface tool
only_typestringParticle type filter (e.g., "+fluid")
varsstringVariable selection (e.g., "+vel,+press,+rhop")

execute_pipeline Execute Pipeline

Execute a custom pipeline definition (advanced). Accepts a full PipelineDefinition JSON for maximum flexibility. This is the primary interface for CFD/FEA/CAE specialist agents. The pipeline JSON structure: { "source": {"file": "/data/file.foam", "timestep": "latest"}, "pipeline": [ {"filter": "Slice", "params": {"origin": [0,0,0], "normal": [1,0,0]}}, {"filter": "Calculator", "params": {"expression": "mag(U)", "result_name": "Umag"}} ], "output": { "type": "image", "render": {"field": "Umag", "colormap": "Viridis"} } } Available filters:…

ParameterTypeDescription
pipeline *objectComplete PipelineDefinition as JSON dict

cinematic_render Cinematic Render

Cinematic-quality rendering with auto-framing, 3-point lighting, SSAO, and PBR. Produces publication/presentation-quality images with: - PCA-based auto-camera: analyzes object shape and picks optimal viewing angle - 3-point cinematic lighting (key + fill + rim) - SSAO (Screen-Space Ambient Occlusion) for contact shadows - FXAA anti-aliasing - Gradient backgrounds - PBR material support (metallic/roughness) Quality presets: - draft: 960x540, no post-processing (fast preview) - standard: 1920x1080, SSAO + FXAA - cinematic: 1920x1080, all effects + ground plane - ultra: 3840x2160, all effects +…

ParameterTypeDescription
file_path *stringPath to simulation file
azimuthCamera azimuth in degrees (None for auto from shape analysis)
backgroundBackground preset (dark_gradient, light_gradient, blue_gradient, publication, None)
colormapstringColor map preset (e.g., "Cool to Warm", "Viridis")
elevationCamera elevation in degrees (None for auto from shape analysis)
field_nameField to visualize (None for auto-detect)
fill_rationumberHow much of viewport the object fills (0.0-1.0, default 0.75)
fxaabooleanEnable Fast Approximate Anti-Aliasing
ground_planebooleanAdd a semi-transparent ground plane for shadow catching
heightOverride image height (None uses quality preset)
lightingLighting preset (cinematic, dramatic, studio, publication, outdoor, None)
metallicnumberPBR metallic factor (0.0-1.0)
output_filenamestringOutput PNG filename
qualitystringRendering quality preset
roughnessnumberPBR roughness factor (0.0-1.0)
scalar_range[min, max] for color scale, None for auto
ssaobooleanEnable Screen-Space Ambient Occlusion
timestepSpecific timestep, "latest", or None for first
widthOverride image width (None uses quality preset)

volume_render Volume Render

Volume render 3D data (CT, MRI, CFD fields) with transfer function presets. Presets: generic, ct_bone, ct_tissue, mri_brain, thermal, isosurface_like

ParameterTypeDescription
file_path *stringPath to volumetric data (VTI, VTK structured grid, etc.)
backgroundBackground preset
colormapstringColor map preset
field_nameScalar field to render, None for active scalars
heightImage height in pixels
lightingLighting preset
output_filenamestringOutput filename
qualitystringRender quality (draft/standard/cinematic/ultra/publication)
scalar_range[min, max] for color scale
timestepSpecific timestep, "latest", or None
transfer_presetstringOpacity preset (ct_bone, ct_tissue, mri_brain, thermal, generic, isosurface_like)
widthImage width in pixels

compare Compare

Compare two simulation results side-by-side or as a difference map. Renders both datasets with identical camera, colormap, and scalar range for direct visual comparison. Essential for design comparison, mesh convergence studies, and solver validation. Modes: - side_by_side: Two panels with shared colorbar and consistent framing - diff: Absolute field difference map (|A - B|) rendered on dataset A's mesh

ParameterTypeDescription
file_a *stringPath to first simulation file
file_b *stringPath to second simulation file
colormapstringColor map preset for both panels
field_nameField to compare (None for auto-detect)
heightOverride height in pixels (must set both width and height, or neither)
label_astringLabel for first panel (displayed top-left)
label_bstringLabel for second panel (displayed top-left)
modestringComparison mode — "side_by_side" or "diff"
output_filenamestringOutput PNG filename
purposestringResolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p)
qualitystringRendering quality (draft/standard/cinematic)
scalar_rangeShared [min, max] for consistent coloring (None for auto)
timestepSpecific timestep, "latest", or None for first
widthOverride total width in pixels (must set both width and height, or neither)

probe_timeseries Probe Timeseries

Sample a field value at a fixed point across timesteps. Useful for monitoring pressure/velocity at a sensor location over time. Returns dict with times and values arrays.

ParameterTypeDescription
field_name *string
file_path *string
point *array
file_pattern
files
time_range

batch_render Batch Render

Render multiple fields from the same dataset in one call. Returns a dict with images list, each containing field name and base64 PNG. Useful for comparing pressure, velocity, temperature, etc. side-by-side.

ParameterTypeDescription
fields *arrayList of field names to render
file_path *stringPath to simulation file
camerastringCamera preset
colormapstringColor map preset
heightOverride height in pixels (must set both width and height, or neither)
purposestringResolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p)
qualitystringRendering quality (draft/standard/cinematic)
timestepTimestep selection
widthOverride width in pixels (must set both width and height, or neither)

preview_3d Preview 3D

Export dataset to glTF/glB for interactive 3D viewing in a browser. Returns the exported file path and a viewer URL hint. Requires VTK >= 9.4 with vtkGLTFExporter support.

ParameterTypeDescription
file_path *string
field_name
output_filenamestring
timestep

inspect_physics Inspect Physics

Extract structured physics data for AI storytelling. Analyzes simulation data to extract: - L2 FieldTopology: vortex detection (Q-criterion), critical points, centerline profiles, gradient statistics per field - L3 CaseContext: boundary conditions, transport properties, solver info, mesh quality, derived quantities (Re, Ma, etc.) Returns structured JSON for LLM to build physics narratives. Replaces analyze_data with quantitative topology data instead of hardcoded heuristics.

ParameterTypeDescription
file_path *stringPath to VTK/OpenFOAM/CGNS simulation file
case_dirOpenFOAM case directory for full solver metadata. If None, only mesh quality is extracted.
fieldsSpecific field names to analyze (None = all fields)
probe_linesintegerNumber of auto centerline probe lines (1-3)
vortex_thresholdnumberQ-criterion threshold for vortex detection

analyze_data Analyze Data

[DEPRECATED — use inspect_physics instead] Analyze VTK/simulation data. This tool is deprecated. Use inspect_physics for structured physics data extraction with vortex detection, critical points, and solver metadata.

ParameterTypeDescription
file_path *stringPath to VTK/OpenFOAM/CGNS file
domainPhysics domain hint — "cfd", "fea", "thermal" (None for auto-detect)
focusAnalyze only this field (None for all fields)

compose_assets Compose Assets

Compose multiple assets into a deliverable format.

ParameterTypeDescription
assets *arrayList of asset definitions (dicts with 'type' and type-specific keys)
fpsintegerFrames per second for video export (default 30)
heightintegerOutput height in pixels (default 1080)
layoutstringLayout mode — "story", "grid", "slides", or "video"
scenesScene definitions for video layout (list of dicts with asset_indices, duration, transition)
titleOptional title text (used in story layout)
widthintegerOutput width in pixels (default 1920)

auto_postprocess Auto Postprocess

Autonomous post-processing: inspect → visualize → evaluate → refine. Analyzes the file, detects the simulation domain (CFD/FEA/SPH), and produces 3-5 visualizations automatically. With sampling-capable clients, evaluates results and refines parameters iteratively.

ParameterTypeDescription
file_path *stringPath to simulation file (.foam, .vtu, .vtk, etc.)
goalstring"explore" (overview), "publish" (publication quality), "compare" (multi-field)
max_iterationsintegerMaximum refinement iterations (1-5)