Hi,
I have a problem in changing solver PARAM values in the BDF files. I did not find anything useful in the documentation.
My goal:
change PARAM POST 0
to PARAM POST -1
BDF.params seems to give access to the parameters:
$ print BDF.params
{'POST': $ Direct Text Input for Bulk Data
PARAM POST 0
, 'PRTMAXIM': PARAM PRTMAXIM YES
}
What I tried:
BDF.params["POST"].value = -1
but this did not change anything, as the output of BDF.params stays the same.
$ print BDF.params
{'POST': $ Direct Text Input for Bulk Data
PARAM POST 0
, 'PRTMAXIM': PARAM PRTMAXIM YES
}
I can change the string in BDF.params["POST"] but I'd rather use dedicated methods to set values.
I also tried
newPARAM = pyNastran.bdf.cards.params.PARAM
newPARAM.key = "POST"
newPARAM.value = -1
BDF.add_PARAM(newPARAM, allowOverwrites=True)
but this adds the obejct to the value, whicht of course does not work:
$ print BDF.params
{'POST': <class 'pyNastran.bdf.cards.params.PARAM'>
, 'PRTMAXIM': PARAM PRTMAXIM YES
}
Thanks for any input,
kay