Tension append
This commit is contained in:
parent
7014cdb134
commit
1dd3e890de
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
||||
venv/
|
||||
*.mdb
|
||||
motores/PLACond/*
|
||||
motores/PLACond/
|
||||
__pycache__/
|
||||
motores/PLACond/
|
||||
results/*
|
@ -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("-----------------------")
|
||||
|
Loading…
Reference in New Issue
Block a user