~gcg/splithopkinsontools/trunk

« back to all changes in this revision

Viewing changes to SHTB_AnalyseExperiment.py

  • Committer: gcg
  • Date: 2018-03-16 16:21:26 UTC
  • Revision ID: gcg-20180316162126-uwdmokuwqfljive0
switched LineScanAnalysis to OpenCV

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        self.convertVoltsToForceAndStrain()
33
33
        self.writeNonShiftedData()
34
34
        self.ShiftWaves()
35
 
        self.determineStrikerSpeed()
 
35
        #self.determineStrikerSpeed()
36
36
        
37
37
        #self.dynamicStrainGaugeCalibration()
38
38
        
104
104
        ax2.plot(self.time, 100*self.sampleStrain, "r--")
105
105
        ax2.set_ylabel("strain [%]")
106
106
        
107
 
        axarr[1].plot(self.time, self.barForce * np.ones(len(self.time)), label="theoretical, from optical velocity", linewidth=2)
 
107
        #axarr[1].plot(self.time, self.barForce * np.ones(len(self.time)), label="theoretical, from optical velocity", linewidth=2)
108
108
        axarr[1].plot(self.time, self.F_tra, label="transmitted", linewidth=2)
109
109
        axarr[1].plot(self.time, self.F_inc, label="incident", linewidth=2)
110
110
        axarr[1].set_ylabel("force [kN]")
440
440
        
441
441
        
442
442
        self.time = data[:,0] * 1000 # convert time to msec
443
 
        self.light_barrier = data[:,1]
444
 
        self.SG_inc = data[:,2]
445
 
        self.SG_tra = data[:,3]
 
443
        #self.light_barrier = data[:,1]
 
444
        self.SG_inc = data[:,1]
 
445
        self.SG_tra = data[:,2]
 
446
        self.SG_tra2 = data[:,3]
446
447
        self.flash = data[:,4]
447
448
        self.Nrec = len(self.time)
448
449
        self.sampleDt = self.time[1] - self.time[0]
491
492
if __name__ == "__main__":
492
493
    
493
494
    calibrationDataFile = "calQS.ini"
494
 
    datafile_in = "/home/gcg/SHTB/20171005_PP/export.txt"
 
495
    datafile_in = "/mnt/engsysstaff/Masterarbeiten/Langhof_SHTB/Daten von Timo/SHTB_Messungen/PC_2018/L0 = 6 mm/Probe6.2/export.txt"
495
496
    barProperties = { "YoungsE" : 69.0,
496
497
                      "rho" : 2700.0e-9,
497
498
                      "knownBarVelocity" : 11.8,