REPLACE CURVE BY ID¶
Replaces a specific *DEFINE_CURVE entry in an LS-DYNA keyword deck by locating it via its numeric curve ID and substituting in new XY point data. Use this worker when you need to programmatically swap out a load curve in an existing keyword text without manually editing the deck.
When to use¶
Classification: process.
Tagged: curve_replace, deck_edit, define_curve, keyword, lsdyna, text_transform.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Original Text | text | textarea | — | Full LS-DYNA keyword deck text (e.g. the contents of a .k or .key file) containing one or more *DEFINE_CURVE blocks; must be valid LS-DYNA keyword syntax. | |
| Curve Id | curve_id | text | — | Integer ID of the *DEFINE_CURVE entry to be replaced; must match the LCID field in the deck exactly. | |
| New Curve | new_curve | vector | — | Replacement XY point data as a flat numeric vector (x1, y1, x2, y2, …) that will overwrite the existing curve’s data points. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| Replaced LS-DYNA Keyword Text | new_text | text | Full LS-DYNA keyword deck text with the targeted *DEFINE_CURVE block replaced by the new curve data; all other content is preserved verbatim. |
Disciplines¶
- cae.preprocessing.deck_authoring
- data.curve.transform
Auto-generated from transformation schema. Worker id: text_replace_lsdyna_curve_by_id. Schema hash: af13c5f59796. Hand-curated docs in workerexamples/ override this page when present.