@@ -26,18 +26,24 @@ Uncertainties can be evaluated for a specific parameter set and the given input
In the file **GUI_Elbow.py** the user interface is defined.
In the file **Flow_class.py** the class **Elbow_profile** is defined, which can also be used outside the user interface. An instance of this class need to be initialized with a case name "SingleElbow", "DoubleElbow", "Double_S_Elbow", the POD modes and coefficients for the specific case are loaded during initialization. For example:
*casename = "DoubleElbow"*
*flow = Elbow_profile(casename)*
A flow profile can be accessed with the method get_profile(Rk,dl,dist,x=None,y=None,addfully = False,asmat = True). e.g.:
It returns the velocity profile of u_x, u_y and u_z (u_z = axial velocity) as a numpy array of the size (3, Nphi, Nr), which is in the current version (3, 81, 41). x and y are just dummies and are not used.
It will always return the velocity profile at the coordinates stored in the variables flow.r flow.phi or flow.xm, flow.ym as matrixes (81,41), flwo.x and flow.y are flat arrays of size 81*41.
The function to calculate a POD is defined in the function *do_POD*, and the reconstruction of a profile *do_reconstruct* for a profile at a cross section, and *do_reconstruct_path* along a diametral path.
with the method *get_pathint* integrals along ultrasonc paths will be calculated, this is be done for all parameters of a case. As one input an instance of the *FlowMeter* class must be provided.
The *FlowMeter* class is defined in *FlowMeter.py*, it only contains information about the flow meter type. By now only ultrasonic flow meter with diametral paths with arbitrary number of reflections and any axial angle 0 < alpha < 90 degree.
If the button "Eval Flow Meter" is clicked, an instance of the flow meter class with the selected parameter types is generated and it is checked whether the values of this exact type of flow meter was saved beforehand in the folder "FlowMeters/casename/" with the file name *flow meter type _ Variation _ number of reflections _ alpha*
e.g. an ultrasonic V-path (number of reflections = 1) flow meter with axial angle alpha = 30 degree is saved according to
Is the correct flow meter file is not found the evaluation of the flow meter will be calculated for all parameters and the loaded case. After the calculation the flow meter values are saved in the folder as explained above. The calculation needs, depending on the performance of the computer, 10 to 30 minutes to be calculated for the double elbow cases.