ansys.dyna.core.lib.cards#

Base class for cards and I/O.

Classes#

Cards

Abstract base class for option card api interface.

Module Contents#

class ansys.dyna.core.lib.cards.Cards(keyword)[source]#

Bases: ansys.dyna.core.lib.option_card.OptionsInterface

Abstract base class for option card api interface.

property options: ansys.dyna.core.lib.option_card.Options[source]#

Gets the options_api of this keyword, if any

is_option_active(option: str) bool[source]#
activate_option(option: str) None[source]#
deactivate_option(option: str) None[source]#
get_option_spec(name: str) ansys.dyna.core.lib.option_card.OptionSpec[source]#
property option_specs: Iterable[ansys.dyna.core.lib.option_card.OptionSpec][source]#

Get the card format type.

write(buf: TextIO, format: ansys.dyna.core.lib.format_type.format_type, comment: bool | None = True) bool[source]#

Writes the cards to buf using format. Returns whether a superfluous newline is added