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.

Deck.clear()

Deck.dumps()

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.

Deck.get_section_by_id(id)

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.

Deck.validate()

Validate the collection of keywords.

Deck.write([buf, format])

Write the card in the dyna keyword format.

Attributes

Deck.all_keywords

List of all keywords.

Deck.comment_header

Comment header of the keyword database.

Deck.format

Format type of the deck.

Deck.keywords

List of processed keywords.

Deck.string_keywords

List of keywords as a raw string.

Deck.title

Title of the keyword database.