add_keyword_commands
Insert raw LS-DYNA keyword snippets for cards without native Mechanical objects (e.g. *CONTROL_ENERGY, *DEFINE_CURVE) into a chosen model scope, with blank-line cleanup.
Instructions
Add a Keyword Snippet (Commands object) holding raw LS-DYNA keyword text, for cards Mechanical has no native object for (e.g. *CONTROL_ENERGY, *DEFINE_CURVE). Leading/trailing blank lines are stripped: trailing blanks are read as empty mandatory cards and break the solve. INCLUDE cards in the text may only name files inside the allowed folders (the solver itself would otherwise open them, e.g. a network path). Args: keywords (must start with a '' card such as *CONTROL_ENERGY; do NOT add *KEYWORD, the snippet goes inside the deck Mechanical writes); analysis_index; scope_path: where to insert it, as a dotted path from the Model, e.g. "Geometry.Children[0].Children[0]" for a body (*MAT, *EOS, *HOURGLASS) or "Connections" (contact types the system lacks). Empty = under the analysis (any keyword).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| scope_path | No | ||
| analysis_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |