ansys.dyna.core.lib.series_card.SeriesCard#

class ansys.dyna.core.lib.series_card.SeriesCard(name: str, fields_per_card: int, element_width: int, input_type: type | List[type], length_func: Callable = None, active_fn: Callable = None, type_names: List[str] | None = None, data=None, format: ansys.dyna.core.lib.format_type.format_type = format_type.default)#

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

Card holding a series of values.

__iter__() Iterator#
property format: ansys.dyna.core.lib.format_type.format_type#

Format type of the series card.

property active: bool#

Indicates whether the series card is active.

__getitem__(index)#
__setitem__(index: int, value)#
append(value) None#

Append a value to the series card.

extend(valuelist: Iterable) None#

Extend the series card with a list of values.

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

Read the series card content from a buffer.

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

Write the series card to a string or buffer.

__len__() int#
property bounded: bool#

Indicates whether the series card is bounded.

__repr__() str#

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

property data#

Gets or sets the data list of parameter values