ansys.dyna.core.lib.text_card.TextCard#

class ansys.dyna.core.lib.text_card.TextCard(name: str, content: str = None, format=format_type.default)#

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

Abstract base class for all the implementations of keyword cards.

property value: str#

Value of the text card as a single string.

property bounded: bool#

Text cards are always unbounded.

property active: bool#

Text cards are always active.

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

Format type of the text card.

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

Read the text card content from a buffer.

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

Write the text card to a string or buffer.