lsdyna_mesh_reader.Deck#
- class lsdyna_mesh_reader.Deck(filename: str | Path)#
LS-DYNA deck.
- Parameters:
- filenamestr | pathlib.Path
Path to the keyword file (
*.k
,*.key
,*.dyn
).
- Attributes:
element_shell_sections
Return the element_shell sections.
element_solid_sections
Return the element_solid sections.
node_sections
Return the node sections.
Methods
overwrite_node_section
(filename, nodes)Create a new deck file with the same content but overwritten node section.
to_grid
()Convert the mesh within the deck to a pyvista.UnstructuredGrid.
Examples
>>> import lsdyna_mesh_reader >>> from lsdyna_mesh_reader import examples >>> deck = lsdyna_mesh_reader.Deck(examples.birdball) LSDYNA Deck with: Node sections: 1 Element Solid sections: 1 Element Shell sections: 1
Methods
Deck.overwrite_node_section
(filename, nodes)Create a new deck file with the same content but overwritten node section.
Convert the mesh within the deck to a pyvista.UnstructuredGrid.
Attributes
Return the element_shell sections.
Return the element_solid sections.
Return the node sections.