diff --git a/.gitignore b/.gitignore index 911d8d2..b5b8a56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ venv/ *.mdb -motores/PLACond/* +motores/PLACond/ __pycache__/ motores/PLACond/ results/* \ No newline at end of file diff --git a/fluxcontrol.py b/fluxcontrol.py index 0876d14..9b3774c 100644 --- a/fluxcontrol.py +++ b/fluxcontrol.py @@ -19,6 +19,8 @@ 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 @@ -47,12 +49,14 @@ if __name__ == '__main__': tension = mc.simularMCAD(corriente, frecuencia, material, mcadIteration) + vTension.append(tension) + error.append(tension/E_obj) error = np.mean(error) log(f"El resultado de la iteración {iteration} es:") - log(f"- E_calculada = {tension}") + log(f"- E_calculada = {vTension}") log(f"- E_obj = {E_obj}") log(f"- Error = {error}") log("-----------------------")