Deck#
- class ansys.dyna.keywords.Deck(title: str = None, **kwargs)#
Provides a collection of keywords that can read and write to a keyword file.
Methods
Deck.append
(keyword[, check])Add a keyword to the collection.
Get the keyword file representation of all keywords as a string.
Deck.expand
([cwd])Get a new deck that is flat.
Deck.export_file
(path)Export the keyword file to a new keyword file.
Deck.extend
(kwlist)Add a list of keywords to the deck.
Deck.get
(**kwargs)Get a list of keywords.
Deck.get_kwds_by_type
(type)Get all keywords for a given type.
Get the SECTION keyword in the collection for a given section ID.
Deck.import_file
(path)Import a keyword file.
Deck.loads
(value)Load all keywords from the keyword file as a string.
Deck.plot
(**args)Plot the node and element of the mesh using PyVista.
Validate the collection of keywords.
Deck.write
([buf, format])Write the card in the dyna keyword format.
Attributes
List of all keywords.
Comment header of the keyword database.
Format type of the deck.
List of processed keywords.
List of keywords as a raw string.
Title of the keyword database.