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.

Overview#

append

extend

read

Reads the card data from an input text buffer.

write

Renders the card in the dyna keyword format.

format

Get the card format type.

active

Return whether the card is active.

bounded

data

Gets or sets the data list of parameter values

__iter__

__getitem__

__setitem__

__len__

__repr__

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

Import detail#

from ansys.dyna.core.lib.series_card import SeriesCard

Property detail#

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

Get the card format type.

property SeriesCard.active: bool#

Return whether the card is active.

property SeriesCard.bounded: bool#
property SeriesCard.data#

Gets or sets the data list of parameter values

Method detail#

SeriesCard.__iter__() Iterable#
SeriesCard.__getitem__(index)#
SeriesCard.__setitem__(index: int, value)#
SeriesCard.append(value) None#
SeriesCard.extend(valuelist: Iterable) None#
SeriesCard.read(buf: TextIO, parameter_set: ansys.dyna.core.lib.parameters.ParameterSet = None) bool#

Reads the card data from an input text buffer.

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

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.

SeriesCard.__len__() int#
SeriesCard.__repr__() str#

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