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

Abstract base class for all the implementations of keyword cards.

Overview#

read

Read from buf.

write

Renders the card in the dyna keyword format.

cards

option_spec

name

title_order

card_order

active

Return whether the card is active.

format

Get the card format type.

Import detail#

from ansys.dyna.core.lib.option_card import OptionCardSet

Property detail#

property OptionCardSet.cards: List[ansys.dyna.core.lib.card_interface.CardInterface]#
property OptionCardSet.option_spec: OptionSpec#
property OptionCardSet.name: str#
property OptionCardSet.title_order: int#
property OptionCardSet.card_order: int#
property OptionCardSet.active: bool#

Return whether the card is active.

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

Get the card format type.

Method detail#

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

Read from buf.

OptionCardSet.write(format: ansys.dyna.core.lib.format_type.format_type | None = None, buf: TextIO | None = None, comment: bool | None = True) 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.