session_start
Open an interactive Kratos session to load a case, initialize the model in memory, and return a session_id so you can step, inspect, or modify it before solving.
Instructions
Open an interactive Kratos session: load the case, build the AnalysisStage and run Initialize(), then return a session_id and the initial state (time 0, node/element counts, model parts). Nothing is solved until session_advance. Unlike run_simulation this keeps the live model in memory so you can step, inspect and modify it.
Single-stage, serial/OpenMP cases only (multi-stage, CoSimulation, FSI and MPI cases are rejected: use run_simulation). isolate=True works on a private copy of the case so the original files and outputs stay untouched. Sessions do not survive a server restart; close them with session_close. At most KRATOS_MCP_MAX_SESSIONS (default 4) can be open at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isolate | No | ||
| timeout | No | ||
| case_dir | Yes | ||
| analysis_type | No | ||
| analysis_class | No | ||
| parameters_file | No | ProjectParameters.json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||