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