lsdyna
lsdyna keyword chooses the LS-DYNA keyword deck as the format of the files that the next write makes.
Syntax
lsdyna keyword
The argument is required. keyword names the keyword deck James writes. The other value the original language allows, fixed, names the structured input of older LS-DYNA releases, which James does not write. The command line spells the same format --format lsdyna.
What it does
lsdyna keyword sets the format. It stays in force for every later write until another format command replaces it. The command line flag --format is only a fallback: James uses it when the script names no format.
The file is a keyword deck in the reader’s long format: its first line is *KEYWORD LONG=Y and every field is 20 characters wide, which holds 13 significant digits of a coordinate. It holds the title, a *PART, *SECTION_SOLID and *MAT_ELASTIC triple for every material number the mesh uses, the nodes, and the elements, whose part id is the element’s James material number, with a comment line naming the James part before each part’s elements. The material cards are placeholders, a linear elastic material with density 1.0, modulus 1.0 and Poisson’s ratio 0.3, each marked placeholder material N: replace before use, so that the deck runs as written and nobody mistakes the card for a material. The merge and output chapter gives the layout card by card.
When James applies it
At the next write. lsdyna is legal in the Control, Part and Merge phases.
Rules James adds
lsdyna fixedis refused (E1105); the format in force stays what it was.- A missing or unknown type is a malformed command (E0104).
- A second format command that names a different format, before any
writehas used the first, is a warning (E1104). The later command governs. - The title is written cut to 80 characters, with a warning when it was longer. A title whose first character is
*or$is written behind one blank, so the reader never takes it for a keyword or a comment; such a title holds 79 characters.
Diagnostics
- E1105: the type is
fixed. - E0104: the type is missing or is neither
keywordnorfixed. - E1104: a format command replaces a different format that no
writehas used.
Example
The script tests/corpus/188-lsdyna-keyword-write/input.tg, which make test runs:
block 1 2;1 2;1 2;0 1;0 1;0 1;
endpart
merge
lsdyna keyword
write
One cube, written as an LS-DYNA keyword deck named trugrdo: eight nodes, one element of material 1, and the placeholder cards for material 1.
See also
- abaqus, dyna3d: the other solver decks.
- mate: the material numbers the deck carries.
- write: makes the file.
- Merge and output: the layout.