params Module

Inheritance diagram of pyNastran.bdf.cards.params
defines the following card:
  • PARAM

class pyNastran.bdf.cards.params.PARAM(key, values, comment='')[source]

Bases: pyNastran.bdf.cards.base_card.BaseCard

Creates a PARAM card

Parameters
keystr

the name of the PARAM

valuesint/float/str/List

varies depending on the type of PARAM

commentstr; default=’’

a comment for the card

classmethod _init_from_empty()[source]
classmethod add_card(card, comment='')[source]

Adds a PARAM card from BDF.add_card(...)

Parameters
cardBDFCard()

a BDFCard object

commentstr; default=’’

a comment for the card

raw_fields()[source]
repr_fields()[source]

Gets the fields in their simplified form

Returns
fieldsList[varies]

the fields that define the card

type = 'PARAM'
update_values(value1=None, value2=None)[source]

Updates value1 and value2. Performs type checking based on the PARAM type after setting any default value(s).

Parameters
value1varies; default=None

the main value

value2varies; default=None

optional value

If you want to access the data directly, use:
>>> param = bdf.params[‘POST’]
>>> param.values[0] = -1 # value1
>>> param.values[1] = 3 # value2
>>>
.. note:: Most PARAM cards only have one value. Some have two.
write_card(size: int = 8, is_double: bool = False) → str[source]

Writes the card with the specified width and precision

Parameters
sizeint (default=8)

size of the field; {8, 16}

is_doublebool (default=False)

is this card double precision

Returns
msgstr

the string representation of the card