Escolar Documentos
Profissional Documentos
Cultura Documentos
PAQUETES USADOS
###
###############################################
from math import *
from numpy.linalg import solve
import numpy as np
import matplotlib.pyplot as plt
from numpy import *
###############################################
###
TEXTOS INPUT
###
###############################################
DATA1=np.genfromtxt('I_BOM.txt')
# DATO INPUT
###############################################
###
DATOS GENERALES
###
###############################################
Q=0.142 #Caudal a implusar (m3/s)
T=15.0 #Temperatura
k=6.0e-5 #Rugosidad m
g=9.81 #Gravedad
Pes=1000 #peso especifico kg/m3
Efi=0.74 # Eficiencia
###############################################
###
DATOS DE SUCCION
###
###############################################
ls=7.6 #longitud de succion (mt)
Hes=3.0 #altura de succion (mt)
ds=0.254 #diametro(mt)
DATOS DE DESCARGA
###
###############################################
###############################################
### ANALIZANDO TRAMO DE SUCCION
###
###############################################
vis=(1.14 -0.031*(T-15.0) + 0.00068*(T-15.0)**2)*1e-6
vs=Q/(pi*0.25*ds**2)
Res=4*Q/(pi*ds*vis)
tol=1e-14
fs=0.0000001
Fs=2*fs
cont=0
while (abs(fs-Fs)>= tol):
Fs=fs
fs=(-2*log((k/(3.7*ds)+ 2.51/(Res*sqrt(Fs)))))**-2
cont=cont+1
PaB=-((1+kms)*(vs**2/(2*g))+Hes+fs*ls*vs**2/(ds*2*g))
print "LAPOTENCIA DE SUCCION ES =",PaB,"METROS"
###############################################
### ANALIZANDO TRAMO DE DESCARGA
###
###############################################
vd=Q/(pi*0.25*dd**2)
Red=4*Q/(pi*dd*vis)
tol=1e-14
fd=1
Fd=2*fd
cont=0
while (abs(fd-Fd)>= tol):
Fd=fd
fd=(-2*log((k/(3.7*dd)+ 2.51/(Red*sqrt(Fd)))))**-2
cont=cont+1
PdB=(kmd-1)*vd**2/(2*g)+Hed+fd*ld*vd**2/(dd*2*g)
print "LAPOTENCIA DE DESCARGA ES =",PdB,"METROS"
###############################################
###
POTENCIA TRANSFERIDA
###
###############################################
HHdB=(vd**2/(2*g))+PdB
HHaB=(vs**2/(2*g))+PaB
Pot=Pes*Q*(HHdB-HHaB)/(75*Efi)
print "LAPOTENCIA DE LA BOMBA ES =",Pot,"HP"
###############################################
import numpy as np
import matplotlib.pyplot as plt
x=DATA1[:,0]
y=DATA1[:,1]
X = [0, (Q*60)]
Y = [0, PdB]
fig =plt.figure()
axes = fig.add_subplot(111)
axes.plot(x, y,"----")
axes.plot(X,Y, ".")
plt.show()
RESULTADOS
LA ALTURA DE SUCCION ES = -4.63885945024 METROS
LA ALTURA DE DESCARGA ES = 65.5660772779 METROS
LAPOTENCIA DE LA BOMBA ES = 181.099640419 HP