run_case
Start a processed SPH simulation case in the background and receive a job ID for tracking progress and retrieving output files.
Instructions
Start the CPU solver in the BACKGROUND and return a job_id.
The case must have been processed by gencase first (Case.xml + Case.bi4). Progress is tracked with job_status; outputs land in the job directory (Run.out, data/Part_*.bi4). Restart/cancel are not implemented; solver flags such as -partbegin: can be passed via extra_args.
Args: case_path: Processed case base (gencase out_xml, with/without .xml). dirout: Output directory (default: jobs/<job_id>). omp_threads: OpenMP threads (default: DSPH_OMP_THREADS or all cores). tmax: Override TimeMax (seconds of simulated time). tout: Override TimeOut (seconds between Part files). extra_args: Extra solver flags (e.g. ["-svres"]).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"case_path": "<case_path>"
},
"name": "run_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tmax | No | ||
| tout | No | ||
| dirout | No | ||
| case_path | Yes | ||
| extra_args | No | ||
| omp_threads | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| case | Yes | ||
| state | Yes | ||
| dirout | Yes | ||
| job_id | Yes | ||
| command | Yes | ||
| run_out | Yes | Progress log parsed by job_status | |
| data_dir | Yes | Where Part_*.bi4 files appear | |
| poll_hint | Yes | ||
| returncode | No | ||
| started_at | Yes | ||
| stderr_log | Yes | ||
| stdout_log | Yes | ||
| finished_at | No | ||
| omp_threads | Yes | ||
| stderr_tail | No | ||
| restart_note | Yes |