ansys.dyna.core.lib.option_card.OptionCardSet#

class ansys.dyna.core.lib.option_card.OptionCardSet(option_spec: OptionSpec, cards: List[ansys.dyna.core.lib.card_interface.CardInterface], **kwargs)#

Bases: ansys.dyna.core.lib.card_interface.CardInterface

Represents a set of option cards associated with an OptionSpec.

property cards: List[ansys.dyna.core.lib.card_interface.CardInterface]#

Get the list of cards in this OptionCardSet.

property option_spec: OptionSpec#

Get the OptionSpec associated with this OptionCardSet.

property name: str#

Get the name of the option.

property title_order: int#

Get the title order of the option.

property card_order: int#

Get the card order of the option.

property active: bool#

Indicates whether the option is active.

property format: ansys.dyna.core.lib.format_type.format_type#

Get the card format type.

__hash__()#
__lt__(other: OptionCardSet)#
read(buf: TextIO, parameter_set: ansys.dyna.core.lib.parameters.ParameterSet = None) bool#

Read from buf.

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

Renders the card in the dyna keyword format. :param buf: Buffer to write to. If None, the output is returned as a string :param format: format_type to use. Default to standard.