From 1dd3e890de18c016242bf2968bc9e3fa4aa57fd3 Mon Sep 17 00:00:00 2001 From: Pedro Romero Date: Tue, 1 Apr 2025 17:07:40 +0200 Subject: [PATCH] Tension append --- .gitignore | 2 +- fluxcontrol.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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("-----------------------")