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

Inheritance diagram of pyNastran.op2.resultObjects.tableObject

class pyNastran.op2.resultObjects.tableObject.ComplexTableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.resultObjects.tableObject.TableArray

_write_f06_transient_block(words, header, page_stamp, page_num, f, is_mag_phase)[source]
data_type()[source]
is_complex()[source]
is_real()[source]
class pyNastran.op2.resultObjects.tableObject.ComplexTableObject(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.resultObjects.op2_Objects.ScalarObject

_write_f06_block(words, header, page_stamp, page_num=1, f=None, is_mag_phase=False)[source]
_write_f06_transient_block(words, header, page_stamp, page_num=1, f=None, is_mag_phase=False)[source]
add(dt, nodeID, grid_type, v1, v2, v3, v4, v5, v6)[source]
add_complex_f06_data(data, transient)[source]
add_f06_data(data, transient)[source]
add_new_transient(dt)[source]

initializes the transient variables

add_sort1(dt, nodeID, grid_type, v1, v2, v3, v4, v5, v6)[source]
add_sort2(nodeID, data)[source]
delete_transient(dt)[source]
get_stats()[source]
get_transients()[source]
isImaginary()[source]
update_dt(data_code, dt)[source]
class pyNastran.op2.resultObjects.tableObject.RealTableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.resultObjects.tableObject.TableArray

_write_f06_block(words, header, page_stamp, page_num, f, write_words=True)[source]
_write_f06_transient_block(words, header, page_stamp, page_num, f, write_words=True)[source]
_write_op2_header(f, table_num, i)[source]
data_type()[source]
is_complex()[source]
is_real()[source]
write_op2(f, is_mag_phase=False)[source]
class pyNastran.op2.resultObjects.tableObject.RealTableObject(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.resultObjects.op2_Objects.ScalarObject

ATO_words()[source]
CRM_words()[source]
PSD_words()[source]
RMS_words()[source]
ZERO_words()[source]
_write_f06_block(words, header, page_stamp, page_num=1, f=None)[source]
_write_f06_transient_block(words, header, page_stamp, page_num=1, f=None)[source]
add(dt, node_id, grid_type, v1, v2, v3, v4, v5, v6)[source]
add_f06_data(data, transient)[source]
add_new_transient(dt)[source]

initializes the transient variables

add_sort1(dt, node_id, grid_type, v1, v2, v3, v4, v5, v6)[source]
add_sort2(node_id, dt, grid_type, v1, v2, v3, v4, v5, v6)[source]
delete_transient(dt)[source]
get_as_sort1()[source]
get_as_sort2()[source]

returns translations and rotations in sort2 format

get_stats()[source]
get_table_marker()[source]
get_transients()[source]
isATO()[source]

Auto-Correlation Function

isCRM()[source]

Correlated Root-Mean Square

isImaginary()[source]
isPSD()[source]

Power Spectral Density

isRMS()[source]

Root-Mean Square

isZERO()[source]

Zero Crossings

update_dt(data_code, dt)[source]
class pyNastran.op2.resultObjects.tableObject.TableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.resultObjects.op2_Objects.ScalarObject

_get_msgs(is_mag_phase)[source]
_reset_indices()[source]
add(dt, node_id, grid_type, v1, v2, v3, v4, v5, v6)[source]
add_sort1(dt, node_id, grid_type, v1, v2, v3, v4, v5, v6)[source]
build()[source]
data_type()[source]
get_stats()[source]