Tension append

This commit is contained in:
Pedro Romero 2025-04-01 17:07:40 +02:00
parent 7014cdb134
commit 1dd3e890de
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
venv/
*.mdb
motores/PLACond/*
motores/PLACond/
__pycache__/
motores/PLACond/
results/*

View File

@ -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("-----------------------")