diff --git a/fluxcontrol.py b/fluxcontrol.py index eb33a92..d75c535 100644 --- a/fluxcontrol.py +++ b/fluxcontrol.py @@ -19,8 +19,6 @@ if __name__ == '__main__': E_obj, f_obj = gc.valores_objetivo(archivoEnsayos, material) - vTension = [] - log(f"La tension inducida objetivo son {E_obj} V") offset = 0 @@ -32,6 +30,8 @@ if __name__ == '__main__': while flag == False: + vTension = [] + gc.generar_curva(offset, archivoCurvas) log("-----------------------") @@ -51,7 +51,11 @@ if __name__ == '__main__': vTension.append(tension) - error.append(tension/E_obj) + vTension = np.array(vTension) + + error = vTension/E_obj + + print(error) error = np.mean(error) diff --git a/motores/PLACond/FEResultsData/StaticLoad_result_1.mes b/motores/PLACond/FEResultsData/StaticLoad_result_1.mes index 9ffb973..732e9f0 100644 Binary files a/motores/PLACond/FEResultsData/StaticLoad_result_1.mes and b/motores/PLACond/FEResultsData/StaticLoad_result_1.mes differ diff --git a/motores/PLACond/FEResultsData/StaticLoad_result_1.ugf b/motores/PLACond/FEResultsData/StaticLoad_result_1.ugf index 402f559..55557f7 100644 Binary files a/motores/PLACond/FEResultsData/StaticLoad_result_1.ugf and b/motores/PLACond/FEResultsData/StaticLoad_result_1.ugf differ diff --git a/motores/PLACond/FEResultsData/StaticOC_result_1.mes b/motores/PLACond/FEResultsData/StaticOC_result_1.mes index df6e0b4..8128d56 100644 Binary files a/motores/PLACond/FEResultsData/StaticOC_result_1.mes and b/motores/PLACond/FEResultsData/StaticOC_result_1.mes differ diff --git a/motores/PLACond/FEResultsData/StaticOC_result_1.ugf b/motores/PLACond/FEResultsData/StaticOC_result_1.ugf index 601ac87..944a7f2 100644 Binary files a/motores/PLACond/FEResultsData/StaticOC_result_1.ugf and b/motores/PLACond/FEResultsData/StaticOC_result_1.ugf differ diff --git a/motores/PLACond/FEResultsData/Steel_Material_BH_Magnetic_Properties_Autofile.bh b/motores/PLACond/FEResultsData/Steel_Material_BH_Magnetic_Properties_Autofile.bh index d0e9d3b..bad7ee8 100644 --- a/motores/PLACond/FEResultsData/Steel_Material_BH_Magnetic_Properties_Autofile.bh +++ b/motores/PLACond/FEResultsData/Steel_Material_BH_Magnetic_Properties_Autofile.bh @@ -1,4 +1,4 @@ -Material BH characteristics 01/04/2025 17:43:17 17:43:17 +Material BH characteristics 02/04/2025 11:02:32 11:02:32 Code:1 (Stator) Material: M800-50A 24 1 0 0 diff --git a/test.py b/test.py new file mode 100644 index 0000000..13dad00 --- /dev/null +++ b/test.py @@ -0,0 +1,6 @@ +import numpy as np + +e = [23.76, 35.6, 48.05, 60.08] +eObj = [28.4, 42.93, 57.61, 72.313] + +print(e/eObj) \ No newline at end of file