ansys.dyna.core.lib.table_card#
Attributes#
Classes#
Abstract base class for all the implementations of keyword cards. |
Functions#
|
card is a TableCard or a TableCardGroup |
|
Get the first row data from the kwargs. |
Module Contents#
- ansys.dyna.core.lib.table_card.try_initialize_table(card, name: str, **kwargs)[source]#
card is a TableCard or a TableCardGroup
- ansys.dyna.core.lib.table_card.get_first_row(fields: List[ansys.dyna.core.lib.card.Field], **kwargs) Dict[str, Any] [source]#
Get the first row data from the kwargs.
- class ansys.dyna.core.lib.table_card.TableCard(fields: List[ansys.dyna.core.lib.card.Field], length_func, active_func: Callable = None, name: str = None, format: ansys.dyna.core.lib.format_type.format_type = format_type.default, **kwargs)[source]#
Bases:
ansys.dyna.core.lib.card.Card
Abstract base class for all the implementations of keyword cards.
- read(buf: TextIO, parameter_set: ansys.dyna.core.lib.parameters.ParameterSet = None) None [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.