resultObjects Package

op2_Objects Module

Inheritance diagram of pyNastran.op2.resultObjects.op2_Objects

class pyNastran.op2.resultObjects.op2_Objects.BaseScalarObject[source]

Bases: pyNastran.op2.op2Codes.Op2Codes

_write_f06_transient(header, page_stamp, page_num=1, f=None, is_mag_phase=False)[source]
get_stats()[source]
name()[source]
write_f06(header, page_stamp, page_num=1, f=None, is_mag_phase=False)[source]
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

apply_data_code()[source]
cast_grid_type(grid_type)[source]

converts a grid_type string to an integer

getUnsteadyValue()[source]
getVar(name)[source]
get_data_code()[source]
isImaginary()[source]
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’].

recast_gridtype_as_string(grid_type)[source]

converts a grid_type integer to a string

set_data_members()[source]
set_var(name, value)[source]
start_data_member(var_name, value_name)[source]
update_data_code(data_code)[source]
update_dt(data_code, dt)[source]

This method is called if the object already exits and a new time/freq/load step is found

tableObject Module