From b6a9ff659437834bbdbab3b50e64e6e652fe0f50 Mon Sep 17 00:00:00 2001 From: weisse02 <andreas.weissenbrunner@ptb.de> Date: Tue, 25 Oct 2022 17:52:27 +0200 Subject: [PATCH] gui works now also for the double Elbow case, but is quite slow for the flow meter calculation -> calculate flow meter only for a part of the data --- Flow_class.py | 6 ++++-- GUI_Elbow.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Flow_class.py b/Flow_class.py index d5dbc9c..469003a 100644 --- a/Flow_class.py +++ b/Flow_class.py @@ -118,8 +118,8 @@ def loadPODres(case): else: # the other POD res files are in npz-format ux = np.load(data_path+"/Ux_POD_DE.npz") - uy = np.load(data_path+"/Ux_POD_DE.npz") - uz = np.load(data_path+"/Ux_POD_DE.npz") + uy = np.load(data_path+"/Uy_POD_DE.npz") + uz = np.load(data_path+"/Udiff_POD_DE.npz") # return ux, uy, uz @@ -248,11 +248,13 @@ class Elbow_profile(): self.regint_ux.append(interpol.RegularGridInterpolator((self.Rk,self.dl,self.dist), coeffs_x[:,:,:,i],bounds_error = False,fill_value=None )) self.regint_uy.append(interpol.RegularGridInterpolator((self.Rk,self.dl,self.dist), coeffs_y[:,:,:,i],bounds_error = False,fill_value=None )) self.regint_uz.append(interpol.RegularGridInterpolator((self.Rk,self.dl,self.dist), coeffs_z[:,:,:,i],bounds_error = False,fill_value=None )) + #self.coeffs_z = coeffs_z del coeffs_x del coeffs_y del coeffs_z # # + #self.pod_z = pod_z del pod_x del pod_y del pod_z diff --git a/GUI_Elbow.py b/GUI_Elbow.py index 806e5dd..c421816 100644 --- a/GUI_Elbow.py +++ b/GUI_Elbow.py @@ -1023,7 +1023,7 @@ class Main(wx.Frame): if __name__ == "__main__": # - flow = Elbow_profile('SingleElbow') + flow = Elbow_profile('DoubleElbow') fm = FlowMeter() globdz = 0 # -- GitLab