result_objects Package

element_table_object Module

Inheritance diagram of pyNastran.op2.result_objects.element_table_object
class pyNastran.op2.result_objects.element_table_object.ElementTableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.op2_objects.BaseElement

build(self)[source]

sizes the vectorized attributes of the ElementTableArray

combine(self, result, is_sort1=True)[source]
data_type(self)[source]
get_stats(self, short=False)[source]
headers
class pyNastran.op2.result_objects.element_table_object.RealElementTableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.element_table_object.ElementTableArray

data_type(self)[source]
extract_xyplot(self, element_ids, index)[source]
is_complex
is_real
nnodes_per_element

op2_objects Module

Inheritance diagram of pyNastran.op2.result_objects.op2_objects
class pyNastran.op2.result_objects.op2_objects.BaseElement(data_code, isubcase, apply_data_code=True)[source]

Bases: pyNastran.op2.result_objects.op2_objects.ScalarObject

class pyNastran.op2.result_objects.op2_objects.BaseScalarObject[source]

Bases: pyNastran.op2.op2_interface.op2_codes.Op2Codes

The base scalar class is used by:
  • RealEigenvalues
  • BucklingEigenvalues
  • ComplexEigenvalues
  • ScalarObject
build_dataframe(self)[source]

creates a pandas dataframe

class_name
export_to_hdf5(self, group, log)[source]

exports the object to HDF5 format

get_headers(self)[source]
get_stats(self, short=False)[source]
object_attributes(self, mode='public', keys_to_skip=None, filter_properties=False)[source]
object_methods(self, mode='public', keys_to_skip=None)[source]
write_f06(self, f06_file, header=None, page_stamp='PAGE %s', page_num=1, is_mag_phase=False, is_sort1=True)[source]
class pyNastran.op2.result_objects.op2_objects.ScalarObject(data_code, isubcase, apply_data_code=True)[source]

Bases: pyNastran.op2.result_objects.op2_objects.BaseScalarObject

Used by all vectorized objects including:
  • DisplacementArray
  • RodStressArray
apply_data_code(self)[source]
cast_grid_type(self, grid_type_str)[source]

converts a grid_type string to an integer

dataframe

alternate way to get the dataframe

get_data_code(self, prefix=' ')[source]
get_unsteady_value(self)[source]
print_data_members(self)[source]

Prints out the “unique” vals of the case.

Uses a provided list of data_code[‘data_names’] 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(self, grid_type)[source]

converts a grid_type integer to a string

Point type (per NX 10; OUG table; p.5-663): =1, GRID Point =2, Scalar Point =3, Extra Point =4, Modal =5, p-elements, 0-DOF -6, p-elements, number of DOF

update_data_code(self, data_code)[source]
update_dt(self, data_code, unused_dt)[source]

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

scalar_table_object Module

Inheritance diagram of pyNastran.op2.result_objects.scalar_table_object
defines:
  • ScalarTableObject
class pyNastran.op2.result_objects.scalar_table_object.RealScalarTableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.scalar_table_object.ScalarTableArray

data_type(self)[source]
extract_xyplot(self, node_ids, index)[source]
is_complex
is_real
write_op2(self, op2_file, fascii, itable, new_result, date, is_mag_phase=False, endian='>')[source]

writes an OP2

class pyNastran.op2.result_objects.scalar_table_object.ScalarTableArray(data_code, unused_is_sort1, isubcase, unused_dt)[source]

Bases: pyNastran.op2.result_objects.op2_objects.ScalarObject

build(self)[source]

sizes the vectorized attributes of the ScalarTableArray

build_data(self, ntimes, nnodes, ntotal, nx, ny, float_fmt)[source]

actually performs the build step

build_dataframe(self)[source]

creates a pandas dataframe

combine(self, result, is_sort1=True)[source]
data_type(self)[source]
finalize(self)[source]

Calls any OP2 objects that need to do any post matrix calcs

get_headers(self)[source]
get_stats(self, short=False)[source]
headers
set_as_sort1(self)[source]

changes the table into SORT1

table_object Module

Inheritance diagram of pyNastran.op2.result_objects.table_object
defines:
  • TableObject
  • RealTableArray
  • ComplexTableArray
these are used by:
  • RealDisplacementArray
  • RealVelocityArray
  • RealAccelerationArray
  • RealEigenvaluesArray
  • RealSPCForcesArray
  • RealMPCForcesArray
  • RealAppliedLoadsArray
  • ComplexDisplacementArray
  • ComplexVelocityArray
  • ComplexAccelerationArray
  • ComplexEigenvaluesArray
  • ComplexSPCForcesArray
  • ComplexMPCForcesArray
  • ComplexAppliedLoadsArray
class pyNastran.op2.result_objects.table_object.ComplexTableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.table_object.TableArray

complex displacement style table

data_type(self)[source]
extract_xyplot(self, node_ids, index, index_str)[source]
is_complex
is_real
write_op2(self, op2_file, fascii, itable, new_result, date, is_mag_phase=False, endian='>')[source]

writes an OP2

write_sort1_as_sort1(self, f06_file, page_num, page_stamp, header, words, is_mag_phase)[source]
write_sort1_as_sort2(self, f06_file, page_num, page_stamp, header, words, is_mag_phase)[source]
class pyNastran.op2.result_objects.table_object.RealTableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.table_object.TableArray

displacement style table

data_type(self)[source]
extract_xyplot(self, node_ids, index)[source]
is_complex
is_real
write_csv(self, csv_file, is_mag_phase=False)[source]
write_op2(self, op2_file, fascii, itable, new_result, date, is_mag_phase=False, endian='>')[source]

writes an OP2

class pyNastran.op2.result_objects.table_object.TableArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.op2_objects.ScalarObject

Base class for:
  • RealTableArray
  • ComplexTableArray
assert_equal(self, table, rtol=1e-05, atol=1e-08)[source]
build(self)[source]

sizes the vectorized attributes of the TableArray

build_data(self, ntimes, nnodes, ntotal, nx, ny, float_fmt)[source]

actually performs the build step

build_dataframe(self)[source]

creates a pandas dataframe

combine(self, result, is_sort1=True)[source]
data_type(self)[source]
finalize(self)[source]

Calls any OP2 objects that need to do any post matrix calcs

get_headers(self)[source]
get_stats(self, short=False)[source]
headers
set_as_sort1(self)[source]

changes the table into SORT1

pyNastran.op2.result_objects.table_object.append_sort1_sort2(data1, data2, to_sort1=True)[source]

data1 : (ntimes, nnids, 6) data2 : (nnids, ntimes, 6)