ansys.dyna.core.lib.variable_card#

Classes#

VariableCard

Variable length card

Module Contents#

class ansys.dyna.core.lib.variable_card.VariableCard(name: str, card_size: int, element_width: int, type: VariableCard.__init__.type, length_func: Callable = None, active_fn: Callable = None, data=None, format: ansys.dyna.core.lib.format_type.format_type = format_type.default)[source]#

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

Variable length card

property format: ansys.dyna.core.lib.format_type.format_type[source]#

Get the card format type.

__getitem__(index)[source]#
__setitem__(index: int, value)[source]#
append(value) None[source]#
extend(valuelist) None[source]#
read(buf: TextIO) bool[source]#

Reads the card data from an input text buffer.

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

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.

__len__() int[source]#
property bounded: bool[source]#
__repr__() str[source]#

Returns a console-friendly representation of the desired parameters for the card

property data[source]#

Gets or sets the data list of parameter values