PC
This commit is contained in:
parent
d0ec526357
commit
19c0a3fad8
BIN
Ensayos.xlsx
BIN
Ensayos.xlsx
Binary file not shown.
@ -1,15 +1,19 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import random, os, json
|
import random, os, json
|
||||||
|
import ensayos_motor as ensayo
|
||||||
|
|
||||||
def valores_objetivo(archivo, material):
|
def valores_objetivo(archivo, material):
|
||||||
|
resistencia = 4.5
|
||||||
carga = pd.read_excel(archivo, sheet_name='carga', engine='openpyxl').dropna()
|
carga = pd.read_excel(archivo, sheet_name='carga', engine='openpyxl').dropna()
|
||||||
|
|
||||||
E = np.mean(carga.loc[carga['material'] == material, ['V1', 'V2']].values, axis=1)
|
E = np.mean(carga.loc[carga['material'] == material, ['V1', 'V2']].values, axis=1)
|
||||||
I = np.mean(carga.loc[carga['material'] == material, ['I1', 'I2']].values, axis=1)
|
I = np.mean(carga.loc[carga['material'] == material, ['I1', 'I2']].values, axis=1)
|
||||||
f = np.array(carga['f'][carga['material'] == material])
|
f = np.array(carga['f'][carga['material'] == material])
|
||||||
|
|
||||||
return E, I, f
|
E_obj, I_obj = ensayo.ensayo_carga(E, I, f, resistencia, lMedia)
|
||||||
|
|
||||||
|
return E_obj, I_obj, f
|
||||||
|
|
||||||
|
|
||||||
def generar_curva(offset, ruta):
|
def generar_curva(offset, ruta):
|
||||||
|
Loading…
Reference in New Issue
Block a user