create_lsdyna_analysis
Add a new LS-DYNA analysis or restart analysis to an Ansys Mechanical model via the scripting API, enabling automated setup of solver systems.
Instructions
Add an LS-DYNA analysis (restart=True: an LS-DYNA Restart analysis) to the Mechanical model via Model.AddLSDynaAnalysis / AddLSDynaRestartAnalysis. The Workbench system itself has template ids LSDYNA and RestartLSDYNA (see create_lsdyna_system_snippet). The new analysis is detected as LS-DYNA. It cannot be deleted through the scripting API (null-reference error), so remove it in the GUI if unwanted. Args: restart
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": "create_lsdyna_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| restart | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |