ansys.dyna.core.lib.cards.Cards#

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

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#

Gets the options_api of this keyword, if any

is_option_active(option: str) bool#

Returns True if the given option is active.

activate_option(option: str) None#

Activate the given option.

deactivate_option(option: str) None#

Deactivate the given option.

get_option_spec(name: str) ansys.dyna.core.lib.option_card.OptionSpec#

Gets the option spec for the given name.

property option_specs: Iterable[ansys.dyna.core.lib.option_card.OptionSpec]#

Gets all option specs for this keyword.

write(buf: TextIO, format: ansys.dyna.core.lib.format_type.format_type, comment: bool | None = True, retain_parameters: bool = False, **kwargs)#

Writes the cards to buf using format.