Medlea

Docs /Getting Started

AI Commands — Simulation & More

CFD Simulation (Engineering)

Step-by-Step Approach

You can configure and run simulations one step at a time:

What you can sayWhat happens
”Create project from aorta of patient Mario”Extracts segmented anatomy into a CFD project
”Assign material blood”Sets fluid properties (Air, Water, Blood, Cerebrospinal, Urine)
“Auto zone”AI-based inlet/outlet zone detection (SEGNN)
“Assign boundary conditions: inlet velocity 0.3, parabolic”Sets inlet/outlet parameters
”Discretize with medium resolution”Generates computational mesh (coarsest to finest)
“Set contraction ratio 0.8”Adjusts Mach number scaling (or let autoCR estimate it)
“Simulate for 1 second”Launches CFD simulation
”Show simulation results”Loads velocity/pressure fields

Composable Workflow Stages

You can also use intermediate workflow stages that combine multiple steps:

What you can sayWhat happens
”Prepare anatomy of aorta for patient Mario”Load CT + Segment + Create project (3 steps)
“Configure simulation for project AORTA_Mario”Assign material + Auto-zone + Assign BC (3 steps)
“Mesh and simulate project AORTA_Mario with fine resolution”Discretize + Run simulation (2 steps)

These stages can be used independently or combined freely.

Automated Full Pipeline

For a fully automated end-to-end workflow:

“Simulate flow in the aorta of patient Mario”

This single command triggers the complete pipeline:

  1. Prepare anatomy: Load CT + Segment organ + Create project
  2. Configure simulation: Assign material + Auto-zone + Assign BC (all organ-specific)
  3. Mesh and simulate: Discretize mesh + Auto contraction ratio (geometry-based) + Run simulation with convergence autostop
  4. Display results: Load velocity/pressure fields in 3D viewer

Key features:

  • Auto contraction ratio (autoCR): Estimates optimal CR from geometry analysis — no manual tuning needed
  • Convergence autostop: Monitors probe data during simulation and terminates early when flow reaches stationarity (typically 20-80% time savings)
  • All parameters overridable: "Simulate flow in the aorta of patient Mario with fine resolution and 5 seconds"
  • Progress is reported in real-time. Each step is validated before proceeding.

Supported organs for automated flow: aorta, trachea, airways, coronary, carotid.

Simulation Monitoring

What you can sayWhat happens
”Is the simulation done?”Shows status and progress %
“How long will it take?”Estimates wallclock time for each resolution
”Simulation status”Shows all running/completed jobs for a project

Simulation Results

What you can sayWhat happens
”Play animation”Plays CFD result animation
”Loop animation”Enables continuous playback
”Show simulation results of project FDA”Loads specific simulation results

Comparative View

What you can sayWhat happens
”Show comparative view between PRE and POST”Side-by-side CT comparison
”Hide CT scan”Toggles volumetric rendering

UI & Settings

What you can sayWhat happens
”Dark theme”Switches to dark blue theme
”Light theme”Switches to light theme
”Language Italian”Switches UI to Italian
”Language English”Switches UI to English
”Show info” / “Hide info”Toggles info panel
”Take snapshot”Captures current view as image
”Refresh”Forces viewer re-render

Advanced Analysis

What you can sayWhat happens
”Mesh info for project FDA”Shows element count, resolution, spacing
”Show probe data”Displays min/max/mean pressure and velocity
”Compare simulations”Side-by-side comparison of two runs
”Medical report for patient Mario”Structured anatomy summary with volumes
”Parametric study on resolution: coarse,medium,fine”Plans a multi-run parameter sweep
”Clone simulation”Duplicates a simulation setup for iteration
”Export project FDA as STL”Exports geometry to file
”Export patient Mario as VTP”Exports all anatomies

Batch Operations

What you can sayWhat happens
”Segment all: lungs,cardiac,aorta”Segments multiple organs in sequence
”Batch segment lungs and cardiac”Same as above

Context-Aware Help

What you can sayWhat happens
”What can I do?”Shows available actions based on current state
”Undo”Reverses the last reversible action
”Annulla”Same as undo (Italian)

Utility Commands

What you can sayWhat happens
”Again”Repeats the last command
”Repeat rotate 5 times”Executes a command multiple times
”Sleep 2000 ms”Pauses execution (useful in sequences)

Tips for Effective Use

  1. Be natural. The assistant understands medical and engineering terminology in multiple languages.

  2. Use context. After loading a patient, you don’t need to repeat the patient name for subsequent commands.

  3. Combine commands. You can describe what you want in a single sentence: “Load patient Mario, show the aorta with 50% opacity in anterior view.”

  4. Ask questions. The assistant can explain concepts, suggest boundary conditions, or help troubleshoot simulation issues.

  5. Use organ aliases. Italian names work too: “mostra cuore” = “show heart”, “segmenta polmoni” = “segment lungs”.

  6. Monitor progress. Long operations (segmentation, simulation) show a progress bar. You can continue interacting while they run.


Supported Languages

The assistant understands commands in: English, Italian, French, German, Japanese, Chinese, Ukrainian, Korean.

UI language can be changed independently with “language EN/IT/FR/DE/JA/ZH/UK/KO”.