study_solve
Solve a COMSOL study synchronously and report elapsed time, solution tags, datasets, plots, solver stats, warnings, and errors; use async for long simulations.
Instructions
Solve a study synchronously and report timings, solutions and messages.
Long solves block the COMSOL worker; use study_solve_async for
simulations longer than ~30 s. Every call reports the wall-clock
elapsed_s, the attached solver sequence tags, new datasets/plots,
COMSOL's own last_computation_time and solver warnings/errors.
Args:
study: study tag (None = the only study in the model).
generate_plots: switch on the "Plot" option of every study step so
that default plot groups are created (otherwise the client API
creates none).
run_no_gen: use study.runNoGen() (reuse existing solver
sequences instead of regenerating them).
model: model name/tag (None = current model).
Returns: study, model, elapsed_s, solution_tags, new_datasets, new_plots, solution_stats (type/size/DoFs/solution counts), last_computation_time/ date/version, warnings and errors.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "study_solve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| study | No | ||
| run_no_gen | No | ||
| generate_plots | No |