params
Module¶
- 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
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
-
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.