Exemple #1
0
    def test_02(self):
        folder = os.path.abspath(os.path.join(test_path, '..', 'models'))
        op2_filename = os.path.join(folder, 'iSat', 'isat_dploy_sm_orig.op2')

        # op2 = OP2(op2_filename)
        # op2.rdn2cop2()
        # print(object_attributes(op2))
        # print('dbnames =', op2.dbnames)
        # print('dblist =', op2.dblist)
        o2 = rdpostop2(op2_filename, verbose=True, getougv1=True)
Exemple #2
0
    def _test_03(self):
        folder = os.path.abspath(os.path.join(test_path, '..', 'models'))
        op2_filename = os.path.join(folder, 'sol_101_elements', 'mode_solid_shell_bar.op2')

        # op2 = OP2(op2_filename)
        # op2.rdn2cop2()
        # print(object_attributes(op2))
        # print('dbnames =', op2.dbnames)
        # print('dblist =', op2.dblist)
        o2 = rdpostop2(op2_filename, verbose=True, getougv1=True)
Exemple #3
0
    def _test_01(self):
        folder = os.path.abspath(os.path.join(test_path, '..', 'models'))
        op2_filename = os.path.join(folder, 'solid_bending', 'solid_bending.op2')
        op2_filename = os.path.join(folder, 'solid_bending', 'solid_bending.op2')

        # op2 = OP2(op2_filename)
        # op2.rdn2cop2()
        # print(object_attributes(op2))
        # print('dbnames =', op2.dbnames)
        # print('dblist =', op2.dblist)

        o2 = rdpostop2(op2_filename, verbose=True, getougv1=True)
        print('a =', o2.keys())
        print('b =', o2['mats'].keys())
        print('c =', o2['mats']['ougv1'])