resultObjects Package¶
op2_Objects Module¶
- class pyNastran.op2.resultObjects.op2_Objects.ScalarObject(data_code, isubcase, apply_data_code=True)[source]¶
Bases: pyNastran.op2.resultObjects.op2_Objects.BaseScalarObject
- append_data_member(var_name, value_name)[source]¶
this appends a data member to a variable that may or may not exist
- print_data_members()[source]¶
Prints out the “unique” vals of the case. Uses a provided list of data_code[‘dataNames’] to set the values for each subcase. Then populates a list of self.name+’s‘ (by using setattr) with the current value. For example, if the variable name is ‘mode’, we make self.modes. Then to extract the values, we build a list of of the variables that were set like this and then loop over them to print their values.
This way there is no dependency on one result type having [‘mode’] and another result type having [‘mode’,’eigr’,’eigi’].