コード例 #1
0
ファイル: rr_test_report.py プロジェクト: rosoba/simvisage
from matresdev.db.exdb import ExRun

import os
import numpy as np
import pylab as p
params = {'legend.fontsize': 10,
          # 'legend.linewidth': 2
          }
p.rcParams.update(params)

test_files = ['TTb-6c-2cm-0-TU-V%d.DAT' % i for i in range(1, 2)]
test_file_path = os.path.join(simdb.exdata_dir,
                              'tensile_tests', 'buttstrap_clamping',
                              '2013-12-02_TTb-6c-2cm-0-TU_Aramis2d_RR'
                              )
e_list_6c = [ExRun(data_file=os.path.join(test_file_path, test_file))
             for test_file in test_files]

test_files = ['TTb-4c-2cm-0-TU-V%d.DAT' % i for i in range(1, 2)]
test_file_path = os.path.join(simdb.exdata_dir,
                              'tensile_tests', 'buttstrap_clamping',
                              '2013-12-01_TTb-4c-2cm-0-TU_Aramis2d_RR'
                              )
e_list_4c = [ExRun(data_file=os.path.join(test_file_path, test_file))
             for test_file in test_files]

res_key = 'Xf15s1-Yf15s4'

# (integ_radius, dux_avg, ddd_ux_avg)
param_dict = {'TTb-4c-2cm-0-TU-V1.DAT': (22, -4e-4, 0.003),
              'TTb-4c-2cm-0-TU-V2.DAT': (20, -4e-4, 0.0025),
コード例 #2
0
clamp_colors = {'clamp 1.0': 'grey',
                'clamp 2.0': 'blue',
                'clamp 3.0': 'blue'}

series_colors = {'series 1': 'grey',
                 'series 2': 'red'}

series_styles = {'series 1': '--',
                 'series 2': '-'}

test_file_path = os.path.join(simdb.exdata_dir,
                              'tensile_tests', 'buttstrap_clamping',
                              '2015-03-23_TTb-2C-9mm-0-800SBR_Ring1'
                              )
e_list = [(ExRun(data_file=os.path.join(test_file_path, test_file)),
           clamp, series)
          for test_file, clamp, series in test_files]

sig_tex_max_arr = np.array([e_run.ex_type.sig_tex_max
                            for e_run, clamp, series in e_list], dtype='float_')

tf_array = np.array(test_files)
series_1_imap = np.where(tf_array[:, 2] == 'series 1')
series_2_imap = np.where(tf_array[:, 2] == 'series 2')
clamp_1_imap = np.where(tf_array[:, 1] == 'clamp 1.0')

clamp_23_map = np.logical_or(
    tf_array[:, 1] == 'clamp 2.0', tf_array[:, 1] == 'clamp 3.0')
clamp_23_imap = np.where(clamp_23_map)
print clamp_23_imap
コード例 #3
0
                               'bending_tests_retrofitting', 'three_point',
                               '2016-01-25_BT-3PT-1s-20cm-d8mm-RF2_2C-cyc-Aramis2d')]

test_files = ['BT-3PT-1s-20cm-d8mm-RF2_2C-cyc-Aramis2d.DAT']

#--------------------
# format plot
#--------------------
color_list = ['grey']
linestyle_list = ['-']
plot_orig_list = [1]
# cutoff long label names at the end for cleaner legend display
label_cutoff = [-9]
#--------------------

e_list = [ExRun(data_file=os.path.join(test_file_path[i], test_files[i]))
          for i in range(len(test_files))]


def plot_all():

    fig = p.figure(facecolor='white', figsize=(8, 6))

    for idx, e_run in enumerate(e_list):

        e = e_run.ex_type

        axes = p.subplot(111)

        if do == 'F-w':
            e._plot_force_deflection(axes,
コード例 #4
0
              'B3-Ia-DK3-B-7.DAT', 
              'B3-Ia-DK3-C-5.DAT',
              'B3-Ia-DK3-C-6.DAT',
              ]

test_file_path = os.path.join(simdb.exdata_dir,
                             'tensile_tests', 'buttstrap_clamping',
                             '2016-03-18_TTb-2C-9mm-0-3300SBR_R4_Dresden')


#n_rov_list = [10, 10]
color_list = ['k', 'grey','red','blue',"green",]
linestyle_list = ['-', '-', '-', '-', '-',]
plot_asc_list = [1, 1, 1, 1, 1,]
label_cutoff = [-6, -3, -3, -3, -3,]  # cutoff long label names at the end for cleaner legend display
e_array = [ExRun(data_file=os.path.join(test_file_path, test_file))
             for test_file in test_files]
tension_max = np.zeros((len(test_files),))
def plot_all():

    fig = p.figure(facecolor='white', figsize=(8, 6))
#     fig.subplots_adjust(
#         left=0.07, right=0.97, bottom=0.08, top=0.96, wspace=0.25, hspace=0.2)

    for idx, e_run in enumerate(e_array):

        e = e_run.ex_type

        axes = p.subplot(111)
        a_roving_0 = e.ccs.fabric_layup_list[1].a_roving_0      
        if plot_asc_list[idx]:
コード例 #5
0
ファイル: exp_dpo_db.py プロジェクト: rosoba/simvisage
                dock='tab',
                scrollable=True,
            ),
            scrollable=True,
            id='matresdev.db.exdb.ex_composite_tensile_test.vgroup',
            dock='tab',
        ),
        id='matresdev.db.exdb.ex_composite_tensile_test',
        dock='tab',
        scrollable=True,
        resizable=True,
        height=0.8,
        width=0.5,
    )

ExpDPODB.db = ExRunClassExt(klass=ExpDPODB)

if __name__ == '__main__':

    import pylab as p
    fig = p.figure(facecolor='white', figsize=(12, 9))

    test_file_path = os.path.join(simdb.exdata_dir, 'double_pullout',
                                  '2016-03-16_DPO-15mm-0-3300SBR_R4',
                                  'raw_data', 'DPO-70cm-0-3300SBR-V2_R4.DAT')
    exrun = ExRun(data_file=test_file_path)

    axes = p.subplot(111)
    exrun.ex_type._plot_yforce_displacement(axes)
    p.show()
コード例 #6
0
ファイル: rr_series.py プロジェクト: rosoba/simvisage
import os
import numpy as np
import pylab as p
params = {
    'legend.fontsize': 10,
    # 'legend.linewidth': 2
}
p.rcParams.update(params)

test_files = ['TTb-6c-2cm-0-TU-V%d.DAT' % i for i in [1]]
test_file_path = os.path.join(simdb.exdata_dir, 'tensile_tests',
                              'buttstrap_clamping',
                              '2013-12-02_TTb-6c-2cm-0-TU_Aramis2d_RR')
e_list_6c = [
    ExRun(data_file=os.path.join(test_file_path, test_file))
    for test_file in test_files
]

test_files = ['TTb-4c-2cm-0-TU-V%d.DAT' % i for i in [4]]
test_file_path = os.path.join(simdb.exdata_dir, 'tensile_tests',
                              'buttstrap_clamping',
                              '2013-12-01_TTb-4c-2cm-0-TU_Aramis2d_RR')
e_list_4c = [
    ExRun(data_file=os.path.join(test_file_path, test_file))
    for test_file in test_files
]

res_key = 'Xf15s1-Yf15s4'

# (integ_radius, dux_avg, ddd_ux_avg)
コード例 #7
0
from matresdev.db.simdb import SimDB
from matresdev.db.exdb import ExRun
simdb = SimDB()
import os
import pylab as p
params = {'legend.fontsize': 10,
          # 'legend.linewidth': 2
          }
p.rcParams.update(params)

test_files = ['TTb-4c-2cm-0-TU-V%d.DAT' % i for i in range(1, 6)]
test_file_path = os.path.join(simdb.exdata_dir,
                              'tensile_tests', 'buttstrap_clamping',
                              '2013-12-01_TTb-4c-2cm-0-TU_Aramis2d_RR'
                              )
e_list_4c = [ExRun(data_file=os.path.join(test_file_path, test_file),
                   delta_t_aramis=5)
             for test_file in test_files]

test_files = ['TTb-6c-2cm-0-TU-V%d.DAT' % i for i in range(1, 6)]
test_file_path = os.path.join(simdb.exdata_dir,
                              'tensile_tests', 'buttstrap_clamping',
                              '2013-12-02_TTb-6c-2cm-0-TU_Aramis2d_RR'
                              )
e_list_6c = [ExRun(data_file=os.path.join(test_file_path, test_file),
                   delta_t_aramis=5)
             for test_file in test_files]


def plot_all():

    fig = p.figure()