write_and_audit_deck
Writes the LS-DYNA deck from a Workbench analysis, audits it, and optionally compares it with a reference deck to flag errors or missing cards before solving.
Instructions
Write the deck Workbench would solve (the same Analysis.WriteInputFile path as
write_solver_input, no solve) into an allowed folder, audit it (audit_deck) and, with
reference_path, compare it with the reference deck (compare_decks). safe_to_solve is false on
any error-severity finding (from the audit or the comparison, for example a Workbench default such as
*MAT_JOHNSON_COOK SPALL 0 against the reference's 3) and when the reference has cards the
written deck lacks (end time, initial velocity, contacts, materials lost by an External Model
import). True only means nothing blocking was found: read reasons and diff.
The file goes next to the reference (else into the first allowed folder) under output_name
(a plain .k name; default wb_written_.k); an existing file is never replaced.
Args: analysis_index, reference_path (the standalone deck to compare with), output_name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_name | No | ||
| analysis_index | No | ||
| reference_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |