inspect_physics
Extract structured physics data from simulation files for AI storytelling. Analyzes vortex topology, field gradients, and case context to return quantitative JSON data.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to VTK/OpenFOAM/CGNS simulation file | |
| case_dir | No | OpenFOAM case directory for full solver metadata. If None, only mesh quality is extracted. | |
| fields | No | Specific field names to analyze (None = all fields) | |
| probe_lines | No | Number of auto centerline probe lines (1-3) | |
| vortex_threshold | No | Q-criterion threshold for vortex detection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||