oee_energy Package

oee_objects Module

Inheritance diagram of pyNastran.op2.tables.oee_energy.oee_objects
class pyNastran.op2.tables.oee_energy.oee_objects.ComplexStrainEnergyArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.op2_objects.BaseElement

      FREQUENCY =  2.000000E+03
                               E L E M E N T   S T R A I N   E N E R G I E S   ( A V E R A G E )

                ELEMENT-TYPE = QUAD4               * TOTAL ENERGY OF ALL ELEMENTS IN PROBLEM     =   1.611784E-08
                SUBCASE               1            * TOTAL ENERGY OF ALL ELEMENTS IN SET      -1 =   1.611784E-08
0
                       ELEMENT-ID       STRAIN-ENERGY (MAG/PHASE)               PERCENT OF TOTAL    STRAIN-ENERGY-DENSITY
                                5       2.027844E-10 /   0.0                         1.2581              2.027844E-09
assert_equal(table, rtol=1e-05, atol=1e-08)[source]
build()[source]

sizes the vectorized attributes of the ComplexStrainEnergyArray

build_data(dtype)[source]

actually performs the build step

get_headers() → List[str][source]
get_stats(short: bool = False) → List[str][source]
property is_complex
property is_real
write_f06(f06_file, header=None, page_stamp: str = 'PAGE %s', page_num: int = 1, is_mag_phase: bool = False, is_sort1: bool = True)[source]
class pyNastran.op2.tables.oee_energy.oee_objects.RealStrainEnergyArray(data_code, is_sort1, isubcase, dt)[source]

Bases: pyNastran.op2.result_objects.op2_objects.BaseElement

                          E L E M E N T   S T R A I N   E N E R G I E S

ELEMENT-TYPE = QUAD4     * TOTAL ENERGY OF ALL ELEMENTS IN PROBLEM   = 9.817708E+08
SUBCASE               1  * TOTAL ENERGY OF ALL ELEMENTS IN SET     1 = 4.192036E+08

   ELEMENT-ID   STRAIN-ENERGY  PERCENT OF TOTAL  STRAIN-ENERGY-DENSITY
           12   2.291087E+07        2.3336            2.291087E+02
           13   1.582968E+07        1.6124            1.055312E+02
           14   6.576075E+07        6.6982            3.288037E+02
classmethod add_static_case(table_name, element_name, element, data, isubcase, is_sort1=True, is_random=False, is_msc=True, random_code=0, title='', subtitle='', label='')[source]
assert_equal(table, rtol=1e-05, atol=1e-08)[source]
build()[source]

sizes the vectorized attributes of the RealStrainEnergyArray

build_data(dtype, idtype, fdtype)[source]

actually performs the build step

build_dataframe()[source]

major-axis - the axis

mode 1 2 3 freq 1.0 2.0 3.0 ElementID Item 1 T1

major_axis / top = [

[1, 2, 3], [1.0, 2.0, 3.0]

] minor_axis / headers = [ese, %, sed] name = mode

finalize()[source]
get_headers() → List[str][source]
get_stats(short: bool = False) → List[str][source]
property is_complex
property is_real
set_as_sort1()[source]

changes the table into SORT1

write_f06(f06_file, header=None, page_stamp='PAGE %s', page_num: int = 1, is_mag_phase: bool = False, is_sort1: bool = True)[source]
write_op2(op2_file, op2_ascii, itable, new_result, date, is_mag_phase=False, endian='>')[source]

writes an OP2

pyNastran.op2.tables.oee_energy.oee_objects.oee_data_code(table_name, analysis_code, is_sort1=True, is_random=False, random_code=0, title='', subtitle='', label='', is_msc=True)[source]

helper for result creation writing

onr Module

Inheritance diagram of pyNastran.op2.tables.oee_energy.onr
class pyNastran.op2.tables.oee_energy.onr.ONR[source]

Bases: pyNastran.op2.op2_interface.op2_common.OP2Common

get_onr_prefix_postfix()[source]

Creates the prefix/postfix that splits off ATO, CRM, PSD, nonlinear, etc. results. We also fix some of the sort bits as typing:

STRESS(PLOT,SORT1,RALL) = ALL

will actually create the OESRMS2 table (depending on what else is in your case control). However, it’s in an OESATO2 table, so we know it’s really SORT2.

Also, if you’re validating the sort_bit flags, *RMS2 and *NO2 are actually SORT1 tables.

NX Case Control Block Description =============== ========== =========== NLSTRESS OESNLXR Nonlinear static stresses BOUTPUT OESNLBR Slideline stresses STRESS OESNLXD Nonlinear Transient Stresses STRESS OES1C/OSTR1C Ply stresses/strains STRESS OES1X Element stresses with intermediate (CBAR and CBEAM)

station stresses and stresses on nonlinear elements

STRESS OES/OESVM Element stresses (linear elements only) STRAIN OSTR1 Element strains STRESS/STRAIN DOES1/DOSTR1 Scaled Response Spectra MODCON OSTRMC Modal contributions