FEM Run
fem_runExecutes CalculiX solver synchronously for small FEM analyses that finish in seconds, returning results after completion.
Instructions
Run the CalculiX solver on an analysis. BLOCKS the MCP channel until the solve finishes (up to 600 s).
Which to reach for: fem_run for small solves — a coarse mesh, linear static, a few thousand nodes — that finish in seconds, where a poll round-trip only adds latency. fem_run_submit for anything that may take a minute or more (fine or 2nd-order meshes, modal/buckling with many modes, nonlinear material or geometry), so the channel stays free while ccx runs.
workdir defaults to <TMPDIR>/ankusdrive_fem_<worker pid>, which is removed when
the worker exits (close_workspace, restart_worker, server shutdown); name your own
workdir to keep the .inp/.frd/.dat. Raises if ccx exits non-zero (with its *ERROR
lines), or if a fem_run_submit solve is still running on this analysis or workdir.
Returns {workdir, status: 'ok', returncode, analysis_type,
result_objects, analysis}.
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": {
"analysis": "<analysis>"
},
"name": "fem_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workdir | No | ||
| analysis | Yes | ||
| workspace | No | Run this call in this named workspace |