prepare_dynain
Copies the explicit solver's ASCII dynain file to dynain.k for import into an External Model system, enabling step 2 of an explicit-to-implicit sequential solution.
Instructions
Explicit-to-implicit sequential solution, step 2: copy the solver's ASCII dynain file to
dynain.k so the External Model system can import it. Get an ASCII dynain with
set_dynain_output(psid, fmt="ascii") in the explicit run, and leave Workbench's own Output
Controls > Stress File for flexible parts OFF: that setting cannot choose ASCII through
scripting (the Workbench default is the binary dynain.lsda, which this tool cannot use;
multi-system transfers use the .lsda file directly, no conversion needed), and turning it on
as well gives the deck two springback cards. Rigid-body displacements are not saved. An
existing dynain.k is kept unless overwrite=True; a dynain larger than
LSDYNA_MCP_MAX_DYNAIN_MB (default 2048) is refused.
Args: directory (the explicit run's working_dir), overwrite
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | ||
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |