CardInterface#

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

active

Return whether the card is active.

Import detail#

from ansys.dyna.core.lib.card_interface import CardInterface

Property detail#

property CardInterface.format: ansys.dyna.core.lib.format_type.format_type#
Abstractmethod:

Get the card format type.

property CardInterface.active: bool#
Abstractmethod:

Return whether the card is active.

Method detail#

classmethod CardInterface.__subclasshook__(subclass)#
abstractmethod CardInterface.read(buf: TextIO, parameter_set: ansys.dyna.core.lib.parameters.ParameterSet | None) None#

Reads the card data from an input text buffer.

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

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.