session_close
Close a Kratos simulation session, finalizing by default to flush VTK/GiD and restart files before terminating the worker process. Safe on already closed sessions.
Instructions
Close a session. With finalize=True (default) the AnalysisStage's Finalize() runs first so output processes flush (VTK/GiD files, restart files); then the worker process group is terminated. Safe to call on an already closed or dead session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| finalize | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||