ansys.dyna.core.lib.keyword_base#
Classes#
Base class for all keywords. |
Module Contents#
- class ansys.dyna.core.lib.keyword_base.KeywordBase(**kwargs)[source]#
Bases:
ansys.dyna.core.lib.cards.Cards
Base class for all keywords.
- Derived class must provide::
_cards
keyword
subkeyword
- property format: ansys.dyna.core.lib.format_type.format_type[source]#
Get or set the format for this keyword.
- property cards: List[ansys.dyna.core.lib.card_interface.CardInterface][source]#
Gets the cards of the keyword
- __repr__() str [source]#
Returns a console-friendly representation of the keyword data as it would appear in the .k file
- write(buf: TextIO | None = None, format: ansys.dyna.core.lib.format_type.format_type | None = None, deck_format: ansys.dyna.core.lib.format_type.format_type = format_type.default) str [source]#
Renders the keyword in the dyna keyword format.
- Parameters:
- buf: IO
Optional - buffer to write to.
- Returns
- _______
- If `buf` is None, the output is returned as a string