TableCardGroup#

class ansys.dyna.core.lib.table_card_group.TableCardGroup(cards: List[ansys.dyna.core.lib.card.Card], length_func: Callable, active_func: Callable = None, name: str = None, format: ansys.dyna.core.lib.format_type.format_type = format_type.default, **kwargs)#

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

Abstract base class for all the implementations of keyword cards.

Overview#

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.

table

active

Return whether the card is active.

bounded

__repr__

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

Import detail#

from ansys.dyna.core.lib.table_card_group import TableCardGroup

Property detail#

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

Get the card format type.

property TableCardGroup.table#
property TableCardGroup.active: bool#

Return whether the card is active.

property TableCardGroup.bounded: bool#

Method detail#

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

Reads the card data from an input text buffer.

TableCardGroup.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.

TableCardGroup.__repr__() str#

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