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.

Overview#

options

Gets the options_api of this keyword, if any

option_specs

Get the card format type.

Import detail#

from ansys.dyna.core.lib.cards import Cards

Property detail#

property Cards.options: ansys.dyna.core.lib.option_card.Options#

Gets the options_api of this keyword, if any

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

Get the card format type.

Method detail#

Cards.is_option_active(option: str) bool#
Cards.activate_option(option: str) None#
Cards.deactivate_option(option: str) None#
Cards.get_option_spec(name: str) ansys.dyna.core.lib.option_card.OptionSpec#
Cards.write(buf: TextIO, format: ansys.dyna.core.lib.format_type.format_type, comment: bool | None = True) bool#

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