set_dynain_output
Adds an *INTERFACE_SPRINGBACK_LSDYNA keyword to make LS-DYNA write a dynain file with final deformed shape and stress state in ASCII, binary, both, or lsda format for restart or initial-state decks.
Instructions
Make the run write a dynain (final deformed shape and stress state) in the format you can use, by adding a *INTERFACE_SPRINGBACK_LSDYNA keyword snippet. Checked on the real solver: FTYPE 0 writes an ASCII dynain (which prepare_dynain can turn into an initial-state deck), 1 writes dynain.bin, 2 both, 3 dynain.lsda (the Workbench default, not convertible here). The Workbench setting 'Stress File for flexible parts' cannot choose ASCII through scripting, so leave it off (0) or the deck gets two springback cards. Args: psid (the part set to write; must exist unless part_ids_json is given), fmt (ascii | binary | both | lsda), part_ids_json (JSON list of part ids: a *SET_PART_LIST with this psid is added), analysis_index
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | ascii | |
| psid | Yes | ||
| part_ids_json | No | [] | |
| analysis_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |