Example #1
0
 def OnEkCompare(self, event):
     from extern import getTreelogE
     ee = getTreelogE()
     plot2d(
         [[range(len(self.modelNumbers)),
           self.calcEkTotal(False), "calc"],
          [ee[0], ee[1][:, 1], "treelog"]], "Ek total compare")
Example #2
0
 def OnExtVirialTh(self, event):
     from extern import getTreelogE
     res = getTreelogE()
     plot2d([res[0], 2 * res[1][:, 1] + res[1][:, 2]],
            "Virial Th from TREELOG(2Ek+Ep)")
Example #3
0
 def OnExtEnergy(self, event):
     from extern import getTreelogE
     res = getTreelogE()
     plot2d([[res[0], res[1][:, 0], "Et"], [res[0], res[1][:, 1], "Ek"],
             [res[0], res[1][:, 2], "Ep"]], "Energies from TREELOG")
Example #4
0
		def OnExtVirialTh(self, event):
			from extern import getTreelogE
			res = getTreelogE()	
			plot2d([res[0], 2 * res[1][:,1] + res[1][:,2]], "Virial Th from TREELOG(2Ek+Ep)")
Example #5
0
		def OnExtEnergy(self, event):
			from extern import getTreelogE
			res = getTreelogE()	
			plot2d([ [res[0], res[1][:,0] , "Et"],  [res[0], res[1][:,1] , "Ek"], [res[0], res[1][:,2] , "Ep"]], "Energies from TREELOG")
Example #6
0
		def OnEkCompare(self, event):
			from extern import getTreelogE
			ee = getTreelogE()	
			plot2d([[range(len(self.modelNumbers)), self.calcEkTotal(False), "calc"], [ee[0], ee[1][:,1], "treelog"]], "Ek total compare")