ansys.dyna.core.lib.card#

Classes#

Card

Abstract base class for all the implementations of keyword cards.

Module Contents#

class ansys.dyna.core.lib.card.Card(fields: List[ansys.dyna.core.lib.field.Field], active_func=None, format=format_type.default)[source]#

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

Abstract base class for all the implementations of keyword cards.

property format[source]#

Get the card format type.

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 | None[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.

get_value(prop: str) Any[source]#

gets the value of the field in the card

set_value(prop: str, value: Any) None[source]#

sets the value of the field in the card

__repr__() str[source]#

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